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>2010-08-25 06:14:17 +0400
committerisaacs <i@izs.me>2010-08-25 16:21:51 +0400
commit12b401cb985af587b1de80ae0d8a726eefbf48a1 (patch)
treeb998b9ee28a0ab22ed3054dbece694a71f5df83e
parent6652d93ed561a1e4bcd24a506933efef442ad25e (diff)
Load package default data when objects are provided
-rw-r--r--lib/build.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/build.js b/lib/build.js
index ef91bc90f..c31513b16 100644
--- a/lib/build.js
+++ b/lib/build.js
@@ -106,7 +106,7 @@ function readAll (folders, cb) {
, errState = null
, f = folders.length
asyncMap(folders, function (folder, cb) {
- if (typeof folder === "object") return cb(null, folder)
+ if (typeof folder === "object") return loadPackageDefaults(folder, cb)
readJson(path.join(folder, "package.json"), function (er, d) {
// FIXME: in 0.3.0, remove this, and make it the default
// behavior in read-json.js