bumpp 10.3.2 → 10.4.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 +4 -23
- package/package.json +9 -9
package/dist/cli.mjs
CHANGED
|
@@ -24,7 +24,7 @@ var ExitCode = /* @__PURE__ */ ((ExitCode2) => {
|
|
|
24
24
|
return ExitCode2;
|
|
25
25
|
})(ExitCode || {});
|
|
26
26
|
|
|
27
|
-
const version = "10.
|
|
27
|
+
const version = "10.4.0";
|
|
28
28
|
|
|
29
29
|
async function parseArgs() {
|
|
30
30
|
try {
|
|
@@ -40,7 +40,7 @@ async function parseArgs() {
|
|
|
40
40
|
sign: args.sign,
|
|
41
41
|
push: args.push,
|
|
42
42
|
all: args.all,
|
|
43
|
-
noGitCheck: args.
|
|
43
|
+
noGitCheck: args.gitCheck === void 0 ? void 0 : !args.gitCheck,
|
|
44
44
|
confirm: args.yes === void 0 ? void 0 : !args.yes,
|
|
45
45
|
noVerify: args.verify === void 0 ? void 0 : !args.verify,
|
|
46
46
|
install: args.install,
|
|
@@ -69,30 +69,11 @@ async function parseArgs() {
|
|
|
69
69
|
}
|
|
70
70
|
function loadCliArgs(argv = process.argv) {
|
|
71
71
|
const cli = cac("bumpp");
|
|
72
|
-
cli.version(version).usage("[...files]").option("--preid <preid>", "ID for prerelease").option("-a, --all", `Include all files (default: ${bumpConfigDefaults.all})`).option("--
|
|
72
|
+
cli.version(version).usage("[...files]").option("--preid <preid>", "ID for prerelease").option("-a, --all", `Include all files (default: ${bumpConfigDefaults.all})`).option("--git-check", `Run git check (default: ${!bumpConfigDefaults.noGitCheck})`).option("-c, --commit [msg]", `Commit message (default: ${bumpConfigDefaults.commit})`).option("-t, --tag [tag]", `Tag name (default: ${bumpConfigDefaults.tag})`).option("--sign", "Sign commit and tag").option("--install", `Run 'npm install' after bumping version (default: ${bumpConfigDefaults.install})`).option("-p, --push", `Push to remote (default: ${bumpConfigDefaults.push})`).option("-y, --yes", `Skip confirmation (default: ${!bumpConfigDefaults.confirm})`).option("-r, --recursive", `Bump package.json files recursively (default: ${bumpConfigDefaults.recursive})`).option("--verify", `Run git verification (default: ${!bumpConfigDefaults.noVerify})`).option("--ignore-scripts", `Ignore scripts (default: ${bumpConfigDefaults.ignoreScripts})`).option("-q, --quiet", "Quiet mode").option("--current-version <version>", "Current version").option("--print-commits", "Print recent commits").option("-x, --execute <command>", "Commands to execute after version bumps").option("--release <release>", `Release type or version number (e.g. 'major', 'minor', 'patch', 'prerelease', etc. default: ${bumpConfigDefaults.release})`).help();
|
|
73
73
|
const result = cli.parse(argv);
|
|
74
|
-
const rawArgs = cli.rawArgs;
|
|
75
74
|
const args = result.options;
|
|
76
|
-
const COMMIT_REG = /(?:-c|--commit|--no-commit)(?:=.*|$)/;
|
|
77
|
-
const TAG_REG = /(?:-t|--tag|--no-tag)(?:=.*|$)/;
|
|
78
|
-
const YES_REG = /(?:-y|--yes)(?:=.*|$)/;
|
|
79
|
-
const NO_VERIFY_REG = /--no-verify(?:=.*|$)/;
|
|
80
|
-
const INSTALL_ARG = /--install(?:=.*|$)/;
|
|
81
|
-
const hasCommitFlag = rawArgs.some((arg) => COMMIT_REG.test(arg));
|
|
82
|
-
const hasTagFlag = rawArgs.some((arg) => TAG_REG.test(arg));
|
|
83
|
-
const hasYesFlag = rawArgs.some((arg) => YES_REG.test(arg));
|
|
84
|
-
const hasNoVerifyFlag = rawArgs.some((arg) => NO_VERIFY_REG.test(arg));
|
|
85
|
-
const hasInstallFlag = rawArgs.some((arg) => INSTALL_ARG.test(arg));
|
|
86
|
-
const { tag, commit, yes, ...rest } = args;
|
|
87
75
|
return {
|
|
88
|
-
args
|
|
89
|
-
...rest,
|
|
90
|
-
commit: hasCommitFlag ? commit : void 0,
|
|
91
|
-
tag: hasTagFlag ? tag : void 0,
|
|
92
|
-
yes: hasYesFlag ? yes : void 0,
|
|
93
|
-
verify: hasNoVerifyFlag ? !args.verify : void 0,
|
|
94
|
-
install: hasInstallFlag ? !args.install : void 0
|
|
95
|
-
},
|
|
76
|
+
args,
|
|
96
77
|
resultArgs: result.args
|
|
97
78
|
};
|
|
98
79
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bumpp",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.4.0",
|
|
5
5
|
"description": "Bump version, commit changes, tag, and push to Git",
|
|
6
6
|
"authors": [
|
|
7
7
|
{
|
|
@@ -53,29 +53,29 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"ansis": "^4.2.0",
|
|
55
55
|
"args-tokenizer": "^0.3.0",
|
|
56
|
-
"c12": "^3.3.
|
|
56
|
+
"c12": "^3.3.3",
|
|
57
57
|
"cac": "^6.7.14",
|
|
58
58
|
"escalade": "^3.2.0",
|
|
59
59
|
"jsonc-parser": "^3.3.1",
|
|
60
|
-
"package-manager-detector": "^1.
|
|
60
|
+
"package-manager-detector": "^1.6.0",
|
|
61
61
|
"semver": "^7.7.3",
|
|
62
62
|
"tinyexec": "^1.0.2",
|
|
63
63
|
"tinyglobby": "^0.2.15",
|
|
64
|
-
"yaml": "^2.8.
|
|
64
|
+
"yaml": "^2.8.2"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@antfu/eslint-config": "^6.
|
|
68
|
-
"@types/node": "^
|
|
67
|
+
"@antfu/eslint-config": "^6.7.3",
|
|
68
|
+
"@types/node": "^25.0.7",
|
|
69
69
|
"@types/prompts": "^2.4.9",
|
|
70
70
|
"@types/semver": "^7.7.1",
|
|
71
|
-
"eslint": "^9.39.
|
|
71
|
+
"eslint": "^9.39.2",
|
|
72
72
|
"prompts": "^2.4.2",
|
|
73
73
|
"rimraf": "^6.1.2",
|
|
74
74
|
"tiny-conventional-commits-parser": "^0.1.0",
|
|
75
|
-
"tsx": "^4.
|
|
75
|
+
"tsx": "^4.21.0",
|
|
76
76
|
"typescript": "^5.9.3",
|
|
77
77
|
"unbuild": "^3.6.1",
|
|
78
|
-
"vitest": "^4.0.
|
|
78
|
+
"vitest": "^4.0.17"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"lint": "eslint .",
|