Skip to content

Commit ba5088a

Browse files
authored
Fix Build Issue (#59)
* Fixed build issues faced on React by changing build command to bun
1 parent 6c15670 commit ba5088a

File tree

105 files changed

+500
-9498
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+500
-9498
lines changed

.circleci/config.yml

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,43 @@ jobs:
1010
install:
1111
working_directory: ~/etherspot-modular-sdk
1212
docker:
13-
- image: cimg/node:18.16.1
13+
- image: cimg/node:20.11.1
1414
auth:
1515
username: $DOCKERHUB_USER
1616
password: $DOCKERHUB_PASSWORD
1717
steps:
1818
- checkout
19+
- run:
20+
name: Install Bun
21+
command: |
22+
curl -fsSL https://bun.sh/install | bash
23+
echo 'export BUN_INSTALL="$HOME/.bun"' >> $BASH_ENV
24+
echo 'export PATH="$BUN_INSTALL/bin:$PATH"' >> $BASH_ENV
25+
source $BASH_ENV
1926
- run:
2027
name: Authenticate with registry
2128
command: echo "//registry.npmjs.org/:_authToken=$ETHERSPOT_NPM_TOKEN" > ~/etherspot-modular-sdk/.npmrc
2229
- restore_cache:
23-
key: dependency-cache-{{ checksum "package.json" }}
30+
key: dependency-cache-{{ checksum "bun.lockb" }}
2431
- run:
2532
name: Install dependencies
26-
command: npm install
33+
command: bun install
2734
- save_cache:
28-
key: dependency-cache-{{ checksum "package.json" }}
35+
key: dependency-cache-{{ checksum "bun.lockb" }}
2936
paths:
3037
- ./node_modules
38+
- ~/.bun
3139
- run:
3240
name: Dry run build
33-
command: npm run build
41+
command: bun run build
3442
# - slack/status:
3543
# failure_message: "Triggered by: *${CIRCLE_USERNAME}* \n\n Ooops! The *$CIRCLE_JOB* job has failed! :circleci-fail:"
3644
# webhook: "${SLACK_WEBHOOK_URL}"
3745

3846
e2e-tests:
3947
working_directory: ~/etherspot-modular-sdk
4048
docker:
41-
- image: cimg/node:18.16.1
49+
- image: cimg/node:20.11.1
4250
auth:
4351
username: $DOCKERHUB_USER
4452
password: $DOCKERHUB_PASSWORD
@@ -47,18 +55,24 @@ jobs:
4755
- when:
4856
condition: <<pipeline.parameters.run_e2e_tests>>
4957
steps:
50-
58+
- run:
59+
name: Install Bun
60+
command: |
61+
curl -fsSL https://bun.sh/install | bash
62+
echo 'export BUN_INSTALL="$HOME/.bun"' >> $BASH_ENV
63+
echo 'export PATH="$BUN_INSTALL/bin:$PATH"' >> $BASH_ENV
64+
source $BASH_ENV
5165
- restore_cache:
52-
key: dependency-cache-{{ checksum "package.json" }}
66+
key: dependency-cache-{{ checksum "bun.lockb" }}
5367
- run:
5468
name: Authenticate with registry
5569
command: echo "//registry.npmjs.org/:_authToken=$ETHERSPOT_NPM_TOKEN" > ~/etherspot-modular-sdk/.npmrc
5670
- run:
5771
name: Install dependencies
58-
command: npm install
72+
command: bun install
5973
- run:
6074
name: Build Etherpot Modular SDK
61-
command: npm run build
75+
command: bun run build
6276
- run:
6377
name: Checkout e2e repo and run tests
6478
no_output_timeout: 60m
@@ -155,28 +169,35 @@ jobs:
155169
publish-npm-package:
156170
working_directory: ~/etherspot-modular-sdk
157171
docker:
158-
- image: cimg/node:18.16.1
172+
- image: cimg/node:20.11.1
159173
auth:
160174
username: $DOCKERHUB_USER
161175
password: $DOCKERHUB_PASSWORD
162176
steps:
163177
- checkout
178+
- run:
179+
name: Install Bun
180+
command: |
181+
curl -fsSL https://bun.sh/install | bash
182+
echo 'export BUN_INSTALL="$HOME/.bun"' >> $BASH_ENV
183+
echo 'export PATH="$BUN_INSTALL/bin:$PATH"' >> $BASH_ENV
184+
source $BASH_ENV
164185
- restore_cache:
165-
key: dependency-cache-{{ checksum "package.json" }}
186+
key: dependency-cache-{{ checksum "bun.lockb" }}
166187
- run:
167188
name: Authenticate with registry
168189
command: echo "//registry.npmjs.org/:_authToken=$ETHERSPOT_NPM_TOKEN" > ~/etherspot-modular-sdk/.npmrc
169190
- run:
170191
name: Install dependencies
171-
command: npm install
192+
command: bun install
172193
- run:
173194
name: Build Etherpot Prime SDK
174-
command: npm run build
195+
command: bun run build
175196
- run:
176197
name: Publish package to npm
177198
command: |
178199
cd ~/etherspot-modular-sdk
179-
npm publish --access public
200+
bun publish --access public
180201
- run:
181202
name: Announce Publish
182203
command: |

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
!.vscode/extensions.json
1818
workspace.code-workspace
1919

20+
# build
21+
dist
22+
2023
# node
2124
node_modules
2225

23-
# dist
24-
dist
25-
2626
# develop
2727
.graphqlconfig
2828
.cache

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [5.0.1] - 2025-02-26
4+
### Fix
5+
- Fixed build issues faced on React by changing build command to bun
6+
- Added types build folder separately
7+
38
## [5.0.0] - 2025-01-07
49
### Breaking Changes
510
- Changed contract address for Bootstrap to `0x0D5154d7751b6e2fDaa06F0cC9B400549394C8AA`

bun.lockb

302 KB
Binary file not shown.

0 commit comments

Comments
 (0)