mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-07-07 23:33:14 +08:00
20 lines
455 B
TypeScript
Executable File
20 lines
455 B
TypeScript
Executable File
import { defineConfig } from 'tsdown'
|
|
|
|
export default defineConfig(
|
|
[
|
|
'src/table/index.ts',
|
|
'src/cell/index.ts',
|
|
'src/header/index.ts',
|
|
'src/kit/index.ts',
|
|
'src/row/index.ts',
|
|
'src/index.ts'
|
|
].map((entry) => ({
|
|
entry: [entry],
|
|
outDir: `dist${entry.replace('src', '').split('/').slice(0, -1).join('/')}`,
|
|
dts: true,
|
|
sourcemap: true,
|
|
format: ['esm' as const, 'cjs' as const],
|
|
external: [/^[^./]/]
|
|
}))
|
|
)
|