From 9158146462f178ede998bf216b4eda20a4b442f3 Mon Sep 17 00:00:00 2001 From: RevIQ Date: Fri, 9 Jan 2026 17:11:20 +0800 Subject: [PATCH] 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 --- apps/api-server/package.json | 4 ++-- apps/cli/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/api-server/package.json b/apps/api-server/package.json index 6ced645..0f258e4 100644 --- a/apps/api-server/package.json +++ b/apps/api-server/package.json @@ -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", diff --git a/apps/cli/package.json b/apps/cli/package.json index d51f86c..7979a11 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -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",