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:
parent
e19918d968
commit
eed3b222a1
3 changed files with 4 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -9,6 +9,6 @@
|
|||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"include": ["src/**/*", "examples/clients/typescript/**/*"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue