Files
copilotkit__copilotkit/packages/react-native/tsdown.config.ts
Jordan Ritter 39ec297af4 feat(react-native): wire UI components into package exports and config
Add peer dependencies, export new components and hooks from package entry point, integrate RenderToolProvider into CopilotKitProvider, configure vitest and tsdown, add usage documentation.
2026-05-22 14:26:27 -07:00

36 lines
799 B
TypeScript

import { defineConfig } from "tsdown";
export default defineConfig({
entry: [
"src/index.ts",
"src/components/index.ts",
"src/polyfills.ts",
"src/polyfills/streams.ts",
"src/polyfills/encoding.ts",
"src/polyfills/crypto.ts",
"src/polyfills/dom.ts",
"src/polyfills/location.ts",
],
format: ["esm", "cjs"],
dts: true,
sourcemap: true,
target: "es2022",
outDir: "dist",
external: [
"react",
"react-native",
"@ag-ui/client",
"@copilotkit/react-core",
"@copilotkit/core",
"@copilotkit/shared",
"@ag-ui/client",
"@gorhom/bottom-sheet",
"react-native-streamdown",
"react-native-gesture-handler",
"react-native-reanimated",
"react-native-enriched-markdown",
"react-native-worklets",
"remend",
],
});