feat: add args parsing; refactor scripts

This commit is contained in:
mitchell 2026-04-16 16:04:08 -04:00
parent b3cef4dd03
commit bcd9771cd5
3 changed files with 59 additions and 41 deletions

View file

@ -10,7 +10,7 @@
"dev": "bun run index.ts",
"prod": "bun run out/index.js",
"check": "bunx --bun @biomejs/biome check --write",
"build": "bun run check && bun run build:bundle && bun run shebang",
"build:js": "bun run check && bun run build:bundle && bun run shebang",
"build:bundle": "bun build --target=bun --production --sourcemap --outdir=out index.ts",
"build:bin": "bun build --compile --outfile=out/aicl index.ts",
"shebang": "sed -i '1i#!\\/usr\\/bin\\/env bun' out/index.js"