You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pyrocat101
changed the title
pnpm filter install always install the root workspace dependencies
pnpm filter install always install the workspace root dependencies
Oct 16, 2023
pyrocat101
changed the title
pnpm filter install always install the workspace root dependencies
pnpm filter always installs the workspace root dependencies
Oct 16, 2023
I don't think we can support installation without the root. We can run install in an independent subset of projects but the root node_modules influences all projects in the workspace, and dependencies from the root node_modules are used to resolve peer dependencies in all projects.
If you don't want anything in the root to be installed, then maybe just don't install any dependencies in the root.
I'm personally not sure when would anyone even run a install with --filter. If you want to deploy a single project from the workspace, there's a separate command for it.
Verify latest release
pnpm version
No response
Which area(s) of pnpm are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
foo
.package.json
and some dependencies tofoo/package.json
.pnpm install --filter foo
Describe the Bug
This is a regression since v7.22.0: caused by the partial revert in #5882.
Expected Behavior
Root project dependencies are not installed.
Which Node.js version are you using?
20.8.1
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
The text was updated successfully, but these errors were encountered: