From 0fcaa0ab64556176218a9101bad6f3cc7deb8589 Mon Sep 17 00:00:00 2001 From: Oskar Olsson Date: Sun, 25 May 2025 21:52:03 +0200 Subject: [PATCH] docs(workspaces): Document --include use case --- .yarn/versions/a2ec75bc.yml | 2 ++ packages/plugin-workspace-tools/sources/commands/foreach.ts | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 .yarn/versions/a2ec75bc.yml diff --git a/.yarn/versions/a2ec75bc.yml b/.yarn/versions/a2ec75bc.yml new file mode 100644 index 000000000000..ed0563cdb270 --- /dev/null +++ b/.yarn/versions/a2ec75bc.yml @@ -0,0 +1,2 @@ +declined: + - "@yarnpkg/plugin-workspace-tools" diff --git a/packages/plugin-workspace-tools/sources/commands/foreach.ts b/packages/plugin-workspace-tools/sources/commands/foreach.ts index 946185c75357..1315769c436b 100644 --- a/packages/plugin-workspace-tools/sources/commands/foreach.ts +++ b/packages/plugin-workspace-tools/sources/commands/foreach.ts @@ -59,6 +59,10 @@ export default class WorkspacesForeachCommand extends BaseCommand { [ `Run the build script on several packages and all their dependencies, building dependencies first`, `yarn workspaces foreach -Rpt --from '{workspace-a,workspace-b}' run build`, + ], + [ + `Run the build script only on a specific set of packages`, + `yarn workspaces foreach -A --include '{workspace-a,workspace-b}' run build`, ]], });