From 4692f54b49fafe42f9a76815ee6064c241237d20 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Wed, 1 Nov 2023 12:28:34 +0200 Subject: [PATCH] chore(docs-util): fix freshness check script (#5518) --- docs-util/packages/scripts/freshness-check.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs-util/packages/scripts/freshness-check.ts b/docs-util/packages/scripts/freshness-check.ts index cc3ab7ccbc455..97646d9ce90c9 100644 --- a/docs-util/packages/scripts/freshness-check.ts +++ b/docs-util/packages/scripts/freshness-check.ts @@ -4,6 +4,7 @@ import { LinearClient } from "@linear/sdk" import { Octokit } from "@octokit/core" import fs from "fs" import path from "path" +import { fileURLToPath } from "url" const octokit = new Octokit({ auth: process.env.GH_TOKEN, @@ -13,6 +14,9 @@ const linearClient = new LinearClient({ apiKey: process.env.LINEAR_API_KEY, }) +const __filename = fileURLToPath(import.meta.url) +const __dirname = path.dirname(__filename) + const repoPath = path.join( __dirname, "..",