Build api-server and cli as compiled binaries
- Rename api-server package to @reviq/api-server - Add --compile flag to bun build for both packages - Output standalone executables instead of bundled JS Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "api-server",
|
||||
"name": "@reviq/api-server",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "bun run --hot src/index.ts",
|
||||
"build": "bun build src/index.ts --outdir dist",
|
||||
"build": "bun build src/index.ts --compile --outfile dist/api-server",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"lint": "eslint . --cache",
|
||||
"clean": "rm -rf dist .eslintcache",
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"reviq": "./dist/index.js"
|
||||
"reviq": "./dist/reviq"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "bun build src/bin/reviq.ts --outdir dist --target bun",
|
||||
"build": "bun build src/bin/reviq.ts --compile --outfile dist/reviq",
|
||||
"cli": "bun run src/bin/reviq.ts",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"lint": "eslint . --cache",
|
||||
|
||||
Reference in New Issue
Block a user