Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Load the actual directories, not the names.

  • Loading branch information...
commit 582fa4a99d90808b99e7b3ed18a876eb4d099d20 1 parent 130f347
@isaacs isaacs authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/utils/load-package-defaults.js
View
4 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))
})
Please sign in to comment.
Something went wrong with that request. Please try again.