mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-28 02:53:15 -04:00
5
.changeset/smooth-dancers-knock.md
Normal file
5
.changeset/smooth-dancers-knock.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/resolve-dependencies": patch
|
||||
---
|
||||
|
||||
Do not skip a package's peer resolution if it was previously resolved w/o peer dependencies but in the new node it has peer dependencies.
|
||||
@@ -149,7 +149,11 @@ function resolvePeersOfNode<T extends PartialResolvedPackage> (
|
||||
const node = ctx.dependenciesTree[nodeId]
|
||||
if (node.depth === -1) return { resolvedPeers: {}, missingPeers: [] }
|
||||
const resolvedPackage = node.resolvedPackage as T
|
||||
if (ctx.purePkgs.has(resolvedPackage.depPath) && ctx.depGraph[resolvedPackage.depPath].depth <= node.depth) {
|
||||
if (
|
||||
ctx.purePkgs.has(resolvedPackage.depPath) &&
|
||||
ctx.depGraph[resolvedPackage.depPath].depth <= node.depth &&
|
||||
R.isEmpty(resolvedPackage.peerDependencies)
|
||||
) {
|
||||
ctx.pathsByNodeId[nodeId] = resolvedPackage.depPath
|
||||
return { resolvedPeers: {}, missingPeers: [] }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user