diff options
author | isaacs <i@izs.me> | 2013-01-08 04:13:31 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-01-10 02:45:10 +0400 |
commit | 351304d28c2afcfae93de05b4c6bcf035054de3e (patch) | |
tree | 912cb562fb02fea785cbcf191908f280e63d55c4 | |
parent | 517c080a296c19f930dc99c8c260567036acae76 (diff) |
install: Run prepublish on local top-level no-args install
-rw-r--r-- | lib/install.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/install.js b/lib/install.js index 45d985f8b..4741c34c7 100644 --- a/lib/install.js +++ b/lib/install.js @@ -136,7 +136,12 @@ function install (args, cb_) { , parsed = url.parse(target.replace(/^git\+/, "git")) target = dep + "@" + target return target - }), where, context, cb) + }), where, context, function(er, results) { + if (er) return cb(er, results) + lifecycle(data, "prepublish", where, function(er) { + return cb(er, results) + }) + }) }) } |