Files
fusion/fix.cjs

12 lines
405 B
JavaScript

const fs = require('fs');
let content = fs.readFileSync('packages/engine/src/executor.test.ts', 'utf8');
// Fix the trailing comma issue by removing the comma after the template literal
content = content.replace(
/at '\$\{conflictingPath\}'',\n \);/g,
"at '${conflictingPath}'" + "\n" + " );"
);
fs.writeFileSync('packages/engine/src/executor.test.ts', content);
console.log('Fixed');