Skip to content

[pull] main from pnpm:main - #502

Merged
pull[bot] merged 1 commit into
dwongdev:mainfrom
pnpm:main
Aug 13, 2026
Merged

pull[bot] merged 1 commit into
dwongdev:mainfrom
pnpm:main

Conversation

@pull

@pull pull Bot commented Aug 13, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

`pnpm update` re-resolved the lockfile but left `package.json` declaring
the range it started from, so a dependency the output reported as updated
still read as its old version in the manifest — unlike the TypeScript CLI,
which rewrites the declared range around the version it resolved.

A compatible bump cannot name that version before resolving: the pick
depends on the ranges the workspace's other importers declare, on the
overrides, and on the peer graph. Guessing it up front (the way `--latest`
reads a dist-tag) would disagree with the install often enough to leave the
manifest and the lockfile out of sync. So the update names the direct
dependencies it targets, and the fresh-resolve path moves their ranges onto
what it settled on, in the lockfile it is about to write, and reports each
one back for the manifest write. The two carry the same text, and the
version recorded against it satisfies it by construction.

A dependency declared through a dist-tag now keeps tracking the tag under
`--latest` too, which had been pinning it to the version behind the tag.

The importer ids the rewrite is keyed by come from the same
`lockfile_root_dir` rule the install derives its own from, so
`sharedWorkspaceLockfile: false` — which anchors them at the project rather
than the workspace root — does not leave the range unwritten. The group a
range is declared under travels with it from the lockfile entry, so an alias
declared in more than one group cannot have the manifest and the lockfile
move different entries, and the range is written in place rather than through
`add_dependency`, which would relocate the dependency.

Closes #13879
@pull pull Bot locked and limited conversation to collaborators Aug 13, 2026
@pull pull Bot added the ⤵️ pull label Aug 13, 2026
@pull
pull Bot merged commit 9ef6a0a into dwongdev:main Aug 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant