Skip to content

Command: vue upgrade #1507

Closed
Closed
@yyx990803

Description

@yyx990803

Command that should be run inside an existing project with @vue/cli-service present.

  • Resolve the version to upgrade to.
    • vue upgrade [patch|minor|major]: defaults to minor
  • If already latest, print message and exit
  • Otherwise, confirm via prompt
  • Find @vue/cli-service plus all packages in package.json that starts with @vue/cli-plugin-, and bump them to the target upgrade version
  • Run installDeps - infer package manager from lockfile, if no lockfile, infer from .vuerc, otherwise infer using hasYarn()
  • Print changelog of upgraded versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions