Skip to content

Commit dfe3041

Browse files
BarisSozenclaude
andcommitted
fix(ci): add DOM + node lib support for tsc --noEmit lint
The CI lint step (tsc --noEmit) was failing with 'Cannot find name fetch/process/console' because the mcp tsconfig omitted DOM lib and node types. Local tsup builds worked because tsup has its own type resolution that's more lenient about globals. Changes - tsconfig.json: add DOM to lib, add types: ["node"], exclude **/*.test.ts from lint (matching the sdk tsconfig pattern) - package.json: add @types/node devDependency - pnpm-lock.yaml: refreshed This is a pre-existing lint gap revealed when the lockfile mismatch blocker was resolved. All tests still pass (19/19). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1bcdf1d commit dfe3041

3 files changed

Lines changed: 29 additions & 9 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"zod": "^3.23.0"
3131
},
3232
"devDependencies": {
33+
"@types/node": "^25.6.0",
3334
"tsup": "^8.0.0",
3435
"typescript": "^5.4.0",
3536
"vitest": "^4.1.4"

pnpm-lock.yaml

Lines changed: 25 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"target": "ES2022",
44
"module": "ESNext",
55
"moduleResolution": "bundler",
6-
"lib": ["ES2022"],
6+
"lib": ["ES2022", "DOM"],
7+
"types": ["node"],
78
"strict": true,
89
"esModuleInterop": true,
910
"skipLibCheck": true,
@@ -12,5 +13,5 @@
1213
"rootDir": "src"
1314
},
1415
"include": ["src"],
15-
"exclude": ["node_modules", "dist"]
16+
"exclude": ["node_modules", "dist", "**/*.test.ts"]
1617
}

0 commit comments

Comments
 (0)