diff options
author | murgatroid99 <mlumish@google.com> | 2015-06-09 03:26:37 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-08-08 02:06:46 +0300 |
commit | e13e4c8da92b51661c6af23b4272fc00cbd76089 (patch) | |
tree | 17f481b6e27eab0b4269865cedf603a57f6fb455 /lib | |
parent | 04ec77b5c407cbfd8a1241528fd5e2d97ce3efb7 (diff) |
install: don't run lifecycle for `install --link`
Fixes: #7198
PR-URL: https://github.com/npm/npm/pull/8501
Diffstat (limited to 'lib')
-rw-r--r-- | lib/link.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/link.js b/lib/link.js index e4e47d53e..cb44a6be7 100644 --- a/lib/link.js +++ b/lib/link.js @@ -114,14 +114,13 @@ function linkInstall (pkgs, cb) { if (npm.config.get('dry-run')) return resultPrinter(pkg, pp, target, rp, cb) chain( [ - [npm.commands, 'unbuild', [target]], [function (cb) { log.verbose('link', 'symlinking %s to %s', pp, target) cb() }], [symlink, pp, target], - // do run lifecycle scripts - full build here. - rp && [build, [target]], + // do not run any scripts + rp && [build, [target], npm.config.get('global'), build._noLC, true], [resultPrinter, pkg, pp, target, rp ] ], cb |