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:
authorJussi Kalliokoski <jussi.kalliokoski@gmail.com>2014-09-14 23:10:11 +0400
committerForrest L Norvell <forrest@npmjs.com>2014-09-16 04:22:03 +0400
commitb706d637d5965dbf8f7ce07dc5c4bc80887f30d8 (patch)
treebb05a1aa514ac9595bc16d0d90a84bc5bc35eb0a /lib
parent119f068eae2a36fa8b9c9ca557c70377792243a4 (diff)
Disabled `prepublish` when running production mode install.
See discussion in #3059.
Diffstat (limited to 'lib')
-rw-r--r--lib/install.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install.js b/lib/install.js
index 82d872525..68d85041f 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -163,7 +163,7 @@ function install (args, cb_) {
target = dep + "@" + target
return target
}), where, context, function(er, results) {
- if (er) return cb(er, results)
+ if (er || npm.config.get("production")) return cb(er, results)
lifecycle(data, "prepublish", where, function(er) {
return cb(er, results)
})