(args: string[])
| 7 | |
| 8 | const defaultArgs = ["--skipLibCheck", "--types", "node"]; |
| 9 | export function forkCli(args: string[]): ChildProcess { |
| 10 | return fork(cliPath, [...defaultArgs, ...args], { |
| 11 | stdio: "pipe", |
| 12 | execArgv: ["--require", "ts-node/register/transpile-only"], |
| 13 | }); |
| 14 | } |
| 15 | |
| 16 | export interface CliResult { |
| 17 | exitCode: number; |
no outgoing calls