Skip to content

Commit fdbf40b

Browse files
committed
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
1 parent 4e3414f commit fdbf40b

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,9 @@ npm run dev:break
189189

190190
#### Build & Production
191191
```bash
192-
# Build TypeScript to JavaScript
192+
# Build TypeScript to JavaScript (builds both servers)
193193
npm run build
194194

195-
# Build authorization server
196-
npm run build:auth-server
197-
198-
# Build everything
199-
npm run build:all
200-
201195
# Run production server
202196
npm start
203197

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
"dev:separate": "AUTH_MODE=separate AUTH_SERVER_URL=http://localhost:3001 npm run dev",
1414
"dev:auth-server": "AUTH_SERVER_PORT=3001 tsx watch --inspect auth-server/index.ts",
1515
"dev:with-separate-auth": "concurrently -n \"AUTH,MCP\" -c \"yellow,cyan\" \"npm run dev:auth-server\" \"npm run dev:separate\"",
16-
"build": "tsc && npm run copy-static",
17-
"build:auth-server": "tsc -p auth-server/tsconfig.json",
18-
"build:all": "tsc && tsc -p auth-server/tsconfig.json && npm run copy-static",
16+
"build": "tsc && tsc -p auth-server/tsconfig.json && npm run copy-static",
1917
"copy-static": "mkdir -p dist/static && cp -r src/static/* dist/static/",
2018
"lint": "eslint src/ auth-server/",
2119
"test": "NODE_OPTIONS=--experimental-vm-modules jest",

0 commit comments

Comments
 (0)