From cfe3c9d41fe9afa2fa23e0805d2cffccc3c257fa Mon Sep 17 00:00:00 2001 From: Tyler Butler Date: Mon, 24 Oct 2022 17:36:23 -0700 Subject: [PATCH] fix(build-cli): Exclude independent packages when bumping release groups (#12652) When bumping deps scoped to a single release group, the `bump deps` tool was including independent packages. This change corrects that behavior so that only the release group specified will be updated. BREAKING CHANGE: The `-p` flag has been changed to specify a package name, which is consistent with other commands. Use `--prerelease` to replace former uses of `-p`. --- build-tools/packages/build-cli/docs/bump.md | 10 +++-- .../build-cli/src/commands/bump/deps.ts | 28 +++++++----- .../packages/build-cli/src/lib/package.ts | 43 ++++++++----------- 3 files changed, 41 insertions(+), 40 deletions(-) diff --git a/build-tools/packages/build-cli/docs/bump.md b/build-tools/packages/build-cli/docs/bump.md index 5c83ba9adad7..f1caed84e4bb 100644 --- a/build-tools/packages/build-cli/docs/bump.md +++ b/build-tools/packages/build-cli/docs/bump.md @@ -58,8 +58,9 @@ Update the dependency version of a specified package or release group. That is, ``` USAGE - $ flub bump deps [PACKAGE_OR_RELEASE_GROUP] [-p -t latest|newest|greatest|minor|patch|@next|@canary] - [--onlyBumpPrerelease] [-g client|server|azure|build-tools] [-x | --install | --commit | | | ] [-v] + $ flub bump deps [PACKAGE_OR_RELEASE_GROUP] [--prerelease -t + latest|newest|greatest|minor|patch|@next|@canary] [--onlyBumpPrerelease] [-g client|server|azure|build-tools | -p + ] [-x | --install | --commit | | | ] [-v] ARGUMENTS PACKAGE_OR_RELEASE_GROUP The name of a package or a release group. @@ -67,14 +68,15 @@ ARGUMENTS FLAGS -g, --releaseGroup=