tsdown.config.ts 469 B

123456789101112131415161718
  1. import { defineConfig } from 'tsdown'
  2. /** Keep the browser-reachable Loader entry separate from the Node-only repository cache. */
  3. const shared = {
  4. outDir: 'lib',
  5. format: ['esm'],
  6. platform: 'node',
  7. target: 'es2024',
  8. fixedExtension: false,
  9. outputOptions: { codeSplitting: false },
  10. dts: false,
  11. clean: false,
  12. } as const
  13. export default defineConfig([
  14. { ...shared, entry: ['lib/types/index.js'] },
  15. { ...shared, entry: ['lib/types/repository.js'] },
  16. ])