Skip to content

Commit

Permalink
add npx to locally installed packages
Browse files Browse the repository at this point in the history
  • Loading branch information
none00y committed Jun 14, 2024
1 parent b67cd02 commit 8e06eeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion sdk/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ npm run wasm:build &&
# second install for wasm to be added
npm install
npm run contract:build &&
npm run erc-20:copy &&
npm run erc-20:generate &&
npm run build
8 changes: 4 additions & 4 deletions sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
},
"scripts": {
"build": "npx tsc -b --verbose",
"lint": "eslint . --ext .ts",
"lint": "npx eslint . --ext .ts",
"node:local": "../target/tmp/gear --dev",
"node:local:stop": "lsof -i :9944 | grep gear | tr -s ' ' | cut -d ' ' -f 2 | head -1 | xargs -r kill -9",
"start": "npm run build && node --experimental-wasm-modules --trace-uncaught target/index.js",
"wasm:build": "cd ./src/wasm && wasm-pack build && rm ./pkg/.gitignore",
"test:local": "npm run test:fungible-token && npm run test:invariant",
"test:fungible-token": "mocha --config mocharc.json ./tests/fungible-token.test.ts",
"test:invariant": "mocha --config mocharc.json ./tests/invariant.test.ts",
"test:fungible-token": "npx mocha --config mocharc.json ./tests/fungible-token.test.ts",
"test:invariant": "npx mocha --config mocharc.json ./tests/invariant.test.ts",
"contract:build": "cd ../ && ./build.sh",
"erc-20:copy": "cp ../gear-erc20/wasm/erc20.idl ./contracts/gear_erc20//gear_erc20.idl && cp ../target/wasm32-unknown-unknown/release/gear_erc20_wasm.opt.wasm ./contracts/gear_erc20/gear_erc20.opt.wasm",
"erc-20:generate": "npm run erc-20:copy && sails-js generate ./contracts/gear_erc20//gear_erc20.idl -o ./src/erc20-token.ts -n Erc20Token && node fix-generate.js"
"erc-20:generate": "npm run erc-20:copy && npx sails-js generate ./contracts/gear_erc20//gear_erc20.idl -o ./src/erc20-token.ts -n Erc20Token && node fix-generate.js"
},
"dependencies": {
"@gear-js/api": "^0.38.1",
Expand Down

0 comments on commit 8e06eeb

Please sign in to comment.