diff options
Diffstat (limited to 'lib/utils/tar.js')
-rw-r--r-- | lib/utils/tar.js | 6 |
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 |