Files
copilotkit__copilotkit/packages/runtime/tsconfig.json
Austin Merrick 4ba201b5c4 fix: repair check-types across all packages and gate it in CI
Repairs TypeScript check-types across the monorepo and adds a CI gate so
regressions are caught going forward:

- core: bundler module resolution and strict-mode fixes
- sdk-js: bundler module resolution; keep codegen, formatter, packaging working
- react-core: fixes across components, hooks, and tests
- react-native: restore catch binding referenced by TypeError cause
- runtime: repair check-types and bound AI SDK schema inference
- web-inspector: nodenext import extensions, export Anchor
- remaining packages and node example: assorted check-types repairs
- deps: add missing type-only devDependencies
- license context driven from /info licenseStatus
- ci: run check-types in the static quality workflow

Squashed from 12 commits for a single, easily-revertable change.
2026-06-23 15:26:47 -07:00

40 lines
1.3 KiB
JSON

{
"extends": "../tsconfig/base.json",
"compilerOptions": {
"types": ["node", "vitest/globals"],
"target": "es2022",
// es2023 lib for Array.prototype.toReversed (used by the service adapters)
"lib": ["es2023", "dom", "dom.iterable"],
// module es2022 so dynamic import() typechecks (build is done by tsdown,
// which does not read this setting)
"module": "es2022",
"useDefineForClassFields": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"strict": false,
"resolveJsonModule": true,
// @remix-run/node-fetch-server is exports-map only; the base config's
// moduleResolution "node" (node10) cannot find its types without this hint.
"paths": {
"@remix-run/node-fetch-server": [
"./node_modules/@remix-run/node-fetch-server/dist/index.d.ts"
]
}
},
"include": [
"./src/**/*.ts",
"./src/**/*.test.ts",
"./src/**/__tests__/*",
"./tests/**/*.ts"
],
"exclude": ["dist", "build", "node_modules"],
// ts-node runs scripts/generate-gql-schema.ts (extensionless CJS-style
// imports); without this override it picks up module es2022 above and
// executes the script as ESM, which fails to resolve those imports.
"ts-node": {
"compilerOptions": {
"module": "commonjs"
}
}
}