diff options
author | Gar <gar+gh@danger.computer> | 2021-06-04 17:11:41 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-06-10 20:09:03 +0300 |
commit | f130a81d62bf4f540ab252a09ff5a618827f9265 (patch) | |
tree | ae41e2ddd68a09bf486c96375ee5c80e2d842934 /scripts/bundle-and-gitignore-deps.js | |
parent | 26d00c47785dfb300eab6a926f9d7c4d566776b1 (diff) |
fix(linting): add scripts, docs, smoke-tests
There is code in all of these places we control so it should be linted
PR-URL: https://github.com/npm/cli/pull/3367
Credit: @wraithgar
Close: #3367
Reviewed-by: @isaacs
Diffstat (limited to 'scripts/bundle-and-gitignore-deps.js')
-rw-r--r-- | scripts/bundle-and-gitignore-deps.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/bundle-and-gitignore-deps.js b/scripts/bundle-and-gitignore-deps.js index b15720c03..1c7f0eb36 100644 --- a/scripts/bundle-and-gitignore-deps.js +++ b/scripts/bundle-and-gitignore-deps.js @@ -9,7 +9,7 @@ const arb = new Arborist({ path: resolve(__dirname, '..') }) const shouldIgnore = [] arb.loadVirtual().then(tree => { - for (const [name, node] of tree.children.entries()) { + for (const node of tree.children.values()) { if (node.dev || node.isLink) { console.error('ignore', node.name) shouldIgnore.push(node.name) |