mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-10 19:23:49 +08:00
21 lines
479 B
TypeScript
21 lines
479 B
TypeScript
import { defineConfig } from 'tsup'
|
|
|
|
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],
|
|
tsconfig: '../../tsconfig.build.json',
|
|
outDir: `dist${entry.replace('src', '').split('/').slice(0, -1).join('/')}`,
|
|
dts: true,
|
|
sourcemap: true,
|
|
format: ['esm', 'cjs'],
|
|
external: [/^[^./]/],
|
|
})),
|
|
)
|