Update package layout

This commit is contained in:
2026-03-16 23:36:38 -04:00
parent b345982ab1
commit 8fe121951b
24 changed files with 383 additions and 39 deletions

View File

@@ -10,7 +10,8 @@ import { viteStaticCopy } from "vite-plugin-static-copy";
import { peerDependencies } from "./package.json";
const modules = [ "button", "input", "loading", "message", "modal", "nav", "progress", "tab", "theme", "toaster" ];
const components = [ "button", "input", "loading", "message", "modal", "nav", "progress", "tab", "toaster" ];
const providers = [ "axios", "theme", "toaster", "token" ];
// https://vite.dev/config/
@@ -60,7 +61,8 @@ export default defineConfig({
lib: {
entry: {
"mattrixwv-components": resolve(__dirname, "lib/index.ts"),
...Object.fromEntries(modules.map(mod => [mod, resolve(__dirname, `lib/component/${mod}/index.ts`)]))
...Object.fromEntries(components.map(mod => [mod, resolve(__dirname, `lib/component/${mod}/index.ts`)])),
...Object.fromEntries(providers.map(mod => [mod, resolve(__dirname, `lib/provider/${mod}/index.ts`)]))
},
formats: [ "es" ],
name: "Mattrixwv Component Library"