From 112e217efe44a8f28f145301f6dbef53eea96c15 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 27 Apr 2026 15:51:24 +0200 Subject: [PATCH] Update repository root path resolution to use process.cwd() --- scripts/list-authorable-fields.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/list-authorable-fields.ts b/scripts/list-authorable-fields.ts index fded23da..23fc0211 100644 --- a/scripts/list-authorable-fields.ts +++ b/scripts/list-authorable-fields.ts @@ -1,5 +1,4 @@ import path from "node:path"; -import { fileURLToPath } from "node:url"; import ts from "typescript"; interface AuthorableRoot { @@ -134,10 +133,7 @@ const DISCRIMINATOR_CANDIDATES = [ "kind" ] as const; -const repoRoot = path.resolve( - path.dirname(fileURLToPath(import.meta.url)), - ".." -); +const repoRoot = process.cwd(); const configPath = ts.findConfigFile(repoRoot, ts.sys.fileExists, "tsconfig.json"); if (configPath === undefined) {