bumpp 9.9.1 → 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-PU4CGCPI.mjs → chunk-H7UXDA7O.mjs} +59 -203
- package/dist/cli/index.js +60 -204
- package/dist/cli/index.mjs +2 -2
- package/dist/index.js +57 -203
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
|
@@ -130,203 +130,6 @@ var require_picocolors = __commonJS({
|
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
|
|
133
|
-
// node_modules/.pnpm/shell-quote@1.8.2/node_modules/shell-quote/parse.js
|
|
134
|
-
var require_parse = __commonJS({
|
|
135
|
-
"node_modules/.pnpm/shell-quote@1.8.2/node_modules/shell-quote/parse.js"(exports, module) {
|
|
136
|
-
"use strict";
|
|
137
|
-
var CONTROL = "(?:" + [
|
|
138
|
-
"\\|\\|",
|
|
139
|
-
"\\&\\&",
|
|
140
|
-
";;",
|
|
141
|
-
"\\|\\&",
|
|
142
|
-
"\\<\\(",
|
|
143
|
-
"\\<\\<\\<",
|
|
144
|
-
">>",
|
|
145
|
-
">\\&",
|
|
146
|
-
"<\\&",
|
|
147
|
-
"[&;()|<>]"
|
|
148
|
-
].join("|") + ")";
|
|
149
|
-
var controlRE = new RegExp("^" + CONTROL + "$");
|
|
150
|
-
var META = "|&;()<> \\t";
|
|
151
|
-
var SINGLE_QUOTE = '"((\\\\"|[^"])*?)"';
|
|
152
|
-
var DOUBLE_QUOTE = "'((\\\\'|[^'])*?)'";
|
|
153
|
-
var hash = /^#$/;
|
|
154
|
-
var SQ = "'";
|
|
155
|
-
var DQ = '"';
|
|
156
|
-
var DS = "$";
|
|
157
|
-
var TOKEN = "";
|
|
158
|
-
var mult = 4294967296;
|
|
159
|
-
for (i = 0; i < 4; i++) {
|
|
160
|
-
TOKEN += (mult * Math.random()).toString(16);
|
|
161
|
-
}
|
|
162
|
-
var i;
|
|
163
|
-
var startsWithToken = new RegExp("^" + TOKEN);
|
|
164
|
-
function matchAll(s, r) {
|
|
165
|
-
var origIndex = r.lastIndex;
|
|
166
|
-
var matches = [];
|
|
167
|
-
var matchObj;
|
|
168
|
-
while (matchObj = r.exec(s)) {
|
|
169
|
-
matches.push(matchObj);
|
|
170
|
-
if (r.lastIndex === matchObj.index) {
|
|
171
|
-
r.lastIndex += 1;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
r.lastIndex = origIndex;
|
|
175
|
-
return matches;
|
|
176
|
-
}
|
|
177
|
-
function getVar(env, pre, key) {
|
|
178
|
-
var r = typeof env === "function" ? env(key) : env[key];
|
|
179
|
-
if (typeof r === "undefined" && key != "") {
|
|
180
|
-
r = "";
|
|
181
|
-
} else if (typeof r === "undefined") {
|
|
182
|
-
r = "$";
|
|
183
|
-
}
|
|
184
|
-
if (typeof r === "object") {
|
|
185
|
-
return pre + TOKEN + JSON.stringify(r) + TOKEN;
|
|
186
|
-
}
|
|
187
|
-
return pre + r;
|
|
188
|
-
}
|
|
189
|
-
function parseInternal(string, env, opts) {
|
|
190
|
-
if (!opts) {
|
|
191
|
-
opts = {};
|
|
192
|
-
}
|
|
193
|
-
var BS = opts.escape || "\\";
|
|
194
|
-
var BAREWORD = "(\\" + BS + `['"` + META + `]|[^\\s'"` + META + "])+";
|
|
195
|
-
var chunker = new RegExp([
|
|
196
|
-
"(" + CONTROL + ")",
|
|
197
|
-
// control chars
|
|
198
|
-
"(" + BAREWORD + "|" + SINGLE_QUOTE + "|" + DOUBLE_QUOTE + ")+"
|
|
199
|
-
].join("|"), "g");
|
|
200
|
-
var matches = matchAll(string, chunker);
|
|
201
|
-
if (matches.length === 0) {
|
|
202
|
-
return [];
|
|
203
|
-
}
|
|
204
|
-
if (!env) {
|
|
205
|
-
env = {};
|
|
206
|
-
}
|
|
207
|
-
var commented = false;
|
|
208
|
-
return matches.map(function(match) {
|
|
209
|
-
var s = match[0];
|
|
210
|
-
if (!s || commented) {
|
|
211
|
-
return void 0;
|
|
212
|
-
}
|
|
213
|
-
if (controlRE.test(s)) {
|
|
214
|
-
return { op: s };
|
|
215
|
-
}
|
|
216
|
-
var quote = false;
|
|
217
|
-
var esc = false;
|
|
218
|
-
var out = "";
|
|
219
|
-
var isGlob = false;
|
|
220
|
-
var i2;
|
|
221
|
-
function parseEnvVar() {
|
|
222
|
-
i2 += 1;
|
|
223
|
-
var varend;
|
|
224
|
-
var varname;
|
|
225
|
-
var char = s.charAt(i2);
|
|
226
|
-
if (char === "{") {
|
|
227
|
-
i2 += 1;
|
|
228
|
-
if (s.charAt(i2) === "}") {
|
|
229
|
-
throw new Error("Bad substitution: " + s.slice(i2 - 2, i2 + 1));
|
|
230
|
-
}
|
|
231
|
-
varend = s.indexOf("}", i2);
|
|
232
|
-
if (varend < 0) {
|
|
233
|
-
throw new Error("Bad substitution: " + s.slice(i2));
|
|
234
|
-
}
|
|
235
|
-
varname = s.slice(i2, varend);
|
|
236
|
-
i2 = varend;
|
|
237
|
-
} else if (/[*@#?$!_-]/.test(char)) {
|
|
238
|
-
varname = char;
|
|
239
|
-
i2 += 1;
|
|
240
|
-
} else {
|
|
241
|
-
var slicedFromI = s.slice(i2);
|
|
242
|
-
varend = slicedFromI.match(/[^\w\d_]/);
|
|
243
|
-
if (!varend) {
|
|
244
|
-
varname = slicedFromI;
|
|
245
|
-
i2 = s.length;
|
|
246
|
-
} else {
|
|
247
|
-
varname = slicedFromI.slice(0, varend.index);
|
|
248
|
-
i2 += varend.index - 1;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
return getVar(env, "", varname);
|
|
252
|
-
}
|
|
253
|
-
for (i2 = 0; i2 < s.length; i2++) {
|
|
254
|
-
var c4 = s.charAt(i2);
|
|
255
|
-
isGlob = isGlob || !quote && (c4 === "*" || c4 === "?");
|
|
256
|
-
if (esc) {
|
|
257
|
-
out += c4;
|
|
258
|
-
esc = false;
|
|
259
|
-
} else if (quote) {
|
|
260
|
-
if (c4 === quote) {
|
|
261
|
-
quote = false;
|
|
262
|
-
} else if (quote == SQ) {
|
|
263
|
-
out += c4;
|
|
264
|
-
} else {
|
|
265
|
-
if (c4 === BS) {
|
|
266
|
-
i2 += 1;
|
|
267
|
-
c4 = s.charAt(i2);
|
|
268
|
-
if (c4 === DQ || c4 === BS || c4 === DS) {
|
|
269
|
-
out += c4;
|
|
270
|
-
} else {
|
|
271
|
-
out += BS + c4;
|
|
272
|
-
}
|
|
273
|
-
} else if (c4 === DS) {
|
|
274
|
-
out += parseEnvVar();
|
|
275
|
-
} else {
|
|
276
|
-
out += c4;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
} else if (c4 === DQ || c4 === SQ) {
|
|
280
|
-
quote = c4;
|
|
281
|
-
} else if (controlRE.test(c4)) {
|
|
282
|
-
return { op: s };
|
|
283
|
-
} else if (hash.test(c4)) {
|
|
284
|
-
commented = true;
|
|
285
|
-
var commentObj = { comment: string.slice(match.index + i2 + 1) };
|
|
286
|
-
if (out.length) {
|
|
287
|
-
return [out, commentObj];
|
|
288
|
-
}
|
|
289
|
-
return [commentObj];
|
|
290
|
-
} else if (c4 === BS) {
|
|
291
|
-
esc = true;
|
|
292
|
-
} else if (c4 === DS) {
|
|
293
|
-
out += parseEnvVar();
|
|
294
|
-
} else {
|
|
295
|
-
out += c4;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
if (isGlob) {
|
|
299
|
-
return { op: "glob", pattern: out };
|
|
300
|
-
}
|
|
301
|
-
return out;
|
|
302
|
-
}).reduce(function(prev, arg) {
|
|
303
|
-
return typeof arg === "undefined" ? prev : prev.concat(arg);
|
|
304
|
-
}, []);
|
|
305
|
-
}
|
|
306
|
-
module.exports = function parse2(s, env, opts) {
|
|
307
|
-
var mapped = parseInternal(s, env, opts);
|
|
308
|
-
if (typeof env !== "function") {
|
|
309
|
-
return mapped;
|
|
310
|
-
}
|
|
311
|
-
return mapped.reduce(function(acc, s2) {
|
|
312
|
-
if (typeof s2 === "object") {
|
|
313
|
-
return acc.concat(s2);
|
|
314
|
-
}
|
|
315
|
-
var xs = s2.split(RegExp("(" + TOKEN + ".*?" + TOKEN + ")", "g"));
|
|
316
|
-
if (xs.length === 1) {
|
|
317
|
-
return acc.concat(xs[0]);
|
|
318
|
-
}
|
|
319
|
-
return acc.concat(xs.filter(Boolean).map(function(x5) {
|
|
320
|
-
if (startsWithToken.test(x5)) {
|
|
321
|
-
return JSON.parse(x5.split(TOKEN)[1]);
|
|
322
|
-
}
|
|
323
|
-
return x5;
|
|
324
|
-
}));
|
|
325
|
-
}, []);
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
});
|
|
329
|
-
|
|
330
133
|
// node_modules/.pnpm/log-symbols@7.0.0/node_modules/log-symbols/symbols.js
|
|
331
134
|
var symbols_exports = {};
|
|
332
135
|
__export(symbols_exports, {
|
|
@@ -452,8 +255,60 @@ var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
|
|
|
452
255
|
|
|
453
256
|
// src/version-bump.ts
|
|
454
257
|
import process5 from "node:process";
|
|
258
|
+
|
|
259
|
+
// node_modules/.pnpm/args-tokenizer@0.3.0/node_modules/args-tokenizer/dist/args-tokenizer.js
|
|
260
|
+
var spaceRegex = /\s/;
|
|
261
|
+
var tokenizeArgs = (argsString, options) => {
|
|
262
|
+
const tokens = [];
|
|
263
|
+
let currentToken = "";
|
|
264
|
+
let openningQuote;
|
|
265
|
+
let escaped = false;
|
|
266
|
+
for (let index = 0; index < argsString.length; index += 1) {
|
|
267
|
+
const char = argsString[index];
|
|
268
|
+
if (escaped) {
|
|
269
|
+
escaped = false;
|
|
270
|
+
if (openningQuote || char !== "\n") {
|
|
271
|
+
currentToken += char;
|
|
272
|
+
}
|
|
273
|
+
continue;
|
|
274
|
+
}
|
|
275
|
+
if (char === "\\") {
|
|
276
|
+
escaped = true;
|
|
277
|
+
continue;
|
|
278
|
+
}
|
|
279
|
+
if (openningQuote === void 0 && spaceRegex.test(char)) {
|
|
280
|
+
if (currentToken.length > 0) {
|
|
281
|
+
tokens.push(currentToken);
|
|
282
|
+
currentToken = "";
|
|
283
|
+
}
|
|
284
|
+
continue;
|
|
285
|
+
}
|
|
286
|
+
if (char === "'" || char === '"') {
|
|
287
|
+
if (openningQuote === void 0) {
|
|
288
|
+
openningQuote = char;
|
|
289
|
+
continue;
|
|
290
|
+
}
|
|
291
|
+
if (openningQuote === char) {
|
|
292
|
+
openningQuote = void 0;
|
|
293
|
+
continue;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
currentToken += char;
|
|
297
|
+
}
|
|
298
|
+
if (currentToken.length > 0) {
|
|
299
|
+
tokens.push(currentToken);
|
|
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
|
+
}
|
|
307
|
+
return tokens;
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
// src/version-bump.ts
|
|
455
311
|
var import_picocolors3 = __toESM(require_picocolors());
|
|
456
|
-
var import_parse = __toESM(require_parse());
|
|
457
312
|
import prompts2 from "prompts";
|
|
458
313
|
import { x as x4 } from "tinyexec";
|
|
459
314
|
|
|
@@ -792,7 +647,7 @@ async function gitCommit(operation) {
|
|
|
792
647
|
args.push("--message", commitMessage);
|
|
793
648
|
if (!all)
|
|
794
649
|
args = args.concat(updatedFiles);
|
|
795
|
-
await x2("git", ["commit", ...args]);
|
|
650
|
+
await x2("git", ["commit", ...args], { throwOnError: true });
|
|
796
651
|
return operation.update({ event: "git commit" /* GitCommit */, commitMessage });
|
|
797
652
|
}
|
|
798
653
|
async function gitTag(operation) {
|
|
@@ -813,15 +668,15 @@ async function gitTag(operation) {
|
|
|
813
668
|
if (operation.options.sign) {
|
|
814
669
|
args.push("--sign");
|
|
815
670
|
}
|
|
816
|
-
await x2("git", ["tag", ...args]);
|
|
671
|
+
await x2("git", ["tag", ...args], { throwOnError: true });
|
|
817
672
|
return operation.update({ event: "git tag" /* GitTag */, tagName });
|
|
818
673
|
}
|
|
819
674
|
async function gitPush(operation) {
|
|
820
675
|
if (!operation.options.push)
|
|
821
676
|
return operation;
|
|
822
|
-
await x2("git", ["push"]);
|
|
677
|
+
await x2("git", ["push"], { throwOnError: true });
|
|
823
678
|
if (operation.options.tag) {
|
|
824
|
-
await x2("git", ["push", "--tags"]);
|
|
679
|
+
await x2("git", ["push", "--tags"], { throwOnError: true });
|
|
825
680
|
}
|
|
826
681
|
return operation.update({ event: "git push" /* GitPush */ });
|
|
827
682
|
}
|
|
@@ -1117,9 +972,10 @@ async function versionBump(arg = {}) {
|
|
|
1117
972
|
if (typeof operation.options.execute === "function") {
|
|
1118
973
|
await operation.options.execute(operation);
|
|
1119
974
|
} else {
|
|
1120
|
-
const [command, ...args] = (
|
|
975
|
+
const [command, ...args] = tokenizeArgs(operation.options.execute);
|
|
1121
976
|
console.log(symbols_exports.info, "Executing script", command, ...args);
|
|
1122
977
|
await x4(command, args, {
|
|
978
|
+
throwOnError: true,
|
|
1123
979
|
nodeOptions: {
|
|
1124
980
|
stdio: "inherit",
|
|
1125
981
|
cwd: operation.options.cwd
|
package/dist/cli/index.js
CHANGED
|
@@ -130,203 +130,6 @@ var require_picocolors = __commonJS({
|
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
|
|
133
|
-
// node_modules/.pnpm/shell-quote@1.8.2/node_modules/shell-quote/parse.js
|
|
134
|
-
var require_parse = __commonJS({
|
|
135
|
-
"node_modules/.pnpm/shell-quote@1.8.2/node_modules/shell-quote/parse.js"(exports2, module2) {
|
|
136
|
-
"use strict";
|
|
137
|
-
var CONTROL = "(?:" + [
|
|
138
|
-
"\\|\\|",
|
|
139
|
-
"\\&\\&",
|
|
140
|
-
";;",
|
|
141
|
-
"\\|\\&",
|
|
142
|
-
"\\<\\(",
|
|
143
|
-
"\\<\\<\\<",
|
|
144
|
-
">>",
|
|
145
|
-
">\\&",
|
|
146
|
-
"<\\&",
|
|
147
|
-
"[&;()|<>]"
|
|
148
|
-
].join("|") + ")";
|
|
149
|
-
var controlRE = new RegExp("^" + CONTROL + "$");
|
|
150
|
-
var META = "|&;()<> \\t";
|
|
151
|
-
var SINGLE_QUOTE = '"((\\\\"|[^"])*?)"';
|
|
152
|
-
var DOUBLE_QUOTE = "'((\\\\'|[^'])*?)'";
|
|
153
|
-
var hash = /^#$/;
|
|
154
|
-
var SQ = "'";
|
|
155
|
-
var DQ = '"';
|
|
156
|
-
var DS = "$";
|
|
157
|
-
var TOKEN = "";
|
|
158
|
-
var mult = 4294967296;
|
|
159
|
-
for (i = 0; i < 4; i++) {
|
|
160
|
-
TOKEN += (mult * Math.random()).toString(16);
|
|
161
|
-
}
|
|
162
|
-
var i;
|
|
163
|
-
var startsWithToken = new RegExp("^" + TOKEN);
|
|
164
|
-
function matchAll(s, r) {
|
|
165
|
-
var origIndex = r.lastIndex;
|
|
166
|
-
var matches = [];
|
|
167
|
-
var matchObj;
|
|
168
|
-
while (matchObj = r.exec(s)) {
|
|
169
|
-
matches.push(matchObj);
|
|
170
|
-
if (r.lastIndex === matchObj.index) {
|
|
171
|
-
r.lastIndex += 1;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
r.lastIndex = origIndex;
|
|
175
|
-
return matches;
|
|
176
|
-
}
|
|
177
|
-
function getVar(env, pre, key) {
|
|
178
|
-
var r = typeof env === "function" ? env(key) : env[key];
|
|
179
|
-
if (typeof r === "undefined" && key != "") {
|
|
180
|
-
r = "";
|
|
181
|
-
} else if (typeof r === "undefined") {
|
|
182
|
-
r = "$";
|
|
183
|
-
}
|
|
184
|
-
if (typeof r === "object") {
|
|
185
|
-
return pre + TOKEN + JSON.stringify(r) + TOKEN;
|
|
186
|
-
}
|
|
187
|
-
return pre + r;
|
|
188
|
-
}
|
|
189
|
-
function parseInternal(string, env, opts) {
|
|
190
|
-
if (!opts) {
|
|
191
|
-
opts = {};
|
|
192
|
-
}
|
|
193
|
-
var BS = opts.escape || "\\";
|
|
194
|
-
var BAREWORD = "(\\" + BS + `['"` + META + `]|[^\\s'"` + META + "])+";
|
|
195
|
-
var chunker = new RegExp([
|
|
196
|
-
"(" + CONTROL + ")",
|
|
197
|
-
// control chars
|
|
198
|
-
"(" + BAREWORD + "|" + SINGLE_QUOTE + "|" + DOUBLE_QUOTE + ")+"
|
|
199
|
-
].join("|"), "g");
|
|
200
|
-
var matches = matchAll(string, chunker);
|
|
201
|
-
if (matches.length === 0) {
|
|
202
|
-
return [];
|
|
203
|
-
}
|
|
204
|
-
if (!env) {
|
|
205
|
-
env = {};
|
|
206
|
-
}
|
|
207
|
-
var commented = false;
|
|
208
|
-
return matches.map(function(match) {
|
|
209
|
-
var s = match[0];
|
|
210
|
-
if (!s || commented) {
|
|
211
|
-
return void 0;
|
|
212
|
-
}
|
|
213
|
-
if (controlRE.test(s)) {
|
|
214
|
-
return { op: s };
|
|
215
|
-
}
|
|
216
|
-
var quote = false;
|
|
217
|
-
var esc = false;
|
|
218
|
-
var out = "";
|
|
219
|
-
var isGlob = false;
|
|
220
|
-
var i2;
|
|
221
|
-
function parseEnvVar() {
|
|
222
|
-
i2 += 1;
|
|
223
|
-
var varend;
|
|
224
|
-
var varname;
|
|
225
|
-
var char = s.charAt(i2);
|
|
226
|
-
if (char === "{") {
|
|
227
|
-
i2 += 1;
|
|
228
|
-
if (s.charAt(i2) === "}") {
|
|
229
|
-
throw new Error("Bad substitution: " + s.slice(i2 - 2, i2 + 1));
|
|
230
|
-
}
|
|
231
|
-
varend = s.indexOf("}", i2);
|
|
232
|
-
if (varend < 0) {
|
|
233
|
-
throw new Error("Bad substitution: " + s.slice(i2));
|
|
234
|
-
}
|
|
235
|
-
varname = s.slice(i2, varend);
|
|
236
|
-
i2 = varend;
|
|
237
|
-
} else if (/[*@#?$!_-]/.test(char)) {
|
|
238
|
-
varname = char;
|
|
239
|
-
i2 += 1;
|
|
240
|
-
} else {
|
|
241
|
-
var slicedFromI = s.slice(i2);
|
|
242
|
-
varend = slicedFromI.match(/[^\w\d_]/);
|
|
243
|
-
if (!varend) {
|
|
244
|
-
varname = slicedFromI;
|
|
245
|
-
i2 = s.length;
|
|
246
|
-
} else {
|
|
247
|
-
varname = slicedFromI.slice(0, varend.index);
|
|
248
|
-
i2 += varend.index - 1;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
return getVar(env, "", varname);
|
|
252
|
-
}
|
|
253
|
-
for (i2 = 0; i2 < s.length; i2++) {
|
|
254
|
-
var c5 = s.charAt(i2);
|
|
255
|
-
isGlob = isGlob || !quote && (c5 === "*" || c5 === "?");
|
|
256
|
-
if (esc) {
|
|
257
|
-
out += c5;
|
|
258
|
-
esc = false;
|
|
259
|
-
} else if (quote) {
|
|
260
|
-
if (c5 === quote) {
|
|
261
|
-
quote = false;
|
|
262
|
-
} else if (quote == SQ) {
|
|
263
|
-
out += c5;
|
|
264
|
-
} else {
|
|
265
|
-
if (c5 === BS) {
|
|
266
|
-
i2 += 1;
|
|
267
|
-
c5 = s.charAt(i2);
|
|
268
|
-
if (c5 === DQ || c5 === BS || c5 === DS) {
|
|
269
|
-
out += c5;
|
|
270
|
-
} else {
|
|
271
|
-
out += BS + c5;
|
|
272
|
-
}
|
|
273
|
-
} else if (c5 === DS) {
|
|
274
|
-
out += parseEnvVar();
|
|
275
|
-
} else {
|
|
276
|
-
out += c5;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
} else if (c5 === DQ || c5 === SQ) {
|
|
280
|
-
quote = c5;
|
|
281
|
-
} else if (controlRE.test(c5)) {
|
|
282
|
-
return { op: s };
|
|
283
|
-
} else if (hash.test(c5)) {
|
|
284
|
-
commented = true;
|
|
285
|
-
var commentObj = { comment: string.slice(match.index + i2 + 1) };
|
|
286
|
-
if (out.length) {
|
|
287
|
-
return [out, commentObj];
|
|
288
|
-
}
|
|
289
|
-
return [commentObj];
|
|
290
|
-
} else if (c5 === BS) {
|
|
291
|
-
esc = true;
|
|
292
|
-
} else if (c5 === DS) {
|
|
293
|
-
out += parseEnvVar();
|
|
294
|
-
} else {
|
|
295
|
-
out += c5;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
if (isGlob) {
|
|
299
|
-
return { op: "glob", pattern: out };
|
|
300
|
-
}
|
|
301
|
-
return out;
|
|
302
|
-
}).reduce(function(prev, arg) {
|
|
303
|
-
return typeof arg === "undefined" ? prev : prev.concat(arg);
|
|
304
|
-
}, []);
|
|
305
|
-
}
|
|
306
|
-
module2.exports = function parse2(s, env, opts) {
|
|
307
|
-
var mapped = parseInternal(s, env, opts);
|
|
308
|
-
if (typeof env !== "function") {
|
|
309
|
-
return mapped;
|
|
310
|
-
}
|
|
311
|
-
return mapped.reduce(function(acc, s2) {
|
|
312
|
-
if (typeof s2 === "object") {
|
|
313
|
-
return acc.concat(s2);
|
|
314
|
-
}
|
|
315
|
-
var xs = s2.split(RegExp("(" + TOKEN + ".*?" + TOKEN + ")", "g"));
|
|
316
|
-
if (xs.length === 1) {
|
|
317
|
-
return acc.concat(xs[0]);
|
|
318
|
-
}
|
|
319
|
-
return acc.concat(xs.filter(Boolean).map(function(x6) {
|
|
320
|
-
if (startsWithToken.test(x6)) {
|
|
321
|
-
return JSON.parse(x6.split(TOKEN)[1]);
|
|
322
|
-
}
|
|
323
|
-
return x6;
|
|
324
|
-
}));
|
|
325
|
-
}, []);
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
});
|
|
329
|
-
|
|
330
133
|
// src/cli/index.ts
|
|
331
134
|
var cli_exports = {};
|
|
332
135
|
__export(cli_exports, {
|
|
@@ -437,9 +240,61 @@ var import_tinyexec5 = require("tinyexec");
|
|
|
437
240
|
|
|
438
241
|
// src/version-bump.ts
|
|
439
242
|
var import_node_process4 = __toESM(require("process"));
|
|
243
|
+
|
|
244
|
+
// node_modules/.pnpm/args-tokenizer@0.3.0/node_modules/args-tokenizer/dist/args-tokenizer.js
|
|
245
|
+
var spaceRegex = /\s/;
|
|
246
|
+
var tokenizeArgs = (argsString, options) => {
|
|
247
|
+
const tokens = [];
|
|
248
|
+
let currentToken = "";
|
|
249
|
+
let openningQuote;
|
|
250
|
+
let escaped = false;
|
|
251
|
+
for (let index = 0; index < argsString.length; index += 1) {
|
|
252
|
+
const char = argsString[index];
|
|
253
|
+
if (escaped) {
|
|
254
|
+
escaped = false;
|
|
255
|
+
if (openningQuote || char !== "\n") {
|
|
256
|
+
currentToken += char;
|
|
257
|
+
}
|
|
258
|
+
continue;
|
|
259
|
+
}
|
|
260
|
+
if (char === "\\") {
|
|
261
|
+
escaped = true;
|
|
262
|
+
continue;
|
|
263
|
+
}
|
|
264
|
+
if (openningQuote === void 0 && spaceRegex.test(char)) {
|
|
265
|
+
if (currentToken.length > 0) {
|
|
266
|
+
tokens.push(currentToken);
|
|
267
|
+
currentToken = "";
|
|
268
|
+
}
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
if (char === "'" || char === '"') {
|
|
272
|
+
if (openningQuote === void 0) {
|
|
273
|
+
openningQuote = char;
|
|
274
|
+
continue;
|
|
275
|
+
}
|
|
276
|
+
if (openningQuote === char) {
|
|
277
|
+
openningQuote = void 0;
|
|
278
|
+
continue;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
currentToken += char;
|
|
282
|
+
}
|
|
283
|
+
if (currentToken.length > 0) {
|
|
284
|
+
tokens.push(currentToken);
|
|
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
|
+
}
|
|
292
|
+
return tokens;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
// src/version-bump.ts
|
|
440
296
|
var import_picocolors3 = __toESM(require_picocolors());
|
|
441
297
|
var import_prompts2 = __toESM(require("prompts"));
|
|
442
|
-
var import_parse = __toESM(require_parse());
|
|
443
298
|
var import_tinyexec4 = require("tinyexec");
|
|
444
299
|
|
|
445
300
|
// src/get-current-version.ts
|
|
@@ -787,7 +642,7 @@ async function gitCommit(operation) {
|
|
|
787
642
|
args.push("--message", commitMessage);
|
|
788
643
|
if (!all)
|
|
789
644
|
args = args.concat(updatedFiles);
|
|
790
|
-
await (0, import_tinyexec2.x)("git", ["commit", ...args]);
|
|
645
|
+
await (0, import_tinyexec2.x)("git", ["commit", ...args], { throwOnError: true });
|
|
791
646
|
return operation.update({ event: "git commit" /* GitCommit */, commitMessage });
|
|
792
647
|
}
|
|
793
648
|
async function gitTag(operation) {
|
|
@@ -808,15 +663,15 @@ async function gitTag(operation) {
|
|
|
808
663
|
if (operation.options.sign) {
|
|
809
664
|
args.push("--sign");
|
|
810
665
|
}
|
|
811
|
-
await (0, import_tinyexec2.x)("git", ["tag", ...args]);
|
|
666
|
+
await (0, import_tinyexec2.x)("git", ["tag", ...args], { throwOnError: true });
|
|
812
667
|
return operation.update({ event: "git tag" /* GitTag */, tagName });
|
|
813
668
|
}
|
|
814
669
|
async function gitPush(operation) {
|
|
815
670
|
if (!operation.options.push)
|
|
816
671
|
return operation;
|
|
817
|
-
await (0, import_tinyexec2.x)("git", ["push"]);
|
|
672
|
+
await (0, import_tinyexec2.x)("git", ["push"], { throwOnError: true });
|
|
818
673
|
if (operation.options.tag) {
|
|
819
|
-
await (0, import_tinyexec2.x)("git", ["push", "--tags"]);
|
|
674
|
+
await (0, import_tinyexec2.x)("git", ["push", "--tags"], { throwOnError: true });
|
|
820
675
|
}
|
|
821
676
|
return operation.update({ event: "git push" /* GitPush */ });
|
|
822
677
|
}
|
|
@@ -1112,9 +967,10 @@ async function versionBump(arg = {}) {
|
|
|
1112
967
|
if (typeof operation.options.execute === "function") {
|
|
1113
968
|
await operation.options.execute(operation);
|
|
1114
969
|
} else {
|
|
1115
|
-
const [command, ...args] = (
|
|
970
|
+
const [command, ...args] = tokenizeArgs(operation.options.execute);
|
|
1116
971
|
console.log(symbols_exports.info, "Executing script", command, ...args);
|
|
1117
972
|
await (0, import_tinyexec4.x)(command, args, {
|
|
973
|
+
throwOnError: true,
|
|
1118
974
|
nodeOptions: {
|
|
1119
975
|
stdio: "inherit",
|
|
1120
976
|
cwd: operation.options.cwd
|
|
@@ -1154,7 +1010,7 @@ var import_picocolors4 = __toESM(require_picocolors());
|
|
|
1154
1010
|
var import_semver3 = require("semver");
|
|
1155
1011
|
|
|
1156
1012
|
// package.json
|
|
1157
|
-
var version = "9.9.
|
|
1013
|
+
var version = "9.9.3";
|
|
1158
1014
|
|
|
1159
1015
|
// src/config.ts
|
|
1160
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
|
@@ -130,203 +130,6 @@ var require_picocolors = __commonJS({
|
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
|
|
133
|
-
// node_modules/.pnpm/shell-quote@1.8.2/node_modules/shell-quote/parse.js
|
|
134
|
-
var require_parse = __commonJS({
|
|
135
|
-
"node_modules/.pnpm/shell-quote@1.8.2/node_modules/shell-quote/parse.js"(exports2, module2) {
|
|
136
|
-
"use strict";
|
|
137
|
-
var CONTROL = "(?:" + [
|
|
138
|
-
"\\|\\|",
|
|
139
|
-
"\\&\\&",
|
|
140
|
-
";;",
|
|
141
|
-
"\\|\\&",
|
|
142
|
-
"\\<\\(",
|
|
143
|
-
"\\<\\<\\<",
|
|
144
|
-
">>",
|
|
145
|
-
">\\&",
|
|
146
|
-
"<\\&",
|
|
147
|
-
"[&;()|<>]"
|
|
148
|
-
].join("|") + ")";
|
|
149
|
-
var controlRE = new RegExp("^" + CONTROL + "$");
|
|
150
|
-
var META = "|&;()<> \\t";
|
|
151
|
-
var SINGLE_QUOTE = '"((\\\\"|[^"])*?)"';
|
|
152
|
-
var DOUBLE_QUOTE = "'((\\\\'|[^'])*?)'";
|
|
153
|
-
var hash = /^#$/;
|
|
154
|
-
var SQ = "'";
|
|
155
|
-
var DQ = '"';
|
|
156
|
-
var DS = "$";
|
|
157
|
-
var TOKEN = "";
|
|
158
|
-
var mult = 4294967296;
|
|
159
|
-
for (i = 0; i < 4; i++) {
|
|
160
|
-
TOKEN += (mult * Math.random()).toString(16);
|
|
161
|
-
}
|
|
162
|
-
var i;
|
|
163
|
-
var startsWithToken = new RegExp("^" + TOKEN);
|
|
164
|
-
function matchAll(s, r) {
|
|
165
|
-
var origIndex = r.lastIndex;
|
|
166
|
-
var matches = [];
|
|
167
|
-
var matchObj;
|
|
168
|
-
while (matchObj = r.exec(s)) {
|
|
169
|
-
matches.push(matchObj);
|
|
170
|
-
if (r.lastIndex === matchObj.index) {
|
|
171
|
-
r.lastIndex += 1;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
r.lastIndex = origIndex;
|
|
175
|
-
return matches;
|
|
176
|
-
}
|
|
177
|
-
function getVar(env, pre, key) {
|
|
178
|
-
var r = typeof env === "function" ? env(key) : env[key];
|
|
179
|
-
if (typeof r === "undefined" && key != "") {
|
|
180
|
-
r = "";
|
|
181
|
-
} else if (typeof r === "undefined") {
|
|
182
|
-
r = "$";
|
|
183
|
-
}
|
|
184
|
-
if (typeof r === "object") {
|
|
185
|
-
return pre + TOKEN + JSON.stringify(r) + TOKEN;
|
|
186
|
-
}
|
|
187
|
-
return pre + r;
|
|
188
|
-
}
|
|
189
|
-
function parseInternal(string, env, opts) {
|
|
190
|
-
if (!opts) {
|
|
191
|
-
opts = {};
|
|
192
|
-
}
|
|
193
|
-
var BS = opts.escape || "\\";
|
|
194
|
-
var BAREWORD = "(\\" + BS + `['"` + META + `]|[^\\s'"` + META + "])+";
|
|
195
|
-
var chunker = new RegExp([
|
|
196
|
-
"(" + CONTROL + ")",
|
|
197
|
-
// control chars
|
|
198
|
-
"(" + BAREWORD + "|" + SINGLE_QUOTE + "|" + DOUBLE_QUOTE + ")+"
|
|
199
|
-
].join("|"), "g");
|
|
200
|
-
var matches = matchAll(string, chunker);
|
|
201
|
-
if (matches.length === 0) {
|
|
202
|
-
return [];
|
|
203
|
-
}
|
|
204
|
-
if (!env) {
|
|
205
|
-
env = {};
|
|
206
|
-
}
|
|
207
|
-
var commented = false;
|
|
208
|
-
return matches.map(function(match) {
|
|
209
|
-
var s = match[0];
|
|
210
|
-
if (!s || commented) {
|
|
211
|
-
return void 0;
|
|
212
|
-
}
|
|
213
|
-
if (controlRE.test(s)) {
|
|
214
|
-
return { op: s };
|
|
215
|
-
}
|
|
216
|
-
var quote = false;
|
|
217
|
-
var esc = false;
|
|
218
|
-
var out = "";
|
|
219
|
-
var isGlob = false;
|
|
220
|
-
var i2;
|
|
221
|
-
function parseEnvVar() {
|
|
222
|
-
i2 += 1;
|
|
223
|
-
var varend;
|
|
224
|
-
var varname;
|
|
225
|
-
var char = s.charAt(i2);
|
|
226
|
-
if (char === "{") {
|
|
227
|
-
i2 += 1;
|
|
228
|
-
if (s.charAt(i2) === "}") {
|
|
229
|
-
throw new Error("Bad substitution: " + s.slice(i2 - 2, i2 + 1));
|
|
230
|
-
}
|
|
231
|
-
varend = s.indexOf("}", i2);
|
|
232
|
-
if (varend < 0) {
|
|
233
|
-
throw new Error("Bad substitution: " + s.slice(i2));
|
|
234
|
-
}
|
|
235
|
-
varname = s.slice(i2, varend);
|
|
236
|
-
i2 = varend;
|
|
237
|
-
} else if (/[*@#?$!_-]/.test(char)) {
|
|
238
|
-
varname = char;
|
|
239
|
-
i2 += 1;
|
|
240
|
-
} else {
|
|
241
|
-
var slicedFromI = s.slice(i2);
|
|
242
|
-
varend = slicedFromI.match(/[^\w\d_]/);
|
|
243
|
-
if (!varend) {
|
|
244
|
-
varname = slicedFromI;
|
|
245
|
-
i2 = s.length;
|
|
246
|
-
} else {
|
|
247
|
-
varname = slicedFromI.slice(0, varend.index);
|
|
248
|
-
i2 += varend.index - 1;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
return getVar(env, "", varname);
|
|
252
|
-
}
|
|
253
|
-
for (i2 = 0; i2 < s.length; i2++) {
|
|
254
|
-
var c4 = s.charAt(i2);
|
|
255
|
-
isGlob = isGlob || !quote && (c4 === "*" || c4 === "?");
|
|
256
|
-
if (esc) {
|
|
257
|
-
out += c4;
|
|
258
|
-
esc = false;
|
|
259
|
-
} else if (quote) {
|
|
260
|
-
if (c4 === quote) {
|
|
261
|
-
quote = false;
|
|
262
|
-
} else if (quote == SQ) {
|
|
263
|
-
out += c4;
|
|
264
|
-
} else {
|
|
265
|
-
if (c4 === BS) {
|
|
266
|
-
i2 += 1;
|
|
267
|
-
c4 = s.charAt(i2);
|
|
268
|
-
if (c4 === DQ || c4 === BS || c4 === DS) {
|
|
269
|
-
out += c4;
|
|
270
|
-
} else {
|
|
271
|
-
out += BS + c4;
|
|
272
|
-
}
|
|
273
|
-
} else if (c4 === DS) {
|
|
274
|
-
out += parseEnvVar();
|
|
275
|
-
} else {
|
|
276
|
-
out += c4;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
} else if (c4 === DQ || c4 === SQ) {
|
|
280
|
-
quote = c4;
|
|
281
|
-
} else if (controlRE.test(c4)) {
|
|
282
|
-
return { op: s };
|
|
283
|
-
} else if (hash.test(c4)) {
|
|
284
|
-
commented = true;
|
|
285
|
-
var commentObj = { comment: string.slice(match.index + i2 + 1) };
|
|
286
|
-
if (out.length) {
|
|
287
|
-
return [out, commentObj];
|
|
288
|
-
}
|
|
289
|
-
return [commentObj];
|
|
290
|
-
} else if (c4 === BS) {
|
|
291
|
-
esc = true;
|
|
292
|
-
} else if (c4 === DS) {
|
|
293
|
-
out += parseEnvVar();
|
|
294
|
-
} else {
|
|
295
|
-
out += c4;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
if (isGlob) {
|
|
299
|
-
return { op: "glob", pattern: out };
|
|
300
|
-
}
|
|
301
|
-
return out;
|
|
302
|
-
}).reduce(function(prev, arg) {
|
|
303
|
-
return typeof arg === "undefined" ? prev : prev.concat(arg);
|
|
304
|
-
}, []);
|
|
305
|
-
}
|
|
306
|
-
module2.exports = function parse2(s, env, opts) {
|
|
307
|
-
var mapped = parseInternal(s, env, opts);
|
|
308
|
-
if (typeof env !== "function") {
|
|
309
|
-
return mapped;
|
|
310
|
-
}
|
|
311
|
-
return mapped.reduce(function(acc, s2) {
|
|
312
|
-
if (typeof s2 === "object") {
|
|
313
|
-
return acc.concat(s2);
|
|
314
|
-
}
|
|
315
|
-
var xs = s2.split(RegExp("(" + TOKEN + ".*?" + TOKEN + ")", "g"));
|
|
316
|
-
if (xs.length === 1) {
|
|
317
|
-
return acc.concat(xs[0]);
|
|
318
|
-
}
|
|
319
|
-
return acc.concat(xs.filter(Boolean).map(function(x5) {
|
|
320
|
-
if (startsWithToken.test(x5)) {
|
|
321
|
-
return JSON.parse(x5.split(TOKEN)[1]);
|
|
322
|
-
}
|
|
323
|
-
return x5;
|
|
324
|
-
}));
|
|
325
|
-
}, []);
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
});
|
|
329
|
-
|
|
330
133
|
// src/index.ts
|
|
331
134
|
var src_exports = {};
|
|
332
135
|
__export(src_exports, {
|
|
@@ -344,6 +147,57 @@ module.exports = __toCommonJS(src_exports);
|
|
|
344
147
|
// src/version-bump.ts
|
|
345
148
|
var import_node_process4 = __toESM(require("process"));
|
|
346
149
|
|
|
150
|
+
// node_modules/.pnpm/args-tokenizer@0.3.0/node_modules/args-tokenizer/dist/args-tokenizer.js
|
|
151
|
+
var spaceRegex = /\s/;
|
|
152
|
+
var tokenizeArgs = (argsString, options) => {
|
|
153
|
+
const tokens = [];
|
|
154
|
+
let currentToken = "";
|
|
155
|
+
let openningQuote;
|
|
156
|
+
let escaped = false;
|
|
157
|
+
for (let index = 0; index < argsString.length; index += 1) {
|
|
158
|
+
const char = argsString[index];
|
|
159
|
+
if (escaped) {
|
|
160
|
+
escaped = false;
|
|
161
|
+
if (openningQuote || char !== "\n") {
|
|
162
|
+
currentToken += char;
|
|
163
|
+
}
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
if (char === "\\") {
|
|
167
|
+
escaped = true;
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
if (openningQuote === void 0 && spaceRegex.test(char)) {
|
|
171
|
+
if (currentToken.length > 0) {
|
|
172
|
+
tokens.push(currentToken);
|
|
173
|
+
currentToken = "";
|
|
174
|
+
}
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
if (char === "'" || char === '"') {
|
|
178
|
+
if (openningQuote === void 0) {
|
|
179
|
+
openningQuote = char;
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
if (openningQuote === char) {
|
|
183
|
+
openningQuote = void 0;
|
|
184
|
+
continue;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
currentToken += char;
|
|
188
|
+
}
|
|
189
|
+
if (currentToken.length > 0) {
|
|
190
|
+
tokens.push(currentToken);
|
|
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
|
+
}
|
|
198
|
+
return tokens;
|
|
199
|
+
};
|
|
200
|
+
|
|
347
201
|
// node_modules/.pnpm/log-symbols@7.0.0/node_modules/log-symbols/symbols.js
|
|
348
202
|
var symbols_exports = {};
|
|
349
203
|
__export(symbols_exports, {
|
|
@@ -443,7 +297,6 @@ var error = red(_isUnicodeSupported ? "\u2716\uFE0F" : "\xD7");
|
|
|
443
297
|
// src/version-bump.ts
|
|
444
298
|
var import_picocolors3 = __toESM(require_picocolors());
|
|
445
299
|
var import_prompts2 = __toESM(require("prompts"));
|
|
446
|
-
var import_parse = __toESM(require_parse());
|
|
447
300
|
var import_tinyexec4 = require("tinyexec");
|
|
448
301
|
|
|
449
302
|
// src/get-current-version.ts
|
|
@@ -810,7 +663,7 @@ async function gitCommit(operation) {
|
|
|
810
663
|
args.push("--message", commitMessage);
|
|
811
664
|
if (!all)
|
|
812
665
|
args = args.concat(updatedFiles);
|
|
813
|
-
await (0, import_tinyexec2.x)("git", ["commit", ...args]);
|
|
666
|
+
await (0, import_tinyexec2.x)("git", ["commit", ...args], { throwOnError: true });
|
|
814
667
|
return operation.update({ event: "git commit" /* GitCommit */, commitMessage });
|
|
815
668
|
}
|
|
816
669
|
async function gitTag(operation) {
|
|
@@ -831,15 +684,15 @@ async function gitTag(operation) {
|
|
|
831
684
|
if (operation.options.sign) {
|
|
832
685
|
args.push("--sign");
|
|
833
686
|
}
|
|
834
|
-
await (0, import_tinyexec2.x)("git", ["tag", ...args]);
|
|
687
|
+
await (0, import_tinyexec2.x)("git", ["tag", ...args], { throwOnError: true });
|
|
835
688
|
return operation.update({ event: "git tag" /* GitTag */, tagName });
|
|
836
689
|
}
|
|
837
690
|
async function gitPush(operation) {
|
|
838
691
|
if (!operation.options.push)
|
|
839
692
|
return operation;
|
|
840
|
-
await (0, import_tinyexec2.x)("git", ["push"]);
|
|
693
|
+
await (0, import_tinyexec2.x)("git", ["push"], { throwOnError: true });
|
|
841
694
|
if (operation.options.tag) {
|
|
842
|
-
await (0, import_tinyexec2.x)("git", ["push", "--tags"]);
|
|
695
|
+
await (0, import_tinyexec2.x)("git", ["push", "--tags"], { throwOnError: true });
|
|
843
696
|
}
|
|
844
697
|
return operation.update({ event: "git push" /* GitPush */ });
|
|
845
698
|
}
|
|
@@ -1135,9 +988,10 @@ async function versionBump(arg = {}) {
|
|
|
1135
988
|
if (typeof operation.options.execute === "function") {
|
|
1136
989
|
await operation.options.execute(operation);
|
|
1137
990
|
} else {
|
|
1138
|
-
const [command, ...args] = (
|
|
991
|
+
const [command, ...args] = tokenizeArgs(operation.options.execute);
|
|
1139
992
|
console.log(symbols_exports.info, "Executing script", command, ...args);
|
|
1140
993
|
await (0, import_tinyexec4.x)(command, args, {
|
|
994
|
+
throwOnError: true,
|
|
1141
995
|
nodeOptions: {
|
|
1142
996
|
stdio: "inherit",
|
|
1143
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,22 +67,22 @@
|
|
|
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.
|
|
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
|
-
"
|
|
79
|
+
"args-tokenizer": "^0.3.0",
|
|
80
|
+
"eslint": "^9.17.0",
|
|
80
81
|
"esno": "^4.8.0",
|
|
81
82
|
"log-symbols": "^7.0.0",
|
|
82
83
|
"npm-check": "^6.0.1",
|
|
83
84
|
"picocolors": "^1.1.1",
|
|
84
85
|
"rimraf": "^6.0.1",
|
|
85
|
-
"shell-quote": "^1.8.2",
|
|
86
86
|
"tsup": "^8.3.5",
|
|
87
87
|
"typescript": "^5.7.2",
|
|
88
88
|
"vitest": "^2.1.8"
|