8000 fix(angular): prevent updating unchanged projects when syncing change… · nrwl/nx@f7367ff · GitHub
[go: up one dir, main page]

Skip to content

Commit f7367ff

Browse files
authored
fix(angular): prevent updating unchanged projects when syncing changes to the wrapped tree (#15503)
1 parent 79f5fc3 commit f7367ff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/nx/src/adapter/ngcli-adapter.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,12 @@ function saveProjectsConfigurationsInWrappedSchematic(
872872
newAngularJson.projects[projectName] = projects[projectName];
873873
} else {
874874
if (existingProjects.has(projectName)) {
875-
updateProjectConfiguration(host, projectName, projects[projectName]);
875+
if (
876+
JSON.stringify(existingProjects.get(projectName)) !==
877+
JSON.stringify(projects[projectName])
878+
) {
879+
updateProjectConfiguration(host, projectName, projects[projectName]);
880+
}
876881
} else {
877882
addProjectConfiguration(host, projectName, projects[projectName]);
878883
}

0 commit comments

Comments
 (0)
0