(path: string)
| 24 | } |
| 25 | |
| 26 | async function ensureOutputDir(path: string) { |
| 27 | const dir = path.includes('/') ? path.slice(0, path.lastIndexOf('/')) : '.' |
| 28 | if (dir && dir !== '.') { |
| 29 | await mkdir(dir, { recursive: true }) |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | async function startRun() { |
| 34 | const response = await fetch( |