@npmcli/arborist 2.2.8 → 2.2.9
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/add-rm-pkg-deps.js +1 -1
- package/lib/arborist/reify.js +1 -1
- package/package.json +2 -2
package/lib/add-rm-pkg-deps.js
CHANGED
|
@@ -71,7 +71,7 @@ const addSingle = ({pkg, spec, saveBundle, saveType}) => {
|
|
|
71
71
|
pkg.devDependencies[name] = pkg.peerDependencies[name]
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
if (saveBundle) {
|
|
74
|
+
if (saveBundle && saveType !== 'peer' && saveType !== 'peerOptional') {
|
|
75
75
|
// keep it sorted, keep it unique
|
|
76
76
|
const bd = new Set(pkg.bundleDependencies || [])
|
|
77
77
|
bd.add(spec.name)
|
package/lib/arborist/reify.js
CHANGED
|
@@ -890,7 +890,7 @@ module.exports = cls => class Reifier extends cls {
|
|
|
890
890
|
const root = this.idealTree
|
|
891
891
|
const pkg = root.package
|
|
892
892
|
for (const { name } of this[_resolvedAdd]) {
|
|
893
|
-
const req = npa(root.edgesOut.get(name).spec, root.realpath)
|
|
893
|
+
const req = npa.resolve(name, root.edgesOut.get(name).spec, root.realpath)
|
|
894
894
|
const {rawSpec, subSpec} = req
|
|
895
895
|
|
|
896
896
|
const spec = subSpec ? subSpec.rawSpec : rawSpec
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npmcli/arborist",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.9",
|
|
4
4
|
"description": "Manage node_modules trees",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@npmcli/installed-package-contents": "^1.0.7",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"promise-call-limit": "^1.0.1",
|
|
27
27
|
"read-package-json-fast": "^2.0.2",
|
|
28
28
|
"readdir-scoped-modules": "^1.1.0",
|
|
29
|
-
"semver": "^7.3.
|
|
29
|
+
"semver": "^7.3.5",
|
|
30
30
|
"tar": "^6.1.0",
|
|
31
31
|
"treeverse": "^1.0.4",
|
|
32
32
|
"walk-up-path": "^1.0.0"
|