Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 788 Bytes

upgrade.md

File metadata and controls

39 lines (26 loc) · 788 Bytes

Update Angular

pnpm nx migrate latest
pnpm install --no-frozen-lockfile
pnpm exec nx migrate --run-migrations
rm migrations.json

Update other libraries

Install ncu.

Run ncu and check if the upgrade is ok, then run ncu -u.

If you need to exclude a specific package add -x, ncu -x rxjs typescript.

Don't update:

node-fetch - it will break scripts/

Check that everything works

[] pnpm start [] pnpm lint [] pnpm test [] pnpm build

Revert failed update

git reset --hard # Reset any changes
git clean -fd # Delete newly added files and directories

More info

Nx update guide Angular update guide