From e3c23baae9b967496336e6ec342bb9ad7748126a Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 21 Feb 2024 09:44:16 +1100 Subject: [PATCH] fix(ui): fix package build --- invokeai/frontend/web/tsconfig.node.json | 2 +- invokeai/frontend/web/vite.config.mts | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/invokeai/frontend/web/tsconfig.node.json b/invokeai/frontend/web/tsconfig.node.json index b5936d415c..046964021f 100644 --- a/invokeai/frontend/web/tsconfig.node.json +++ b/invokeai/frontend/web/tsconfig.node.json @@ -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"] } diff --git a/invokeai/frontend/web/vite.config.mts b/invokeai/frontend/web/vite.config.mts index 32e3e1f64f..ae64b7198d 100644 --- a/invokeai/frontend/web/vite.config.mts +++ b/invokeai/frontend/web/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'), }, }, };