chore: improve scripts
This commit is contained in:
parent
9f35a2d974
commit
b3cef4dd03
1 changed files with 5 additions and 3 deletions
|
|
@ -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": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue