.gitignore
generated from create-nx-workspace allows nested node_modules
to be committed
#9412
Labels
.gitignore
generated from create-nx-workspace allows nested node_modules
to be committed
#9412
It's maybe not a bug, per se, but more like a question of whether it's intentional / could be improved?
Current Behavior
The
.gitignore
that is generated fromcreate-nx-workspace
has an entry for node_modules like/node_modules
(note the leading slash). This means that the pattern is scoped to the directory level of the.gitignore
(only ignoresnode_modules
at the same level of the.gitignore
).I'm using Nx along with Yarn workspaces, and some nested
node_modules
ended up being committed, i.e. melanieseltzer/toolkit@042d4ceWas wondering if the leading slash is intentional, or maybe it would be better not to include it in the generated
.gitignore
to prevent this behavior on accident?Expected Behavior
.gitignore
ignores allnode_modules
regardless of nesting level.The text was updated successfully, but these errors were encountered: