Files
ui-kit/tsup.config.ts
T

24 lines
420 B
TypeScript
Raw Normal View History

2026-07-23 04:23:19 -05:00
import { defineConfig, type Options } from "tsup";
2026-07-23 04:23:19 -05:00
const shared: Options = {
format: ["esm"],
dts: true,
sourcemap: true,
2026-07-23 04:23:19 -05:00
clean: false,
treeshake: true,
external: ["react", "react-dom", "tailwindcss"],
2026-07-23 04:23:19 -05:00
};
export default defineConfig([
{
...shared,
entry: ["src/index.ts"],
outDir: "dist/client",
},
{
...shared,
entry: ["src/tokens-entry.ts"],
outDir: "dist/tokens",
},
]);