diff --git a/sdk/build.sh b/sdk/build.sh index cea1e18..f345cb1 100755 --- a/sdk/build.sh +++ b/sdk/build.sh @@ -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 \ No newline at end of file diff --git a/sdk/package.json b/sdk/package.json index eec5645..fce88d4 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -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",