File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,3 +159,19 @@ desktop.ini
159159! * .md
160160
161161# ESTO PERPETUA!
162+
163+ # === ROOT node_modules IS A BUILD ARTIFACT =================================
164+ # Last rule in the file, and it must stay last: git takes the LAST matching
165+ # pattern, so this has to come after the markdown re-include above to beat it.
166+ #
167+ # The markdown rule is right for THE-GEMSTONE/node_modules, which is vendored
168+ # CONTENT this vault tracks on purpose (49 .md files). It is wrong for a root
169+ # node_modules, which npm regenerates from package-lock.json and which nobody
170+ # should ever commit.
171+ #
172+ # Measured with `git add --dry-run node_modules/`: 2 files leak with main's
173+ # dependencies today (prettier only), 466 with the eight devDependencies #950
174+ # adds. Both are vendored README files nobody wants in the vault.
175+ #
176+ # Leading slash = root only. THE-GEMSTONE/node_modules is untouched.
177+ /node_modules /**
You can’t perform that action at this time.
0 commit comments