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

@@ -19,14 +19,18 @@
"types": "./lib/types/client/index.d.ts",
"default": "./lib/client.js"
},
"./worker": {
"types": "./lib/types/win32-dialog-worker.d.ts",
"default": "./lib/worker.cjs"
},
"./src/*": "./src/*",
"./package.json": "./package.json"
},
"files": [
"lib/index.js",
"lib/invariant.js",
"lib/worker.cjs",
"lib/client.js",
"lib/win32-dialog-worker.cjs",
"lib/types/**/*.d.ts",
"lib/types/**/*.d.ts.map",
"src"