Update package layout
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user