File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
workspaces/arborist/lib/arborist Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1299,6 +1299,7 @@ This is a one-time fix-up, please be patient...
1299
1299
// virtual root is based on the root project, and allow non-peer parent
1300
1300
// deps to override, but throw if no preference can be determined.
1301
1301
async #loadPeerSet ( node , required ) {
1302
+ const parent = node . parent
1302
1303
const peerEdges = [ ...node . edgesOut . values ( ) ]
1303
1304
// we typically only install non-optional peers, but we have to
1304
1305
// factor them into the peerSet so that we can avoid conflicts
@@ -1311,8 +1312,8 @@ This is a one-time fix-up, please be patient...
1311
1312
continue
1312
1313
}
1313
1314
1314
- const parentEdge = node . parent . edgesOut . get ( edge . name )
1315
- const { isProjectRoot, isWorkspace } = node . parent . sourceReference
1315
+ const parentEdge = parent . edgesOut . get ( edge . name )
1316
+ const { isProjectRoot, isWorkspace } = parent . sourceReference
1316
1317
const isMine = isProjectRoot || isWorkspace
1317
1318
const conflictOK = this . options . force || ! isMine && ! this . #strictPeerDeps
1318
1319
You can’t perform that action at this time.
0 commit comments