Files
elysia/example/spawn.ts
T
2024-04-22 18:57:19 +07:00

11 lines
206 B
TypeScript

import { $ } from 'bun'
import { cpus } from 'os'
const total = cpus().length - 1
const ops = []
for (let i = 0; i < total; i++)
ops.push($`NODE_ENV=production bun example/a.ts`)
await Promise.all(ops)