Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2018-02-21 03:11:12 +0300
committerRebecca Turner <me@re-becca.org>2018-02-21 11:21:54 +0300
commit9bc6230cf34a09b7e4358145ff0ac3c69c23c3f6 (patch)
tree0ba36140fc444552419fd645c3ad7303adb7f69a /node_modules/libcipm/index.js
parent4f5327c0556764aa1bbc9b58b1a8c8a84136c56a (diff)
libcipm@1.3.3
Diffstat (limited to 'node_modules/libcipm/index.js')
-rw-r--r--node_modules/libcipm/index.js26
1 files changed, 6 insertions, 20 deletions
diff --git a/node_modules/libcipm/index.js b/node_modules/libcipm/index.js
index 458b8508b..9d47731a2 100644
--- a/node_modules/libcipm/index.js
+++ b/node_modules/libcipm/index.js
@@ -156,26 +156,12 @@ class Installer {
})
: BB.resolve(false)
)
- .then(wasBundled => {
- const hasBundled = Array.from(dep.dependencies.values())
- .some(d => d.bundled)
-
- if (hasBundled) {
- return BB.resolve(
- wasBundled ||
- extract.child(dep.name, dep, depPath, this.config, this.opts)
- )
- .then(next)
- } else {
- // If it has no bundled children, we can extract children
- // concurrently
- return BB.join(
- wasBundled ||
- extract.child(dep.name, dep, depPath, this.config, this.opts),
- next()
- )
- }
- })
+ .then(wasBundled => (
+ // Don't extract if a bundled dep is actually present
+ wasBundled ||
+ extract.child(dep.name, dep, depPath, this.config, this.opts)
+ ))
+ .then(next)
.then(() => { this.pkgCount++ })
}
}, {concurrency: 50, Promise: BB})