Skip to content

Excluding node_modules from current directory excludes all nested node_modules #191

@elias-pap

Description

@elias-pap

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions