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)
  • Loading branch information
leosvelperez committed Mar 8, 2023
1 parent 79f5fc3 commit f7367ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/nx/src/adapter/ngcli-adapter.ts
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

1 comment on commit f7367ff

@vercel
Copy link

@vercel vercel bot commented on f7367ff Mar 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-five.vercel.app
nx-dev-nrwl.vercel.app
nx.dev
nx-dev-git-master-nrwl.vercel.app

Please sign in to comment.