2026-07-23 04:23:19 -05:00
|
|
|
import { defineConfig, type Options } from "tsup";
|
2026-07-16 00:36:53 -05:00
|
|
|
|
2026-07-23 04:23:19 -05:00
|
|
|
const shared: Options = {
|
2026-07-16 00:36:53 -05:00
|
|
|
format: ["esm"],
|
|
|
|
|
dts: true,
|
|
|
|
|
sourcemap: true,
|
2026-07-23 04:23:19 -05:00
|
|
|
clean: false,
|
2026-07-16 00:36:53 -05:00
|
|
|
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",
|
|
|
|
|
},
|
|
|
|
|
]);
|