mirror of
https://github.com/zoriya/elysia.git
synced 2026-08-15 18:44:25 +00:00
11 lines
206 B
TypeScript
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)
|