(args: string[], env?: NodeJS.ProcessEnv)
| 412 | } |
| 413 | |
| 414 | export function globalNpm(args: string[], env?: NodeJS.ProcessEnv) { |
| 415 | if (!process.env.LEGACY_CLI_RUNNER) { |
| 416 | throw new Error( |
| 417 | 'The global npm cli should only be executed from the primary e2e runner process', |
| 418 | ); |
| 419 | } |
| 420 | |
| 421 | return _exec({ silent: true, env }, 'npm', args); |
| 422 | } |
| 423 | |
| 424 | export function node(...args: string[]) { |
| 425 | return _exec({}, process.execPath, args); |
no test coverage detected