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:
authorRebecca Turner <me@re-becca.org>2017-05-26 02:00:44 +0300
committerRebecca Turner <me@re-becca.org>2017-05-26 04:55:34 +0300
commit0d35975ea13dc4bd50a36f1af45dc0c58df8e826 (patch)
tree23255f82ecf7c63731089fb944fbbefb05ff5613 /lib
parenta976fa1ec47c6ced0c7453ad6bfdda6ad3ffe2ce (diff)
preinstall: Runs in the final dest, not the staging folder
Diffstat (limited to 'lib')
-rw-r--r--lib/install/action/preinstall.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/install/action/preinstall.js b/lib/install/action/preinstall.js
index a6f85b0a5..a16082ef7 100644
--- a/lib/install/action/preinstall.js
+++ b/lib/install/action/preinstall.js
@@ -1,9 +1,8 @@
'use strict'
var lifecycle = require('../../utils/lifecycle.js')
var packageId = require('../../utils/package-id.js')
-var moduleStagingPath = require('../module-staging-path.js')
module.exports = function (staging, pkg, log, next) {
log.silly('preinstall', packageId(pkg))
- lifecycle(pkg.package, 'preinstall', moduleStagingPath(staging, pkg), false, false, next)
+ lifecycle(pkg.package, 'preinstall', pkg.path, false, false, next)
}