mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 11:27:18 +00:00
feat(publish): compile and package workers for npm and isolate workflow imports
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user