Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: generate types always with LF (#15245)

Max Schmittf6bdf3a3cc86
diff --git a/utils/generate_types/index.js b/utils/generate_types/index.js
index ec72eac298..a7d7cdd67e 100644
--- a/utils/generate_types/index.js
+++ b/utils/generate_types/index.js
@@ -615,8 +615,6 @@ class TypesGenerator {
content = content.replace(/\r\n/g, '\n');
if (removeTrailingWhiteSpace)
content = content.replace(/( +)\n/g, '\n'); // remove trailing whitespace
- if (os.platform() === 'win32')
- content = content.replace(/\n/g, '\r\n');
const existing = fs.readFileSync(filePath, 'utf8');
if (existing === content)
return;