Skip to content

Commit

Permalink
test: fix dedupe tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed May 20, 2023
1 parent 3471b45 commit bc459e7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
6 changes: 5 additions & 1 deletion __fixtures__/workspace-with-lockfile-dupes/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg-manager/core/src/install/index.ts
Expand Up @@ -358,6 +358,11 @@ export async function mutateModules (
ctx.wantedLockfile.onlyBuiltDependencies = opts.onlyBuiltDependencies
ctx.wantedLockfile.packageExtensionsChecksum = packageExtensionsChecksum
ctx.wantedLockfile.patchedDependencies = patchedDependencies
} else if (!frozenLockfile) {
ctx.wantedLockfile.settings = {
autoInstallPeers: opts.autoInstallPeers,
excludeLinksFromLockfile: opts.excludeLinksFromLockfile,
}
}
if (
!ctx.lockfileHadConflicts &&
Expand Down
Expand Up @@ -15,7 +15,7 @@ exports[`pnpm dedupe updates old resolutions from importers block and removes ol
},
@@ -20,18 +20,6 @@
},
"lockfileVersion": "6.0",
"lockfileVersion": "6.1",
"packages": Object {
- "/ajv@6.10.2": Object {
- "dependencies": Object {
Expand Down Expand Up @@ -98,7 +98,7 @@ exports[`pnpm dedupe updates old resolutions from package block 1`] = `
@@ -20,15 +20,6 @@
},
"lockfileVersion": "6.0",
"lockfileVersion": "6.1",
"packages": Object {
- "/punycode@2.1.1": Object {
- "dev": false,
Expand Down

0 comments on commit bc459e7

Please sign in to comment.