summaryrefslogtreecommitdiff
path: root/deps/npm/lib/install/is-only-dev.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/install/is-only-dev.js')
-rw-r--r--deps/npm/lib/install/is-only-dev.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/npm/lib/install/is-only-dev.js b/deps/npm/lib/install/is-only-dev.js
index ef41e8ad1a..2877c61a22 100644
--- a/deps/npm/lib/install/is-only-dev.js
+++ b/deps/npm/lib/install/is-only-dev.js
@@ -28,6 +28,7 @@ function andIsOnlyDev (name, seen) {
return isDev && !isProd
} else {
if (seen.has(req)) return true
+ seen = new Set(seen)
seen.add(req)
return isOnlyDev(req, seen)
}