Skip to content

Commit eed3b22

Browse files
committed
Typecheck and lint example client
Don't do server yet, since it has its own package.json which breaks checking imports.
1 parent e19918d commit eed3b22

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/clients/typescript/auth-test-broken1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
44
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
5-
import { handle401, withOAuthRetry } from './helpers/withOAuthRetry.js';
5+
import { withOAuthRetry } from './helpers/withOAuthRetry.js';
66
import { ConformanceOAuthProvider } from './helpers/ConformanceOAuthProvider.js';
77
import { FetchLike } from '@modelcontextprotocol/sdk/shared/transport.js';
88
import {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"start": "tsx src/index.ts",
1515
"test": "jest",
1616
"build": "tsdown src/index.ts --minify --clean --target node20",
17-
"lint": "eslint src/ && prettier --check .",
18-
"lint:fix": "eslint src/ --fix && prettier --write .",
17+
"lint": "eslint src/ examples/ && prettier --check .",
18+
"lint:fix": "eslint src/ examples/ --fix && prettier --write .",
1919
"lint:fix_check": "npm run lint:fix && git diff --exit-code --quiet",
2020
"check": "npm run typecheck && npm run lint",
2121
"typecheck": "tsgo --noEmit",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"skipLibCheck": true,
1010
"forceConsistentCasingInFileNames": true
1111
},
12-
"include": ["src/**/*"],
12+
"include": ["src/**/*", "examples/clients/typescript/**/*"],
1313
"exclude": ["node_modules"]
1414
}

0 commit comments

Comments
 (0)