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