(tsconfig: string)
| 27 | }; |
| 28 | |
| 29 | async function checkProject(tsconfig: string): Promise<Result> { |
| 30 | try { |
| 31 | await execAsync(`tsc -p ${tsconfig}`); |
| 32 | return { tsconfig, success: true, output: "" }; |
| 33 | } catch (rawError: unknown) { |
| 34 | const error = rawError as { stdout?: string; stderr?: string }; |
| 35 | const output = error.stdout || error.stderr || ""; |
| 36 | return { tsconfig, success: false, output }; |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // Run with concurrency limit |
| 41 | const results: Result[] = []; |