fix(daemon): prefer index.js over index.ts in workflow loader #218
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user