Skip to content

Commit a864613

Browse files
authored
Merge pull request #61 from pkgjs/renovate/npmcli-arborist-2.x
2 parents fe0eb46 + 675b11f commit a864613

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/deps.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ internals.resolve = async ({ packageJson, lockfile }, options) => {
3131

3232
for (const dep of arborist.idealTree.inventory.values()) {
3333

34+
if (dep.root === dep) {
35+
// root node is not a dep, really
36+
continue;
37+
}
38+
3439
if (!options.dev && dep.dev) {
3540
// only include dev deps when `options.dev` flag is set
3641
continue;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"dependencies": {
3838
"@hapi/wreck": "^17.0.0",
39-
"@npmcli/arborist": "^1.0.1",
39+
"@npmcli/arborist": "^2.0.0",
4040
"@pkgjs/nv": "0.1.0",
4141
"debug": "^4.1.1",
4242
"git-url-parse": "^11.1.2",

0 commit comments

Comments
 (0)