This documentation contains information on how to update package dependencies within this application. The documentation relies on that you are using Docker Engine to run this application.
Quick steps ᐞ
There are a few quick steps below on what you need to do to update the application package dependencies.
- Get
bash
to the container withmake bash
command - Use
ng update
to check Angular core package updates and follow the instructions of this tool to update these packages - Update rest of the packages, with one of the following commands:
- Use
make update
command to use interactive yarn update command to update all the packages. - Use
ncu
to list remaining packages that can be updated. Then you can- Change the versions to
package.json
file and restart the application container - this will triggeryarn
to install new versions of those packages and also updatesyarn.lock
file properly. - Or just use
ncu -u
to automatically update all of those packages and restart the application container.
- Change the versions to
- Run command
yarn upgrade <package>@<version>
which will update bothpackage.json
andyarn.lock
. After doing this for all needed packages, restart the application container.
- Use
- Test that the application works.
- Profit ¯\_(ツ)_/¯
Major version update ᐞ
When there is a Major
version update (eg. 12.x.y to 13.0.0) within Angular we
need to check proper instructions from official Angular Update Guide.
Other updates ᐞ
From time to time it's a good idea to update library dependencies as well. You
can do that with following command - that will update yarn.lock
file.
yarn upgrade