refactor(cli): build with vite-plus instead of tsup

This commit is contained in:
2026-09-06 22:28:58 +02:00
parent 2f4ebb90e6
commit 6a4d40e7be
3 changed files with 22 additions and 23 deletions
+14
View File
@@ -0,0 +1,14 @@
import { defineConfig } from "vite-plus";
import pkg from "./package.json" with { type: "json" };
export default defineConfig({
pack: {
entry: ["src/index.ts", "src/cli.ts"],
dts: true,
minify: true,
format: ["esm"],
target: "es2023",
deps: { alwaysBundle: ["**"] },
define: { VERSION: JSON.stringify(pkg.version) },
},
});