Replies: 1 comment
-
The lockfile is documented here: https://github.com/pnpm/spec/blob/master/lockfile/9.0.md In the parentheses those are the resolved peer dependencies. Some info about it is also here: https://pnpm.io/how-peers-are-resolved |
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
-
👋🏻 Hello there,
We're using
pnpm
in our monorepo and we're happy with it very much 🙏🏻 . Occasionally though, we get a diff onmain
, insnapshots
section, which contains entries that look like thisthe diff is this
Now, I don't fully understand why the package in parentheses gets added, especially because removing them doesn't make the pnpm-lock.yaml invalid -
pnpm install --frozen-lockfile
succeeds.I assume it may be needed due to the
*
in thepackages
entry and if more than onedebug
version is installed (which is true):but it made me think, that pnpm docs (which are already pretty good) could benefit from having some more documentation on the structure of pnpm-lock.yaml and what's the role of the
snapshots
section and the others. The only issue i found discussing it is this thread.Thanks for doing an amazing work with pnpm 🙇🏻
Beta Was this translation helpful? Give feedback.
All reactions