actions/build.ts

12 lines
323 B
TypeScript
Raw Normal View History

2026-05-11 11:18:49 +02:00
#!/usr/bin/env bun
// Build script: compiles index.ts to dist/index.mjs
import { $ } from "bun"
await $`rm -rf dist`
await $`mkdir -p dist`
// Use bun build to bundle everything into a single file
await $`bun build index.ts --target bun --outdir dist --format esm --minify`
console.log("Build complete: dist/index.mjs")