How to install only dependencies for one package from frozen lockfile #7857
Replies: 1 comment
-
I think this is what the |
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
-
I'm using PNPM workspaces and struggling to set up CI the way I expect things to work (but if I'm wrong, please tell me!). Let's say I have packages:
server
(depends onshared
)client
(depends onshared
)shared
In my CI pipeline step, I am trying to build just
server
, and notclient
. I am making a docker image, so I copy the lockfile and the contents of theserver
package (and the already-builtshared
artifact) into the docker workspace. Then, I try to runpnpm install --frozen-lockfile
and get a lockfile out of sync error that fails, presumably because the serverpackage.json
doesn't match the workspace lockfile.Is there a way to have
pnpm install --frozen-lockfile
disregard if there are additional entries in the lockfile, even if they aren't present in apackage.json
? Or am I thinking about something the wrong way?Beta Was this translation helpful? Give feedback.
All reactions