tsdown.config.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { defineConfig } from 'tsdown'
  2. const shared = {
  3. format: 'esm' as const,
  4. platform: 'node' as const,
  5. target: 'es2024',
  6. fixedExtension: false,
  7. dts: false,
  8. deps: {
  9. neverBundle: [/^@deepseek-ai\//],
  10. onlyBundle: false as const,
  11. },
  12. }
  13. /** Compile measured benchmark workers while keeping workspace packages on their built `lib` entries. */
  14. export default defineConfig([
  15. {
  16. ...shared,
  17. entry: { 'reconnect.worker': 'active-stream-reconnect/reconnect.worker.client.ts' },
  18. outDir: '.dsh-build/active-stream-reconnect',
  19. clean: true,
  20. tsconfig: 'tsconfig.client.json',
  21. },
  22. {
  23. ...shared,
  24. entry: {
  25. 'agent-continuation.worker': 'agent-continuation/agent-continuation.worker.ts',
  26. 'child-catalog.worker': 'agent-continuation/child-catalog.worker.ts',
  27. 'profile-continuation.worker': 'agent-continuation/profile-continuation.worker.ts',
  28. 'profile-adapter': 'agent-continuation/profile-adapter.ts',
  29. },
  30. outDir: '.dsh-build/agent-continuation',
  31. clean: true,
  32. tsconfig: 'tsconfig.host.json',
  33. },
  34. {
  35. ...shared,
  36. entry: { 'session-open.worker': 'session-open/session-open.worker.ts' },
  37. outDir: '.dsh-build/session-open',
  38. clean: true,
  39. tsconfig: 'tsconfig.host.json',
  40. },
  41. {
  42. ...shared,
  43. entry: {
  44. 'conversation-fold.worker': 'conversation-fold/conversation-fold.worker.client.ts',
  45. },
  46. outDir: '.dsh-build/conversation-fold',
  47. clean: true,
  48. tsconfig: 'tsconfig.client.json',
  49. },
  50. ])