diff options
author | isaacs <i@izs.me> | 2011-01-07 20:41:39 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-01-07 20:41:39 +0300 |
commit | 582fa4a99d90808b99e7b3ed18a876eb4d099d20 (patch) | |
tree | 1f95e0485c990b4fcc4757a657ee5233f52d158e | |
parent | 130f3472d7a3f6ded74360405394b8611056b15c (diff) |
Load the actual directories, not the names.
-rw-r--r-- | lib/utils/load-package-defaults.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/utils/load-package-defaults.js b/lib/utils/load-package-defaults.js index 44e51e97e..b65c9c644 100644 --- a/lib/utils/load-package-defaults.js +++ b/lib/utils/load-package-defaults.js @@ -70,9 +70,7 @@ function objectForEach (obj, fn) { function readDefaultFiles (pkgDir) { return function (pkg, cb) { var list = pkg.files = pkg.files || [""] - Object.keys(pkg.directories).forEach(addFile(list)) - - ;["modules", "bin", "man"].forEach(function (k) { + ;["directories", "modules", "bin", "man"].forEach(function (k) { objectForEach(pkg[k] || {}, addFile(list)) }) |