diff --git a/packages/cli-workflow/src/store.ts b/packages/cli-workflow/src/store.ts index 7b1f847..e8578ee 100644 --- a/packages/cli-workflow/src/store.ts +++ b/packages/cli-workflow/src/store.ts @@ -1,5 +1,5 @@ -import { access, appendFile, mkdir, readdir, readFile, writeFile } from "node:fs/promises"; import type { Dirent } from "node:fs"; +import { access, appendFile, mkdir, readdir, readFile, writeFile } from "node:fs/promises"; import { homedir } from "node:os"; import { join } from "node:path"; diff --git a/packages/cli-workflow/src/validate.ts b/packages/cli-workflow/src/validate.ts index 76683c6..83a68aa 100644 --- a/packages/cli-workflow/src/validate.ts +++ b/packages/cli-workflow/src/validate.ts @@ -68,7 +68,11 @@ function isGraph(value: unknown): boolean { */ export function workflowNameFromPath(filePath: string): string { const base = basename(filePath); - const stem = base.endsWith(".yaml") ? base.slice(0, -5) : base.endsWith(".yml") ? base.slice(0, -4) : base; + const stem = base.endsWith(".yaml") + ? base.slice(0, -5) + : base.endsWith(".yml") + ? base.slice(0, -4) + : base; if (stem === "index") { return basename(dirname(filePath)); }