chore(gitignore): ignore node_modules symlinks, not only directories

The node_modules/ pattern (trailing slash) matches directories only. A
node_modules SYMLINK, standard in linked worktrees that share one install,
is not covered, which is how db018f7 accidentally committed one and every
subsequent checkout materialized a self-referencing symlink until c642787
removed it. Dropping the slash covers files, directories and symlinks.
This commit is contained in:
ozymandiashh 2026-08-04 03:04:25 +03:00
parent 7a8a591c56
commit b940afd83d

5
.gitignore vendored
View file

@ -1,4 +1,7 @@
node_modules/
# No trailing slash: the slash form only ignores directories, so a
# node_modules SYMLINK (common in linked worktrees) slips into git add -A.
# One did exactly that in db018f7 and had to be removed again in c642787.
node_modules
dist/
*.tgz