chore: config bin path and build scripts
This commit is contained in:
parent
bbdb656214
commit
8facbb0de2
1 changed files with 5 additions and 1 deletions
|
|
@ -3,9 +3,13 @@
|
||||||
"module": "index.ts",
|
"module": "index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"bin": {
|
||||||
|
"aicl": "out/index.js"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"check": "bunx --bun @biomejs/biome check --write",
|
"check": "bunx --bun @biomejs/biome check --write",
|
||||||
"build": "bun build --compile --outfile=out/aicl ./index.ts"
|
"build": "bun build --target=bun --production --outfile=out/index.js ./index.ts && sed -i '1i#!\\/usr\\/bin\\/env bun' out/index.js",
|
||||||
|
"build:bin": "bun build --compile --outfile=out/aicl ./index.ts"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "2.4.12",
|
"@biomejs/biome": "2.4.12",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue