diff options
Diffstat (limited to 'deps/npm/lib/install/action/extract.js')
-rw-r--r-- | deps/npm/lib/install/action/extract.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/npm/lib/install/action/extract.js b/deps/npm/lib/install/action/extract.js index 4b627a5c30..60aae036c2 100644 --- a/deps/npm/lib/install/action/extract.js +++ b/deps/npm/lib/install/action/extract.js @@ -30,6 +30,11 @@ function andUpdatePackageJson (pkg, buildpath, next) { function andStageBundledChildren (pkg, buildpath, log, next) { var staging = path.resolve(buildpath, '..') return iferr(next, function () { + for (var i = 0; i < pkg.children.length; ++i) { + var c = pkg.children[i] + if (!c.package.name) return next(c.error) + } + asyncMap(pkg.children, andStageBundledModule(pkg, staging, buildpath), cleanupBundled) }) function cleanupBundled () { |