Files
classhelper-island-refactor…/scripts/fix-r-07pad.mjs
T

9 lines
445 B
JavaScript
Raw Normal View History

import { readFileSync, writeFileSync } from 'node:fs';
const p = 'parts-r/07-island-components.md';
let t = readFileSync(p, 'utf8');
const before = 'classisland` fixed 的窗口高恒为 40 + 2×`ISLAND_SHADOW_PAD`';
const after = 'classisland` fixed 的窗口高恒为 40 + 2×20 = 80 DIP';
if (!t.includes(before)) throw new Error('未找到验收第 5 条');
t = t.replace(before, after);
writeFileSync(p, t, 'utf8');
console.log('patched');