Skip to content

Handle multiple pnpm lockfile documents - #40

Open
dkimmich-onventis wants to merge 1 commit into
Inedo:thousandfrom
dkimmich-onventis:fix/pnpm-multi-document-lockfiles
Open

Handle multiple pnpm lockfile documents#40
dkimmich-onventis wants to merge 1 commit into
Inedo:thousandfrom
dkimmich-onventis:fix/pnpm-multi-document-lockfiles

Conversation

@dkimmich-onventis

@dkimmich-onventis dkimmich-onventis commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

pnpm-lock.yaml has always supported a second environment document for config dependencies. pnpm 12 made these lockfiles common by recording resolved package manager versions by default.

pgutil previously read only the first document, which can be the configuration environment document and contain none of the project's package dependencies. Scan every mapping document, retain dependency-free projects when no packages mapping is present, and deduplicate packages from multiple documents.

More information about the multi-document lock files can be found in the pnpm docs: https://pnpm.io/lockfile#when-a-lockfile-has-two-documents

pnpm-lock.yaml has always supported a second environment document for config dependencies. pnpm 12 made these lockfiles common by recording resolved package manager versions by default.

pgutil previously read only the first document, which can be the configuration environment document and contain none of the project's package dependencies. Scan every mapping document, retain dependency-free projects when no packages mapping is present, and deduplicate packages from multiple documents.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant