(
args: string[],
options?: { env?: NodeJS.ProcessEnv },
)
| 10 | }; |
| 11 | |
| 12 | export function runSourceCliJsonSync( |
| 13 | args: string[], |
| 14 | options?: { env?: NodeJS.ProcessEnv }, |
| 15 | ): CliJsonResult { |
| 16 | const result = runCmdSync( |
| 17 | process.execPath, |
| 18 | ['--experimental-strip-types', 'src/bin.ts', ...args], |
| 19 | { |
| 20 | allowFailure: true, |
| 21 | env: options?.env, |
| 22 | timeoutMs: CLI_TIMEOUT_MS, |
| 23 | }, |
| 24 | ); |
| 25 | return cliJsonResult(result); |
| 26 | } |
| 27 | |
| 28 | export async function runBuiltCliJson( |
| 29 | args: string[], |
no test coverage detected