Skip to content

Commit

Permalink
fix(angular): prevent updating unchanged projects when syncing change…
Browse files Browse the repository at this point in the history
…s to the wrapped tree (#15503)

(cherry picked from commit f7367ff)
  • Loading branch information
leosvelperez authored and FrozenPandaz committed Mar 8, 2023
1 parent 2460b33 commit d7ba8db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/nx/src/adapter/ngcli-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,12 @@ function saveProjectsConfigurationsInWrappedSchematic(
newAngularJson.projects[projectName] = projects[projectName];
} else {
if (existingProjects.has(projectName)) {
updateProjectConfiguration(host, projectName, projects[projectName]);
if (
JSON.stringify(existingProjects.get(projectName)) !==
JSON.stringify(projects[projectName])
) {
updateProjectConfiguration(host, projectName, projects[projectName]);
}
} else {
addProjectConfiguration(host, projectName, projects[projectName]);
}
Expand Down

0 comments on commit d7ba8db

Please sign in to comment.