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
This commit is contained in:
parent
4e3414fe9c
commit
fdbf40bdc7
2 changed files with 2 additions and 10 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue