Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornlf <quitlahok@gmail.com>2020-12-15 22:22:31 +0300
committernlf <quitlahok@gmail.com>2020-12-15 22:22:31 +0300
commitef4b18b5a70381b264d234817cff32eeb6848a73 (patch)
tree9a59399b3d0a2751e9d963fdb2a8245f31413fa4 /node_modules
parentbd19384f691f318f8e2ae3ba4334e3db410eedd0 (diff)
@npmcli/arborist@2.0.2
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js8
-rw-r--r--node_modules/@npmcli/arborist/package.json2
2 files changed, 8 insertions, 2 deletions
diff --git a/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js b/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js
index 731b78518..c1f18af7e 100644
--- a/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js
+++ b/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js
@@ -312,8 +312,14 @@ module.exports = cls => class IdealTreeBuilder extends cls {
// Load on a new Arborist object, so the Nodes aren't the same,
// or else it'll get super confusing when we change them!
.then(async root => {
- if (!this[_updateAll] && !this[_global] && !root.meta.loadedFromDisk)
+ if (!this[_updateAll] && !this[_global] && !root.meta.loadedFromDisk) {
await new this.constructor(this.options).loadActual({ root })
+ // even though we didn't load it from a package-lock.json FILE,
+ // we still loaded it "from disk", meaning we have to reset
+ // dep flags before assuming that any mutations were reflected.
+ if (root.children.size)
+ root.meta.loadedFromDisk = true
+ }
return root
})
diff --git a/node_modules/@npmcli/arborist/package.json b/node_modules/@npmcli/arborist/package.json
index 2f3ccb613..b8b27c29f 100644
--- a/node_modules/@npmcli/arborist/package.json
+++ b/node_modules/@npmcli/arborist/package.json
@@ -1,6 +1,6 @@
{
"name": "@npmcli/arborist",
- "version": "2.0.1",
+ "version": "2.0.2",
"description": "Manage node_modules trees",
"dependencies": {
"@npmcli/installed-package-contents": "^1.0.5",