Skip to content

Update CLI and template packages

Viktor Aladzhov edited this page Jul 11, 2023 · 18 revisions

update yarn

  1. Follow step-by-step guide to upgrade Yarn to Yarn Berry (Yarn 2).
  2. Add yargs with the yarn add yargs command.
  3. Update lerna: yarn up lerna
  4. Update lerna-changelog: yarn up lerna-changelog
  5. Update yargs: lerna exec -- yarn up yargs

update CLI packages with yarn

yarn upgrade

Note: some CLI packages are also used in the templates and can be updated accordingly.

update templates

  • on a generated project with all the components run an automatic migration tool, like ng cli, and update template files
  • compare the latest project from a framework with existing templates in the CLI (with WinMerge) and update template files

update angular templates

  • compare ng new with ig new
  • ng update for project with all components and then move changes to templates

Notes: typescript update for CLI and all framework templates

Clone this wiki locally