Skip to content

Commit b9c3415

Browse files
committed
build: update node; use preinstall and local deps
1 parent b0bebf6 commit b9c3415

File tree

5 files changed

+114
-52
lines changed

5 files changed

+114
-52
lines changed

.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# paths = ["/path/to/override"] # path dependency overrides
22

33
[alias] # command aliases
4-
install_soroban = "install --git https://github.com/stellar/soroban-tools --rev cb3c44f9d8080917a7cb019d6be25019f6cf78c3 --root ./target soroban-cli --debug"
4+
install_soroban = "install --version 0.9.1 --root ./target soroban-cli --debug"
55
b = "build --target wasm32-unknown-unknown --release"
66
# c = "check"
77
# t = "test"

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- run: cargo install_soroban
2727
- uses: actions/setup-node@v3
2828
with:
29-
node-version: 18.x
29+
node-version: 18.14.2
3030
cache: 'npm'
3131
- run: |
3232
mkdir -p .soroban-example-dapp

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
18.17

package-lock.json

Lines changed: 106 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
"setup": "./initialize.sh ${NETWORK:-futurenet} && npm install",
1111
"clean": "rm -rf .next .soroban .soroban-example-dapp",
1212
"reset": "npm run clean && npm run setup",
13-
"postinstall": "cargo build --target wasm32-unknown-unknown --release && ./target/bin/soroban contract bindings typescript --wasm ./target/wasm32-unknown-unknown/release/soroban_crowdfund_contract.wasm --id $(cat ./.soroban-example-dapp/crowdfund_id) --output-dir ./node_modules/crowdfund-contract --network $(cat ./.soroban-example-dapp/network) --contract-name crowdfund-contract && ./target/bin/soroban contract bindings typescript --wasm ./target/wasm32-unknown-unknown/release/abundance_token.wasm --id $(cat ./.soroban-example-dapp/abundance_token_id) --output-dir ./node_modules/abundance-token --network $(cat ./.soroban-example-dapp/network) --contract-name abundance-token"
13+
"preinstall": "./target/bin/soroban contract build && ./target/bin/soroban contract bindings typescript --wasm ./target/wasm32-unknown-unknown/release/soroban_crowdfund_contract.wasm --id $(cat ./.soroban-example-dapp/crowdfund_id) --output-dir ./.soroban-example-dapp/crowdfund-contract --network $(cat ./.soroban-example-dapp/network) --contract-name crowdfund-contract && ./target/bin/soroban contract bindings typescript --wasm ./target/wasm32-unknown-unknown/release/abundance_token.wasm --id $(cat ./.soroban-example-dapp/abundance_token_id) --output-dir ./.soroban-example-dapp/abundance-token --network $(cat ./.soroban-example-dapp/network) --contract-name abundance-token"
1414
},
1515
"dependencies": {
1616
"@radix-ui/react-dialog": "1.0.2",
1717
"@stellar/freighter-api": "^1.5.1",
18+
"abundance-token": "file:./.soroban-example-dapp/abundance-contract",
1819
"axios": "^0.27.2",
1920
"bigint-conversion": "^2.4.1",
21+
"crowdfund-contract": "file:./.soroban-example-dapp/crowdfund-contract",
2022
"humanize-duration": "^3.27.3",
2123
"moment": "^2.29.4",
2224
"next": "^13.4.4",
@@ -33,12 +35,8 @@
3335
"eslint-config-next": "^13.3.1",
3436
"typescript": "5.1.3"
3537
},
36-
"optionalDependencies": {
37-
"crowdfund-contract": "*",
38-
"abundance-token": "*"
39-
},
4038
"engines": {
41-
"node": ">=17",
42-
"npm": ">=8"
39+
"node": ">=18.14.2",
40+
"npm": ">=9.5.0"
4341
}
4442
}

0 commit comments

Comments
 (0)