tsdown.config.ts 784 B

1234567891011121314151617181920
  1. import { clientBundle } from '../../client/tsdown.client.ts'
  2. // The Win32 dialog worker builds as its own CJS entry (mirroring
  3. // dsh-workflow-workerthread's worker): path-loaded by the driver, inlining
  4. // the dialog logic while koffi stays an external native require.
  5. export default [
  6. ...clientBundle('@deepseek-ai/dsh-host-directory-picker-native', ['lib/types/index.js', 'lib/types/invariant.js']),
  7. {
  8. // The artifact is lib/worker.cjs (the ./worker export the workspace
  9. // constraint keys on), bundled from the descriptive source entry.
  10. entry: { worker: 'lib/types/win32-dialog-worker.js' },
  11. outDir: 'lib',
  12. format: ['cjs'] as ['cjs'],
  13. platform: 'node' as const,
  14. target: 'es2024',
  15. fixedExtension: false,
  16. dts: false,
  17. clean: false,
  18. },
  19. ]