Executable → Regular
+17
-5
@@ -1,11 +1,23 @@
|
||||
import { defineConfig } from "tsup";
|
||||
import { defineConfig, type Options } from "tsup";
|
||||
|
||||
export default defineConfig({
|
||||
entry: ["src/index.ts"],
|
||||
const shared: Options = {
|
||||
format: ["esm"],
|
||||
dts: true,
|
||||
sourcemap: true,
|
||||
clean: 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",
|
||||
},
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user