Skip to content

Commit 0fcaa0a

Browse files
committed
docs(workspaces): Document --include use case
1 parent 666aa3a commit 0fcaa0a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.yarn/versions/a2ec75bc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
declined:
2+
- "@yarnpkg/plugin-workspace-tools"

packages/plugin-workspace-tools/sources/commands/foreach.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ export default class WorkspacesForeachCommand extends BaseCommand {
5959
[
6060
`Run the build script on several packages and all their dependencies, building dependencies first`,
6161
`yarn workspaces foreach -Rpt --from '{workspace-a,workspace-b}' run build`,
62+
],
63+
[
64+
`Run the build script only on a specific set of packages`,
65+
`yarn workspaces foreach -A --include '{workspace-a,workspace-b}' run build`,
6266
]],
6367
});
6468

0 commit comments

Comments
 (0)