fix(repo): untrack accidentally-committed root node_modules symlink + gitignore it

A worktree node_modules symlink (-> the main checkout's node_modules) was staged by a
`git add -A` during the #3988 merge and committed into 05213ac6a. The symlink points
at the repo's own node_modules path, so checking it out turns the main checkout's
node_modules into a self-referential symlink (breaking tsx/all node ops). Untrack it and
add a root-anchored /node_modules ignore so the symlink form can't be re-committed (the
existing 'node_modules/' only matches directories).
This commit is contained in:
diegosouzapw
2026-06-16 13:32:00 -03:00
parent 6523f628de
commit 0262af6f07
2 changed files with 4 additions and 1 deletions

4
.gitignore vendored
View File

@@ -49,6 +49,10 @@ docs/new-features/
# dependencies
node_modules/
# Also ignore a root node_modules SYMLINK (worktree setups symlink it from the main
# checkout). The trailing-slash pattern above only matches a directory, so without this
# a symlink named node_modules could be staged by `git add -A` and committed.
/node_modules
*.map
.DS_Store

View File

@@ -1 +0,0 @@
/home/diegosouzapw/dev/proxys/OmniRoute/node_modules