fix: drop a symlinked web/node_modules that #802 staged

The merge of #802 carried a `web/node_modules` symlink into the tree. It
pointed at the main checkout's own install, so pulling dev replaced that
directory with a symlink to itself and broke `npm` for anyone who pulled.

`.gitignore` did not stop it because both of its node_modules rules end in
a slash, which matches only a real directory — not the symlink a git
worktree uses to borrow the main checkout's install. Ignore both spellings.
This commit is contained in:
Bingxi Zhao (Frank)
2026-08-12 17:11:41 +08:00
parent cfbd49bad0
commit 2da883627f
2 changed files with 5 additions and 1 deletions

5
.gitignore vendored
View File

@@ -70,7 +70,12 @@ venv.bak/
# Node.js and Frontend Build
# ============================================
# Node modules
# Both spellings: the trailing slash matches only a real directory, so a
# symlinked node_modules (how a git worktree usually borrows the main
# checkout's install) would otherwise be staged by `git add -A`.
node_modules
node_modules/
**/node_modules
**/node_modules/
# Next.js build output

View File

@@ -1 +0,0 @@
/Users/frank/HKUDS/DeepTutor/web/node_modules