Files
deepseek-harness/packages/workflow/workflow-worker-thread/tsdown.config.ts
Tianyi Cui a2d0f7f411 refactor: apply repository naming contract
Apply the accepted pre-release package, service, type, directory, and role renames as one repository-wide change.
2026-08-13 00:54:38 +08:00

30 lines
705 B
TypeScript

import { defineConfig } from 'tsdown'
/**
* Build the engine and worker separately so each inlines shared modules; a
* multi-entry build creates an unlisted chunk. The path-loaded worker is
* CommonJS because pkg's VFS Worker hook compiles it in that format.
*/
export default defineConfig([
{
entry: ['lib/types/index.js', 'lib/types/invariant.js'],
outDir: 'lib',
format: ['esm'],
platform: 'node',
target: 'es2024',
fixedExtension: false,
dts: false,
clean: false,
},
{
entry: ['lib/types/worker.js'],
outDir: 'lib',
format: ['cjs'],
platform: 'node',
target: 'es2024',
fixedExtension: false,
dts: false,
clean: false,
},
])