24 lines
459 B
TypeScript
24 lines
459 B
TypeScript
const targets = [
|
|
'bun-windows-x64',
|
|
'bun-darwin-arm64',
|
|
'bun-linux-x64',
|
|
] as const
|
|
|
|
const outputs = await Promise.all(
|
|
targets.map((target) =>
|
|
Bun.build({
|
|
entrypoints: ['./.output/server/index.mjs'],
|
|
compile: {
|
|
outfile: `server-${target}`,
|
|
target,
|
|
},
|
|
outdir: './out',
|
|
}),
|
|
),
|
|
)
|
|
|
|
for (const [index, output] of outputs.entries()) {
|
|
console.log(`\n${targets[index]}:`)
|
|
console.log(output.outputs)
|
|
}
|