Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /opt/cpanel/ea-nodejs10/lib/node_modules/npm/lib/install/action/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/cpanel/ea-nodejs10/lib/node_modules/npm/lib/install/action/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
  )
}

Spamworldpro Mini