Angular 8 to 9 Package Upgrade
☰ Table of Content
In season of covid-19, maybe it is time for some upgrade.
Packages
I have 4 libraries need upgrading:
Manual Task
After following Angular Upgrade Guide, there are 4 files need update manually:
LICENSE
: Update year to 2020README.md
: Update change log and license year to 2020package.json
: Update version to 9.1.0projects/<library>/package.json
: Maybe I did something wrong, other than the version, I also have to manually update"@angular/common": "~9.1.0"
,"@angular/core": "~9.1.0"
, and"rxjs": "~6.5.5"
Script
Once I get the above figure out, I created a simple script to take care of the rest:
|
|
Conclusion
Except the first one took 30min to figure out everything needed. The remaining 3 took less then 5 minutes each. The migration to angular-cli during version 8 last year really pay off nicely.
John Siu
Update: 2020-08-19