bumpp 11.0.0 → 11.1.0
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/dist/cli.mjs +22 -33
- package/dist/{config-C6VUC_fF.mjs → config-B0J-pc6W.mjs} +64 -33
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +11 -11
package/dist/cli.mjs
CHANGED
|
@@ -1,24 +1,11 @@
|
|
|
1
|
-
import { c as isReleaseType, i as versionBump, l as symbols, r as loadBumpConfig,
|
|
1
|
+
import { c as isReleaseType, i as versionBump, l as symbols, r as loadBumpConfig, t as bumpConfigDefaults } from "./config-B0J-pc6W.mjs";
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
import { styleText } from "node:util";
|
|
4
4
|
import { NonZeroExitError, x } from "tinyexec";
|
|
5
5
|
import { valid } from "semver";
|
|
6
6
|
import cac from "cac";
|
|
7
|
-
//#region src/cli/exit-code.ts
|
|
8
|
-
/**
|
|
9
|
-
* CLI exit codes.
|
|
10
|
-
*
|
|
11
|
-
* @see https://nodejs.org/api/process.html#process_exit_codes
|
|
12
|
-
*/
|
|
13
|
-
let ExitCode = /* @__PURE__ */ function(ExitCode) {
|
|
14
|
-
ExitCode[ExitCode["Success"] = 0] = "Success";
|
|
15
|
-
ExitCode[ExitCode["FatalError"] = 1] = "FatalError";
|
|
16
|
-
ExitCode[ExitCode["InvalidArgument"] = 9] = "InvalidArgument";
|
|
17
|
-
return ExitCode;
|
|
18
|
-
}({});
|
|
19
|
-
//#endregion
|
|
20
7
|
//#region package.json
|
|
21
|
-
var version = "11.
|
|
8
|
+
var version = "11.1.0";
|
|
22
9
|
//#endregion
|
|
23
10
|
//#region src/cli/parse-args.ts
|
|
24
11
|
/**
|
|
@@ -27,6 +14,15 @@ var version = "11.0.0";
|
|
|
27
14
|
async function parseArgs() {
|
|
28
15
|
try {
|
|
29
16
|
const { args, resultArgs } = loadCliArgs();
|
|
17
|
+
const rawFiles = [...args["--"] || [], ...resultArgs];
|
|
18
|
+
let releaseFromArgs;
|
|
19
|
+
if (rawFiles.length > 0) {
|
|
20
|
+
const firstArg = rawFiles[0];
|
|
21
|
+
if (firstArg === "prompt" || isReleaseType(firstArg) || valid(firstArg)) {
|
|
22
|
+
releaseFromArgs = firstArg;
|
|
23
|
+
rawFiles.shift();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
30
26
|
const parsedArgs = {
|
|
31
27
|
help: args.help,
|
|
32
28
|
version: args.version,
|
|
@@ -42,23 +38,16 @@ async function parseArgs() {
|
|
|
42
38
|
confirm: args.yes === void 0 ? void 0 : !args.yes,
|
|
43
39
|
noVerify: args.verify === void 0 ? void 0 : !args.verify,
|
|
44
40
|
install: args.install,
|
|
45
|
-
files:
|
|
41
|
+
files: rawFiles.length ? rawFiles : void 0,
|
|
46
42
|
ignoreScripts: args.ignoreScripts,
|
|
47
43
|
currentVersion: args.currentVersion,
|
|
48
44
|
execute: args.execute,
|
|
49
45
|
printCommits: args.printCommits,
|
|
50
46
|
recursive: args.recursive,
|
|
51
|
-
release: args.release,
|
|
47
|
+
release: args.release ?? releaseFromArgs,
|
|
52
48
|
configFilePath: args.configFilePath
|
|
53
49
|
})
|
|
54
50
|
};
|
|
55
|
-
if (parsedArgs.options.files && parsedArgs.options.files.length > 0) {
|
|
56
|
-
const firstArg = parsedArgs.options.files[0];
|
|
57
|
-
if (firstArg === "prompt" || isReleaseType(firstArg) || valid(firstArg)) {
|
|
58
|
-
parsedArgs.options.release = firstArg;
|
|
59
|
-
parsedArgs.options.files.shift();
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
51
|
if (parsedArgs.options.recursive && parsedArgs.options.files?.length) console.log(styleText("yellow", "The --recursive option is ignored when files are specified"));
|
|
63
52
|
return parsedArgs;
|
|
64
53
|
} catch (error) {
|
|
@@ -76,7 +65,7 @@ function loadCliArgs(argv = process.argv) {
|
|
|
76
65
|
}
|
|
77
66
|
function errorHandler$1(error) {
|
|
78
67
|
console.error(error.message);
|
|
79
|
-
return process.exit(
|
|
68
|
+
return process.exit(9);
|
|
80
69
|
}
|
|
81
70
|
//#endregion
|
|
82
71
|
//#region src/cli/index.ts
|
|
@@ -88,7 +77,7 @@ async function main() {
|
|
|
88
77
|
process.on("uncaughtException", errorHandler);
|
|
89
78
|
process.on("unhandledRejection", errorHandler);
|
|
90
79
|
const { help, version, quiet, options } = await parseArgs();
|
|
91
|
-
if (help || version) process.exit(
|
|
80
|
+
if (help || version) process.exit(0);
|
|
92
81
|
else {
|
|
93
82
|
if (!options.all && !options.noGitCheck) await checkGitStatus();
|
|
94
83
|
if (!quiet) options.progress = options.progress ? options.progress : progress;
|
|
@@ -104,22 +93,22 @@ async function checkGitStatus() {
|
|
|
104
93
|
}
|
|
105
94
|
function progress({ event, script, updatedFiles, skippedFiles, newVersion }) {
|
|
106
95
|
switch (event) {
|
|
107
|
-
case
|
|
96
|
+
case "file updated":
|
|
108
97
|
console.log(symbols.success, `Updated ${updatedFiles.pop()} to ${newVersion}`);
|
|
109
98
|
break;
|
|
110
|
-
case
|
|
99
|
+
case "file skipped":
|
|
111
100
|
console.log(symbols.info, `${skippedFiles.pop()} did not need to be updated`);
|
|
112
101
|
break;
|
|
113
|
-
case
|
|
102
|
+
case "git commit":
|
|
114
103
|
console.log(symbols.success, "Git commit");
|
|
115
104
|
break;
|
|
116
|
-
case
|
|
105
|
+
case "git tag":
|
|
117
106
|
console.log(symbols.success, "Git tag");
|
|
118
107
|
break;
|
|
119
|
-
case
|
|
108
|
+
case "git push":
|
|
120
109
|
console.log(symbols.success, "Git push");
|
|
121
110
|
break;
|
|
122
|
-
case
|
|
111
|
+
case "npm script":
|
|
123
112
|
console.log(symbols.success, `Npm run ${script}`);
|
|
124
113
|
break;
|
|
125
114
|
}
|
|
@@ -129,7 +118,7 @@ function errorHandler(error) {
|
|
|
129
118
|
if (error instanceof NonZeroExitError) message += `\n\n${error.output?.stderr || ""}`;
|
|
130
119
|
if (process.env.DEBUG || process.env.NODE_ENV === "development") message += `\n\n${error.stack || ""}`;
|
|
131
120
|
console.error(message);
|
|
132
|
-
process.exit(
|
|
121
|
+
process.exit(1);
|
|
133
122
|
}
|
|
134
123
|
//#endregion
|
|
135
124
|
export { checkGitStatus, main };
|
|
@@ -20,7 +20,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
20
20
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
21
21
|
var __getProtoOf = Object.getPrototypeOf;
|
|
22
22
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
23
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
23
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
24
24
|
var __copyProps = (to, from, except, desc) => {
|
|
25
25
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
26
26
|
key = keys[i];
|
|
@@ -656,14 +656,17 @@ var require_text$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
656
656
|
}
|
|
657
657
|
_(c, key) {
|
|
658
658
|
let s1 = this.value.slice(0, this.cursor);
|
|
659
|
-
|
|
659
|
+
let s2 = this.value.slice(this.cursor);
|
|
660
|
+
this.value = `${s1}${c}${s2}`;
|
|
660
661
|
this.red = false;
|
|
661
662
|
this.cursor = this.placeholder ? 0 : s1.length + 1;
|
|
662
663
|
this.render();
|
|
663
664
|
}
|
|
664
665
|
delete() {
|
|
665
666
|
if (this.isCursorAtStart()) return this.bell();
|
|
666
|
-
|
|
667
|
+
let s1 = this.value.slice(0, this.cursor - 1);
|
|
668
|
+
let s2 = this.value.slice(this.cursor);
|
|
669
|
+
this.value = `${s1}${s2}`;
|
|
667
670
|
this.red = false;
|
|
668
671
|
if (this.isCursorAtStart()) this.cursorOffset = 0;
|
|
669
672
|
else {
|
|
@@ -674,7 +677,9 @@ var require_text$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
674
677
|
}
|
|
675
678
|
deleteForward() {
|
|
676
679
|
if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();
|
|
677
|
-
|
|
680
|
+
let s1 = this.value.slice(0, this.cursor);
|
|
681
|
+
let s2 = this.value.slice(this.cursor + 1);
|
|
682
|
+
this.value = `${s1}${s2}`;
|
|
678
683
|
this.red = false;
|
|
679
684
|
if (this.isCursorAtEnd()) this.cursorOffset = 0;
|
|
680
685
|
else this.cursorOffset++;
|
|
@@ -1981,21 +1986,26 @@ var require_autocomplete$1 = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1981
1986
|
}
|
|
1982
1987
|
_(c, key) {
|
|
1983
1988
|
let s1 = this.input.slice(0, this.cursor);
|
|
1984
|
-
|
|
1989
|
+
let s2 = this.input.slice(this.cursor);
|
|
1990
|
+
this.input = `${s1}${c}${s2}`;
|
|
1985
1991
|
this.cursor = s1.length + 1;
|
|
1986
1992
|
this.complete(this.render);
|
|
1987
1993
|
this.render();
|
|
1988
1994
|
}
|
|
1989
1995
|
delete() {
|
|
1990
1996
|
if (this.cursor === 0) return this.bell();
|
|
1991
|
-
|
|
1997
|
+
let s1 = this.input.slice(0, this.cursor - 1);
|
|
1998
|
+
let s2 = this.input.slice(this.cursor);
|
|
1999
|
+
this.input = `${s1}${s2}`;
|
|
1992
2000
|
this.complete(this.render);
|
|
1993
2001
|
this.cursor = this.cursor - 1;
|
|
1994
2002
|
this.render();
|
|
1995
2003
|
}
|
|
1996
2004
|
deleteForward() {
|
|
1997
2005
|
if (this.cursor * this.scale >= this.rendered.length) return this.bell();
|
|
1998
|
-
|
|
2006
|
+
let s1 = this.input.slice(0, this.cursor);
|
|
2007
|
+
let s2 = this.input.slice(this.cursor + 1);
|
|
2008
|
+
this.input = `${s1}${s2}`;
|
|
1999
2009
|
this.complete(this.render);
|
|
2000
2010
|
this.render();
|
|
2001
2011
|
}
|
|
@@ -3112,14 +3122,17 @@ var require_text = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3112
3122
|
}
|
|
3113
3123
|
_(c, key) {
|
|
3114
3124
|
let s1 = this.value.slice(0, this.cursor);
|
|
3115
|
-
|
|
3125
|
+
let s2 = this.value.slice(this.cursor);
|
|
3126
|
+
this.value = `${s1}${c}${s2}`;
|
|
3116
3127
|
this.red = false;
|
|
3117
3128
|
this.cursor = this.placeholder ? 0 : s1.length + 1;
|
|
3118
3129
|
this.render();
|
|
3119
3130
|
}
|
|
3120
3131
|
delete() {
|
|
3121
3132
|
if (this.isCursorAtStart()) return this.bell();
|
|
3122
|
-
|
|
3133
|
+
let s1 = this.value.slice(0, this.cursor - 1);
|
|
3134
|
+
let s2 = this.value.slice(this.cursor);
|
|
3135
|
+
this.value = `${s1}${s2}`;
|
|
3123
3136
|
this.red = false;
|
|
3124
3137
|
if (this.isCursorAtStart()) this.cursorOffset = 0;
|
|
3125
3138
|
else {
|
|
@@ -3130,7 +3143,9 @@ var require_text = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3130
3143
|
}
|
|
3131
3144
|
deleteForward() {
|
|
3132
3145
|
if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();
|
|
3133
|
-
|
|
3146
|
+
let s1 = this.value.slice(0, this.cursor);
|
|
3147
|
+
let s2 = this.value.slice(this.cursor + 1);
|
|
3148
|
+
this.value = `${s1}${s2}`;
|
|
3134
3149
|
this.red = false;
|
|
3135
3150
|
if (this.isCursorAtEnd()) this.cursorOffset = 0;
|
|
3136
3151
|
else this.cursorOffset++;
|
|
@@ -4344,21 +4359,26 @@ var require_autocomplete = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4344
4359
|
}
|
|
4345
4360
|
_(c, key) {
|
|
4346
4361
|
let s1 = this.input.slice(0, this.cursor);
|
|
4347
|
-
|
|
4362
|
+
let s2 = this.input.slice(this.cursor);
|
|
4363
|
+
this.input = `${s1}${c}${s2}`;
|
|
4348
4364
|
this.cursor = s1.length + 1;
|
|
4349
4365
|
this.complete(this.render);
|
|
4350
4366
|
this.render();
|
|
4351
4367
|
}
|
|
4352
4368
|
delete() {
|
|
4353
4369
|
if (this.cursor === 0) return this.bell();
|
|
4354
|
-
|
|
4370
|
+
let s1 = this.input.slice(0, this.cursor - 1);
|
|
4371
|
+
let s2 = this.input.slice(this.cursor);
|
|
4372
|
+
this.input = `${s1}${s2}`;
|
|
4355
4373
|
this.complete(this.render);
|
|
4356
4374
|
this.cursor = this.cursor - 1;
|
|
4357
4375
|
this.render();
|
|
4358
4376
|
}
|
|
4359
4377
|
deleteForward() {
|
|
4360
4378
|
if (this.cursor * this.scale >= this.rendered.length) return this.bell();
|
|
4361
|
-
|
|
4379
|
+
let s1 = this.input.slice(0, this.cursor);
|
|
4380
|
+
let s2 = this.input.slice(this.cursor + 1);
|
|
4381
|
+
this.input = `${s1}${s2}`;
|
|
4362
4382
|
this.complete(this.render);
|
|
4363
4383
|
this.render();
|
|
4364
4384
|
}
|
|
@@ -4960,8 +4980,8 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4960
4980
|
});
|
|
4961
4981
|
}));
|
|
4962
4982
|
//#endregion
|
|
4963
|
-
//#region node_modules/.pnpm/
|
|
4964
|
-
var
|
|
4983
|
+
//#region node_modules/.pnpm/tiny-conventional-commits-parser@0.1.0/node_modules/tiny-conventional-commits-parser/dist/index.mjs
|
|
4984
|
+
var import_prompts = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4965
4985
|
function isNodeLT(tar) {
|
|
4966
4986
|
tar = (Array.isArray(tar) ? tar : tar.split(".")).map(Number);
|
|
4967
4987
|
let i = 0, src = process.versions.node.split(".").map(Number);
|
|
@@ -4972,9 +4992,7 @@ var require_prompts = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4972
4992
|
return false;
|
|
4973
4993
|
}
|
|
4974
4994
|
module.exports = isNodeLT("8.6.0") ? require_dist() : require_lib();
|
|
4975
|
-
}));
|
|
4976
|
-
//#endregion
|
|
4977
|
-
//#region node_modules/.pnpm/tiny-conventional-commits-parser@0.1.0/node_modules/tiny-conventional-commits-parser/dist/index.mjs
|
|
4995
|
+
})))(), 1);
|
|
4978
4996
|
function execCommand(cmd, options) {
|
|
4979
4997
|
try {
|
|
4980
4998
|
return execSync(cmd, {
|
|
@@ -5213,7 +5231,6 @@ function isReleaseType(value) {
|
|
|
5213
5231
|
}
|
|
5214
5232
|
//#endregion
|
|
5215
5233
|
//#region src/get-new-version.ts
|
|
5216
|
-
var import_prompts = /* @__PURE__ */ __toESM(require_prompts(), 1);
|
|
5217
5234
|
/**
|
|
5218
5235
|
* Determines the new version number, possibly by prompting the user for it.
|
|
5219
5236
|
*/
|
|
@@ -5390,9 +5407,12 @@ async function gitCommit(operation) {
|
|
|
5390
5407
|
const commitMessage = formatVersionString(message, newVersion);
|
|
5391
5408
|
args.push("--message", commitMessage);
|
|
5392
5409
|
if (!all) args = [...args, ...updatedFiles];
|
|
5393
|
-
await x("git", ["commit", ...args], {
|
|
5410
|
+
await x("git", ["commit", ...args], {
|
|
5411
|
+
throwOnError: true,
|
|
5412
|
+
nodeOptions: { stdio: "inherit" }
|
|
5413
|
+
});
|
|
5394
5414
|
return operation.update({
|
|
5395
|
-
event:
|
|
5415
|
+
event: "git commit",
|
|
5396
5416
|
commitMessage
|
|
5397
5417
|
});
|
|
5398
5418
|
}
|
|
@@ -5411,9 +5431,12 @@ async function gitTag(operation) {
|
|
|
5411
5431
|
const tagName = formatVersionString(tag.name, newVersion);
|
|
5412
5432
|
args.push(tagName);
|
|
5413
5433
|
if (operation.options.sign) args.push("--sign");
|
|
5414
|
-
await x("git", ["tag", ...args], {
|
|
5434
|
+
await x("git", ["tag", ...args], {
|
|
5435
|
+
throwOnError: true,
|
|
5436
|
+
nodeOptions: { stdio: "inherit" }
|
|
5437
|
+
});
|
|
5415
5438
|
return operation.update({
|
|
5416
|
-
event:
|
|
5439
|
+
event: "git tag",
|
|
5417
5440
|
tagName
|
|
5418
5441
|
});
|
|
5419
5442
|
}
|
|
@@ -5422,9 +5445,15 @@ async function gitTag(operation) {
|
|
|
5422
5445
|
*/
|
|
5423
5446
|
async function gitPush(operation) {
|
|
5424
5447
|
if (!operation.options.push) return operation;
|
|
5425
|
-
await x("git", ["push"], {
|
|
5426
|
-
|
|
5427
|
-
|
|
5448
|
+
await x("git", ["push"], {
|
|
5449
|
+
throwOnError: true,
|
|
5450
|
+
nodeOptions: { stdio: "inherit" }
|
|
5451
|
+
});
|
|
5452
|
+
if (operation.options.tag) await x("git", ["push", "--tags"], {
|
|
5453
|
+
throwOnError: true,
|
|
5454
|
+
nodeOptions: { stdio: "inherit" }
|
|
5455
|
+
});
|
|
5456
|
+
return operation.update({ event: "git push" });
|
|
5428
5457
|
}
|
|
5429
5458
|
/**
|
|
5430
5459
|
* Accepts a version string template (e.g. "release v" or "This is the %s release").
|
|
@@ -5705,7 +5734,7 @@ async function runNpmScript(script, operation) {
|
|
|
5705
5734
|
"--silent"
|
|
5706
5735
|
], { nodeOptions: { stdio: "inherit" } });
|
|
5707
5736
|
operation.update({
|
|
5708
|
-
event:
|
|
5737
|
+
event: "npm script",
|
|
5709
5738
|
script
|
|
5710
5739
|
});
|
|
5711
5740
|
}
|
|
@@ -5731,11 +5760,11 @@ async function updateFiles(operation) {
|
|
|
5731
5760
|
const modified = await updateFile(relPath, operation);
|
|
5732
5761
|
const absPath = path$1.resolve(cwd, relPath);
|
|
5733
5762
|
if (modified) operation.update({
|
|
5734
|
-
event:
|
|
5763
|
+
event: "file updated",
|
|
5735
5764
|
updatedFiles: [...operation.state.updatedFiles, absPath]
|
|
5736
5765
|
});
|
|
5737
5766
|
else operation.update({
|
|
5738
|
-
event:
|
|
5767
|
+
event: "file skipped",
|
|
5739
5768
|
skippedFiles: [...operation.state.skippedFiles, absPath]
|
|
5740
5769
|
});
|
|
5741
5770
|
}
|
|
@@ -5828,7 +5857,7 @@ async function versionBump(arg = {}) {
|
|
|
5828
5857
|
initial: true
|
|
5829
5858
|
}).then((r) => r.yes)) process$1.exit(1);
|
|
5830
5859
|
}
|
|
5831
|
-
await runNpmScript(
|
|
5860
|
+
await runNpmScript("preversion", operation);
|
|
5832
5861
|
await updateFiles(operation);
|
|
5833
5862
|
if (operation.options.install) {
|
|
5834
5863
|
const { detect } = await import("package-manager-detector/detect");
|
|
@@ -5860,10 +5889,10 @@ async function versionBump(arg = {}) {
|
|
|
5860
5889
|
});
|
|
5861
5890
|
console.log(symbols.success, "Script finished");
|
|
5862
5891
|
}
|
|
5863
|
-
await runNpmScript(
|
|
5892
|
+
await runNpmScript("version", operation);
|
|
5864
5893
|
await gitCommit(operation);
|
|
5865
5894
|
await gitTag(operation);
|
|
5866
|
-
await runNpmScript(
|
|
5895
|
+
await runNpmScript("postversion", operation);
|
|
5867
5896
|
await gitPush(operation);
|
|
5868
5897
|
return operation.results;
|
|
5869
5898
|
}
|
|
@@ -5930,9 +5959,11 @@ async function loadBumpConfig(overrides, cwd = process$1.cwd()) {
|
|
|
5930
5959
|
defaults: bumpConfigDefaults,
|
|
5931
5960
|
cwd
|
|
5932
5961
|
});
|
|
5962
|
+
const definedOverrides = overrides ? Object.fromEntries(Object.entries(overrides).filter(([, v]) => v !== void 0)) : {};
|
|
5933
5963
|
return {
|
|
5964
|
+
...bumpConfigDefaults,
|
|
5934
5965
|
...config,
|
|
5935
|
-
...
|
|
5966
|
+
...definedOverrides
|
|
5936
5967
|
};
|
|
5937
5968
|
}
|
|
5938
5969
|
function defineConfig(config) {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as semver
|
|
1
|
+
import * as _$semver from "semver";
|
|
2
2
|
import semver, { ReleaseType as ReleaseType$1 } from "semver";
|
|
3
3
|
|
|
4
4
|
//#region src/release-type.d.ts
|
|
@@ -414,7 +414,7 @@ declare function loadBumpConfig(overrides?: Partial<VersionBumpOptions>, cwd?: s
|
|
|
414
414
|
recursive?: boolean | undefined;
|
|
415
415
|
printCommits?: boolean | undefined;
|
|
416
416
|
configFilePath?: string | undefined;
|
|
417
|
-
customVersion?: ((currentVersion: string, semver: typeof semver
|
|
417
|
+
customVersion?: ((currentVersion: string, semver: typeof _$semver) => void | string | Promise<void | string>) | undefined;
|
|
418
418
|
}>;
|
|
419
419
|
declare function defineConfig(config: Partial<VersionBumpOptions>): Partial<VersionBumpOptions>;
|
|
420
420
|
//#endregion
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as versionBumpInfo, i as versionBump, n as defineConfig, o as NpmScript, r as loadBumpConfig, s as ProgressEvent, t as bumpConfigDefaults } from "./config-
|
|
1
|
+
import { a as versionBumpInfo, i as versionBump, n as defineConfig, o as NpmScript, r as loadBumpConfig, s as ProgressEvent, t as bumpConfigDefaults } from "./config-B0J-pc6W.mjs";
|
|
2
2
|
//#region src/index.ts
|
|
3
3
|
var src_default = versionBump;
|
|
4
4
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bumpp",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "11.
|
|
4
|
+
"version": "11.1.0",
|
|
5
5
|
"description": "Bump version, commit changes, tag, and push to Git",
|
|
6
6
|
"authors": [
|
|
7
7
|
{
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"jsonc-parser": "^3.3.1",
|
|
54
54
|
"package-manager-detector": "^1.6.0",
|
|
55
55
|
"semver": "^7.7.4",
|
|
56
|
-
"tinyexec": "^1.
|
|
57
|
-
"tinyglobby": "^0.2.
|
|
56
|
+
"tinyexec": "^1.1.2",
|
|
57
|
+
"tinyglobby": "^0.2.16",
|
|
58
58
|
"unconfig": "^7.5.0",
|
|
59
|
-
"yaml": "^2.8.
|
|
59
|
+
"yaml": "^2.8.4"
|
|
60
60
|
},
|
|
61
61
|
"inlinedDependencies": {
|
|
62
62
|
"kleur": "3.0.3",
|
|
@@ -65,20 +65,20 @@
|
|
|
65
65
|
"tiny-conventional-commits-parser": "0.1.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@antfu/eslint-config": "^
|
|
69
|
-
"@types/node": "^25.
|
|
68
|
+
"@antfu/eslint-config": "^8.2.0",
|
|
69
|
+
"@types/node": "^25.6.0",
|
|
70
70
|
"@types/prompts": "^2.4.9",
|
|
71
71
|
"@types/semver": "^7.7.1",
|
|
72
72
|
"@typescript/native-preview": "7.0.0-dev.20260314.1",
|
|
73
|
-
"baseline-browser-mapping": "^2.10.
|
|
74
|
-
"eslint": "^10.0
|
|
73
|
+
"baseline-browser-mapping": "^2.10.27",
|
|
74
|
+
"eslint": "^10.3.0",
|
|
75
75
|
"premove": "^4.0.0",
|
|
76
76
|
"prompts": "^2.4.2",
|
|
77
77
|
"tiny-conventional-commits-parser": "^0.1.0",
|
|
78
|
-
"tsdown": "^0.21.
|
|
78
|
+
"tsdown": "^0.21.10",
|
|
79
79
|
"tsx": "^4.21.0",
|
|
80
|
-
"typescript": "^
|
|
81
|
-
"vitest": "^4.1.
|
|
80
|
+
"typescript": "^6.0.3",
|
|
81
|
+
"vitest": "^4.1.5"
|
|
82
82
|
},
|
|
83
83
|
"scripts": {
|
|
84
84
|
"lint": "eslint .",
|