11 lines
323 B
TypeScript
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")
|