fix(daemon): prefer index.js over index.ts in workflow loader #218

Closed
xiaoju wants to merge 1 commits from fix/217-prefer-js-over-ts into main
+1 -1
View File
@@ -299,8 +299,8 @@ async function loadWorkflowDefinition(
workflowName: string,
): Promise<WorkflowDefinition<RoleMeta>> {
const candidates = [
resolve(join(nerveRoot, "workflows", workflowName, "index.ts")),
resolve(join(nerveRoot, "workflows", workflowName, "index.js")),
resolve(join(nerveRoot, "workflows", workflowName, "index.ts")),
];
const indexPath = candidates.find((p) => existsSync(p));