fix(ui): fix package build

This commit is contained in:
psychedelicious 2024-02-21 09:44:16 +11:00
parent 6a923cce70
commit e3c23baae9
2 changed files with 8 additions and 8 deletions

View File

@ -5,5 +5,5 @@
"moduleResolution": "Node", "moduleResolution": "Node",
"allowSyntheticDefaultImports": true "allowSyntheticDefaultImports": true
}, },
"include": ["vite.config.mts", "config/vite.app.config.mts", "config/vite.package.config.mts", "config/common.mts"] "include": ["vite.config.mts"]
} }

View File

@ -26,7 +26,7 @@ export default defineConfig(({ mode }) => {
build: { build: {
cssCodeSplit: true, cssCodeSplit: true,
lib: { lib: {
entry: path.resolve(__dirname, '../src/index.ts'), entry: path.resolve(__dirname, './src/index.ts'),
name: 'InvokeAIUI', name: 'InvokeAIUI',
fileName: (format) => `invoke-ai-ui.${format}.js`, fileName: (format) => `invoke-ai-ui.${format}.js`,
}, },
@ -44,12 +44,12 @@ export default defineConfig(({ mode }) => {
}, },
resolve: { resolve: {
alias: { alias: {
app: path.resolve(__dirname, '../src/app'), app: path.resolve(__dirname, './src/app'),
assets: path.resolve(__dirname, '../src/assets'), assets: path.resolve(__dirname, './src/assets'),
common: path.resolve(__dirname, '../src/common'), common: path.resolve(__dirname, './src/common'),
features: path.resolve(__dirname, '../src/features'), features: path.resolve(__dirname, './src/features'),
services: path.resolve(__dirname, '../src/services'), services: path.resolve(__dirname, './src/services'),
theme: path.resolve(__dirname, '../src/theme'), theme: path.resolve(__dirname, './src/theme'),
}, },
}, },
}; };