Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(@schematics/angular): only overwrite JSON file if actually changed #30416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2025

Conversation

clydin
Copy link
Member

@clydin clydin commented May 29, 2025

The JSON file helper utility used within the Angular schematics now contains additional checks when attempting to modify a file to avoid overwriting a file if no actual changes will occur after a modify request.

@clydin clydin added the target: patch This PR is targeted for the next patch release label May 29, 2025
@clydin clydin marked this pull request as ready for review May 29, 2025 16:53
The JSON file helper utility used within the Angular schematics now
contains additional checks when attempting to modify a file to avoid
overwriting a file if no actual changes will occur after a modify request.
@clydin clydin force-pushed the schematics/json-file-changes branch from ffb830e to 5b8350e Compare May 29, 2025 17:15
@clydin clydin added the action: merge The PR is ready for merge by the caretaker label May 29, 2025
@clydin clydin merged commit 664e6c7 into angular:main May 29, 2025
31 checks passed
@clydin
Copy link
Member Author

clydin commented May 29, 2025

The changes were merged into the following branches: main, 20.0.x

@clydin clydin deleted the schematics/json-file-changes branch May 29, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: @schematics/angular target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants