summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/@npmcli/arborist
diff options
context:
space:
mode:
authornpm CLI robot <npm-cli+bot@github.com>2023-02-25 01:17:56 -0500
committerGitHub <noreply@github.com>2023-02-25 06:17:56 +0000
commit8d573d9985f06909fac4bcc3fc1ef7168c264e46 (patch)
tree49a2aa5f42786f859c6d53fde0c45e82c851e43d /deps/npm/node_modules/@npmcli/arborist
parentc1178c53ecfdc3fa800d8c1eac962c9b99e22511 (diff)
downloadnode-new-8d573d9985f06909fac4bcc3fc1ef7168c264e46.tar.gz
deps: upgrade npm to 9.5.1
PR-URL: https://github.com/nodejs/node/pull/46783 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
Diffstat (limited to 'deps/npm/node_modules/@npmcli/arborist')
-rw-r--r--deps/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js16
-rw-r--r--deps/npm/node_modules/@npmcli/arborist/package.json2
2 files changed, 10 insertions, 8 deletions
diff --git a/deps/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js b/deps/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js
index e8df69e328..d502d5244b 100644
--- a/deps/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js
+++ b/deps/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js
@@ -89,7 +89,6 @@ module.exports = cls => class Builder extends cls {
const {
depNodes,
linkNodes,
- storeNodes,
} = this[_retrieveNodesByType](nodes)
// build regular deps
@@ -100,10 +99,6 @@ module.exports = cls => class Builder extends cls {
this[_resetQueues]()
await this[_build](linkNodes, { type: 'links' })
}
- if (storeNodes.size) {
- this[_resetQueues]()
- await this[_build](storeNodes, { type: 'storelinks' })
- }
process.emit('timeEnd', 'build')
}
@@ -146,6 +141,12 @@ module.exports = cls => class Builder extends cls {
depNodes.add(node)
}
}
+ // 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)
+ }
// deduplicates link nodes and their targets, avoids
// calling lifecycle scripts twice when running `npm rebuild`
@@ -162,7 +163,6 @@ module.exports = cls => class Builder extends cls {
return {
depNodes,
linkNodes,
- storeNodes,
}
}
@@ -330,10 +330,12 @@ module.exports = cls => class Builder extends cls {
devOptional,
package: pkg,
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
}
diff --git a/deps/npm/node_modules/@npmcli/arborist/package.json b/deps/npm/node_modules/@npmcli/arborist/package.json
index f27b1458d8..aaa69e0484 100644
--- a/deps/npm/node_modules/@npmcli/arborist/package.json
+++ b/deps/npm/node_modules/@npmcli/arborist/package.json
@@ -1,6 +1,6 @@
{
"name": "@npmcli/arborist",
- "version": "6.2.2",
+ "version": "6.2.3",
"description": "Manage node_modules trees",
"dependencies": {
"@isaacs/string-locale-compare": "^1.1.0",