fix(picker): ship the dialog worker as the constrained ./worker artifact

The workspace files constraint keys worker bundles on the ./worker export
(lib/worker.cjs, the workflow-workerthread shape); the descriptive source
entry stays win32-dialog-worker.ts and tsdown renames the bundle.
This commit is contained in:
Huanqi Cao
2026-08-03 00:41:47 +08:00
parent 8e0880e303
commit fed3149ac4
3 changed files with 9 additions and 3 deletions

View File

@@ -6,7 +6,9 @@ import { clientBundle } from '../../client/tsdown.client.ts'
export default [
...clientBundle('@deepseek-ai/dsh-host-directory-picker-native', ['lib/types/index.js', 'lib/types/invariant.js']),
{
entry: ['lib/types/win32-dialog-worker.js'],
// The artifact is lib/worker.cjs (the ./worker export the workspace
// constraint keys on), bundled from the descriptive source entry.
entry: { worker: 'lib/types/win32-dialog-worker.js' },
outDir: 'lib',
format: ['cjs'] as ['cjs'],
platform: 'node' as const,