-
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
Open
0xshikhar
wants to merge
7
commits into
semaphore-protocol:main
Choose a base branch
from
0xshikhar:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b541fe9
feat(cli): remove @semaphore-protocol/cli prepublish script
0xshikhar bd13fb1
refactor(cli): add comment
0xshikhar 297833e
refactor(cli): create seperate file for removePrePublishScript function
0xshikhar 5da0dec
refactor(cli): using updatedPackageJsonContent var instead of calling…
0xshikhar 32190e7
Merge branch 'semaphore-protocol:main' into main
0xshikhar 656f01d
fix(subgraph): clean node_modules before building subgraph
0xshikhar 8393458
refactor(subgraph): fix: test typo
0xshikhar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,8 @@ | |
"scripts": { | ||
"build": "yarn build:libraries && yarn build:subgraph && yarn build:website && yarn build:docs", | ||
"build:libraries": "yarn workspaces foreach -Apt --no-private run build", | ||
"build:subgraph": "yarn workspace semaphore-subgraph build:sepolia", | ||
"clean:subgraph": "rimraf apps/subgraph/node_modules", | ||
"build:subgraph": "yarn clean:subgraph && yarn workspace semaphore-subgraph build:sepolia", | ||
"build:website": "yarn workspace semaphore-website build", | ||
"build:docs": "yarn workspace semaphore-docs build", | ||
"compile:contracts": "yarn workspace semaphore-contracts compile", | ||
|
@@ -45,11 +46,16 @@ | |
"proof-of-membership", | ||
"monorepo" | ||
], | ||
"workspaces": [ | ||
"apps/*", | ||
"packages/*", | ||
"packages/contracts/contracts" | ||
], | ||
"workspaces": { | ||
"packages": [ | ||
"packages/*", | ||
"apps/*", | ||
"packages/contracts/contracts" | ||
], | ||
"nohoist": [ | ||
"**/semaphore-subgraph/**" | ||
] | ||
Comment on lines
+55
to
+57
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
}, | ||
"packageManager": "yarn@4.1.0", | ||
"devDependencies": { | ||
"@commitlint/cli": "^18.6.1", | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.