cherry-studio/packages/ui/tsdown.config.ts
MyPrototypeWhat d3028f1dd1 feat: add @cherrystudio/ui component library
- Introduced a new UI component library for Cherry Studio, including various components such as buttons, inputs, and layout elements.
- Updated configuration files to include the new library and its dependencies.
- Enhanced the project structure to support modular imports and TypeScript definitions for better development experience.
2025-09-15 12:03:39 +08:00

17 lines
383 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',
external: ['react', 'react-dom']
})