mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-07 07:27:20 +00:00
push all website files
This commit is contained in:
16
website/node_modules/npm/lib/install/action/unbuild.js
generated
vendored
Normal file
16
website/node_modules/npm/lib/install/action/unbuild.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict'
|
||||
var Bluebird = require('bluebird')
|
||||
var lifecycle = Bluebird.promisify(require('../../utils/lifecycle.js'))
|
||||
var packageId = require('../../utils/package-id.js')
|
||||
var rmStuff = Bluebird.promisify(require('../../unbuild.js').rmStuff)
|
||||
|
||||
module.exports = function (staging, pkg, log) {
|
||||
log.silly('unbuild', packageId(pkg))
|
||||
return lifecycle(pkg.package, 'preuninstall', pkg.path, { failOk: true }).then(() => {
|
||||
return lifecycle(pkg.package, 'uninstall', pkg.path, { failOk: true })
|
||||
}).then(() => {
|
||||
return rmStuff(pkg.package, pkg.path)
|
||||
}).then(() => {
|
||||
return lifecycle(pkg.package, 'postuninstall', pkg.path, { failOk: true })
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user