Updated some configs

This commit is contained in:
2025-08-09 18:26:44 -04:00
parent 46aa1e4dda
commit 689f446806
9 changed files with 1793 additions and 113 deletions

View File

@@ -4,6 +4,7 @@ import react from "@vitejs/plugin-react";
import { resolve } from "path";
import { defineConfig } from "vite";
import dts from "vite-plugin-dts";
import { dependencies } from "./package.json";
// https://vite.dev/config/
@@ -17,7 +18,8 @@ export default defineConfig({
tailwindcss(),
dts({
include: ["lib"],
tsconfigPath: "./tsconfig.lib.json"
tsconfigPath: "./tsconfig.lib.json",
outDir: "dist/types"
})
],
resolve: {
@@ -37,19 +39,15 @@ export default defineConfig({
modal: resolve(__dirname, "lib/component/modal.ts"),
nav: resolve(__dirname, "lib/component/nav.ts"),
tab: resolve(__dirname, "lib/component/tab.ts"),
theme: resolve(__dirname, "lib/component/theme.ts"),
toaster: resolve(__dirname, "lib/component/toaster.ts")
},
formats: [ "es" ],
name: "Mattrixwv Component Library"
},
rollupOptions: {
external: [
"clsx",
"react",
"react/jsx-runtime",
"tailwindcss",
"react-icons/bs",
"react-router-dom",
"@headlessui/react"
Object.keys(dependencies).join("|")
]
}
}