chore: improve scripts

This commit is contained in:
mitchell 2026-04-16 04:06:31 -04:00
parent 9f35a2d974
commit b3cef4dd03

View file

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