feat: add args parsing; refactor scripts
This commit is contained in:
parent
b3cef4dd03
commit
bcd9771cd5
3 changed files with 59 additions and 41 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue