(cmd: string, workingDirectory: string)
| 14 | const execAsync = promisify(exec); |
| 15 | |
| 16 | const waitForCommand = async (cmd: string, workingDirectory: string) => |
| 17 | execAsync(cmd, { cwd: workingDirectory }) |
| 18 | .then(({ stderr }) => { |
| 19 | if (stderr) { |
| 20 | console.warn( |
| 21 | `Command produced the following stderr entries: \n${stderr}`, |
| 22 | ); |
| 23 | } |
| 24 | return; |
| 25 | }) |
| 26 | .catch((e) => { |
| 27 | console.error( |
| 28 | `Error running command: "${cmd}" at directory: "${workingDirectory}"`, |
| 29 | e, |
| 30 | ); |
| 31 | process.exit(1); |
| 32 | }); |
| 33 | |
| 34 | export const getArgSwitches = () => { |
| 35 | return process.argv.reduce( |
no test coverage detected