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:
RevIQ
2026-01-09 17:11:20 +08:00
parent a66511a80d
commit 9158146462
2 changed files with 4 additions and 4 deletions

View File

@@ -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",