Replies: 1 comment
-
I'm having the same issue. Does anyone have a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We're gradually converting a big-ball-of-code into a pnpm workspace with separate, interdependent packages. We're using catalogs so that our packages depend on the same versions of dependencies.
A common task is to:
packages
inpnpm-workspace.yaml
package.json
to add dependencies. (Usingcatalog:
, so always using dependency version specifiers that are already in use by other packages.)pnpm install
to set upnode_modules
correctly for the workspace packages.However, often that
pnpm install
will end up changing dozens or hundreds of lines in thepnpm-lock.yaml
file, bumping up transitive dependency versions for no reason I can discern.I don't know of a way to work around this.
pnpm install --frozen-lockfile
doesn't work, because I've just made an update to the workspace, so the lockfile isn't up-to-date.In the most recent case, I found that
tslib
had been upgraded from 2.6.2 to 2.8.1. Again, I haven't added new dependencies to the repo, I've just added a new package.json that references versions already incatalog:
and used by other packages.I tried adding an "overrides" entry for it, to lock it back down to
=2.6.2
, but (after agit checkout pnpm-lock.yaml
&pnpm install
), that introduced diffs downgrading a lot of instances from 2.8.1 to 2.6.2. i.e.: unbeknownst to me, we had previously been running with mixed versions. (tangent: Does dependency resolution not dedupe these by default? Do I have to runpnpm dedupe
after everypnpm install
?)I tried setting resolutionMode to lowest-direct and time-based, but neither caused
pnpm install
to change the lockfile.Beta Was this translation helpful? Give feedback.
All reactions