tsdown.config.ts 598 B

12345678910111213141516171819
  1. import { defineConfig } from 'tsdown'
  2. /**
  3. * tui-demo ships the plugin (`index`) and its invariant companion; the CLI
  4. * front door is `dsh` (apps/cli), which mounts this bundle through its config.
  5. * The root tsdown builds only `lib/types/index.js`, so this override adds the
  6. * invariant entry. Declarations come from `tsc -b` (dts: false), matching
  7. * every package.
  8. */
  9. export default defineConfig({
  10. entry: ['lib/types/index.js', 'lib/types/invariant.js'],
  11. outDir: 'lib',
  12. format: ['esm'],
  13. platform: 'node',
  14. target: 'es2024',
  15. fixedExtension: false,
  16. dts: false,
  17. clean: false,
  18. })