mirror of
https://github.com/stablyai/orca.git
synced 2026-10-07 16:02:29 +00:00
16 lines
396 B
JavaScript
16 lines
396 B
JavaScript
import { build } from 'esbuild'
|
|
import { resolve } from 'node:path'
|
|
|
|
const root = resolve(import.meta.dirname, '../..')
|
|
await build({
|
|
entryPoints: {
|
|
'cli-bin': resolve(root, 'src/cli/cli-bin.ts'),
|
|
'cli-bun-launcher': resolve(root, 'src/cli/runtime/cli-bun-launcher.ts')
|
|
},
|
|
outdir: resolve(root, 'out/cli'),
|
|
bundle: true,
|
|
platform: 'node',
|
|
format: 'cjs',
|
|
target: 'node18'
|
|
})
|