Initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import fs from 'fs';
|
||||
const lines = fs.readFileSync('app/page.tsx', 'utf8').split('\n');
|
||||
const start = lines.findIndex(l => l.includes('REMOVE_MARKER'));
|
||||
const end = lines.findIndex(l => l.includes('id="method"'));
|
||||
if (start === -1 || end === -1) {
|
||||
console.error('Markers not found', { start, end });
|
||||
process.exit(1);
|
||||
}
|
||||
const before = lines.slice(0, start);
|
||||
const after = lines.slice(Math.max(0, end - 2));
|
||||
fs.writeFileSync('app/page.tsx', before.concat(after).join('\n'));
|
||||
console.log('Removed lines', start, 'to', end);
|
||||
Reference in New Issue
Block a user