MCPcopy Create free account
hub / github.com/npm/cli / runScript

Function runScript

workspaces/libnpmexec/test/run-script.js:23–33  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

21 t.teardown(() => process.off('log', handleLog))
22
23 const runScript = (opts) => mockedRunScript({
24 args: [],
25 call: '',
26 path: '',
27 runPath: '',
28 shell: process.platform === 'win32'
29 ? process.env.ComSpec || 'cmd'
30 : process.env.SHELL || 'sh',
31 ...opts,
32 flatOptions: { chalk: new Chalk({ level }) },
33 })
34 return { runScript, outputs, logs }
35}
36

Callers 14

#publishMethod · 0.85
execMethod · 0.85
#runMethod · 0.85
execMethod · 0.85
execMethod · 0.85
reifyMethod · 0.85
#runScriptsMethod · 0.85
reify.jsFile · 0.85
version.jsFile · 0.85
runFunction · 0.85
runFunction · 0.85
run-script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected