Skip to content

Commit 9d13ebf

Browse files
author
Michael Smith
committed
deps: @npmcli/run-script@11.0.0
1 parent 27c4dcc commit 9d13ebf

160 files changed

Lines changed: 1115 additions & 2013 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

node_modules/@npmcli/run-script/lib/make-spawn-args.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
/* eslint camelcase: "off" */
21
const setPATH = require('./set-path.js')
32
const { resolve } = require('path')
43

5-
let npm_config_node_gyp
4+
let npmConfigNodeGyp
65

76
const makeSpawnArgs = options => {
87
const {
@@ -20,13 +19,13 @@ const makeSpawnArgs = options => {
2019

2120
if (nodeGyp) {
2221
// npm already pulled this from env and passes it in to options
23-
npm_config_node_gyp = nodeGyp
22+
npmConfigNodeGyp = nodeGyp
2423
} else if (env.npm_config_node_gyp) {
2524
// legacy mode for standalone user
26-
npm_config_node_gyp = env.npm_config_node_gyp
25+
npmConfigNodeGyp = env.npm_config_node_gyp
2726
} else {
2827
// default
29-
npm_config_node_gyp = require.resolve('node-gyp/bin/node-gyp.js')
28+
npmConfigNodeGyp = require.resolve('node-gyp/bin/node-gyp.js')
3029
}
3130

3231
const spawnEnv = setPATH(path, binPaths, {
@@ -36,7 +35,7 @@ const makeSpawnArgs = options => {
3635
npm_package_json: resolve(path, 'package.json'),
3736
npm_lifecycle_event: event,
3837
npm_lifecycle_script: cmd,
39-
npm_config_node_gyp,
38+
npm_config_node_gyp: npmConfigNodeGyp,
4039
})
4140

4241
const spawnOpts = {

node_modules/@npmcli/run-script/lib/run-script-pkg.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const promiseSpawn = require('@npmcli/promise-spawn')
33
const packageEnvs = require('./package-envs.js')
44
const { isNodeGypPackage, defaultGypInstallScript } = require('@npmcli/node-gyp')
55
const signalManager = require('./signal-manager.js')
6-
const isServerPackage = require('./is-server-package.js')
76

87
const runScriptPkg = async options => {
98
const {
@@ -37,8 +36,6 @@ const runScriptPkg = async options => {
3736
await isNodeGypPackage(path)
3837
) {
3938
cmd = defaultGypInstallScript
40-
} else if (event === 'start' && await isServerPackage(path)) {
41-
cmd = 'node server.js'
4239
}
4340

4441
if (!cmd) {
@@ -47,19 +44,13 @@ const runScriptPkg = async options => {
4744

4845
let inputEnd = () => {}
4946
if (stdio === 'inherit') {
50-
let banner
47+
const { log, input } = require('proc-log')
5148
if (pkg._id) {
52-
banner = `\n> ${pkg._id} ${event}\n`
49+
log.notice('run', `${pkg._id} ${event}`)
5350
} else {
54-
banner = `\n> ${event}\n`
51+
log.notice('run', event)
5552
}
56-
banner += `> ${cmd.trim().replace(/\n/g, '\n> ')}`
57-
if (args.length) {
58-
banner += ` ${args.join(' ')}`
59-
}
60-
banner += '\n'
61-
const { output, input } = require('proc-log')
62-
output.standard(banner)
53+
log.notice('run', `${cmd.trim()} ${args?.join(' ')}`.trim())
6354
inputEnd = input.start()
6455
}
6556

node_modules/@npmcli/run-script/lib/run-script.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const PackageJson = require('@npmcli/package-json')
22
const runScriptPkg = require('./run-script-pkg.js')
33
const validateOptions = require('./validate-options.js')
4-
const isServerPackage = require('./is-server-package.js')
54

65
const runScript = async options => {
76
validateOptions(options)
@@ -12,4 +11,4 @@ const runScript = async options => {
1211
return runScriptPkg({ ...options, pkg })
1312
}
1413

15-
module.exports = Object.assign(runScript, { isServerPackage })
14+
module.exports = runScript

node_modules/@npmcli/metavuln-calculator/node_modules/@npmcli/node-gyp/LICENSE renamed to node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/LICENSE

File renamed without changes.

node_modules/@npmcli/metavuln-calculator/node_modules/@npmcli/node-gyp/lib/index.js renamed to node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/lib/index.js

File renamed without changes.

node_modules/@npmcli/metavuln-calculator/node_modules/@npmcli/node-gyp/package.json renamed to node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/package.json

File renamed without changes.

node_modules/@npmcli/run-script/node_modules/@npmcli/package-json/LICENSE

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)