Skip to content

Commit 97ca7e4

Browse files
authored
feat: clean node_modules before building subgraph (semaphore-protocol#884)
* feat(cli): remove @semaphore-protocol/cli prepublish script The idea is to remove the prepublish script from the scripts object of the package.json file of every cli template when the template is downloaded using the CLI. BREAKING CHANGE: n * refactor(cli): add comment * refactor(cli): create seperate file for removePrePublishScript function * refactor(cli): using updatedPackageJsonContent var instead of calling readFileSync again * fix(subgraph): clean node_modules before building subgraph * refactor(subgraph): fix: test typo * refactor(subgraph): refactor: remove nohoist * refactor(subgraph): refactor: workspaces structure
1 parent e1b5512 commit 97ca7e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"scripts": {
1010
"build": "yarn build:libraries && yarn build:subgraph && yarn build:website && yarn build:docs",
1111
"build:libraries": "yarn workspaces foreach -Apt --no-private run build",
12-
"build:subgraph": "yarn workspace semaphore-subgraph build:sepolia",
12+
"clean:subgraph": "rimraf apps/subgraph/node_modules",
13+
"build:subgraph": "yarn clean:subgraph && yarn workspace semaphore-subgraph build:sepolia",
1314
"build:website": "yarn workspace semaphore-website build",
1415
"build:docs": "yarn workspace semaphore-docs build",
1516
"compile:contracts": "yarn workspace semaphore-contracts compile",

0 commit comments

Comments
 (0)