mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
Use correct line endings in built typesMap.json (#59687)
This commit is contained in:
@@ -607,7 +607,7 @@ export const generateTypesMap = task({
|
||||
const target = "built/local/typesMap.json";
|
||||
const contents = await fs.promises.readFile(source, "utf-8");
|
||||
JSON.parse(contents); // Validates that the JSON parses.
|
||||
await fs.promises.writeFile(target, contents);
|
||||
await fs.promises.writeFile(target, contents.replace(/\r\n/g, "\n"));
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user