pnpm dedupe
on a specific dependency ?
#8246
Unanswered
wassim-ben-amor
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Based on the documentation;
Running a pnpm dedupe in this case will update all the dependencies to a newer version. Is there a way to update only 1 dependency to a newer version ?
Example:
I have many packages declaring in
package.json
usingdep1
at "^1.12.0"Let's say there is a new version
1.12.1
of dep1 published. I want all packages that using the caret^
to use the newer version.If I run
pnpm dedupe
, I think it will update other dependencies also which is something that sometimes we don't want to have.Also by running
pnpm update dep1
, makes a massive change onpnpm-lock
totally different from whatpnpm dedupe
is resulting.Thank you,
Beta Was this translation helpful? Give feedback.
All reactions