mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-28 02:53:15 -04:00
5
.changeset/tricky-toes-act.md
Normal file
5
.changeset/tricky-toes-act.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/resolve-dependencies": patch
|
||||
---
|
||||
|
||||
Resolved peer dependencies should always be included.
|
||||
@@ -404,12 +404,6 @@ requires a peer of ${peerName}@${peerVersionRange} but version ${resolved.versio
|
||||
})
|
||||
}
|
||||
|
||||
if (resolved.depth === ctx.currentDepth + 1) {
|
||||
// if the resolved package is a regular dependency of the package
|
||||
// then there is no need to link it in
|
||||
continue
|
||||
}
|
||||
|
||||
if (resolved?.nodeId) resolvedPeers[peerName] = resolved.nodeId
|
||||
}
|
||||
return { resolvedPeers, missingPeers }
|
||||
|
||||
@@ -121,10 +121,7 @@ test('when a package is referenced twice in the dependencies graph and one of th
|
||||
name: 'bar',
|
||||
depPath: 'bar/1.0.0',
|
||||
version: '1.0.0',
|
||||
peerDependencies: {
|
||||
foo: '1.0.0',
|
||||
qar: '1.0.0',
|
||||
} as Record<string, string>,
|
||||
peerDependencies: {} as Record<string, string>,
|
||||
}
|
||||
const zooPkg = {
|
||||
name: 'zoo',
|
||||
|
||||
Reference in New Issue
Block a user