Files
copilotkit__copilotkit/packages/runtime-client-gql/tsdown.config.ts
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

47 lines
1.1 KiB
TypeScript

import { defineConfig } from "tsdown";
export default defineConfig([
{
entry: ["src/index.ts"],
format: ["esm", "cjs"],
dts: true,
sourcemap: true,
target: "es2022",
outDir: "dist",
unbundle: true,
external: ["react", "@graphql-typed-document-node/core"],
exports: true,
},
{
entry: ["src/index.ts"],
format: ["umd"],
globalName: "CopilotKitRuntimeClientGQL",
sourcemap: true,
target: "es2018",
outDir: "dist",
external: [
"react",
"@copilotkit/shared",
"urql",
"@urql/core",
"graphql",
"@graphql-typed-document-node/core",
"untruncate-json",
],
outputOptions(options) {
options.codeSplitting = false;
options.entryFileNames = "[name].umd.js";
options.globals = {
react: "React",
"@copilotkit/shared": "CopilotKitShared",
urql: "Urql",
"@urql/core": "UrqlCore",
graphql: "GraphQL",
"@graphql-typed-document-node/core": "GraphQLTypedDocumentNode",
"untruncate-json": "untruncateJson",
};
return options;
},
},
]);