bumpp 9.9.2 → 9.9.3
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/{chunk-MJWNLIUB.mjs → chunk-H7UXDA7O.mjs} +13 -6
- package/dist/cli/index.js +14 -7
- package/dist/cli/index.mjs +2 -2
- package/dist/index.js +13 -6
- package/dist/index.mjs +1 -1
- package/package.json +6 -6
|
@@ -256,9 +256,9 @@ var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
|
|
|
256
256
|
// src/version-bump.ts
|
|
257
257
|
import process5 from "node:process";
|
|
258
258
|
|
|
259
|
-
// node_modules/.pnpm/args-tokenizer@0.
|
|
259
|
+
// node_modules/.pnpm/args-tokenizer@0.3.0/node_modules/args-tokenizer/dist/args-tokenizer.js
|
|
260
260
|
var spaceRegex = /\s/;
|
|
261
|
-
var tokenizeArgs = (argsString) => {
|
|
261
|
+
var tokenizeArgs = (argsString, options) => {
|
|
262
262
|
const tokens = [];
|
|
263
263
|
let currentToken = "";
|
|
264
264
|
let openningQuote;
|
|
@@ -298,6 +298,12 @@ var tokenizeArgs = (argsString) => {
|
|
|
298
298
|
if (currentToken.length > 0) {
|
|
299
299
|
tokens.push(currentToken);
|
|
300
300
|
}
|
|
301
|
+
if (options == null ? void 0 : options.loose) {
|
|
302
|
+
return tokens;
|
|
303
|
+
}
|
|
304
|
+
if (openningQuote) {
|
|
305
|
+
throw Error("Unexpected end of string. Closing quote is missing.");
|
|
306
|
+
}
|
|
301
307
|
return tokens;
|
|
302
308
|
};
|
|
303
309
|
|
|
@@ -641,7 +647,7 @@ async function gitCommit(operation) {
|
|
|
641
647
|
args.push("--message", commitMessage);
|
|
642
648
|
if (!all)
|
|
643
649
|
args = args.concat(updatedFiles);
|
|
644
|
-
await x2("git", ["commit", ...args]);
|
|
650
|
+
await x2("git", ["commit", ...args], { throwOnError: true });
|
|
645
651
|
return operation.update({ event: "git commit" /* GitCommit */, commitMessage });
|
|
646
652
|
}
|
|
647
653
|
async function gitTag(operation) {
|
|
@@ -662,15 +668,15 @@ async function gitTag(operation) {
|
|
|
662
668
|
if (operation.options.sign) {
|
|
663
669
|
args.push("--sign");
|
|
664
670
|
}
|
|
665
|
-
await x2("git", ["tag", ...args]);
|
|
671
|
+
await x2("git", ["tag", ...args], { throwOnError: true });
|
|
666
672
|
return operation.update({ event: "git tag" /* GitTag */, tagName });
|
|
667
673
|
}
|
|
668
674
|
async function gitPush(operation) {
|
|
669
675
|
if (!operation.options.push)
|
|
670
676
|
return operation;
|
|
671
|
-
await x2("git", ["push"]);
|
|
677
|
+
await x2("git", ["push"], { throwOnError: true });
|
|
672
678
|
if (operation.options.tag) {
|
|
673
|
-
await x2("git", ["push", "--tags"]);
|
|
679
|
+
await x2("git", ["push", "--tags"], { throwOnError: true });
|
|
674
680
|
}
|
|
675
681
|
return operation.update({ event: "git push" /* GitPush */ });
|
|
676
682
|
}
|
|
@@ -969,6 +975,7 @@ async function versionBump(arg = {}) {
|
|
|
969
975
|
const [command, ...args] = tokenizeArgs(operation.options.execute);
|
|
970
976
|
console.log(symbols_exports.info, "Executing script", command, ...args);
|
|
971
977
|
await x4(command, args, {
|
|
978
|
+
throwOnError: true,
|
|
972
979
|
nodeOptions: {
|
|
973
980
|
stdio: "inherit",
|
|
974
981
|
cwd: operation.options.cwd
|
package/dist/cli/index.js
CHANGED
|
@@ -241,9 +241,9 @@ var import_tinyexec5 = require("tinyexec");
|
|
|
241
241
|
// src/version-bump.ts
|
|
242
242
|
var import_node_process4 = __toESM(require("process"));
|
|
243
243
|
|
|
244
|
-
// node_modules/.pnpm/args-tokenizer@0.
|
|
244
|
+
// node_modules/.pnpm/args-tokenizer@0.3.0/node_modules/args-tokenizer/dist/args-tokenizer.js
|
|
245
245
|
var spaceRegex = /\s/;
|
|
246
|
-
var tokenizeArgs = (argsString) => {
|
|
246
|
+
var tokenizeArgs = (argsString, options) => {
|
|
247
247
|
const tokens = [];
|
|
248
248
|
let currentToken = "";
|
|
249
249
|
let openningQuote;
|
|
@@ -283,6 +283,12 @@ var tokenizeArgs = (argsString) => {
|
|
|
283
283
|
if (currentToken.length > 0) {
|
|
284
284
|
tokens.push(currentToken);
|
|
285
285
|
}
|
|
286
|
+
if (options == null ? void 0 : options.loose) {
|
|
287
|
+
return tokens;
|
|
288
|
+
}
|
|
289
|
+
if (openningQuote) {
|
|
290
|
+
throw Error("Unexpected end of string. Closing quote is missing.");
|
|
291
|
+
}
|
|
286
292
|
return tokens;
|
|
287
293
|
};
|
|
288
294
|
|
|
@@ -636,7 +642,7 @@ async function gitCommit(operation) {
|
|
|
636
642
|
args.push("--message", commitMessage);
|
|
637
643
|
if (!all)
|
|
638
644
|
args = args.concat(updatedFiles);
|
|
639
|
-
await (0, import_tinyexec2.x)("git", ["commit", ...args]);
|
|
645
|
+
await (0, import_tinyexec2.x)("git", ["commit", ...args], { throwOnError: true });
|
|
640
646
|
return operation.update({ event: "git commit" /* GitCommit */, commitMessage });
|
|
641
647
|
}
|
|
642
648
|
async function gitTag(operation) {
|
|
@@ -657,15 +663,15 @@ async function gitTag(operation) {
|
|
|
657
663
|
if (operation.options.sign) {
|
|
658
664
|
args.push("--sign");
|
|
659
665
|
}
|
|
660
|
-
await (0, import_tinyexec2.x)("git", ["tag", ...args]);
|
|
666
|
+
await (0, import_tinyexec2.x)("git", ["tag", ...args], { throwOnError: true });
|
|
661
667
|
return operation.update({ event: "git tag" /* GitTag */, tagName });
|
|
662
668
|
}
|
|
663
669
|
async function gitPush(operation) {
|
|
664
670
|
if (!operation.options.push)
|
|
665
671
|
return operation;
|
|
666
|
-
await (0, import_tinyexec2.x)("git", ["push"]);
|
|
672
|
+
await (0, import_tinyexec2.x)("git", ["push"], { throwOnError: true });
|
|
667
673
|
if (operation.options.tag) {
|
|
668
|
-
await (0, import_tinyexec2.x)("git", ["push", "--tags"]);
|
|
674
|
+
await (0, import_tinyexec2.x)("git", ["push", "--tags"], { throwOnError: true });
|
|
669
675
|
}
|
|
670
676
|
return operation.update({ event: "git push" /* GitPush */ });
|
|
671
677
|
}
|
|
@@ -964,6 +970,7 @@ async function versionBump(arg = {}) {
|
|
|
964
970
|
const [command, ...args] = tokenizeArgs(operation.options.execute);
|
|
965
971
|
console.log(symbols_exports.info, "Executing script", command, ...args);
|
|
966
972
|
await (0, import_tinyexec4.x)(command, args, {
|
|
973
|
+
throwOnError: true,
|
|
967
974
|
nodeOptions: {
|
|
968
975
|
stdio: "inherit",
|
|
969
976
|
cwd: operation.options.cwd
|
|
@@ -1003,7 +1010,7 @@ var import_picocolors4 = __toESM(require_picocolors());
|
|
|
1003
1010
|
var import_semver3 = require("semver");
|
|
1004
1011
|
|
|
1005
1012
|
// package.json
|
|
1006
|
-
var version = "9.9.
|
|
1013
|
+
var version = "9.9.3";
|
|
1007
1014
|
|
|
1008
1015
|
// src/config.ts
|
|
1009
1016
|
var import_node_path2 = require("path");
|
package/dist/cli/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
require_picocolors,
|
|
11
11
|
symbols_exports,
|
|
12
12
|
versionBump
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-H7UXDA7O.mjs";
|
|
14
14
|
|
|
15
15
|
// src/cli/index.ts
|
|
16
16
|
import process2 from "node:process";
|
|
@@ -23,7 +23,7 @@ import cac from "cac";
|
|
|
23
23
|
import { valid as isValidVersion } from "semver";
|
|
24
24
|
|
|
25
25
|
// package.json
|
|
26
|
-
var version = "9.9.
|
|
26
|
+
var version = "9.9.3";
|
|
27
27
|
|
|
28
28
|
// src/cli/parse-args.ts
|
|
29
29
|
async function parseArgs() {
|
package/dist/index.js
CHANGED
|
@@ -147,9 +147,9 @@ module.exports = __toCommonJS(src_exports);
|
|
|
147
147
|
// src/version-bump.ts
|
|
148
148
|
var import_node_process4 = __toESM(require("process"));
|
|
149
149
|
|
|
150
|
-
// node_modules/.pnpm/args-tokenizer@0.
|
|
150
|
+
// node_modules/.pnpm/args-tokenizer@0.3.0/node_modules/args-tokenizer/dist/args-tokenizer.js
|
|
151
151
|
var spaceRegex = /\s/;
|
|
152
|
-
var tokenizeArgs = (argsString) => {
|
|
152
|
+
var tokenizeArgs = (argsString, options) => {
|
|
153
153
|
const tokens = [];
|
|
154
154
|
let currentToken = "";
|
|
155
155
|
let openningQuote;
|
|
@@ -189,6 +189,12 @@ var tokenizeArgs = (argsString) => {
|
|
|
189
189
|
if (currentToken.length > 0) {
|
|
190
190
|
tokens.push(currentToken);
|
|
191
191
|
}
|
|
192
|
+
if (options == null ? void 0 : options.loose) {
|
|
193
|
+
return tokens;
|
|
194
|
+
}
|
|
195
|
+
if (openningQuote) {
|
|
196
|
+
throw Error("Unexpected end of string. Closing quote is missing.");
|
|
197
|
+
}
|
|
192
198
|
return tokens;
|
|
193
199
|
};
|
|
194
200
|
|
|
@@ -657,7 +663,7 @@ async function gitCommit(operation) {
|
|
|
657
663
|
args.push("--message", commitMessage);
|
|
658
664
|
if (!all)
|
|
659
665
|
args = args.concat(updatedFiles);
|
|
660
|
-
await (0, import_tinyexec2.x)("git", ["commit", ...args]);
|
|
666
|
+
await (0, import_tinyexec2.x)("git", ["commit", ...args], { throwOnError: true });
|
|
661
667
|
return operation.update({ event: "git commit" /* GitCommit */, commitMessage });
|
|
662
668
|
}
|
|
663
669
|
async function gitTag(operation) {
|
|
@@ -678,15 +684,15 @@ async function gitTag(operation) {
|
|
|
678
684
|
if (operation.options.sign) {
|
|
679
685
|
args.push("--sign");
|
|
680
686
|
}
|
|
681
|
-
await (0, import_tinyexec2.x)("git", ["tag", ...args]);
|
|
687
|
+
await (0, import_tinyexec2.x)("git", ["tag", ...args], { throwOnError: true });
|
|
682
688
|
return operation.update({ event: "git tag" /* GitTag */, tagName });
|
|
683
689
|
}
|
|
684
690
|
async function gitPush(operation) {
|
|
685
691
|
if (!operation.options.push)
|
|
686
692
|
return operation;
|
|
687
|
-
await (0, import_tinyexec2.x)("git", ["push"]);
|
|
693
|
+
await (0, import_tinyexec2.x)("git", ["push"], { throwOnError: true });
|
|
688
694
|
if (operation.options.tag) {
|
|
689
|
-
await (0, import_tinyexec2.x)("git", ["push", "--tags"]);
|
|
695
|
+
await (0, import_tinyexec2.x)("git", ["push", "--tags"], { throwOnError: true });
|
|
690
696
|
}
|
|
691
697
|
return operation.update({ event: "git push" /* GitPush */ });
|
|
692
698
|
}
|
|
@@ -985,6 +991,7 @@ async function versionBump(arg = {}) {
|
|
|
985
991
|
const [command, ...args] = tokenizeArgs(operation.options.execute);
|
|
986
992
|
console.log(symbols_exports.info, "Executing script", command, ...args);
|
|
987
993
|
await (0, import_tinyexec4.x)(command, args, {
|
|
994
|
+
throwOnError: true,
|
|
988
995
|
nodeOptions: {
|
|
989
996
|
stdio: "inherit",
|
|
990
997
|
cwd: operation.options.cwd
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bumpp",
|
|
3
|
-
"version": "9.9.
|
|
4
|
-
"packageManager": "pnpm@9.15.
|
|
3
|
+
"version": "9.9.3",
|
|
4
|
+
"packageManager": "pnpm@9.15.3",
|
|
5
5
|
"description": "Bump version, commit changes, tag, and push to Git",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "James Messinger",
|
|
@@ -67,16 +67,16 @@
|
|
|
67
67
|
"jsonc-parser": "^3.3.1",
|
|
68
68
|
"prompts": "^2.4.2",
|
|
69
69
|
"semver": "^7.6.3",
|
|
70
|
-
"tinyexec": "^0.3.
|
|
70
|
+
"tinyexec": "^0.3.2",
|
|
71
71
|
"tinyglobby": "^0.2.10"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@antfu/eslint-config": "^3.12.
|
|
74
|
+
"@antfu/eslint-config": "^3.12.1",
|
|
75
75
|
"@types/js-yaml": "^4.0.9",
|
|
76
|
-
"@types/node": "^22.10.
|
|
76
|
+
"@types/node": "^22.10.5",
|
|
77
77
|
"@types/prompts": "^2.4.9",
|
|
78
78
|
"@types/semver": "^7.5.8",
|
|
79
|
-
"args-tokenizer": "^0.
|
|
79
|
+
"args-tokenizer": "^0.3.0",
|
|
80
80
|
"eslint": "^9.17.0",
|
|
81
81
|
"esno": "^4.8.0",
|
|
82
82
|
"log-symbols": "^7.0.0",
|