Skip to content

Commit 6f22949

Browse files
committed
chore: clean stale test/node_modules from Hardhat removal
The test/ directories in issuance and contracts were previously pnpm workspace packages with their own package.json. After removing the Hardhat test infrastructure, the orphaned test/node_modules remains locally (pnpm does not clean up node_modules for removed workspace packages). Add them to the clean scripts so `pnpm clean` removes them for anyone who still has them.
1 parent 81fc9f2 commit 6f22949

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"types": "index.d.ts",
2020
"scripts": {
2121
"prepack": "pnpm build",
22-
"clean": "rm -rf artifacts/ cache/ types/ abis/ build/ dist/ coverage/",
22+
"clean": "rm -rf artifacts/ cache/ types/ abis/ build/ dist/ coverage/ test/node_modules/",
2323
"build": "pnpm build:self",
2424
"build:self": "pnpm compile",
2525
"compile": "hardhat compile --quiet",

packages/issuance/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"build": "pnpm build:dep && pnpm build:self",
2525
"build:dep": "pnpm --filter '@graphprotocol/issuance^...' run build:self",
2626
"build:self": "pnpm compile && pnpm typechain",
27-
"clean": "rm -rf artifacts/ forge-artifacts/ cache_forge/ coverage/ cache/ types/ typechain-src/ .eslintcache",
27+
"clean": "rm -rf artifacts/ forge-artifacts/ cache_forge/ coverage/ cache/ types/ typechain-src/ .eslintcache test/node_modules/",
2828
"compile": "hardhat compile --quiet",
2929
"typechain": "typechain --target ethers-v6 --out-dir typechain-src 'artifacts/contracts/**/!(*.dbg).json' && tsc -p tsconfig.typechain.json && rm -rf typechain-src && echo '{\"type\":\"commonjs\"}' > types/package.json",
3030
"test": "forge test",

0 commit comments

Comments
 (0)