File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/angular/cli/commands Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -525,6 +525,8 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {
525525 if ( success ) {
526526 if (
527527 packageName === '@angular/core'
528+ && options . from
529+ && + options . from . split ( '.' ) [ 0 ] < 9
528530 && ( options . to || packageNode . package . version ) . split ( '.' ) [ 0 ] === '9'
529531 ) {
530532 this . logger . info ( NG_VERSION_9_POST_MSG ) ;
@@ -675,7 +677,7 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {
675677 }
676678 }
677679
678- if ( migrations . some ( m => m . package === '@angular/core' && m . to . split ( '.' ) [ 0 ] === '9' ) ) {
680+ if ( migrations . some ( m => m . package === '@angular/core' && m . to . split ( '.' ) [ 0 ] === '9' && + m . from . split ( '.' ) [ 0 ] < 9 ) ) {
679681 this . logger . info ( NG_VERSION_9_POST_MSG ) ;
680682 }
681683 }
You can’t perform that action at this time.
0 commit comments