From fdbf40bdc7856a108d75156b46f025afb70ba229 Mon Sep 17 00:00:00 2001 From: Basil Hosmer Date: Fri, 12 Sep 2025 00:48:18 -0400 Subject: [PATCH] Simplify build scripts to catch all compilation errors - Make 'npm run build' build both main server and auth server - Remove redundant build:auth-server and build:all scripts - Update README to reflect simplified build command - Ensures compilation errors in auth server are caught by default build --- README.md | 8 +------- package.json | 4 +--- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8168671..c52b791 100644 --- a/README.md +++ b/README.md @@ -189,15 +189,9 @@ npm run dev:break #### Build & Production ```bash -# Build TypeScript to JavaScript +# Build TypeScript to JavaScript (builds both servers) npm run build -# Build authorization server -npm run build:auth-server - -# Build everything -npm run build:all - # Run production server npm start diff --git a/package.json b/package.json index fe2207b..eb59e6f 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,7 @@ "dev:separate": "AUTH_MODE=separate AUTH_SERVER_URL=http://localhost:3001 npm run dev", "dev:auth-server": "AUTH_SERVER_PORT=3001 tsx watch --inspect auth-server/index.ts", "dev:with-separate-auth": "concurrently -n \"AUTH,MCP\" -c \"yellow,cyan\" \"npm run dev:auth-server\" \"npm run dev:separate\"", - "build": "tsc && npm run copy-static", - "build:auth-server": "tsc -p auth-server/tsconfig.json", - "build:all": "tsc && tsc -p auth-server/tsconfig.json && npm run copy-static", + "build": "tsc && tsc -p auth-server/tsconfig.json && npm run copy-static", "copy-static": "mkdir -p dist/static && cp -r src/static/* dist/static/", "lint": "eslint src/ auth-server/", "test": "NODE_OPTIONS=--experimental-vm-modules jest",