Skip to content

Commit b32d638

Browse files
committed
Consolidate TypeScript build configuration
Use single tsconfig.json for both main server and auth-server to avoid nested directory issues during build. Update e2e test scripts to run directly instead of using concurrently.
1 parent 56a43ac commit b32d638

4 files changed

Lines changed: 8 additions & 17 deletions

File tree

auth-server/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ app.listen(AUTH_SERVER_PORT, () => {
153153
introspect: `${AUTH_SERVER_URL}/introspect`
154154
}
155155
});
156-
156+
157157
console.log('');
158158
console.log('🚀 Auth server ready! Test with:');
159159
console.log(` curl ${AUTH_SERVER_URL}/health`);

auth-server/tsconfig.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
"version": "0.1.0",
44
"description": "Example MCP Server",
55
"type": "module",
6-
"main": "dist/index.js",
6+
"main": "dist/src/index.js",
77
"scripts": {
8-
"start": "node dist/index.js",
8+
"start": "node dist/src/index.js",
99
"start:auth-server": "node dist/auth-server/index.js",
1010
"dev": "tsx watch --inspect src/index.ts",
1111
"dev:break": "tsx --inspect-brk watch src/index.ts",
1212
"dev:integrated": "AUTH_MODE=integrated npm run dev",
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 && tsc -p auth-server/tsconfig.json && npm run copy-static",
17-
"copy-static": "mkdir -p dist/static && cp -r src/static/* dist/static/",
16+
"build": "tsc && npm run copy-static",
17+
"copy-static": "mkdir -p dist/src/static && cp -r src/static/* dist/src/static/",
1818
"lint": "eslint src/ auth-server/",
1919
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
2020
"test:integrated": "AUTH_MODE=integrated npm test",
2121
"test:separate": "AUTH_MODE=separate npm test",
22-
"test:e2e:integrated": "concurrently --kill-others --success first \"npm run dev:integrated\" \"sleep 4 && ./scripts/test-integrated-e2e.sh\"",
23-
"test:e2e:separate": "concurrently --kill-others --success first \"npm run dev:with-separate-auth\" \"sleep 6 && ./scripts/test-separate-e2e.sh\""
22+
"test:e2e:integrated": "./scripts/test-integrated-e2e.sh",
23+
"test:e2e:separate": "./scripts/test-separate-e2e.sh"
2424
},
2525
"devDependencies": {
2626
"@eslint/js": "^9.15.0",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"isolatedModules": true,
1313
"skipLibCheck": true
1414
},
15-
"include": ["src/**/*"],
15+
"include": ["src/**/*", "shared/**/*", "auth-server/**/*"],
1616
"exclude": ["node_modules", "dist"]
1717
}

0 commit comments

Comments
 (0)