mirror of
https://github.com/pnpm/pnpm.git
synced 2026-07-25 23:17:08 -04:00
The `|| importerId === '.'` fallback in the importer matching predicate caused any project to match when iterating the root importer, so in a workspace where the root project was not the first entry in `projects[]` the root snapshot could be written under a non-root project's key. Lockfile importer IDs are already the relative paths from lockfileDir (tmpDir) to each project dir, which equal the requested project.dir values by construction — no remapping is needed.