()
| 62 | ]; |
| 63 | |
| 64 | async function main() { |
| 65 | await runNpm("build"); |
| 66 | await rm(outputDir, { recursive: true, force: true }); |
| 67 | await mkdir(outputDir, { recursive: true }); |
| 68 | await mkdir(seaWorkDir, { recursive: true }); |
| 69 | await mkdir(nodeCacheDir, { recursive: true }); |
| 70 | |
| 71 | for (const target of targets) { |
| 72 | console.log(`[computerd-bin] building ${target.name}`); |
| 73 | await buildTarget(target); |
| 74 | } |
| 75 | |
| 76 | console.log(`wrote standalone binaries to ${outputDir}`); |
| 77 | } |
| 78 | |
| 79 | async function buildTarget(target) { |
| 80 | const bundlePath = resolve(seaWorkDir, `${target.name}.bundle.mjs`); |
no test coverage detected