From 974487dc2297b235ddd94043ccbe0210b532e175 Mon Sep 17 00:00:00 2001 From: Miorel-Lucian Palii Date: Sat, 28 Dec 2024 12:21:29 -0800 Subject: [PATCH] Small typo in `yarn workspaces foreach`: include -> exclude (#6561) ## What's the problem this PR addresses? The log message when an `--exclude` is applied during `yarn workspaces foreach` seems inaccurate. It currently reports that we matched the _include_ but it should probably say that we matched the _exclude_. ## How did you fix it? Updated the log message! ## Checklist - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). - [x] I have set the packages that need to be released for my changes to be effective. - [x] I will check that all automated PR checks pass before the PR gets reviewed. --- .yarn/versions/83473dbf.yml | 23 +++++++++++++++++++ .../sources/commands/foreach.ts | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .yarn/versions/83473dbf.yml diff --git a/.yarn/versions/83473dbf.yml b/.yarn/versions/83473dbf.yml new file mode 100644 index 000000000000..90ec916dc491 --- /dev/null +++ b/.yarn/versions/83473dbf.yml @@ -0,0 +1,23 @@ +releases: + "@yarnpkg/cli": patch + "@yarnpkg/plugin-workspace-tools": patch + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/plugin-constraints" + - "@yarnpkg/plugin-dlx" + - "@yarnpkg/plugin-essentials" + - "@yarnpkg/plugin-init" + - "@yarnpkg/plugin-interactive-tools" + - "@yarnpkg/plugin-nm" + - "@yarnpkg/plugin-npm-cli" + - "@yarnpkg/plugin-pack" + - "@yarnpkg/plugin-patch" + - "@yarnpkg/plugin-pnp" + - "@yarnpkg/plugin-pnpm" + - "@yarnpkg/plugin-stage" + - "@yarnpkg/plugin-typescript" + - "@yarnpkg/plugin-version" + - "@yarnpkg/builder" + - "@yarnpkg/core" + - "@yarnpkg/doctor" diff --git a/packages/plugin-workspace-tools/sources/commands/foreach.ts b/packages/plugin-workspace-tools/sources/commands/foreach.ts index b63e9e54c518..9cbca98ba172 100644 --- a/packages/plugin-workspace-tools/sources/commands/foreach.ts +++ b/packages/plugin-workspace-tools/sources/commands/foreach.ts @@ -260,7 +260,7 @@ export default class WorkspacesForeachCommand extends BaseCommand { } if (this.exclude.length > 0 && (micromatch.isMatch(structUtils.stringifyIdent(workspace.anchoredLocator), this.exclude) || micromatch.isMatch(workspace.relativeCwd, this.exclude))) { - log(`Excluding ${workspace.relativeCwd} because it matches the --include filter`); + log(`Excluding ${workspace.relativeCwd} because it matches the --exclude filter`); continue; }