Skip to content

Commit 675b11f

Browse files
committed
chore: update to latest Arborist API
1 parent c08e984 commit 675b11f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
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;

0 commit comments

Comments
 (0)