2026-06-21 12:03:44 +08:00
|
|
|
import { defineConfig } from 'tsdown'
|
|
|
|
|
|
|
|
|
|
/**
|
2026-07-25 12:43:59 +08:00
|
|
|
* tui-demo ships the plugin (`index`) and its invariant companion; the CLI
|
|
|
|
|
* front door is `dsh` (apps/cli), which mounts this bundle through its config.
|
|
|
|
|
* The root tsdown builds only `lib/types/index.js`, so this override adds the
|
|
|
|
|
* invariant entry. Declarations come from `tsc -b` (dts: false), matching
|
|
|
|
|
* every package.
|
2026-06-21 12:03:44 +08:00
|
|
|
*/
|
|
|
|
|
export default defineConfig({
|
2026-07-25 12:43:59 +08:00
|
|
|
entry: ['lib/types/index.js', 'lib/types/invariant.js'],
|
2026-06-21 12:03:44 +08:00
|
|
|
outDir: 'lib',
|
|
|
|
|
format: ['esm'],
|
|
|
|
|
platform: 'node',
|
|
|
|
|
target: 'es2024',
|
|
|
|
|
fixedExtension: false,
|
|
|
|
|
dts: false,
|
|
|
|
|
clean: false,
|
|
|
|
|
})
|