Skip to content

detect and warn if angular is updated outside of ng update #21498

@blathersbugs

Description

@blathersbugs

🚀 Feature request

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Description

A clear and concise description of the problem or missing capability...

currently if someone updates angular using the package manager, migrations are not run

Describe the solution you'd like

detect if angular is updated outside of ng update and warn the user

If you have a solution in mind, please describe it.

a possible solution might be to add a field in angular.json that specifies the latest migrations that have been run (defaulting to the initially installed version), when a command like build is run, the cli can compare that to the installed version of angular and warn the user if migrations need to be run

Describe alternatives you've considered

Have you considered any alternative solutions or workarounds?

Obviously googling the error message or reading the docs before upgrading is the solution, but if this is easy enough to implement, it might be worth doing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions