@varlock/bumpy 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -91,6 +91,10 @@ async function ciCheckCommand(rootDir, opts) {
91
91
  if (shouldComment && prNumber) await postOrUpdatePrComment(prNumber, formatEmptyBumpFileComment(emptyBumpFileIds, prNumber, detectPrBranch(rootDir)), rootDir);
92
92
  return;
93
93
  }
94
+ if ((await findChangedPackages(changedFiles, packages, rootDir, config)).length === 0 && parseErrors.length === 0) {
95
+ log.info("No managed packages have changed — no bump files needed.");
96
+ return;
97
+ }
94
98
  const willFail = !opts.noFail || parseErrors.length > 0;
95
99
  const msg = parseErrors.length > 0 ? "Bump file(s) found but failed to parse — see errors above." : "No bump files found in this PR.";
96
100
  if (willFail) log.error(msg);
@@ -112,6 +116,7 @@ async function ciCheckCommand(rootDir, opts) {
112
116
  if (shouldComment && prNumber) await postOrUpdatePrComment(prNumber, formatReleasePlanComment(plan, prBumpFiles, prNumber, detectPrBranch(rootDir), pm, plan.warnings, parseErrors, emptyBumpFileIds), rootDir);
113
117
  if (parseErrors.length > 0 && !opts.noFail) process.exit(1);
114
118
  const coveredPackages = new Set(plan.releases.map((r) => r.name));
119
+ for (const bf of prBumpFiles) for (const release of bf.releases) coveredPackages.add(release.name);
115
120
  const missing = (await findChangedPackages(changedFiles, packages, rootDir, config)).filter((name) => !coveredPackages.has(name));
116
121
  if (missing.length > 0) {
117
122
  const willFail = opts.strict && !opts.noFail;
package/dist/cli.mjs CHANGED
@@ -89,14 +89,14 @@ async function main() {
89
89
  const subcommand = args[1];
90
90
  const ciFlags = parseFlags(args.slice(2));
91
91
  if (subcommand === "check") {
92
- const { ciCheckCommand } = await import("./ci-CnIkaf7Q.mjs");
92
+ const { ciCheckCommand } = await import("./ci-CoRda96e.mjs");
93
93
  await ciCheckCommand(rootDir, {
94
94
  comment: ciFlags.comment !== void 0 ? ciFlags.comment === true : void 0,
95
95
  strict: ciFlags.strict === true,
96
96
  noFail: ciFlags["no-fail"] === true
97
97
  });
98
98
  } else if (subcommand === "release") {
99
- const { ciReleaseCommand } = await import("./ci-CnIkaf7Q.mjs");
99
+ const { ciReleaseCommand } = await import("./ci-CoRda96e.mjs");
100
100
  await ciReleaseCommand(rootDir, {
101
101
  mode: ciFlags["auto-publish"] === true ? "auto-publish" : "version-pr",
102
102
  tag: ciFlags.tag,
@@ -137,7 +137,7 @@ async function main() {
137
137
  }
138
138
  case "--version":
139
139
  case "-v":
140
- console.log(`bumpy 1.4.0`);
140
+ console.log(`bumpy 1.4.1`);
141
141
  break;
142
142
  case "help":
143
143
  case "--help":
@@ -157,7 +157,7 @@ async function main() {
157
157
  }
158
158
  function printHelp() {
159
159
  console.log(`
160
- ${colorize(`🐸 bumpy v1.4.0`, "bold")} - Modern monorepo versioning
160
+ ${colorize(`🐸 bumpy v1.4.1`, "bold")} - Modern monorepo versioning
161
161
 
162
162
  Usage: bumpy <command> [options]
163
163
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlock/bumpy",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Modern monorepo versioning and changelog tool",
5
5
  "keywords": [
6
6
  "bump",