Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excluding node_modules from current directory excludes all nested node_modules #191

Open
elias-pap opened this issue Jan 17, 2025 · 0 comments

Comments

@elias-pap
Copy link

elias-pap commented Jan 17, 2025

Describe the bug
npx npkill -y --no-check-update --exclude "node_modules" misses all node_modules folders deeply nested in the current working directory. npx npkill -y --no-check-update --exclude "./node_modules" has the same issue as well.

Expected behavior
It should find all nested node_modules, and exclude only the one node_modules folder located in the current directory.
Alternative that works correctly: npx npkill -y --no-check-update --exclude "$(pwd)/node_modules" (passing the absolute path works).

  • OS: MacOS Sequoia 15.2
  • npkill version 0.12.2
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

No branches or pull requests

1 participant