From ff6e7d3689c2e491534d5d6223b406846b4ee589 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 23 Sep 2026 02:07:20 +0200 Subject: [PATCH] fix(vendor): find the marked 18 browser build marked 18 ships lib/marked.umd.js and no minified bundle at all, so the postinstall hook threw 'no browser UMD build found' and took npm install down with it. Both the JavaScript lint job and the end-to-end job died there. Teach the candidate list that layout; the older, minified layouts keep their precedence. Co-Authored-By: Claude Opus 5 (1M context) --- app/scripts/copy-vendor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/scripts/copy-vendor.js b/app/scripts/copy-vendor.js index 724e389..d52df33 100644 --- a/app/scripts/copy-vendor.js +++ b/app/scripts/copy-vendor.js @@ -63,6 +63,7 @@ const markedCandidates = [ path.join(NM, 'marked', 'marked.min.js'), // v4.x path.join(NM, 'marked', 'lib', 'marked.umd.min.js'), // v5.x path.join(NM, 'marked', 'dist', 'marked.min.js'), // v9+ + path.join(NM, 'marked', 'lib', 'marked.umd.js'), // v16+ ]; const markedSrc = markedCandidates.find(p => fs.existsSync(p)); if (!markedSrc) throw new Error('marked: no browser UMD build found in node_modules');