mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 05:11:24 +08:00
- 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.
14 lines
287 B
TypeScript
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'
|
|
})
|