From bff6aa1d1f4c44300ef40911117e0d27ab417e5d Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Mon, 19 Aug 2024 13:25:54 -0700 Subject: [PATCH] Use correct line endings in built typesMap.json (#59687) --- Herebyfile.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Herebyfile.mjs b/Herebyfile.mjs index 7939e5eafbd..2fb6b02a33f 100644 --- a/Herebyfile.mjs +++ b/Herebyfile.mjs @@ -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")); }, });