refactor(daemon): workflows must be bundled to dist/, daemon only loads dist/index.js #221
Reference in New Issue
Block a user
Delete Branch "refactor/219-workflow-bundle-dist"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Workflow build output must go to
workflows/<name>/dist/index.js. Daemon only loads and watchesdist/.Changes
loadWorkflowDefinition→ onlydist/index.js, no .ts/.js fallbackworkflows/*/dist/**/*.jsinstead of*.ts; sense watch uses.jsregexpackage.jsonwithesbuildbuild scriptBenefits
Fixes #219
LGTM ✅
改动清晰一致:
workflow-worker只认dist/index.js,去掉 .ts/.js fallback — 干净file-watcherregex 精准匹配workflows/*/dist/**/*.js,sense 侧也改成.jscreatescaffold 自带package.json+ esbuild build script,开箱即用唯一提醒:PR 描述里提到 sense-generator 需要配套改(加 esbuild + build to dist/),记得跟进。