From 153875e1d96a472e05277dbba77c654d21d022f0 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Thu, 16 Jul 2026 21:28:05 +0900 Subject: [PATCH] [skip ci] refacotr(gh): add note --- .../frontend-browser-diagnostics.render-additional-html.mts | 1 + .github/scripts/frontend-browser-diagnostics.render-md.mts | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/scripts/frontend-browser-diagnostics.render-additional-html.mts b/.github/scripts/frontend-browser-diagnostics.render-additional-html.mts index 86f70e7ebd..568f4257e2 100644 --- a/.github/scripts/frontend-browser-diagnostics.render-additional-html.mts +++ b/.github/scripts/frontend-browser-diagnostics.render-additional-html.mts @@ -440,6 +440,7 @@ async function main() { await writeFile(outputFile, renderHtml(base, head)); } +// 直接実行されたときだけ呼ぶための判定(テストなどでこのファイル内の関数をimportするだけのとき用) if (process.argv[1] != null && import.meta.url === pathToFileURL(process.argv[1]).href) { await main(); } diff --git a/.github/scripts/frontend-browser-diagnostics.render-md.mts b/.github/scripts/frontend-browser-diagnostics.render-md.mts index f0890e65ef..76ff29b911 100644 --- a/.github/scripts/frontend-browser-diagnostics.render-md.mts +++ b/.github/scripts/frontend-browser-diagnostics.render-md.mts @@ -372,6 +372,7 @@ async function main() { })); } +// 直接実行されたときだけ呼ぶための判定(テストなどでこのファイル内の関数をimportするだけのとき用) if (process.argv[1] != null && import.meta.url === pathToFileURL(process.argv[1]).href) { await main(); }