tsdown.config.ts 584 B

12345678910111213141516171819
  1. import { defineConfig } from 'tsdown'
  2. /**
  3. * stdio-agent ships TWO entries: the plugin (`index`) and the CLI `bin`
  4. * (`bin`), the latter referenced by package.json `bin`/`exports["./bin"]`.
  5. * The root tsdown builds only `lib/types/index.js`, so this override adds
  6. * `lib/types/bin.js`. Declarations come from `tsc -b` (dts: false),
  7. * matching every package.
  8. */
  9. export default defineConfig({
  10. entry: ['lib/types/index.js', 'lib/types/bin.js'],
  11. outDir: 'lib',
  12. format: ['esm'],
  13. platform: 'node',
  14. target: 'es2024',
  15. fixedExtension: false,
  16. dts: false,
  17. clean: false,
  18. })