mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 05:49:44 +08:00
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:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -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
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
/Users/frank/HKUDS/DeepTutor/web/node_modules
|
||||
Reference in New Issue
Block a user