Don’t gitignore /internal/npm_install/test/golden/node_modules #711
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.
This fixes a few pain points for local development.
golden files like
internal/npm_install/test/golden/node_modules/@angular/core/BUILD.bazel.golden
are git ignored since they are in anode_modules
folder. This PR fixes that by adding the negate pattern!/internal/npm_install/test/golden/node_modules
to gitignore.clean scripts now recursively delete all node_modules folders in the repo since
.bazelignore
doesn't behave like.gitignore
and itsnode_modules
entry only tells bazel to ignore the root/node_modules
folder. Each nested folder must be listed explicitly in.bazelignore
.Will file an issue about the
.bazelignore
behavior to Bazel about this soon as it will cause issues for all users of nodejs rules that have nestednode_modules
and multiplepackage.json
files (especially once #704 lands).