cloudaxe-opencode/packages/client/script/build-package.ts

11 lines
322 B
TypeScript
Raw Permalink Normal View History

#!/usr/bin/env bun
import { $ } from "bun"
import { fileURLToPath } from "node:url"
process.chdir(fileURLToPath(new URL("..", import.meta.url)))
await $`rm -rf dist`
await $`bun tsc -p tsconfig.build.json`
2026-07-29 05:40:58 +00:00
await $`bun build src/node/index.ts --outfile dist/node/index.js --target=node --format=esm --packages=external`