Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(lockfiles): add support pnpm lockfile version 6.1 (#5195)
### Description Adds parse support for the new lockfile version added in pnpm/pnpm#6557 fixing #5117 The behavioral change is pretty small for us. The new information was added to allow for `pnpm install --frozen-lockfile` to produce an identical lockfile even if the `.npmrc` that was present during the lockfile's creation is no longer present. This does lead to a better UX for prune users as they will no longer need to copy `.npmrc` in their `Dockerfile`. ### Testing Instructions Existing unit tests pass and added new fixture with the settings field that correctly parses. --------- Co-authored-by: Chris Olszewski <Chris Olszewski>
- Loading branch information
1 parent
f436d84
commit 36b04d9
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
lockfileVersion: "6.1" | ||
|
||
settings: | ||
autoInstallPeers: true | ||
excludeLinksFromLockfile: false | ||
|
||
importers: | ||
.: {} | ||
|
||
packages/a: | ||
dependencies: | ||
c: | ||
specifier: workspace:* | ||
version: link:../c | ||
|
||
packages/b: | ||
dependencies: | ||
c: | ||
specifier: workspace:* | ||
version: link:../c | ||
|
||
packages/c: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters