actions/build.ts
2026-05-11 11:18:49 +02:00

11 lines
323 B
TypeScript

#!/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")