Skip to content

Commit

Permalink
fix: arborist inventory change update
Browse files Browse the repository at this point in the history
Update `lib/utils/completion/installed-deep.js` to ignore root nodes in
the arborist update.

PR-URL: #2301
Credit: @ruyadorno
Close: #2301
Reviewed-by: @isaacs
  • Loading branch information
ruyadorno authored and isaacs committed Dec 8, 2020
1 parent bf09e71 commit de45a46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils/completion/installed-deep.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const readNames = async () => {

const getValues = (tree) =>
[...tree.inventory.values()]
.filter(i => i.location !== '' && !i.isRoot)
.map(i => {
return i
})
Expand Down

0 comments on commit de45a46

Please sign in to comment.