( filename: string, outputFilename: string )
| 15 | const IS_WINDOWS = platform() === "win32"; |
| 16 | |
| 17 | const compile = async ( |
| 18 | filename: string, |
| 19 | outputFilename: string |
| 20 | ): Promise<void> => { |
| 21 | const args = ["compile", filename, outputFilename, "--executable"]; |
| 22 | const { code: compileResult } = await spawnCapture(process.argv0, args); |
| 23 | if (compileResult !== 0) { |
| 24 | throw new Error(`Compilation failed with exit code ${compileResult}`); |
| 25 | } |
| 26 | }; |
| 27 | |
| 28 | const run = async ( |
| 29 | filename: string, |
no test coverage detected