@npmcli/arborist 6.2.4 → 6.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/arborist/reify.js +7 -2
- package/package.json +4 -4
package/lib/arborist/reify.js
CHANGED
|
@@ -535,9 +535,14 @@ module.exports = cls => class Reifier extends cls {
|
|
|
535
535
|
await this[_renamePath](d, retired)
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
const made = await mkdir(node.path, { recursive: true })
|
|
539
538
|
this[_sparseTreeDirs].add(node.path)
|
|
540
|
-
|
|
539
|
+
const made = await mkdir(node.path, { recursive: true })
|
|
540
|
+
// if the directory already exists, made will be undefined. if that's the case
|
|
541
|
+
// we don't want to remove it because we aren't the ones who created it so we
|
|
542
|
+
// omit it from the _sparseTreeRoots
|
|
543
|
+
if (made) {
|
|
544
|
+
this[_sparseTreeRoots].add(made)
|
|
545
|
+
}
|
|
541
546
|
}))
|
|
542
547
|
.then(() => process.emit('timeEnd', 'reify:createSparse'))
|
|
543
548
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npmcli/arborist",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.6",
|
|
4
4
|
"description": "Manage node_modules trees",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@isaacs/string-locale-compare": "^1.1.0",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"hosted-git-info": "^6.1.1",
|
|
20
20
|
"json-parse-even-better-errors": "^3.0.0",
|
|
21
21
|
"json-stringify-nice": "^1.1.4",
|
|
22
|
-
"minimatch": "^
|
|
22
|
+
"minimatch": "^7.4.2",
|
|
23
23
|
"nopt": "^7.0.0",
|
|
24
24
|
"npm-install-checks": "^6.0.0",
|
|
25
25
|
"npm-package-arg": "^10.1.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@npmcli/eslint-config": "^4.0.0",
|
|
42
|
-
"@npmcli/template-oss": "4.
|
|
42
|
+
"@npmcli/template-oss": "4.12.1",
|
|
43
43
|
"benchmark": "^2.1.4",
|
|
44
44
|
"chalk": "^4.1.0",
|
|
45
45
|
"minify-registry-metadata": "^3.0.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
},
|
|
99
99
|
"templateOSS": {
|
|
100
100
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
101
|
-
"version": "4.
|
|
101
|
+
"version": "4.12.1",
|
|
102
102
|
"content": "../../scripts/template-oss/index.js"
|
|
103
103
|
}
|
|
104
104
|
}
|