mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 02:20:10 +08:00
- Added Storybook scripts for development and building the UI components. - Updated package.json to include new dependencies for Storybook and styled-components. - Revised README to reflect changes in Tailwind CSS configuration, transitioning to v4 and removing the tailwind.config.js file. - Enhanced the tsdown configuration to mark additional peer dependencies as external. - Removed outdated Tailwind CSS configuration file to streamline the setup.
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'
|
|
]
|
|
})
|