Skip to content

Commit

Permalink
Failed to pass didPreinstall to build_ worker fn
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Apr 27, 2011
1 parent 1b593e9 commit 4fc175e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/build.js
Expand Up @@ -26,10 +26,10 @@ build.usage = "npm build <folder>\n(this is plumbing)"
function build (args, global, didPreinstall, cb) {
if (typeof cb !== "function") cb = didPreinstall, didPreinstall = false
if (typeof cb !== "function") cb = global, global = npm.config.get("global")
asyncMap(args, build_(global), cb)
asyncMap(args, build_(global, didPreinstall), cb)
}

function build_ (global) { return function (folder, cb) {
function build_ (global, didPreinstall) { return function (folder, cb) {
folder = path.resolve(folder)
log(folder, "build")
readJson(path.resolve(folder, "package.json"), function (er, pkg) {
Expand Down

0 comments on commit 4fc175e

Please sign in to comment.