Skip to content

Commit 26b53fa

Browse files
committed
refactor: update build and test scripts for consistency and clarity
1 parent 2b6587b commit 26b53fa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
"scripts": {
88
"prepare": "husky",
99
"generate:typechain": "typechain --target ethers-v6 --out-dir generated/typechain './node_modules/@iexec/poco/build/contracts/*.json' --ts-nocheck",
10-
"test": "graph test",
11-
"coverage": "graph test -- -c",
12-
"build": "rm -rf generated && rm -rf build && graph codegen && graph build --network ${NETWORK_NAME:-bellecour}",
10+
"codegen": "graph codegen",
11+
"test": "npm run codegen && graph test",
12+
"coverage": "npm run codegen && graph test -- -c",
13+
"build": "rm -rf generated && rm -rf build && npm run codegen && graph build --network ${NETWORK_NAME:-bellecour}",
1314
"create": "graph create ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020}",
1415
"deploy": "graph deploy ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020} --ipfs ${IPFS_URL:-http://localhost:5001} --version-label ${VERSION_LABEL:-bellecour/poco-v5}",
1516
"all": "npm run build && npm run create && npm run deploy",

0 commit comments

Comments
 (0)