Typecheck and lint example client

Don't do server yet, since it has its own package.json which breaks
checking imports.
This commit is contained in:
Paul Carleton 2025-11-12 14:38:07 +00:00
commit eed3b222a1
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
import { handle401, withOAuthRetry } from './helpers/withOAuthRetry.js';
import { withOAuthRetry } from './helpers/withOAuthRetry.js';
import { ConformanceOAuthProvider } from './helpers/ConformanceOAuthProvider.js';
import { FetchLike } from '@modelcontextprotocol/sdk/shared/transport.js';
import {

View file

@ -14,8 +14,8 @@
"start": "tsx src/index.ts",
"test": "jest",
"build": "tsdown src/index.ts --minify --clean --target node20",
"lint": "eslint src/ && prettier --check .",
"lint:fix": "eslint src/ --fix && prettier --write .",
"lint": "eslint src/ examples/ && prettier --check .",
"lint:fix": "eslint src/ examples/ --fix && prettier --write .",
"lint:fix_check": "npm run lint:fix && git diff --exit-code --quiet",
"check": "npm run typecheck && npm run lint",
"typecheck": "tsgo --noEmit",

View file

@ -9,6 +9,6 @@
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"include": ["src/**/*"],
"include": ["src/**/*", "examples/clients/typescript/**/*"],
"exclude": ["node_modules"]
}