File tree 1 file changed +21
-1
lines changed
packages/angular/cli/commands
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,11 @@ const pickManifest = require('npm-pick-manifest') as (
37
37
38
38
const oldConfigFileNames = [ '.angular-cli.json' , 'angular-cli.json' ] ;
39
39
40
+ const NG_VERSION_9_POST_MSG = colors . cyan (
41
+ '\nYour project has been updated to Angular version 9!\n' +
42
+ 'For more info, please see: https://v9.angular.io/guide/updating-to-version-9' ,
43
+ ) ;
44
+
40
45
export class UpdateCommand extends Command < UpdateCommandSchema > {
41
46
public readonly allowMissingWorkspace = true ;
42
47
@@ -428,7 +433,18 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {
428
433
options . createCommits ,
429
434
) ;
430
435
431
- return success ? 0 : 1 ;
436
+ if ( success ) {
437
+ if (
438
+ packageName === '@angular/core'
439
+ && ( options . to || packageNode . package . version ) . split ( '.' ) [ 0 ] === '9'
440
+ ) {
441
+ this . logger . info ( NG_VERSION_9_POST_MSG ) ;
442
+ }
443
+
444
+ return 0 ;
445
+ }
446
+
447
+ return 1 ;
432
448
}
433
449
434
450
const requests : {
@@ -565,6 +581,10 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {
565
581
return 0 ;
566
582
}
567
583
}
584
+
585
+ if ( migrations . some ( m => m . package === '@angular/core' && m . to . split ( '.' ) [ 0 ] === '9' ) ) {
586
+ this . logger . info ( NG_VERSION_9_POST_MSG ) ;
587
+ }
568
588
}
569
589
570
590
return success ? 0 : 1 ;
You can’t perform that action at this time.
0 commit comments