24 lines
420 B
TypeScript
24 lines
420 B
TypeScript
import { defineConfig, type Options } from "tsup";
|
|
|
|
const shared: Options = {
|
|
format: ["esm"],
|
|
dts: true,
|
|
sourcemap: true,
|
|
clean: false,
|
|
treeshake: true,
|
|
external: ["react", "react-dom", "tailwindcss"],
|
|
};
|
|
|
|
export default defineConfig([
|
|
{
|
|
...shared,
|
|
entry: ["src/index.ts"],
|
|
outDir: "dist/client",
|
|
},
|
|
{
|
|
...shared,
|
|
entry: ["src/tokens-entry.ts"],
|
|
outDir: "dist/tokens",
|
|
},
|
|
]);
|