-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: clean node_modules before building subgraph #884
base: main
Are you sure you want to change the base?
Conversation
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
… readFileSync again
feat: clean node_modules before building subgraph
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @0xshikhar thank you very much for this PR. I just left one comment.
"clean:subgraph": "rimraf apps/subgraph/node_modules", | ||
"build:subgraph": "yarn clean:subgraph && yarn workspace semaphore-subgraph build:sepolia", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this issue is solved with these two lines. Why it is necessary to add clean:branch
and update the workspaces object?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it was a testing error as i checking for test cases - clean:branch is not needed at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @vplasencia, let me know if there is any update.
"nohoist": [ | ||
"**/semaphore-subgraph/**" | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it necessary to add this section? It looks like the changes in the script work well and solve the issue.
fix(subgraph): clean node_modules before building subgraph
Related Issue(s)
Closes: Issue#876
Other information
Checklist
yarn format
andyarn lint
without getting any errors