File: //proc/thread-self/root/tmp/dateweb_patch_backlog_trends.cjs
const fs = require('fs');
const file = 'scripts/growth-backlog.mjs';
let s = fs.readFileSync(file, 'utf8');
if (!s.includes("scripts/patch-dating-trends-2026-internal-links.mjs")) {
const anchor = " 'scripts/generate-static-dating-fatigue.mjs',\n";
if (!s.includes(anchor)) throw new Error('source anchor missing');
s = s.replace(anchor, `${anchor} 'scripts/generate-static-dating-trends-2026.mjs',\n 'scripts/patch-dating-trends-2026-internal-links.mjs',\n`);
}
if (!s.includes("'/ratgeber/dating-trends-2026/', ['dating_trends_2026_internal_distribution'")) {
const anchor = "const distributionMarkers = new Map([\n";
if (!s.includes(anchor)) throw new Error('marker anchor missing');
s = s.replace(anchor, `${anchor} ['/ratgeber/dating-trends-2026/', ['dating_trends_2026_internal_distribution', 'guide_dating_trends_2026_launch', 'dating_trends_tool_bridge']],\n`);
}
fs.writeFileSync(file, s);