Skip to content

Commit 324dd4c

Browse files
committed
feat: add dotenv-cli dependency and update build scripts to use dotenv
1 parent fdaac23 commit 324dd4c

File tree

2 files changed

+41
-3
lines changed

2 files changed

+41
-3
lines changed

package-lock.json

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

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
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-
"build": "rm -rf generated && rm -rf build && npm run generate:typechain && graph codegen && graph build --network ${NETWORK_NAME:-bellecour}",
10+
"build": "dotenv -e .env -- rm -rf generated && rm -rf build && npm run generate:typechain && graph codegen && graph build --network ${NETWORK_NAME:-bellecour}",
1111
"test": "npm run test:unit && npm run test:e2e",
1212
"test:unit": "graph test unit",
1313
"test:e2e": "mocha tests/e2e/**/*.ts",
1414
"coverage": "graph test -- -c",
15-
"create": "graph create ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020}",
16-
"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}",
15+
"create": "dotenv -e .env -- graph create ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020}",
16+
"deploy": "dotenv -e .env -- 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}",
1717
"all": "npm run build && npm run create && npm run deploy",
1818
"stop-test-stack": "cd test-stack && docker compose down --remove-orphans --volumes",
1919
"start-test-stack": "npm run stop-test-stack && cd test-stack && export NETWORK_NAME=${NETWORK_NAME:-bellecour} && tsx prepare-test-env.ts && docker compose build && docker compose up -d",
@@ -40,6 +40,7 @@
4040
"@typechain/ethers-v6": "^0.5.1",
4141
"@types/mocha": "^10.0.9",
4242
"dotenv": "^16.5.0",
43+
"dotenv-cli": "^8.0.0",
4344
"ethers": "^6.13.5",
4445
"husky": "^9.1.6",
4546
"lint-staged": "^15.2.10",

0 commit comments

Comments
 (0)