Merge pull request #654 from bondz/patch-1

Add --latest flag for yarn upgrade-interactive
This commit is contained in:
nicoulaj 2019-10-08 18:53:55 +02:00 committed by GitHub
commit bbc8bada78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -71,7 +71,7 @@ _global_commands=(
'bin:Displays the location of the yarn bin folder' 'bin:Displays the location of the yarn bin folder'
'remove:Remove installed package from dependencies updating package.json' 'remove:Remove installed package from dependencies updating package.json'
'upgrade:Upgrades packages to their latest version based on the specified range' 'upgrade:Upgrades packages to their latest version based on the specified range'
'upgrade-interactive' 'upgrade-interactive:Interactively upgrade packages'
) )
_yarn_commands_scripts() { _yarn_commands_scripts() {
@ -256,6 +256,11 @@ _yarn() {
'*:: :->team_args' '*:: :->team_args'
;; ;;
upgrade-interactive)
_arguments \
'--latest:use the version tagged latest in the registry:'
;;
version) version)
_arguments \ _arguments \
'--new-version:version:' \ '--new-version:version:' \