You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit db1d050
Browse filesBrowse the repository at this point in the historyBrowse files
Fix pnpm lock readers skipping main doc (#1949, #1952) (#1960)
* Start fix for #1949, #1952
Assisted-by: Claude Code:claude-opus-5-5
* Read pnpm locks' project document in every reader
pnpm 11+ writes its env lockfile (configDependencies /
packageManagerDependencies) as a first YAML document. PnpmLock::parse
walked the whole text, so the scan inventory listed config dependencies
the install never links while InstalledPackages did not (#1949). It now
keeps only entries that start in grammar::main_document, with offsets
still relative to the full text, and reads vendored uuids and the
packages: sniff from that document.
"Does the root lock list a member importer?" was answered by two
drifted copies: the formats one read a commented-out ` # sub:` key as a
member, the utils one did not, and neither isolated the main document
itself (#1952). One predicate in formats::pnpm::workspace now skips
comment lines (a column-0 comment no longer ends importers:), and
lock_text_has_member_importers applies main_document; the utils copy and
the engine's inline wrapper route through it.
Fixes#1949Fixes#1952
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments