(filePath: string)
| 42 | } |
| 43 | |
| 44 | async function pathExists(filePath: string): Promise<boolean> { |
| 45 | try { |
| 46 | await fs.access(filePath); |
| 47 | return true; |
| 48 | } catch { |
| 49 | return false; |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | function createExecStream(result: { stdout?: string; stderr?: string; exitCode: number }) { |
| 54 | return { |