@npmcli/arborist
Advanced tools
Comparing version 6.2.2 to 6.2.3
@@ -92,3 +92,2 @@ // Arborist.rebuild({path = this.path}) will do all the binlinks and | ||
linkNodes, | ||
storeNodes, | ||
} = this[_retrieveNodesByType](nodes) | ||
@@ -104,6 +103,2 @@ | ||
} | ||
if (storeNodes.size) { | ||
this[_resetQueues]() | ||
await this[_build](storeNodes, { type: 'storelinks' }) | ||
} | ||
@@ -151,2 +146,8 @@ process.emit('timeEnd', 'build') | ||
} | ||
// Make sure that store linked nodes are processed last. | ||
// We can't process store links separately or else lifecycle scripts on | ||
// standard nodes might not have bin links yet. | ||
for (const node of storeNodes) { | ||
depNodes.add(node) | ||
} | ||
@@ -168,3 +169,2 @@ // deduplicates link nodes and their targets, avoids | ||
linkNodes, | ||
storeNodes, | ||
} | ||
@@ -337,6 +337,8 @@ } | ||
location, | ||
isStoreLink, | ||
} = node.target | ||
// skip any that we know we'll be deleting | ||
if (this[_trashList].has(path)) { | ||
// or storeLinks | ||
if (this[_trashList].has(path) || isStoreLink) { | ||
return | ||
@@ -343,0 +345,0 @@ } |
{ | ||
"name": "@npmcli/arborist", | ||
"version": "6.2.2", | ||
"version": "6.2.3", | ||
"description": "Manage node_modules trees", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
461704
12165