From df9aa9b46484b06f5ebddd2ca34ecd8971cc55a4 Mon Sep 17 00:00:00 2001 From: wuzoo Date: Tue, 3 Dec 2024 22:00:30 +0900 Subject: [PATCH] fix: preview resolve package issue try 15 --- apps/client/.storybook/preview.tsx | 2 +- apps/client/vite.config.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/client/.storybook/preview.tsx b/apps/client/.storybook/preview.tsx index 3377efcb9..38e1b8116 100644 --- a/apps/client/.storybook/preview.tsx +++ b/apps/client/.storybook/preview.tsx @@ -1,6 +1,6 @@ import { Global, ThemeProvider } from '@emotion/react'; import type { Preview } from '@storybook/react'; -import { theme } from '@tiki/ui/dist/index.mjs'; +import { theme } from '@tiki/ui'; import React from 'react'; import { MemoryRouter } from 'react-router-dom'; diff --git a/apps/client/vite.config.ts b/apps/client/vite.config.ts index f207d9ff0..841a878ac 100644 --- a/apps/client/vite.config.ts +++ b/apps/client/vite.config.ts @@ -38,8 +38,8 @@ export default defineConfig(({ mode }) => { resolve: { alias: { - '@tiki/ui': path.resolve(__dirname, '../../packages/ui'), - '@tiki/icon': path.resolve(__dirname, '../../packages/icon'), + '@tiki/ui': path.resolve(__dirname, '../../packages/ui/dist'), + '@tiki/icon': path.resolve(__dirname, '../../packages/icon/dist'), }, },