-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@angular/cli): ensure update migrations are fully executed
With the move to refactor and centralize the update logic, the schematics wrapper context needs to be updated to create an exception for the new location of the update schematic.
- Loading branch information
1 parent
f6e1fd8
commit e84fa72
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,10 @@ export default async function () { | |
|
||
// Update Angular to 9 | ||
await installPackage('@angular/cli@8'); | ||
await ng('update', '@angular/[email protected]', '@angular/[email protected]'); | ||
const { stdout } = await ng('update', '@angular/[email protected]', '@angular/[email protected]'); | ||
if (!stdout.includes('Executing migrations of package \'@angular/cli\'')) { | ||
throw new Error('Update did not execute migrations. OUTPUT: \n' + stdout); | ||
} | ||
|
||
// Update Angular to 10 | ||
await ng('update', '@angular/cli@10', '@angular/core@10'); | ||
|