()
| 64 | // Deploy every template even if one fails, so a single broken demo |
| 65 | // doesn't leave the rest stale. |
| 66 | async function worker() { |
| 67 | for (let template = queue.shift(); template; template = queue.shift()) { |
| 68 | const log: string[] = []; |
| 69 | try { |
| 70 | for (const [file, args] of STEPS) { |
| 71 | await runCommand(file, args, template.path, log); |
| 72 | } |
| 73 | } catch { |
| 74 | failed.push(template.name); |
| 75 | } |
| 76 | printLog(template.name, log); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | await Promise.all( |
| 81 | Array.from({ length: Math.min(concurrency, templates.length) }, worker), |
nothing calls this directly
no test coverage detected