Skip to content

fix: node_modules dirs included during pnpm workspace packages discovery #311

@tprado

Description

@tprado

Syncpack version

14.0.0-alpha.32

Operating system(s)

Mac

Steps to reproduce

git clone https://github.com/tprado/syncpack-issue.git
cd syncpack-issue
pnpm install
pnpm exec syncpack list

Expected behavior

Only packages defined in the workspace should be considered.

Actual behavior

Every package.json file under every node_modules dir in the workspace is checked.

Contents of syncpack configuration file

No syncpack config. See https://github.com/tprado/syncpack-issue.

Optional comments

Explicitly excluding node_modules in pnpm-workspaces.yaml had no effect.

packages:
  - 'packages/**'
  - '!**/node_modules/**'

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions