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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user