Skip to content

Commit

Permalink
Update to node 20 target
Browse files Browse the repository at this point in the history
  • Loading branch information
rushi committed Dec 21, 2024
1 parent 1d90bae commit 651871c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tsup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ import { defineConfig } from "tsup";
import fs from "fs";

export default defineConfig({
target: "node18",
target: "node20",
entry: ["src/index.js"],
format: ["cjs", "esm"],
splitting: true,
sourcemap: true,
clean: true,
minify: false,
loader: {
'.css': 'local-css',
".css": "local-css",
},
onSuccess() {
console.log("\n🏁 Build completed. Copying additional files...");
fs.copyFileSync("index.d.ts", "dist/index.d.ts");
fs.copyFileSync("index.d.ts", "dist/index.d.mts");
fs.copyFileSync("index.css", "dist/ui-kit.css");
},
})
});

0 comments on commit 651871c

Please sign in to comment.