aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/lib/rebuild.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-03-20 17:49:57 -0700
committerisaacs <i@izs.me>2013-03-20 17:49:57 -0700
commit3dd7938c03389371ce1d142a8558a98b450ca2ee (patch)
treebe7bf56caefeaec9b6a872fc903963b8fba6e48b /deps/npm/lib/rebuild.js
parent855caa82aaef5c6e6dd244b5d9df314994cb23eb (diff)
downloadandroid-node-v8-3dd7938c03389371ce1d142a8558a98b450ca2ee.tar.gz
android-node-v8-3dd7938c03389371ce1d142a8558a98b450ca2ee.tar.bz2
android-node-v8-3dd7938c03389371ce1d142a8558a98b450ca2ee.zip
npm: upgrade to 1.2.15
Diffstat (limited to 'deps/npm/lib/rebuild.js')
-rw-r--r--deps/npm/lib/rebuild.js30
1 files changed, 5 insertions, 25 deletions
diff --git a/deps/npm/lib/rebuild.js b/deps/npm/lib/rebuild.js
index 16451fbbb8..0c97cf85dc 100644
--- a/deps/npm/lib/rebuild.js
+++ b/deps/npm/lib/rebuild.js
@@ -29,32 +29,12 @@ function rebuild (args, cb) {
}
function cleanBuild (folders, set, cb) {
- // https://github.com/isaacs/npm/issues/1872
- // If there's a wscript, try 'node-waf clean'
- // But don't die on either of those if they fail.
- // Just a best-effort kind of deal.
- asyncMap(folders, function (f, cb) {
- fs.readdir(f, function (er, files) {
- // everything should be a dir.
- if (er) return cb(er)
- if (files.indexOf("wscript") !== -1) {
- exec("node-waf", ["clean"], null, false, f, thenBuild)
- } else thenBuild()
- })
- function thenBuild (er) {
- // ignore error, just continue
- // it could be that it's not configured yet or whatever.
- cb()
- }
- }, function (er) {
+ npm.commands.build(folders, function (er) {
if (er) return cb(er)
- npm.commands.build(folders, function (er) {
- if (er) return cb(er)
- console.log(folders.map(function (f) {
- return set[f] + " " + f
- }).join("\n"))
- cb()
- })
+ console.log(folders.map(function (f) {
+ return set[f] + " " + f
+ }).join("\n"))
+ cb()
})
}