yarn: add alias for upgrade-interactive to the latest version (#8764)
Diff
1diff --git a/plugins/yarn/README.md b/plugins/yarn/README.md
2index 05f18a4993c0881b62615a6d8557e40249fb0e25..fd748b7428fbd2534eaa3092d80acb65ea5a24e1 100644
3--- a/plugins/yarn/README.md
4+++ b/plugins/yarn/README.md
5@@ -11,35 +11,36 @@ plugins=(... yarn)
6 7 ## Aliases
8 9-| Alias | Command | Description |
10-|-------|-------------------------------------------|-------------------------------------------------------------|
11-| y | `yarn` | The Yarn command |
12-| ya | `yarn add` | Install a package in dependencies (`package.json`) |
13-| yad | `yarn add --dev` | Install a package in devDependencies (`package.json`) |
14-| yap | `yarn add --peer` | Install a package in peerDependencies (`package.json`) |
15-| yb | `yarn build` | Run the build script defined in `package.json` |
16-| ycc | `yarn cache clean` | Clean yarn's global cache of packages |
17-| yd | `yarn dev` | Run the dev script defined in `package.json` |
18-| yga | `yarn global add` | Install packages globally on your operating system |
19-| ygls | `yarn global list` | Lists global installed packages |
20-| ygrm | `yarn global remove` | Remove global installed packages from your OS |
21-| ygu | `yarn global upgrade` | Upgrade packages installed globally to their latest version |
22-| yh | `yarn help` | Show help for a yarn command |
23-| yi | `yarn init` | Interactively creates or updates a package.json file |
24-| yin | `yarn install` | Install dependencies defined in `package.json` |
25-| yln | `yarn lint` | Run the lint script defined in `package.json` |
26-| yls | `yarn list` | List installed packages |
27-| yout | `yarn outdated` | Check for outdated package dependencies |
28-| yp | `yarn pack` | Create a compressed gzip archive of package dependencies |
29-| yrm | `yarn remove` | Remove installed packages |
30-| yrun | `yarn run` | Run a defined package script |
31-| ys | `yarn serve` | Start the dev server |
32-| yst | `yarn start` | Run the start script defined in `package.json` |
33-| yt | `yarn test` | Run the test script defined in `package.json` |
34-| ytc | `yarn test --coverage` | Run the test script defined in `package.json` with coverage |
35-| yuc | `yarn global upgrade && yarn cache clean` | Upgrade global packages and clean yarn's global cache |
36-| yui | `yarn upgrade-interactive` | Prompt for which outdated packages to upgrade |
37-| yup | `yarn upgrade` | Upgrade packages to their latest version |
38-| yv | `yarn version` | Update the version of your package |
39-| yw | `yarn workspace` | Run a command within a single workspace. |
40-| yws | `yarn workspaces` | Run a command within all defined workspaces. |
41+| Alias | Command | Description |
42+| ----- | ----------------------------------------- | ----------------------------------------------------------------------------- |
43+| y | `yarn` | The Yarn command |
44+| ya | `yarn add` | Install a package in dependencies (`package.json`) |
45+| yad | `yarn add --dev` | Install a package in devDependencies (`package.json`) |
46+| yap | `yarn add --peer` | Install a package in peerDependencies (`package.json`) |
47+| yb | `yarn build` | Run the build script defined in `package.json` |
48+| ycc | `yarn cache clean` | Clean yarn's global cache of packages |
49+| yd | `yarn dev` | Run the dev script defined in `package.json` |
50+| yga | `yarn global add` | Install packages globally on your operating system |
51+| ygls | `yarn global list` | Lists global installed packages |
52+| ygrm | `yarn global remove` | Remove global installed packages from your OS |
53+| ygu | `yarn global upgrade` | Upgrade packages installed globally to their latest version |
54+| yh | `yarn help` | Show help for a yarn command |
55+| yi | `yarn init` | Interactively creates or updates a package.json file |
56+| yin | `yarn install` | Install dependencies defined in `package.json` |
57+| yln | `yarn lint` | Run the lint script defined in `package.json` |
58+| yls | `yarn list` | List installed packages |
59+| yout | `yarn outdated` | Check for outdated package dependencies |
60+| yp | `yarn pack` | Create a compressed gzip archive of package dependencies |
61+| yrm | `yarn remove` | Remove installed packages |
62+| yrun | `yarn run` | Run a defined package script |
63+| ys | `yarn serve` | Start the dev server |
64+| yst | `yarn start` | Run the start script defined in `package.json` |
65+| yt | `yarn test` | Run the test script defined in `package.json` |
66+| ytc | `yarn test --coverage` | Run the test script defined in `package.json` with coverage |
67+| yuc | `yarn global upgrade && yarn cache clean` | Upgrade global packages and clean yarn's global cache |
68+| yui | `yarn upgrade-interactive` | Prompt for which outdated packages to upgrade |
69+| yuil | `yarn upgrade-interactive --latest` | Prompt for which outdated packages to upgrade to the latest available version |
70+| yup | `yarn upgrade` | Upgrade packages to their latest version |
71+| yv | `yarn version` | Update the version of your package |
72+| yw | `yarn workspace` | Run a command within a single workspace. |
73+| yws | `yarn workspaces` | Run a command within all defined workspaces. |
74diff --git a/plugins/yarn/yarn.plugin.zsh b/plugins/yarn/yarn.plugin.zsh
75index 9cfcb75390a7835a30b8101789098f6d0038bc11..4a5192c61b5bc4bea7e697e0b5f7def339539a04 100644
76--- a/plugins/yarn/yarn.plugin.zsh
77+++ b/plugins/yarn/yarn.plugin.zsh
78@@ -24,6 +24,7 @@ alias yt="yarn test"
79 alias ytc="yarn test --coverage"
80 alias yuc="yarn global upgrade && yarn cache clean"
81 alias yui="yarn upgrade-interactive"
82+alias yuil="yarn upgrade-interactive --latest"
83 alias yup="yarn upgrade"
84 alias yv="yarn version"
85 alias yw="yarn workspace"