-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
pnpm version:
8.6.1
Code to reproduce the issue:
See https://github.com/skovhus/pnpm-update-transitive-bug
pnpm update --latest prettier (or any other specific dependency) unexpectedly upgrades transient dependencies that are unrelated to the specified dependency. Note that --latest is not required for this to fail and even pnpm update prettier@2.8.0 also updates unrelated dependencies.
{
"dependencies": {
"@storybook/react": "7.0.13",
"prettier": "2.8.0"
},
"engines": {
"pnpm": "8.x"
}
}Expected behavior:
Only the specified dependency (and it's transitive dependencies) are updated.
Actual behavior:
Unrelated transitive dependencies are updated.
Additional information:
node -vprints: tried with 18.15.0 and v16.19.1- Windows, macOS, or Linux?: macOS
Reactions are currently unavailable