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:
authorisaacs <i@izs.me>2012-03-01 01:32:05 +0400
committerisaacs <i@izs.me>2012-03-01 01:32:05 +0400
commit417a81e7818c86303ad40aff458eef3bb8f70368 (patch)
tree9adb583b9f97bbcbe2162181f840aa5dd77aa585
parent3d13e3ed544ff818dbfef9ecc1903ada611464e3 (diff)
Bundle nested bundleDependencies properly
-rw-r--r--lib/utils/tar.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/utils/tar.js b/lib/utils/tar.js
index 519742da8..d1c4ab697 100644
--- a/lib/utils/tar.js
+++ b/lib/utils/tar.js
@@ -580,7 +580,11 @@ function makeList_ (dir, pkg, exList, dfc, cb) {
if (path.basename(dir) === "node_modules"
&& pkg.path === path.dirname(dir)
- && dfc) { // do fancy crap
+ // do fancy crap
+ && dfc
+ // not already part of a bundled dependency
+ && path.basename(path.dirname(pkg.path)) !== "node_modules") {
+ log.warn(dir, "doing fancy crap")
files = filterNodeModules(files, pkg)
} else {
// If a directory is excluded, we still need to be