mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix package build
This commit is contained in:
parent
6a923cce70
commit
e3c23baae9
@ -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"]
|
||||
}
|
||||
|
@ -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'),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user