cherry-studio/packages/ui/tsdown.config.ts
MyPrototypeWhat 8cc6b08831 chore(ui): update package.json and migration status files
- Reformatted keywords and files array in package.json for better readability.
- Updated migration status to reflect the migration of additional components, increasing the total migrated count to 46 and reducing pending migrations to 190.
- Added new components to the migration status table, including ErrorBoundary and ProviderAvatar, while removing deprecated components like ErrorTag, SuccessTag, and WarnTag.
2025-09-16 13:32:25 +08:00

30 lines
691 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',
alias: {
'@shared': '../shared'
},
// 将 HeroUI、Tailwind 和其他 peer dependencies 标记为外部依赖
external: [
'react',
'react-dom',
'@heroui/react',
'@heroui/theme',
'framer-motion',
'tailwindcss',
// 保留 styled-components 作为外部依赖(迁移期间)
'styled-components'
]
})