mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-10 18:18:56 -04:00
fix: supi regression
This commit is contained in:
5
.changeset/eighty-suits-sniff.md
Normal file
5
.changeset/eighty-suits-sniff.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"supi": patch
|
||||
---
|
||||
|
||||
Fixing a regression that was shipped with supi v0.41.22. Cyclic dependencies that have peer dependencies are not symlinked to the root of node_modules, when they are direct dependencies.
|
||||
@@ -206,6 +206,7 @@ function resolvePeersOfNode (
|
||||
)
|
||||
if (hit) {
|
||||
ctx.pathsByNodeId[nodeId] = hit.depPath
|
||||
ctx.depGraph[hit.depPath].depth = Math.min(ctx.depGraph[hit.depPath].depth, node.depth)
|
||||
return {
|
||||
missingPeers: hit.missingPeers,
|
||||
resolvedPeers: R.fromPairs(hit.resolvedPeers),
|
||||
|
||||
Reference in New Issue
Block a user