From 090bbd2d4166d8be4488ef6d56335482a99ae2c0 Mon Sep 17 00:00:00 2001 From: igneum-labs <337424239+igneum-labs@users.noreply.github.com> Date: Wed, 7 Oct 2026 10:01:53 +0000 Subject: [PATCH] site-ui-4: the build runs the nav check only where tools/ exists (the gate builds a copy of site/ alone and runs the check as its own line) Co-Authored-By: Claude Fable 5.1 --- site/build.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/build.mjs b/site/build.mjs index edf0e48ec..7787fc7ab 100644 --- a/site/build.mjs +++ b/site/build.mjs @@ -414,4 +414,5 @@ for (const [file, active] of PAGES) { } console.log('built: ' + built.join(', ')); // the header rule: every served page carries the full nav (tools/ci/site-nav-check.mjs); the build fails on a shorter one -{ const { spawnSync } = await import('node:child_process'); const r = spawnSync(process.execPath, [join(here, '..', 'tools', 'ci', 'site-nav-check.mjs'), here], { stdio: 'inherit' }); if (r.status !== 0) process.exit(r.status || 1); } +// (the gate builds a copy of site/ alone and runs the check as its own line, so a missing tools/ is not a failure here) +{ const check = join(here, '..', 'tools', 'ci', 'site-nav-check.mjs'); if (existsSync(check)) { const { spawnSync } = await import('node:child_process'); const r = spawnSync(process.execPath, [check, here], { stdio: 'inherit' }); if (r.status !== 0) process.exit(r.status || 1); } }