diff --git a/docs/repo-docs/crafting-your-repository/managing-dependencies.mdx b/docs/repo-docs/crafting-your-repository/managing-dependencies.mdx index 22e043bf8e438..cf621d4ee3c13 100644 --- a/docs/repo-docs/crafting-your-repository/managing-dependencies.mdx +++ b/docs/repo-docs/crafting-your-repository/managing-dependencies.mdx @@ -67,13 +67,26 @@ npm install jest --workspace=web --workspace=@repo/ui --save-dev +Yarn 1: ```bash title="Terminal" yarn workspace web add jest --dev yarn workspace @repo/ui add jest --dev ``` -yarn 1 documentation + + Yarn 1 documentation + + +Yarn 2+: + +```bash title="Terminal" +yarn workspaces foreach -R --from '{web,@repo/ui}' add jest --dev +``` + + + Yarn 2+ documentation +