Skip to content

Stop writing codegen files if it just changes new lines#15729

Merged
acoates-ms merged 5 commits intomicrosoft:mainfrom
acoates-ms:codegenannoy
Mar 6, 2026
Merged

Stop writing codegen files if it just changes new lines#15729
acoates-ms merged 5 commits intomicrosoft:mainfrom
acoates-ms:codegenannoy

Conversation

@acoates-ms
Copy link
Contributor

@acoates-ms acoates-ms commented Mar 5, 2026

Description

Codegen generates its output with \n for newlines. If a git repo is set to save the generated files using crlf, then the file will be saved using \r\n for new lines. This will then cause codegen runs to modify the generated files, leading to annoying local changes.

Microsoft Reviewers: Open in CodeFlow

@acoates-ms acoates-ms requested a review from a team as a code owner March 5, 2026 20:02
@acoates-ms acoates-ms merged commit 468ce2d into microsoft:main Mar 6, 2026
31 checks passed
@acoates-ms acoates-ms deleted the codegenannoy branch March 6, 2026 03:44
acoates-ms added a commit to acoates-ms/react-native-windows that referenced this pull request Mar 6, 2026
)

* Stop writing codegen files if it just changes new lines

* Change files

* format

* fix

* format
acoates-ms added a commit that referenced this pull request Mar 6, 2026
* Bump TypeScript target to ES2021 (#15727)

* Bump TS target

* Change files

* Stop writing codegen files if it just changes new lines (#15729)

* Stop writing codegen files if it just changes new lines

* Change files

* format

* fix

* format

* fix change files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants