aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/@npmcli/run-script/lib/make-spawn-args.js
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@npmcli/run-script/lib/make-spawn-args.js')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@npmcli/run-script/lib/make-spawn-args.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@npmcli/run-script/lib/make-spawn-args.js b/sandbox/testAppNevena/Front/node_modules/@npmcli/run-script/lib/make-spawn-args.js
deleted file mode 100644
index 8f299954..00000000
--- a/sandbox/testAppNevena/Front/node_modules/@npmcli/run-script/lib/make-spawn-args.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/* eslint camelcase: "off" */
-const isWindows = require('./is-windows.js')
-const setPATH = require('./set-path.js')
-const {resolve} = require('path')
-const npm_config_node_gyp = require.resolve('node-gyp/bin/node-gyp.js')
-
-const makeSpawnArgs = options => {
- const {
- event,
- path,
- scriptShell = isWindows ? process.env.ComSpec || 'cmd' : 'sh',
- env = {},
- stdio,
- cmd,
- stdioString = false,
- } = options
-
- const isCmd = /(?:^|\\)cmd(?:\.exe)?$/i.test(scriptShell)
- const args = isCmd ? ['/d', '/s', '/c', cmd] : ['-c', cmd]
-
- const spawnOpts = {
- env: setPATH(path, {
- // we need to at least save the PATH environment var
- ...process.env,
- ...env,
- npm_package_json: resolve(path, 'package.json'),
- npm_lifecycle_event: event,
- npm_lifecycle_script: cmd,
- npm_config_node_gyp,
- }),
- stdioString,
- stdio,
- cwd: path,
- ...(isCmd ? { windowsVerbatimArguments: true } : {}),
- }
-
- return [scriptShell, args, spawnOpts]
-}
-
-module.exports = makeSpawnArgs