diff --git a/internal/check-legend-info-localized.mjs b/internal/check-legend-info-localized.mjs index a729090c9..e7762bec0 100644 --- a/internal/check-legend-info-localized.mjs +++ b/internal/check-legend-info-localized.mjs @@ -39,7 +39,7 @@ const REPO = join(dirname(fileURLToPath(import.meta.url)), '..') const LOCALES = join(REPO, 'library/i18n/locales') const URL_ = process.argv[2] || process.env.LEGEND_URL -const ROOT = _resolvePath(_dirnamePath(_fileURLToPath(import.meta.url)), '..') +const ROOT = _resolvePath(_dirnamePath(fileURLToPath(import.meta.url)), '..') // ★ MEASURE THIS BUILD, OR MEASURE NOTHING. Several worktrees run on one machine and a default port // belongs to whichever server started first — measured 2026-09-24 on :4173, where browser gates @@ -48,11 +48,12 @@ const ROOT = _resolvePath(_dirnamePath(_fileURLToPath(import.meta.url)), '..') // A file:// target passes straight through — there is no server there to be wrong about. await requireThisTree(URL_, ROOT, 'LEGEND-INFO-LOCALIZED') if (!URL_) { - console.log('LEGEND-INFO-LOCALIZED: SKIP — no leaf url given.') + // 75, not 0: nothing was measured, and a 0 here reads as ✓ to the wave runner (the rule stated above). + console.log('LEGEND-INFO-LOCALIZED: NOT MEASURED (exit 75) — no leaf url given.') console.log(` Pass one, or set LEGEND_URL. Serve the TREE ROOT (public/${TREE_NAME}) and point`) console.log(' at a profile whose legend carries per-tab info buttons, e.g.') console.log(' my-upg-100-list/upg-100-list/index.html') - process.exit(0) + process.exit(75) } const UNDER_TEST = (process.argv[3] || 'es,ar,zh').split(',').map((s) => s.trim()).filter(Boolean)