Skip to content

Commit 7fb30ab

Browse files
committed
Fix CI: Restore explicit build order for workspace packages
The research showed the root cause - TypeScript couldn't find @debugmcp/shared because it wasn't being built before the packages that depend on it. Solution: Explicitly build shared first, then adapter-mock, then adapter-python. This ensures all .d.ts files exist when TypeScript tries to resolve them. The shared package already has: - Proper index.ts with all exports - Correct main and types fields in package.json - Properly configured exports field This should finally fix the TS2307 errors in CI.
1 parent 85b6607 commit 7fb30ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"build": "npm run build:packages && tsc -p tsconfig.json && tsc src/index.ts src/server.ts --outDir dist --module NodeNext --moduleResolution NodeNext --esModuleInterop true --target ES2022 && tsc src/proxy/dap-proxy-entry.ts src/proxy/dap-proxy-worker.ts src/proxy/dap-proxy-core.ts src/proxy/dap-proxy-dependencies.ts src/proxy/dap-proxy-interfaces.ts src/proxy/dap-proxy-adapter-manager.ts src/proxy/dap-proxy-connection-manager.ts src/proxy/dap-proxy-message-parser.ts src/proxy/dap-proxy-request-tracker.ts src/proxy/dap-proxy.ts src/proxy/minimal-dap.ts src/proxy/index.ts src/proxy/proxy-config.ts src/proxy/proxy-manager.ts --outDir dist --module NodeNext --moduleResolution NodeNext --esModuleInterop true --target ES2022 && npm run postbuild",
2424
"build:shared": "npm run build -w @debugmcp/shared --if-present",
2525
"build:adapters": "npm run build -w @debugmcp/adapter-mock && npm run build -w @debugmcp/adapter-python",
26-
"build:packages": "tsc -b",
26+
"build:packages": "npm run build -w @debugmcp/shared && npm run build -w @debugmcp/adapter-mock && npm run build -w @debugmcp/adapter-python",
2727
"build:servercore": "tsc -p tsconfig.json",
2828
"build:all": "npm run build --workspaces --if-present && npm run build",
2929
"build:clean": "npm run clean && npm run build",

0 commit comments

Comments
 (0)