Handle Windows line endings like manifest-generator.js:175

This commit is contained in:
Wendy Smoak 2026-02-15 11:54:30 -05:00
parent decf15b5da
commit f0ad64efc4
1 changed files with 2 additions and 1 deletions

View File

@ -369,7 +369,8 @@ class CodexSetup extends BaseIdeSetup {
} }
async readAndProcessWithProject(filePath, metadata, projectDir) { async readAndProcessWithProject(filePath, metadata, projectDir) {
const content = await fs.readFile(filePath, 'utf8'); const rawContent = await fs.readFile(filePath, 'utf8');
const content = rawContent.replaceAll('\r\n', '\n').replaceAll('\r', '\n');
return super.processContent(content, metadata, projectDir); return super.processContent(content, metadata, projectDir);
} }