diff --git a/.gitattributes b/.gitattributes index 03d42ee974..c976050ade 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,3 @@ # text files must be lf for golden file tests to work -*.txt eol=lf -*.json eol=lf +* text=auto eol=lf + diff --git a/utils/generate_channels.js b/utils/generate_channels.js index fe6e0ae0d4..39e6ef6eff 100755 --- a/utils/generate_channels.js +++ b/utils/generate_channels.js @@ -294,8 +294,6 @@ validator_ts.push(` let hasChanges = false; function writeFile(filePath, content) { - if (os.platform() === 'win32') - content = content.replace(/\r\n/g, '\n').replace(/\n/g, '\r\n'); const existing = fs.readFileSync(filePath, 'utf8'); if (existing === content) return;