From 4181e8a2cc936bc7b7a89d674bf261023159ed35 Mon Sep 17 00:00:00 2001 From: Dmndz <46868530+d14mndz@users.noreply.github.com> Date: Mon, 9 Jan 2023 21:51:50 +0100 Subject: [PATCH] feat(yarn): add alias for `yarn why` (#10773) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(yarn): add `yarn why` * docs(yarn): update readme Co-authored-by: Basia Józefowska Co-authored-by: Robby Russell --- plugins/yarn/README.md | 1 + plugins/yarn/yarn.plugin.zsh | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/yarn/README.md b/plugins/yarn/README.md index 270bf6b7f..5c7c7f323 100644 --- a/plugins/yarn/README.md +++ b/plugins/yarn/README.md @@ -55,3 +55,4 @@ zstyle ':omz:plugins:yarn' global-path no | yv | `yarn version` | Update the version of your package | | yw | `yarn workspace` | Run a command within a single workspace. | | yws | `yarn workspaces` | Run a command within all defined workspaces. | +| yy | `yarn why` | Show why a package has been installed, detailing which other packages depend on it | diff --git a/plugins/yarn/yarn.plugin.zsh b/plugins/yarn/yarn.plugin.zsh index 7ba710df7..157044d71 100644 --- a/plugins/yarn/yarn.plugin.zsh +++ b/plugins/yarn/yarn.plugin.zsh @@ -43,3 +43,4 @@ alias yup="yarn upgrade" alias yv="yarn version" alias yw="yarn workspace" alias yws="yarn workspaces" +alias yy="yarn why"