(files: Record<string, string>)
| 157 | } |
| 158 | |
| 159 | const writeFiles = (files: Record<string, string>) => { |
| 160 | for (const path in files) { |
| 161 | mkdirSync(dirname(path), { recursive: true }) |
| 162 | writeFileSync(path, files[path]) |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | const run = <result>(build: () => result): result => { |
| 167 | try { |