Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upng update @angular/cli also updates angular core #37741
Comments
|
@markgoho, that's a good point. Maybe someone from the dev-rel team knows why? //cc @mgechev & @StephenFluin. Moving it to Angular/Angular since it's more of a documentation issue. |
|
As of v9 (angular/angular-cli@be21077#diff-078217c29c514afed6a8d9ef7a0ebd74R89) the cli has an indirect peer dep (via @angular-devkit/build-angular) on @angular/compiler-cli which depends on @angular/core. Because of this change, we no longer need to specify both @angular/core and @angular/cli in the |
|
@IgorMinar, should we update the docs and update guide? |
|
Does I haven't tested it but it might work. If it does then it would be better to document that so that it's clear that you are updating the core and its dependencies and not just the CLI. |
No, because |
Upgrade instructions read:
ng update @angular/cli @angular/corebut it would appear that the@angular/corepart is redundant and is updated along with the cli. This can lead to confusion. Are we intentionally asking users to enter commands that aren't needed?