Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
[fix] Exclude any dependencies which may be added, but are not extran…
…eous
  • Loading branch information
indexzero authored and isaacs committed May 31, 2011
1 parent 6291d4c commit f3721b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils/tar.js
Expand Up @@ -510,6 +510,7 @@ function makeList_ (dir, pkg, exList, dfc, cb) {
function filterNodeModules (files, pkg) {
var bd = pkg.bundleDependencies || pkg.bundledDependencies || []
, deps = Object.keys(pkg.dependencies || {})
.filter(function (key) { return !pkg.dependencies[key].extraneous })
.concat(Object.keys(pkg.devDependencies || {}))
return files.filter(function (f) {
f = f.replace(/\/$/, "")
Expand Down

0 comments on commit f3721b4

Please sign in to comment.