From 2d037fca96ecf2d4f2e1d12f871d157def461ae5 Mon Sep 17 00:00:00 2001 From: Bertie690 <136088738+Bertie690@users.noreply.github.com> Date: Fri, 5 Sep 2025 23:27:21 -0400 Subject: [PATCH] [Dev] Fix typedoc.config.js (#6495) --- typedoc.config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/typedoc.config.js b/typedoc.config.js index 72c58ee8350..5c49a643a91 100644 --- a/typedoc.config.js +++ b/typedoc.config.js @@ -1,5 +1,7 @@ import { globSync } from "node:fs"; +const dryRun = !!process.env.DRY_RUN.match(/true/gi); + /** * @type {Partial} */ @@ -28,7 +30,7 @@ const config = { ...globSync("./typedoc-plugins/**/*.js").map(plugin => "./" + plugin), ], // Avoid emitting docs for branches other than main/beta - emit: process.env.DRY_RUN ? "none" : "docs", + emit: dryRun ? "none" : "docs", out: process.env.CI ? "/tmp/docs" : "./typedoc", name: "PokéRogue", readme: "./README.md", @@ -44,7 +46,7 @@ const config = { }; // If generating docs for main/beta, check the ref name and add an appropriate navigation header -if (!process.env.DRY_RUN && process.env.REF_NAME) { +if (!dryRun && process.env.REF_NAME) { const otherRefName = process.env.REF_NAME === "main" ? "beta" : "main"; config.navigationLinks = { ...config.navigationLinks,