mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-20 23:22:05 +08:00
- Increased the refactored component count to 18 and reduced pending migrations to 184 in the migration status files. - Improved the Ellipsis, ListItem, MaxContextCount, and ThinkingEffect components by simplifying their structure and enhancing styling. - Updated the tsconfig.json to adjust the root directory for better project organization. - Removed unnecessary alias configurations in tsdown.config.ts for cleaner setup. - Added new stories for Ellipsis and ListItem components to improve documentation and showcase their usage.
27 lines
648 B
TypeScript
27 lines
648 B
TypeScript
import { defineConfig } from 'tsdown'
|
|
|
|
export default defineConfig({
|
|
entry: {
|
|
index: 'src/index.ts',
|
|
'components/index': 'src/components/index.ts',
|
|
'hooks/index': 'src/hooks/index.ts',
|
|
'utils/index': 'src/utils/index.ts'
|
|
},
|
|
outDir: 'dist',
|
|
format: ['esm', 'cjs'],
|
|
clean: true,
|
|
dts: true,
|
|
tsconfig: 'tsconfig.json',
|
|
// 将 HeroUI、Tailwind 和其他 peer dependencies 标记为外部依赖
|
|
external: [
|
|
'react',
|
|
'react-dom',
|
|
'@heroui/react',
|
|
'@heroui/theme',
|
|
'framer-motion',
|
|
'tailwindcss',
|
|
// 保留 styled-components 作为外部依赖(迁移期间)
|
|
'styled-components'
|
|
]
|
|
})
|