File tree 3 files changed +5
-10
lines changed
packages/angular/cli/commands
tests/legacy-cli/e2e/tests 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ const pickManifest = require('npm-pick-manifest') as (
43
43
44
44
const oldConfigFileNames = [ '.angular-cli.json' , 'angular-cli.json' ] ;
45
45
46
-
47
46
/**
48
47
* Disable CLI version mismatch checks and forces usage of the invoked CLI
49
48
* instead of invoking the local installed version.
@@ -494,8 +493,9 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {
494
493
}
495
494
}
496
495
496
+ let result : boolean ;
497
497
if ( typeof options . migrateOnly == 'string' ) {
498
- await this . executeMigration (
498
+ result = await this . executeMigration (
499
499
packageName ,
500
500
migrations ,
501
501
options . migrateOnly ,
@@ -512,15 +512,15 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {
512
512
const migrationRange = new semver . Range (
513
513
'>' + from + ' <=' + ( options . to || packageNode . version ) ,
514
514
) ;
515
- await this . executeMigrations (
515
+ result = await this . executeMigrations (
516
516
packageName ,
517
517
migrations ,
518
518
migrationRange ,
519
519
options . createCommits ,
520
520
) ;
521
521
}
522
522
523
- return 1 ;
523
+ return result ? 0 : 1 ;
524
524
}
525
525
526
526
const requests : {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export default async function () {
28
28
29
29
await installWorkspacePackages ( ) ;
30
30
} else {
31
- await installPackage ( '@angular/material-moment-adapter' ) ;
31
+ await installPackage ( '@angular/material-moment-adapter@11 ' ) ;
32
32
}
33
33
34
34
await installPackage ( 'moment' ) ;
Original file line number Diff line number Diff line change @@ -18,11 +18,6 @@ export default async function () {
18
18
throw new Error ( 'Installation was not skipped' ) ;
19
19
}
20
20
21
- const output2 = await ng ( 'add' , '@angular/localize@latest' ) ;
22
- if ( output2 . stdout . includes ( 'Skipping installation: Package already installed' ) ) {
23
- throw new Error ( 'Installation should not have been skipped' ) ;
24
- }
25
-
26
21
const output3 = await ng ( 'add' , '@angular/[email protected] ' ) ;
27
22
if ( output3 . stdout . includes ( 'Skipping installation: Package already installed' ) ) {
28
23
throw new Error ( 'Installation should not have been skipped' ) ;
You can’t perform that action at this time.
0 commit comments