Skip to content

Commit 2c9f958

Browse files
committed
Ouput TS(X) files as LF
1 parent 7ae6a8e commit 2c9f958

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

package/Codegen/.gitattributes

Lines changed: 0 additions & 4 deletions
This file was deleted.

package/Codegen/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,9 @@ private void DumpTypes(Version version)
387387

388388
changes |= UpdateFile(Path.Join(generatedDirPath, "Version.g.h"), versionGen);
389389

390-
changes |= UpdateFile(Path.Join(packageSrcPath, "Enums.ts"), tsEnumsGen);
391-
changes |= UpdateFile(Path.Join(packageSrcPath, "Props.ts"), propsGen);
392-
changes |= UpdateFile(Path.Join(packageSrcPath, "Types.tsx"), typesGen);
390+
changes |= UpdateFile(Path.Join(packageSrcPath, "Enums.ts"), tsEnumsGen.Replace("\r\n", "\n"));
391+
changes |= UpdateFile(Path.Join(packageSrcPath, "Props.ts"), propsGen.Replace("\r\n", "\n"));
392+
changes |= UpdateFile(Path.Join(packageSrcPath, "Types.tsx"), typesGen.Replace("\r\n", "\n"));
393393

394394
if (!changes)
395395
{

0 commit comments

Comments
 (0)