Skip to content

Commit 9d7495b

Browse files
committed
refactor: streamline package.json scripts by removing redundant clean and codegen commands
1 parent 625d111 commit 9d7495b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@
66
"license": "Apache-2.0",
77
"scripts": {
88
"prepare": "husky",
9-
"clean": "rm -rf generated && rm -rf build",
109
"generate:typechain": "typechain --target ethers-v6 --out-dir generated/typechain './node_modules/@iexec/poco/build/contracts/*.json' --ts-nocheck",
11-
"codegen": "graph codegen ",
12-
"test": "npm run codegen && graph test",
13-
"coverage": "npm run codegen && graph test -- -c",
14-
"build": "graph build --network ${NETWORK_NAME:-bellecour}",
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}",
1513
"create": "graph create ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020}",
1614
"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}",
17-
"all": "npm run clean && npm run codegen && npm run build && npm run create && npm run deploy",
15+
"all": "npm run build && npm run create && npm run deploy",
1816
"stop-test-stack": "cd test-stack && docker compose down --remove-orphans --volumes",
1917
"start-test-stack": "npm run stop-test-stack && cd test-stack && export NETWORK_NAME=${NETWORK_NAME:-bellecour} && node prepare-test-env.js && docker compose build && docker compose up -d",
2018
"itest": "NETWORK_NAME=${NETWORK_NAME:-bellecour} mocha"

0 commit comments

Comments
 (0)