What is this?
July 9, 2026 · View on GitHub
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.
Table of Contents ᐞ
Quick steps ᐞ
There are a few quick steps below on what you need to do to update the application package dependencies.
-
Get
bashto the container withmake bashcommand -
Use
ng updateto 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 updatecommand to use interactive Yarn 4 update command to update all the packages. - Use
ncuto list remaining packages that can be updated. Then you can- Change the versions to
package.jsonfile and restart the application container - this will triggeryarnto install new versions of those packages and also updatesyarn.lockfile properly. - Or just use
ncu -uto automatically update all of those packages and restart the application container.
- Change the versions to
- Run command
yarn up <package>@<version>which will update bothpackage.jsonandyarn.lock. After doing this for all needed packages, restart the application container.
- Use
-
Re-run install with lockfile validation:
yarn install --immutable -
Test that the application works.
-
Profit ¯\_(ツ)_/¯
Yarn 4 notes ᐞ
This repository is pinned to Yarn 4 via packageManager in package.json
and the project-managed release under .yarn/releases/.
When working in Docker (make bash) or Dev Containers, run yarn commands
from the project root so the pinned Yarn version is used.
Update Yarn itself ᐞ
Use these steps when you want to update Yarn to the latest stable version for this repository.
-
Open shell inside the running container:
make bash -
Update Yarn release used by this project:
yarn set version stable yarn --version -
Refresh lockfile/install metadata and validate:
yarn install --immutable -
Commit changed Yarn files (typically
package.json,.yarnrc.yml,.yarn/releases/*, and sometimesyarn.lock).
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.
Use one of the following commands depending on your goal:
yarn up -i # interactive updates
yarn up <package> # update one package
yarn up # update according to semver ranges
yarn install --immutable