X7ROOT File Manager
Current Path:
/opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/lib/install/action
opt
/
alt
/
alt-nodejs11
/
root
/
usr
/
lib
/
node_modules
/
npm
/
lib
/
install
/
action
/
ðŸ“
..
📄
build.js
(412 B)
📄
extract-worker.js
(473 B)
📄
extract.js
(3.81 KB)
📄
fetch.js
(524 B)
📄
finalize.js
(3.81 KB)
📄
global-install.js
(604 B)
📄
global-link.js
(235 B)
📄
install.js
(266 B)
📄
move.js
(3.08 KB)
📄
postinstall.js
(274 B)
📄
preinstall.js
(272 B)
📄
prepare.js
(1.03 KB)
📄
refresh-package-json.js
(1.5 KB)
📄
remove.js
(2.58 KB)
📄
unbuild.js
(659 B)
Editing: prepare.js
'use strict' var chain = require('slide').chain var lifecycle = require('../../utils/lifecycle.js') var packageId = require('../../utils/package-id.js') var prepublishWarning = require('../../utils/warn-deprecated.js')('prepublish-on-install') var moduleStagingPath = require('../module-staging-path.js') module.exports = function (staging, pkg, log, next) { log.silly('prepublish', packageId(pkg)) // TODO: for `npm@5`, change the behavior and remove this warning. // see https://github.com/npm/npm/issues/10074 for details if (pkg.package && pkg.package.scripts && pkg.package.scripts.prepublish) { prepublishWarning([ 'As of npm@5, `prepublish` scripts are deprecated.', 'Use `prepare` for build steps and `prepublishOnly` for upload-only.', 'See the deprecation note in `npm help scripts` for more information.' ]) } var buildpath = moduleStagingPath(staging, pkg) chain( [ [lifecycle, pkg.package, 'prepublish', buildpath], [lifecycle, pkg.package, 'prepare', buildpath] ], next ) }
Upload File
Create Folder