pnpm: pnpm does not include dependencies of dependents when filtering
pnpm version:
5.8.0
Code to reproduce the issue:
have three packages:
@mono/a
@mono/b
@mono/c
(depends on@mono/a
)
Now (assuming you have jq
installed), try running:
pnpm exec --filter ...@mono/b... -- cat package.json | jq '.name'
Expected behavior:
You’d expect to see:
@mono/a
@mono/b
@mono/c
Actual behavior:
But you actually see:
@mono/b
@mono/c
This means, for instance, if you’re doing a filtered install, and want to do a filtered build (TypeScript), you’ll likely end up in a situation where a dependent package can’t be built – because it wasn’t “installed” (specifically, @mono/a
in that case wouldn’t have a node_modules
folder).
Additional information:
node -v
prints: 12.18.4- Windows, OS X, or Linux?: MacOS / Linux
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (11 by maintainers)
Commits related to this issue
- feat: include dependents dependencies in combined filter PR #2999 close #2917 — committed to pnpm/pnpm by idan-at 4 years ago
🚢 5.13.5