tsup.config.mjs 575 B

123456789101112131415161718
  1. /**
  2. * DTS-only build for @briven/schema.
  3. *
  4. * The source .ts files ARE the runtime — no JS output needed
  5. * (Bun/Deno/tsx consume them directly within the monorepo, and
  6. * @briven/cli's tsup inlines them when building the tarball).
  7. *
  8. * We only emit .d.ts so that tsup's DTS resolver on dependent
  9. * packages (specifically @briven/cli) can follow `export * from
  10. * '@briven/schema'` and inline the types.
  11. */
  12. export default {
  13. entry: ['src/index.ts'],
  14. format: ['esm'],
  15. dts: { only: true },
  16. clean: true,
  17. external: ['zod', '@briven/shared', '@briven/config'],
  18. };