diff options
author | Ruy Adorno <ruyadorno@hotmail.com> | 2020-12-08 22:33:01 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-12-09 02:27:01 +0300 |
commit | de45a46709e165bcfca80955fa8ea50c30c96c2d (patch) | |
tree | 4b53e360301c8fa2d2f65f20da7cdd4f00145f0b /lib/utils | |
parent | bf09e719c7f563a255b1e9af6b1237ebc5598db6 (diff) |
fix: arborist inventory change update
Update `lib/utils/completion/installed-deep.js` to ignore root nodes in
the arborist update.
PR-URL: https://github.com/npm/cli/pull/2301
Credit: @ruyadorno
Close: #2301
Reviewed-by: @isaacs
Diffstat (limited to 'lib/utils')
-rw-r--r-- | lib/utils/completion/installed-deep.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/completion/installed-deep.js b/lib/utils/completion/installed-deep.js index 0513ef9f8..803b223ea 100644 --- a/lib/utils/completion/installed-deep.js +++ b/lib/utils/completion/installed-deep.js @@ -13,6 +13,7 @@ const readNames = async () => { const getValues = (tree) => [...tree.inventory.values()] + .filter(i => i.location !== '' && !i.isRoot) .map(i => { return i }) |