import { defineConfig } from "tsup"; export default defineConfig({ entry: { index: "src/index.ts" }, format: ["esm"], // tsup's declaration build (TypeScript 6 API) always sets the deprecated baseUrl. dts: { compilerOptions: { ignoreDeprecations: "6.0" } }, sourcemap: true, target: "es2022", // dist also holds styles.css from build:css — don't wipe it. clean: false, // Client-only component library: every module is client code. banner: { js: '"use client";' }, external: [ "react", "react-dom", "react/jsx-runtime", "@colineapp/app-runtime", "@colineapp/sdk", "@tabler/icons-react", "class-variance-authority", "clsx", "framer-motion", "radix-ui", "super-hover", "tailwind-merge", ], })