@varlock/bumpy 1.10.1 → 1.10.2
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.
- package/config-schema.json +1 -1
- package/dist/{apply-release-plan-CmjqYo0t.mjs → apply-release-plan-DD2R7SL2.mjs} +1 -1
- package/dist/{changelog-A-EwWggW.mjs → changelog-CbaET5V6.mjs} +7 -8
- package/dist/{changelog-github-CPVrJHyB.mjs → changelog-github-DXDnWkrB.mjs} +5 -6
- package/dist/{ci-fXCBOIqu.mjs → ci-B4vNuXEb.mjs} +6 -6
- package/dist/cli.mjs +7 -7
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{publish-BHHWtI1W.mjs → publish-B9xzQREV.mjs} +2 -2
- package/dist/{version-88KuPbWa.mjs → version-Bxin6aQC.mjs} +1 -1
- package/package.json +1 -1
package/config-schema.json
CHANGED
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"publishArgs": {
|
|
144
144
|
"type": "array",
|
|
145
145
|
"items": { "type": "string" },
|
|
146
|
-
"description": "Extra args appended to the publish command (e.g., \"--
|
|
146
|
+
"description": "Extra args appended to the publish command (e.g., \"--tag next\")",
|
|
147
147
|
"default": []
|
|
148
148
|
},
|
|
149
149
|
"protocolResolution": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as readJson, c as removeFile, f as writeText, i as listFiles, l as updateJsonFields, n as exists, s as readText, u as updateJsonNestedField } from "./fs-CBXKZhoU.mjs";
|
|
2
2
|
import { r as getBumpyDir } from "./config-D_4GYDJi.mjs";
|
|
3
|
-
import { a as prependToChangelog, i as loadFormatter, n as generateChangelogEntry } from "./changelog-
|
|
3
|
+
import { a as prependToChangelog, i as loadFormatter, n as generateChangelogEntry } from "./changelog-CbaET5V6.mjs";
|
|
4
4
|
import { resolve } from "node:path";
|
|
5
5
|
//#region src/core/apply-release-plan.ts
|
|
6
6
|
/** Apply the release plan: bump versions, update changelogs, delete bump files */
|
|
@@ -26,26 +26,25 @@ const defaultFormatter = (ctx) => {
|
|
|
26
26
|
for (const bf of sorted) {
|
|
27
27
|
if (!bf.summary) continue;
|
|
28
28
|
const type = getBumpTypeForPackage(bf, release.name);
|
|
29
|
-
const tag = type !== release.type ? `*(${type})* ` : "";
|
|
30
29
|
const summaryLines = bf.summary.split("\n");
|
|
31
|
-
lines.push(`- ${
|
|
30
|
+
lines.push(`- *(${type})* ${summaryLines[0]}`);
|
|
32
31
|
for (let i = 1; i < summaryLines.length; i++) if (summaryLines[i].trim()) lines.push(` ${summaryLines[i]}`);
|
|
33
32
|
}
|
|
34
33
|
const sourceList = release.bumpSources.length > 0 ? release.bumpSources.map((s) => `\`${s.name}\` v${s.newVersion}`).join(", ") : "";
|
|
35
34
|
if (release.isDependencyBump) {
|
|
36
35
|
const depBumpType = release.bumpSources.reduce((max, s) => maxBump(max, s.bumpType), void 0);
|
|
37
|
-
const
|
|
38
|
-
lines.push(`- ${
|
|
36
|
+
const depBumpTag = depBumpType ? `*(${depBumpType})* ` : "";
|
|
37
|
+
lines.push(`- ${depBumpTag}Updated dependency ${sourceList || "(internal)"}`);
|
|
39
38
|
}
|
|
40
|
-
if (release.isGroupBump) lines.push(sourceList ? `- Version bump from group with ${sourceList}` :
|
|
41
|
-
if (release.isCascadeBump && !release.isDependencyBump && !release.isGroupBump) lines.push(sourceList ? `- Version bump from ${sourceList}` :
|
|
39
|
+
if (release.isGroupBump) lines.push(sourceList ? `- *(${release.type})* Version bump from group with ${sourceList}` : `- *(${release.type})* Version bump from group`);
|
|
40
|
+
if (release.isCascadeBump && !release.isDependencyBump && !release.isGroupBump) lines.push(sourceList ? `- *(${release.type})* Version bump from ${sourceList}` : `- *(${release.type})* Version bump via cascade rule`);
|
|
42
41
|
lines.push("");
|
|
43
42
|
return lines.join("\n");
|
|
44
43
|
};
|
|
45
44
|
const BUILTIN_FORMATTERS = {
|
|
46
45
|
default: defaultFormatter,
|
|
47
46
|
github: async () => {
|
|
48
|
-
const { createGithubFormatter } = await import("./changelog-github-
|
|
47
|
+
const { createGithubFormatter } = await import("./changelog-github-DXDnWkrB.mjs");
|
|
49
48
|
return createGithubFormatter();
|
|
50
49
|
}
|
|
51
50
|
};
|
|
@@ -56,7 +55,7 @@ const BUILTIN_FORMATTERS = {
|
|
|
56
55
|
async function loadFormatter(changelog, rootDir) {
|
|
57
56
|
const [name, options] = Array.isArray(changelog) ? changelog : [changelog, {}];
|
|
58
57
|
if (name === "github") {
|
|
59
|
-
const { createGithubFormatter } = await import("./changelog-github-
|
|
58
|
+
const { createGithubFormatter } = await import("./changelog-github-DXDnWkrB.mjs");
|
|
60
59
|
return createGithubFormatter(options);
|
|
61
60
|
}
|
|
62
61
|
if (typeof name === "string" && BUILTIN_FORMATTERS[name]) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as maxBump } from "./types-Bkh-igOJ.mjs";
|
|
2
2
|
import { s as tryRunArgs } from "./shell-C8KgKnMQ.mjs";
|
|
3
|
-
import { o as sortBumpFilesByType, r as getBumpTypeForPackage } from "./changelog-
|
|
3
|
+
import { o as sortBumpFilesByType, r as getBumpTypeForPackage } from "./changelog-CbaET5V6.mjs";
|
|
4
4
|
//#region src/core/changelog-github.ts
|
|
5
5
|
/** Authors filtered from "Thanks" attribution by default (e.g. bots) */
|
|
6
6
|
/** Authors filtered from "Thanks" attribution by default (e.g. AI/automation bots) */
|
|
@@ -41,8 +41,7 @@ function createGithubFormatter(options = {}) {
|
|
|
41
41
|
const sorted = sortBumpFilesByType(bumpFiles.filter((bf) => release.bumpFiles.includes(bf.id)), release.name);
|
|
42
42
|
for (const bf of sorted) {
|
|
43
43
|
if (!bf.summary) continue;
|
|
44
|
-
const
|
|
45
|
-
const tag = type !== release.type ? ` *(${type})*` : "";
|
|
44
|
+
const tag = ` *(${getBumpTypeForPackage(bf, release.name)})*`;
|
|
46
45
|
const { cleanSummary, overrides } = extractSummaryMeta(bf.summary);
|
|
47
46
|
const gitInfo = resolveBumpFileInfo(bf.id, repoSlug, serverUrl, overrides);
|
|
48
47
|
const summaryLines = cleanSummary.split("\n");
|
|
@@ -60,11 +59,11 @@ function createGithubFormatter(options = {}) {
|
|
|
60
59
|
const sourceList = release.bumpSources.length > 0 ? release.bumpSources.map((s) => `\`${s.name}\` v${s.newVersion}`).join(", ") : "";
|
|
61
60
|
if (release.isDependencyBump) {
|
|
62
61
|
const depBumpType = release.bumpSources.reduce((max, s) => maxBump(max, s.bumpType), void 0);
|
|
63
|
-
const depTag = depBumpType
|
|
62
|
+
const depTag = depBumpType ? ` *(${depBumpType})*` : "";
|
|
64
63
|
lines.push(`-${depTag} Updated dependency ${sourceList || "(internal)"}`);
|
|
65
64
|
}
|
|
66
|
-
if (release.isGroupBump) lines.push(sourceList ? `- Version bump from group with ${sourceList}` :
|
|
67
|
-
if (release.isCascadeBump && !release.isDependencyBump && !release.isGroupBump) lines.push(sourceList ? `- Version bump from ${sourceList}` :
|
|
65
|
+
if (release.isGroupBump) lines.push(sourceList ? `- *(${release.type})* Version bump from group with ${sourceList}` : `- *(${release.type})* Version bump from group`);
|
|
66
|
+
if (release.isCascadeBump && !release.isDependencyBump && !release.isGroupBump) lines.push(sourceList ? `- *(${release.type})* Version bump from ${sourceList}` : `- *(${release.type})* Version bump via cascade rule`);
|
|
68
67
|
lines.push("");
|
|
69
68
|
return lines.join("\n");
|
|
70
69
|
};
|
|
@@ -157,7 +157,7 @@ async function ciPlanCommand(rootDir) {
|
|
|
157
157
|
packageNames: plan.releases.map((r) => r.name)
|
|
158
158
|
};
|
|
159
159
|
else {
|
|
160
|
-
const { findUnpublishedPackages } = await import("./publish-
|
|
160
|
+
const { findUnpublishedPackages } = await import("./publish-B9xzQREV.mjs");
|
|
161
161
|
const unpublished = await findUnpublishedPackages(packages, config);
|
|
162
162
|
if (unpublished.length > 0) output = {
|
|
163
163
|
mode: "publish",
|
|
@@ -228,7 +228,7 @@ async function ciReleaseCommand(rootDir, opts) {
|
|
|
228
228
|
if (bumpFiles.length === 0) {
|
|
229
229
|
log.info("No pending bump files — checking for unpublished packages...");
|
|
230
230
|
const recoveredBumpFiles = recoverDeletedBumpFiles(rootDir);
|
|
231
|
-
const { publishCommand } = await import("./publish-
|
|
231
|
+
const { publishCommand } = await import("./publish-B9xzQREV.mjs");
|
|
232
232
|
await publishCommand(rootDir, {
|
|
233
233
|
tag: opts.tag,
|
|
234
234
|
recoveredBumpFiles
|
|
@@ -239,7 +239,7 @@ async function ciReleaseCommand(rootDir, opts) {
|
|
|
239
239
|
if (plan.releases.length === 0) {
|
|
240
240
|
log.info("Bump files found but no packages would be released — checking for unpublished packages...");
|
|
241
241
|
const recoveredBumpFiles = recoverDeletedBumpFiles(rootDir);
|
|
242
|
-
const { publishCommand } = await import("./publish-
|
|
242
|
+
const { publishCommand } = await import("./publish-B9xzQREV.mjs");
|
|
243
243
|
await publishCommand(rootDir, {
|
|
244
244
|
tag: opts.tag,
|
|
245
245
|
recoveredBumpFiles
|
|
@@ -251,7 +251,7 @@ async function ciReleaseCommand(rootDir, opts) {
|
|
|
251
251
|
}
|
|
252
252
|
async function autoPublish(rootDir, config, plan, tag) {
|
|
253
253
|
log.step("Running bumpy version...");
|
|
254
|
-
const { versionCommand } = await import("./version-
|
|
254
|
+
const { versionCommand } = await import("./version-Bxin6aQC.mjs");
|
|
255
255
|
await versionCommand(rootDir);
|
|
256
256
|
log.step("Committing version changes...");
|
|
257
257
|
runArgs([
|
|
@@ -280,7 +280,7 @@ async function autoPublish(rootDir, config, plan, tag) {
|
|
|
280
280
|
], { cwd: rootDir });
|
|
281
281
|
}
|
|
282
282
|
log.step("Running bumpy publish...");
|
|
283
|
-
const { publishCommand } = await import("./publish-
|
|
283
|
+
const { publishCommand } = await import("./publish-B9xzQREV.mjs");
|
|
284
284
|
await publishCommand(rootDir, { tag });
|
|
285
285
|
}
|
|
286
286
|
/**
|
|
@@ -354,7 +354,7 @@ async function createVersionPr(rootDir, plan, config, packageDirs, branchName) {
|
|
|
354
354
|
branch
|
|
355
355
|
], { cwd: rootDir });
|
|
356
356
|
log.step("Running bumpy version...");
|
|
357
|
-
const { versionCommand } = await import("./version-
|
|
357
|
+
const { versionCommand } = await import("./version-Bxin6aQC.mjs");
|
|
358
358
|
await versionCommand(rootDir);
|
|
359
359
|
runArgs([
|
|
360
360
|
"git",
|
package/dist/cli.mjs
CHANGED
|
@@ -55,7 +55,7 @@ async function main() {
|
|
|
55
55
|
}
|
|
56
56
|
case "version": {
|
|
57
57
|
const rootDir = await findRoot();
|
|
58
|
-
const { versionCommand } = await import("./version-
|
|
58
|
+
const { versionCommand } = await import("./version-Bxin6aQC.mjs");
|
|
59
59
|
await versionCommand(rootDir, { commit: flags.commit === true });
|
|
60
60
|
break;
|
|
61
61
|
}
|
|
@@ -89,17 +89,17 @@ 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-
|
|
92
|
+
const { ciCheckCommand } = await import("./ci-B4vNuXEb.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 === "plan") {
|
|
99
|
-
const { ciPlanCommand } = await import("./ci-
|
|
99
|
+
const { ciPlanCommand } = await import("./ci-B4vNuXEb.mjs");
|
|
100
100
|
await ciPlanCommand(rootDir);
|
|
101
101
|
} else if (subcommand === "release") {
|
|
102
|
-
const { ciReleaseCommand } = await import("./ci-
|
|
102
|
+
const { ciReleaseCommand } = await import("./ci-B4vNuXEb.mjs");
|
|
103
103
|
await ciReleaseCommand(rootDir, {
|
|
104
104
|
mode: ciFlags["auto-publish"] === true ? "auto-publish" : "version-pr",
|
|
105
105
|
tag: ciFlags.tag,
|
|
@@ -116,7 +116,7 @@ async function main() {
|
|
|
116
116
|
}
|
|
117
117
|
case "publish": {
|
|
118
118
|
const rootDir = await findRoot();
|
|
119
|
-
const { publishCommand } = await import("./publish-
|
|
119
|
+
const { publishCommand } = await import("./publish-B9xzQREV.mjs");
|
|
120
120
|
await publishCommand(rootDir, {
|
|
121
121
|
dryRun: flags["dry-run"] === true,
|
|
122
122
|
tag: flags.tag,
|
|
@@ -140,7 +140,7 @@ async function main() {
|
|
|
140
140
|
}
|
|
141
141
|
case "--version":
|
|
142
142
|
case "-v":
|
|
143
|
-
console.log(`bumpy 1.10.
|
|
143
|
+
console.log(`bumpy 1.10.2`);
|
|
144
144
|
break;
|
|
145
145
|
case "help":
|
|
146
146
|
case "--help":
|
|
@@ -160,7 +160,7 @@ async function main() {
|
|
|
160
160
|
}
|
|
161
161
|
function printHelp() {
|
|
162
162
|
console.log(`
|
|
163
|
-
${colorize(`🐸 bumpy v1.10.
|
|
163
|
+
${colorize(`🐸 bumpy v1.10.2`, "bold")} - Modern monorepo versioning
|
|
164
164
|
|
|
165
165
|
Usage: bumpy <command> [options]
|
|
166
166
|
|
package/dist/index.d.mts
CHANGED
|
@@ -28,7 +28,7 @@ interface PublishConfig {
|
|
|
28
28
|
packManager: 'auto' | 'npm' | 'pnpm' | 'bun' | 'yarn';
|
|
29
29
|
/** Command to use for publishing. "npm" uses npm publish (supports OIDC). Default: "npm" */
|
|
30
30
|
publishManager: 'npm' | 'pnpm' | 'bun' | 'yarn';
|
|
31
|
-
/** Extra args appended to the publish command (e.g., "--
|
|
31
|
+
/** Extra args appended to the publish command (e.g., "--tag next") */
|
|
32
32
|
publishArgs: string[];
|
|
33
33
|
/**
|
|
34
34
|
* How to handle workspace:/catalog: protocol resolution.
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { a as DEP_TYPES, c as maxBump, i as DEFAULT_PUBLISH_CONFIG, l as normali
|
|
|
2
2
|
import { a as loadConfig, n as findRoot, r as getBumpyDir, s as matchGlob } from "./config-D_4GYDJi.mjs";
|
|
3
3
|
import { a as writeBumpFile, n as parseBumpFile, o as discoverPackages, r as readBumpFiles } from "./bump-file-B9DpXK5X.mjs";
|
|
4
4
|
import { a as DependencyGraph, i as stripProtocol, n as bumpVersion, r as satisfies, t as assembleReleasePlan } from "./release-plan-mK7iGeGq.mjs";
|
|
5
|
-
import { a as prependToChangelog, i as loadFormatter, n as generateChangelogEntry, t as defaultFormatter } from "./changelog-
|
|
6
|
-
import { t as applyReleasePlan } from "./apply-release-plan-
|
|
5
|
+
import { a as prependToChangelog, i as loadFormatter, n as generateChangelogEntry, t as defaultFormatter } from "./changelog-CbaET5V6.mjs";
|
|
6
|
+
import { t as applyReleasePlan } from "./apply-release-plan-DD2R7SL2.mjs";
|
|
7
7
|
import { t as publishPackages } from "./publish-pipeline-BRnqVylg.mjs";
|
|
8
8
|
export { BUMP_LEVELS, DEFAULT_BUMP_RULES, DEFAULT_CONFIG, DEFAULT_PUBLISH_CONFIG, DEP_TYPES, DependencyGraph, applyReleasePlan, assembleReleasePlan, bumpLevel, bumpVersion, defaultFormatter, discoverPackages, findRoot, generateChangelogEntry, getBumpyDir, hasCascade, loadConfig, loadFormatter, matchGlob, maxBump, normalizeCascadeConfig, parseBumpFile, prependToChangelog, publishPackages, readBumpFiles, satisfies, stripProtocol, writeBumpFile };
|
|
@@ -4,10 +4,10 @@ import { n as detectWorkspaces } from "./package-manager-BQPwXwu5.mjs";
|
|
|
4
4
|
import { s as discoverWorkspace } from "./bump-file-B9DpXK5X.mjs";
|
|
5
5
|
import { a as DependencyGraph } from "./release-plan-mK7iGeGq.mjs";
|
|
6
6
|
import { r as runArgsAsync, s as tryRunArgs } from "./shell-C8KgKnMQ.mjs";
|
|
7
|
-
import { i as loadFormatter, n as generateChangelogEntry } from "./changelog-
|
|
7
|
+
import { i as loadFormatter, n as generateChangelogEntry } from "./changelog-CbaET5V6.mjs";
|
|
8
8
|
import { c as pushWithTags, s as hasUncommittedChanges } from "./git-JGLQtk-M.mjs";
|
|
9
9
|
import { t as publishPackages } from "./publish-pipeline-BRnqVylg.mjs";
|
|
10
|
-
import { CI_PLAN_CACHE_PATH } from "./ci-
|
|
10
|
+
import { CI_PLAN_CACHE_PATH } from "./ci-B4vNuXEb.mjs";
|
|
11
11
|
//#region src/core/github-release.ts
|
|
12
12
|
/** Get the current HEAD commit SHA */
|
|
13
13
|
function getHeadSha(rootDir) {
|
|
@@ -4,7 +4,7 @@ import { n as detectWorkspaces } from "./package-manager-BQPwXwu5.mjs";
|
|
|
4
4
|
import { o as discoverPackages, r as readBumpFiles } from "./bump-file-B9DpXK5X.mjs";
|
|
5
5
|
import { a as DependencyGraph, t as assembleReleasePlan } from "./release-plan-mK7iGeGq.mjs";
|
|
6
6
|
import { n as runArgs, s as tryRunArgs } from "./shell-C8KgKnMQ.mjs";
|
|
7
|
-
import { t as applyReleasePlan } from "./apply-release-plan-
|
|
7
|
+
import { t as applyReleasePlan } from "./apply-release-plan-DD2R7SL2.mjs";
|
|
8
8
|
import { t as resolveCommitMessage } from "./commit-message-CSWVKPJ-.mjs";
|
|
9
9
|
//#region src/commands/version.ts
|
|
10
10
|
async function versionCommand(rootDir, opts = {}) {
|