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

Commit

Permalink
Build takes an array of arguments, not a single one
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed May 3, 2010
1 parent 70ebdaa commit bf7f5b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/build.js
Expand Up @@ -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)
})
}

Expand Down

0 comments on commit bf7f5b0

Please sign in to comment.