Skip to content

fix: exclude root node_modules without hiding nested node_modules - #269

Open
Ludvins wants to merge 1 commit into
voidcosmos:mainfrom
Ludvins:fix/191-exclude-root-target
Open

Ludvins wants to merge 1 commit into
voidcosmos:mainfrom
Ludvins:fix/191-exclude-root-target

Conversation

@Ludvins

@Ludvins Ludvins commented Sep 22, 2026

Copy link
Copy Markdown

Summary

  • Make --exclude node_modules and --exclude ./node_modules skip the scan root’s target while still finding nested targets.
  • Match absolute target paths exactly so similarly named directories remain scannable.
  • Add regression tests and document the behavior.

Testing

  • npm run build
  • npm test — 239 passed, 12 skipped
  • Nine real filesystem scenarios passed on Windows and Linux.

Fixes #191

This branch has not been deployed

No deployments
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.

Excluding node_modules from current directory excludes all nested node_modules

1 participant