From 22e00b02efe63d3ee19a55dadbdea0bea1785942 Mon Sep 17 00:00:00 2001 From: Caleb Williams Date: Wed, 2 Jan 2019 14:12:13 -0600 Subject: [PATCH 1/2] Add Yarn Workspace command aliases --- plugins/yarn/yarn.plugin.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/yarn/yarn.plugin.zsh b/plugins/yarn/yarn.plugin.zsh index 9ed8322cd..7bdfdb48a 100644 --- a/plugins/yarn/yarn.plugin.zsh +++ b/plugins/yarn/yarn.plugin.zsh @@ -22,3 +22,5 @@ alias yt="yarn test" alias yuc="yarn global upgrade && yarn cache clean" alias yui="yarn upgrade-interactive" alias yup="yarn upgrade" +alias yw="yarn workspace" +alias yws="yarn workspaces" From b8cfa0c77a68cb64c113b1f4a05b0d67d1bd7448 Mon Sep 17 00:00:00 2001 From: Caleb Williams Date: Tue, 1 Oct 2019 14:11:59 -0500 Subject: [PATCH 2/2] Update README: include Yarn workspace shortcuts --- plugins/yarn/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/yarn/README.md b/plugins/yarn/README.md index 671a272d9..e426053de 100644 --- a/plugins/yarn/README.md +++ b/plugins/yarn/README.md @@ -37,3 +37,5 @@ plugins=(... yarn) | yuc | `yarn global upgrade && yarn cache clean` | Upgrade global packages and clean yarn's global cache | | yui | `yarn upgrade-interactive` | Prompt for which outdated packages to upgrade | | yup | `yarn upgrade` | Upgrade packages to their latest version | +| yw | `yarn workspace` | Run a command within a single workspace. | +| yws | `yarn workspaces` | Run a command within all defined workspaces. |