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
path: root/lib
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-05-03 04:21:35 +0400
committerisaacs <i@izs.me>2010-05-03 05:07:51 +0400
commitbf7f5b0f8cddff6615b463a3fa23e701c46c7f84 (patch)
tree20186a07350a10f1c8ea83101bfa4a133d2257e4 /lib
parent70ebdaa0f57e990d9b852c6dba63b8c42b5eeff8 (diff)
Build takes an array of arguments, not a single one
Diffstat (limited to 'lib')
-rw-r--r--lib/build.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/build.js b/lib/build.js
index d4b69e889..150ee2a54 100644
--- a/lib/build.js
+++ b/lib/build.js
@@ -103,8 +103,9 @@ function autoActivate (pkg, cb) {
function readAndBuild (folder, cb) {
log("readAndBuild", "build")
readJson(path.join(folder, "package.json"), function (er, data) {
+ log(data, "build")
if (er) cb(er)
- else build(data, cb)
+ else build([data], cb)
})
}