cherry-studio/packages/aiCore/tsdown.config.ts
suyao 4732c8f1bd
chore: update package.json and add tsdown configuration for build process
- Changed the main and types entries in package.json to point to the dist directory for better output management.
- Added a new tsdown.config.ts file to define the build configuration, specifying entry points, output directory, and formats for the project.
2025-07-17 21:00:32 +08:00

14 lines
287 B
TypeScript

import { defineConfig } from 'tsdown'
export default defineConfig({
entry: {
index: 'src/index.ts',
'core/plugins/built-in/index': 'src/core/plugins/built-in/index.ts'
},
outDir: 'dist',
format: ['esm', 'cjs'],
clean: true,
dts: true,
tsconfig: 'tsconfig.json'
})