cherry-studio/packages/ui/tsdown.config.ts
MyPrototypeWhat 59bf94b118 refactor(ui): update migration status and enhance component implementations
- 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.
2025-09-16 19:20:04 +08:00

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'
]
})