diff options
author | Jussi Kalliokoski <jussi.kalliokoski@gmail.com> | 2014-09-14 23:10:11 +0400 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2014-09-16 04:22:03 +0400 |
commit | b706d637d5965dbf8f7ce07dc5c4bc80887f30d8 (patch) | |
tree | bb05a1aa514ac9595bc16d0d90a84bc5bc35eb0a /lib | |
parent | 119f068eae2a36fa8b9c9ca557c70377792243a4 (diff) |
Disabled `prepublish` when running production mode install.
See discussion in #3059.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/install.js | 2 |
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) }) |