feat(publish): compile and package workers for npm and isolate workflow imports

This commit is contained in:
yiling
2026-06-05 14:34:22 +08:00
parent dfdf095be7
commit 042188cc74
5 changed files with 219 additions and 72 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ async function run() {
const options: { workflowBundle?: unknown; workflowsPath?: string } = {}
if (process.env.NODE_ENV === 'production') {
// @ts-ignore: Bun temporal plugin macro
const { default: workflowBundle } = await import('./workflows:::workflow')
const { default: workflowBundle } = await import('./workflows.ts:::workflow')
options.workflowBundle = workflowBundle
} else {
options.workflowsPath = new URL('./workflows.ts', import.meta.url).pathname