Skip to content

chore: ignore node_modules in every directory, not just the root - #628

Merged
mrholek merged 1 commit into
mainfrom
chore/ignore-nested-node-modules
Jul 27, 2026
Merged

chore: ignore node_modules in every directory, not just the root#628
mrholek merged 1 commit into
mainfrom
chore/ignore-nested-node-modules

Conversation

@mrholek

@mrholek mrholek commented Jul 27, 2026

Copy link
Copy Markdown
Member

.gitignore anchors the pattern at the repository root:

/node_modules/

The docs are a standalone project, not a workspace of the root, so npm install there creates docs/node_modules — which that pattern does not cover. It shows up as untracked in git status and is one git add -A away from being committed to a public repository.

Nothing has ever been committed there, so this only closes the hole. Unanchoring the pattern also covers any future nested project.

The same applies to coreui (free), where the pattern is identical.

The docs are a standalone project, so their dependencies land in docs/node_modules
— which the anchored pattern did not cover, leaving them untracked in git status
and one 'git add -A' away from being committed.
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 30265656780

Coverage increased (+0.02%) to 94.643%

Details

  • Coverage increased (+0.02%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 7533
Covered Lines: 7254
Line Coverage: 96.3%
Relevant Branches: 3125
Covered Branches: 2833
Branch Coverage: 90.66%
Branches in Coverage %: Yes
Coverage Strength: 728.0 hits per line

💛 - Coveralls

@mrholek
mrholek merged commit 74d6eaa into main Jul 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants