mirror of
https://github.com/actionbook/actionbook.git
synced 2026-09-19 03:28:06 +08:00
21 lines
412 B
TypeScript
21 lines
412 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig({
|
|
entry: {
|
|
index: 'src/index.ts',
|
|
catalog: 'src/catalog.ts',
|
|
cli: 'src/cli.ts',
|
|
},
|
|
format: ['esm'],
|
|
dts: {
|
|
entry: {
|
|
index: 'src/index.ts',
|
|
catalog: 'src/catalog.ts',
|
|
},
|
|
},
|
|
clean: true,
|
|
external: ['react'],
|
|
treeshake: true,
|
|
splitting: false, // Disable code splitting for CLI to work properly
|
|
});
|