From 81d6757c37ec05877aa945784343366fe7339881 Mon Sep 17 00:00:00 2001 From: Thomas Jung Date: Fri, 6 Nov 2026 14:14:31 -0500 Subject: [PATCH] fix(ci): inline parser JSON + copy tut-alert partial in option-tail-leak test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up after the first round fixed B/C/E but left A and D red. A (5 srv-qa suites, 'Cannot find module ./icon-allowlist.json'): directives/ui.ts and reference-links.ts loaded icon-allowlist.json / api-libs.json via createRequire('./x.json') at runtime, but neither parsers bundle (srv-qa/lib + srv/lib/_shared, both built from scripts/parsers/*) ships the JSON beside the .mjs, so the runtime require fails. Switch to static default JSON imports (tsconfig has resolveJsonModule) — esbuild/vite/tsx all inline the JSON into the bundle, removing the sidecar-file dependency for BOTH bundles and also removing the createRequire imports that caused the earlier banner collision. D (option-tail-leak.test.ts, 'Hugo build failed exit 1'): render-blockquote.html now delegates alerts to the tut-alert partial (#2595/#71a8d70bc), but the test's temp Hugo site never copied tut-alert.html, so was unresolvable and the build died. Copy tut-alert.html into the temp layouts/partials/ dir. Verified by reproducing the real Hugo pipeline: build now exits 0 and renders exactly 2