Skip to content

Commit bff6aa1

Browse files
authored
Use correct line endings in built typesMap.json (#59687)
1 parent 1e7889c commit bff6aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Herebyfile.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ export const generateTypesMap = task({
607607
const target = "built/local/typesMap.json";
608608
const contents = await fs.promises.readFile(source, "utf-8");
609609
JSON.parse(contents); // Validates that the JSON parses.
610-
await fs.promises.writeFile(target, contents);
610+
await fs.promises.writeFile(target, contents.replace(/\r\n/g, "\n"));
611611
},
612612
});
613613

0 commit comments

Comments
 (0)