mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-23 10:00:08 +08:00
- 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.
30 lines
691 B
TypeScript
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'
|
|
]
|
|
})
|