Skip to content

Commit 0d35975

Browse files
committedMay 26, 2017
preinstall: Runs in the final dest, not the staging folder
1 parent a976fa1 commit 0d35975

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎lib/install/action/preinstall.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
'use strict'
22
var lifecycle = require('../../utils/lifecycle.js')
33
var packageId = require('../../utils/package-id.js')
4-
var moduleStagingPath = require('../module-staging-path.js')
54

65
module.exports = function (staging, pkg, log, next) {
76
log.silly('preinstall', packageId(pkg))
8-
lifecycle(pkg.package, 'preinstall', moduleStagingPath(staging, pkg), false, false, next)
7+
lifecycle(pkg.package, 'preinstall', pkg.path, false, false, next)
98
}

0 commit comments

Comments
 (0)
Please sign in to comment.