bumpp 9.8.1 → 9.9.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/index.js CHANGED
@@ -63,8 +63,8 @@ var require_picocolors = __commonJS({
63
63
  "node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports2, module2) {
64
64
  var p = process || {};
65
65
  var argv = p.argv || [];
66
- var env2 = p.env || {};
67
- var isColorSupported = !(!!env2.NO_COLOR || argv.includes("--no-color")) && (!!env2.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env2.TERM !== "dumb" || !!env2.CI);
66
+ var env = p.env || {};
67
+ var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
68
68
  var formatter = (open, close, replace = open) => (input) => {
69
69
  let string = "" + input, index = string.indexOf(close, open.length);
70
70
  return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
@@ -134,529 +134,115 @@ var require_picocolors = __commonJS({
134
134
  var cli_exports = {};
135
135
  __export(cli_exports, {
136
136
  checkGitStatus: () => checkGitStatus,
137
- main: () => main2
137
+ main: () => main
138
138
  });
139
139
  module.exports = __toCommonJS(cli_exports);
140
- var import_node_process8 = __toESM(require("process"));
141
- var ezSpawn5 = __toESM(require("@jsdevtools/ez-spawn"));
140
+ var import_node_process7 = __toESM(require("process"));
142
141
 
143
- // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/ansi-styles/index.js
144
- var ANSI_BACKGROUND_OFFSET = 10;
145
- var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
146
- var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
147
- var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
148
- var styles = {
149
- modifier: {
150
- reset: [0, 0],
151
- // 21 isn't widely supported and 22 does the same thing
152
- bold: [1, 22],
153
- dim: [2, 22],
154
- italic: [3, 23],
155
- underline: [4, 24],
156
- overline: [53, 55],
157
- inverse: [7, 27],
158
- hidden: [8, 28],
159
- strikethrough: [9, 29]
160
- },
161
- color: {
162
- black: [30, 39],
163
- red: [31, 39],
164
- green: [32, 39],
165
- yellow: [33, 39],
166
- blue: [34, 39],
167
- magenta: [35, 39],
168
- cyan: [36, 39],
169
- white: [37, 39],
170
- // Bright color
171
- blackBright: [90, 39],
172
- gray: [90, 39],
173
- // Alias of `blackBright`
174
- grey: [90, 39],
175
- // Alias of `blackBright`
176
- redBright: [91, 39],
177
- greenBright: [92, 39],
178
- yellowBright: [93, 39],
179
- blueBright: [94, 39],
180
- magentaBright: [95, 39],
181
- cyanBright: [96, 39],
182
- whiteBright: [97, 39]
183
- },
184
- bgColor: {
185
- bgBlack: [40, 49],
186
- bgRed: [41, 49],
187
- bgGreen: [42, 49],
188
- bgYellow: [43, 49],
189
- bgBlue: [44, 49],
190
- bgMagenta: [45, 49],
191
- bgCyan: [46, 49],
192
- bgWhite: [47, 49],
193
- // Bright color
194
- bgBlackBright: [100, 49],
195
- bgGray: [100, 49],
196
- // Alias of `bgBlackBright`
197
- bgGrey: [100, 49],
198
- // Alias of `bgBlackBright`
199
- bgRedBright: [101, 49],
200
- bgGreenBright: [102, 49],
201
- bgYellowBright: [103, 49],
202
- bgBlueBright: [104, 49],
203
- bgMagentaBright: [105, 49],
204
- bgCyanBright: [106, 49],
205
- bgWhiteBright: [107, 49]
206
- }
207
- };
208
- var modifierNames = Object.keys(styles.modifier);
209
- var foregroundColorNames = Object.keys(styles.color);
210
- var backgroundColorNames = Object.keys(styles.bgColor);
211
- var colorNames = [...foregroundColorNames, ...backgroundColorNames];
212
- function assembleStyles() {
213
- const codes = /* @__PURE__ */ new Map();
214
- for (const [groupName, group] of Object.entries(styles)) {
215
- for (const [styleName, style] of Object.entries(group)) {
216
- styles[styleName] = {
217
- open: `\x1B[${style[0]}m`,
218
- close: `\x1B[${style[1]}m`
219
- };
220
- group[styleName] = styles[styleName];
221
- codes.set(style[0], style[1]);
222
- }
223
- Object.defineProperty(styles, groupName, {
224
- value: group,
225
- enumerable: false
226
- });
227
- }
228
- Object.defineProperty(styles, "codes", {
229
- value: codes,
230
- enumerable: false
231
- });
232
- styles.color.close = "\x1B[39m";
233
- styles.bgColor.close = "\x1B[49m";
234
- styles.color.ansi = wrapAnsi16();
235
- styles.color.ansi256 = wrapAnsi256();
236
- styles.color.ansi16m = wrapAnsi16m();
237
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
238
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
239
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
240
- Object.defineProperties(styles, {
241
- rgbToAnsi256: {
242
- value(red, green, blue) {
243
- if (red === green && green === blue) {
244
- if (red < 8) {
245
- return 16;
246
- }
247
- if (red > 248) {
248
- return 231;
249
- }
250
- return Math.round((red - 8) / 247 * 24) + 232;
251
- }
252
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
253
- },
254
- enumerable: false
255
- },
256
- hexToRgb: {
257
- value(hex) {
258
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
259
- if (!matches) {
260
- return [0, 0, 0];
261
- }
262
- let [colorString] = matches;
263
- if (colorString.length === 3) {
264
- colorString = [...colorString].map((character) => character + character).join("");
265
- }
266
- const integer = Number.parseInt(colorString, 16);
267
- return [
268
- /* eslint-disable no-bitwise */
269
- integer >> 16 & 255,
270
- integer >> 8 & 255,
271
- integer & 255
272
- /* eslint-enable no-bitwise */
273
- ];
274
- },
275
- enumerable: false
276
- },
277
- hexToAnsi256: {
278
- value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
279
- enumerable: false
280
- },
281
- ansi256ToAnsi: {
282
- value(code) {
283
- if (code < 8) {
284
- return 30 + code;
285
- }
286
- if (code < 16) {
287
- return 90 + (code - 8);
288
- }
289
- let red;
290
- let green;
291
- let blue;
292
- if (code >= 232) {
293
- red = ((code - 232) * 10 + 8) / 255;
294
- green = red;
295
- blue = red;
296
- } else {
297
- code -= 16;
298
- const remainder = code % 36;
299
- red = Math.floor(code / 36) / 5;
300
- green = Math.floor(remainder / 6) / 5;
301
- blue = remainder % 6 / 5;
302
- }
303
- const value = Math.max(red, green, blue) * 2;
304
- if (value === 0) {
305
- return 30;
306
- }
307
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
308
- if (value === 2) {
309
- result += 60;
310
- }
311
- return result;
312
- },
313
- enumerable: false
314
- },
315
- rgbToAnsi: {
316
- value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
317
- enumerable: false
318
- },
319
- hexToAnsi: {
320
- value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
321
- enumerable: false
322
- }
323
- });
324
- return styles;
325
- }
326
- var ansiStyles = assembleStyles();
327
- var ansi_styles_default = ansiStyles;
142
+ // node_modules/.pnpm/log-symbols@7.0.0/node_modules/log-symbols/symbols.js
143
+ var symbols_exports = {};
144
+ __export(symbols_exports, {
145
+ error: () => error,
146
+ info: () => info,
147
+ success: () => success,
148
+ warning: () => warning
149
+ });
328
150
 
329
- // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/supports-color/index.js
330
- var import_node_process = __toESM(require("process"), 1);
331
- var import_node_os = __toESM(require("os"), 1);
151
+ // node_modules/.pnpm/yoctocolors@2.1.1/node_modules/yoctocolors/base.js
332
152
  var import_node_tty = __toESM(require("tty"), 1);
333
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
334
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
335
- const position = argv.indexOf(prefix + flag);
336
- const terminatorPosition = argv.indexOf("--");
337
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
338
- }
339
- var { env } = import_node_process.default;
340
- var flagForceColor;
341
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
342
- flagForceColor = 0;
343
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
344
- flagForceColor = 1;
345
- }
346
- function envForceColor() {
347
- if ("FORCE_COLOR" in env) {
348
- if (env.FORCE_COLOR === "true") {
349
- return 1;
350
- }
351
- if (env.FORCE_COLOR === "false") {
352
- return 0;
353
- }
354
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
355
- }
356
- }
357
- function translateLevel(level) {
358
- if (level === 0) {
359
- return false;
360
- }
361
- return {
362
- level,
363
- hasBasic: true,
364
- has256: level >= 2,
365
- has16m: level >= 3
366
- };
367
- }
368
- function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
369
- const noFlagForceColor = envForceColor();
370
- if (noFlagForceColor !== void 0) {
371
- flagForceColor = noFlagForceColor;
372
- }
373
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
374
- if (forceColor === 0) {
375
- return 0;
376
- }
377
- if (sniffFlags) {
378
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
379
- return 3;
380
- }
381
- if (hasFlag("color=256")) {
382
- return 2;
383
- }
384
- }
385
- if ("TF_BUILD" in env && "AGENT_NAME" in env) {
386
- return 1;
387
- }
388
- if (haveStream && !streamIsTTY && forceColor === void 0) {
389
- return 0;
390
- }
391
- const min = forceColor || 0;
392
- if (env.TERM === "dumb") {
393
- return min;
394
- }
395
- if (import_node_process.default.platform === "win32") {
396
- const osRelease = import_node_os.default.release().split(".");
397
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
398
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
399
- }
400
- return 1;
401
- }
402
- if ("CI" in env) {
403
- if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
404
- return 3;
405
- }
406
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
407
- return 1;
408
- }
409
- return min;
410
- }
411
- if ("TEAMCITY_VERSION" in env) {
412
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
413
- }
414
- if (env.COLORTERM === "truecolor") {
415
- return 3;
416
- }
417
- if (env.TERM === "xterm-kitty") {
418
- return 3;
419
- }
420
- if ("TERM_PROGRAM" in env) {
421
- const version2 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
422
- switch (env.TERM_PROGRAM) {
423
- case "iTerm.app": {
424
- return version2 >= 3 ? 3 : 2;
425
- }
426
- case "Apple_Terminal": {
427
- return 2;
428
- }
429
- }
430
- }
431
- if (/-256(color)?$/i.test(env.TERM)) {
432
- return 2;
433
- }
434
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
435
- return 1;
436
- }
437
- if ("COLORTERM" in env) {
438
- return 1;
439
- }
440
- return min;
441
- }
442
- function createSupportsColor(stream, options = {}) {
443
- const level = _supportsColor(stream, __spreadValues({
444
- streamIsTTY: stream && stream.isTTY
445
- }, options));
446
- return translateLevel(level);
447
- }
448
- var supportsColor = {
449
- stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
450
- stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
451
- };
452
- var supports_color_default = supportsColor;
453
-
454
- // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/utilities.js
455
- function stringReplaceAll(string, substring, replacer) {
456
- let index = string.indexOf(substring);
457
- if (index === -1) {
458
- return string;
459
- }
460
- const substringLength = substring.length;
461
- let endIndex = 0;
462
- let returnValue = "";
463
- do {
464
- returnValue += string.slice(endIndex, index) + substring + replacer;
465
- endIndex = index + substringLength;
466
- index = string.indexOf(substring, endIndex);
467
- } while (index !== -1);
468
- returnValue += string.slice(endIndex);
469
- return returnValue;
470
- }
471
- function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
472
- let endIndex = 0;
473
- let returnValue = "";
474
- do {
475
- const gotCR = string[index - 1] === "\r";
476
- returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
477
- endIndex = index + 1;
478
- index = string.indexOf("\n", endIndex);
479
- } while (index !== -1);
480
- returnValue += string.slice(endIndex);
481
- return returnValue;
482
- }
483
-
484
- // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js
485
- var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
486
- var GENERATOR = Symbol("GENERATOR");
487
- var STYLER = Symbol("STYLER");
488
- var IS_EMPTY = Symbol("IS_EMPTY");
489
- var levelMapping = [
490
- "ansi",
491
- "ansi",
492
- "ansi256",
493
- "ansi16m"
494
- ];
495
- var styles2 = /* @__PURE__ */ Object.create(null);
496
- var applyOptions = (object, options = {}) => {
497
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
498
- throw new Error("The `level` option should be an integer from 0 to 3");
499
- }
500
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
501
- object.level = options.level === void 0 ? colorLevel : options.level;
502
- };
503
- var chalkFactory = (options) => {
504
- const chalk2 = (...strings) => strings.join(" ");
505
- applyOptions(chalk2, options);
506
- Object.setPrototypeOf(chalk2, createChalk.prototype);
507
- return chalk2;
508
- };
509
- function createChalk(options) {
510
- return chalkFactory(options);
511
- }
512
- Object.setPrototypeOf(createChalk.prototype, Function.prototype);
513
- for (const [styleName, style] of Object.entries(ansi_styles_default)) {
514
- styles2[styleName] = {
515
- get() {
516
- const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
517
- Object.defineProperty(this, styleName, { value: builder });
518
- return builder;
519
- }
520
- };
521
- }
522
- styles2.visible = {
523
- get() {
524
- const builder = createBuilder(this, this[STYLER], true);
525
- Object.defineProperty(this, "visible", { value: builder });
526
- return builder;
527
- }
528
- };
529
- var getModelAnsi = (model, level, type, ...arguments_) => {
530
- if (model === "rgb") {
531
- if (level === "ansi16m") {
532
- return ansi_styles_default[type].ansi16m(...arguments_);
153
+ var _a, _b, _c, _d, _e;
154
+ var hasColors = (_e = (_d = (_c = (_b = (_a = import_node_tty.default) == null ? void 0 : _a.WriteStream) == null ? void 0 : _b.prototype) == null ? void 0 : _c.hasColors) == null ? void 0 : _d.call(_c)) != null ? _e : false;
155
+ var format = (open, close) => {
156
+ if (!hasColors) {
157
+ return (input) => input;
158
+ }
159
+ const openCode = `\x1B[${open}m`;
160
+ const closeCode = `\x1B[${close}m`;
161
+ return (input) => {
162
+ const string = input + "";
163
+ let index = string.indexOf(closeCode);
164
+ if (index === -1) {
165
+ return openCode + string + closeCode;
533
166
  }
534
- if (level === "ansi256") {
535
- return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
536
- }
537
- return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
538
- }
539
- if (model === "hex") {
540
- return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
541
- }
542
- return ansi_styles_default[type][model](...arguments_);
543
- };
544
- var usedModels = ["rgb", "hex", "ansi256"];
545
- for (const model of usedModels) {
546
- styles2[model] = {
547
- get() {
548
- const { level } = this;
549
- return function(...arguments_) {
550
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
551
- return createBuilder(this, styler, this[IS_EMPTY]);
552
- };
167
+ let result = openCode;
168
+ let lastIndex = 0;
169
+ while (index !== -1) {
170
+ result += string.slice(lastIndex, index) + openCode;
171
+ lastIndex = index + closeCode.length;
172
+ index = string.indexOf(closeCode, lastIndex);
553
173
  }
174
+ result += string.slice(lastIndex) + closeCode;
175
+ return result;
554
176
  };
555
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
556
- styles2[bgModel] = {
557
- get() {
558
- const { level } = this;
559
- return function(...arguments_) {
560
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
561
- return createBuilder(this, styler, this[IS_EMPTY]);
562
- };
563
- }
564
- };
565
- }
566
- var proto = Object.defineProperties(() => {
567
- }, __spreadProps(__spreadValues({}, styles2), {
568
- level: {
569
- enumerable: true,
570
- get() {
571
- return this[GENERATOR].level;
572
- },
573
- set(level) {
574
- this[GENERATOR].level = level;
575
- }
576
- }
577
- }));
578
- var createStyler = (open, close, parent) => {
579
- let openAll;
580
- let closeAll;
581
- if (parent === void 0) {
582
- openAll = open;
583
- closeAll = close;
584
- } else {
585
- openAll = parent.openAll + open;
586
- closeAll = close + parent.closeAll;
587
- }
588
- return {
589
- open,
590
- close,
591
- openAll,
592
- closeAll,
593
- parent
594
- };
595
- };
596
- var createBuilder = (self, _styler, _isEmpty) => {
597
- const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
598
- Object.setPrototypeOf(builder, proto);
599
- builder[GENERATOR] = self;
600
- builder[STYLER] = _styler;
601
- builder[IS_EMPTY] = _isEmpty;
602
- return builder;
603
177
  };
604
- var applyStyle = (self, string) => {
605
- if (self.level <= 0 || !string) {
606
- return self[IS_EMPTY] ? "" : string;
607
- }
608
- let styler = self[STYLER];
609
- if (styler === void 0) {
610
- return string;
611
- }
612
- const { openAll, closeAll } = styler;
613
- if (string.includes("\x1B")) {
614
- while (styler !== void 0) {
615
- string = stringReplaceAll(string, styler.close, styler.open);
616
- styler = styler.parent;
617
- }
618
- }
619
- const lfIndex = string.indexOf("\n");
620
- if (lfIndex !== -1) {
621
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
622
- }
623
- return openAll + string + closeAll;
624
- };
625
- Object.defineProperties(createChalk.prototype, styles2);
626
- var chalk = createChalk();
627
- var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
628
- var source_default = chalk;
178
+ var reset = format(0, 0);
179
+ var bold = format(1, 22);
180
+ var dim = format(2, 22);
181
+ var italic = format(3, 23);
182
+ var underline = format(4, 24);
183
+ var overline = format(53, 55);
184
+ var inverse = format(7, 27);
185
+ var hidden = format(8, 28);
186
+ var strikethrough = format(9, 29);
187
+ var black = format(30, 39);
188
+ var red = format(31, 39);
189
+ var green = format(32, 39);
190
+ var yellow = format(33, 39);
191
+ var blue = format(34, 39);
192
+ var magenta = format(35, 39);
193
+ var cyan = format(36, 39);
194
+ var white = format(37, 39);
195
+ var gray = format(90, 39);
196
+ var bgBlack = format(40, 49);
197
+ var bgRed = format(41, 49);
198
+ var bgGreen = format(42, 49);
199
+ var bgYellow = format(43, 49);
200
+ var bgBlue = format(44, 49);
201
+ var bgMagenta = format(45, 49);
202
+ var bgCyan = format(46, 49);
203
+ var bgWhite = format(47, 49);
204
+ var bgGray = format(100, 49);
205
+ var redBright = format(91, 39);
206
+ var greenBright = format(92, 39);
207
+ var yellowBright = format(93, 39);
208
+ var blueBright = format(94, 39);
209
+ var magentaBright = format(95, 39);
210
+ var cyanBright = format(96, 39);
211
+ var whiteBright = format(97, 39);
212
+ var bgRedBright = format(101, 49);
213
+ var bgGreenBright = format(102, 49);
214
+ var bgYellowBright = format(103, 49);
215
+ var bgBlueBright = format(104, 49);
216
+ var bgMagentaBright = format(105, 49);
217
+ var bgCyanBright = format(106, 49);
218
+ var bgWhiteBright = format(107, 49);
629
219
 
630
- // node_modules/.pnpm/is-unicode-supported@1.3.0/node_modules/is-unicode-supported/index.js
631
- var import_node_process2 = __toESM(require("process"), 1);
220
+ // node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
221
+ var import_node_process = __toESM(require("process"), 1);
632
222
  function isUnicodeSupported() {
633
- if (import_node_process2.default.platform !== "win32") {
634
- return import_node_process2.default.env.TERM !== "linux";
223
+ const { env } = import_node_process.default;
224
+ const { TERM, TERM_PROGRAM } = env;
225
+ if (import_node_process.default.platform !== "win32") {
226
+ return TERM !== "linux";
635
227
  }
636
- return Boolean(import_node_process2.default.env.CI) || Boolean(import_node_process2.default.env.WT_SESSION) || Boolean(import_node_process2.default.env.TERMINUS_SUBLIME) || import_node_process2.default.env.ConEmuTask === "{cmd::Cmder}" || import_node_process2.default.env.TERM_PROGRAM === "Terminus-Sublime" || import_node_process2.default.env.TERM_PROGRAM === "vscode" || import_node_process2.default.env.TERM === "xterm-256color" || import_node_process2.default.env.TERM === "alacritty" || import_node_process2.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
228
+ return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
637
229
  }
638
230
 
639
- // node_modules/.pnpm/log-symbols@6.0.0/node_modules/log-symbols/index.js
640
- var main = {
641
- info: source_default.blue("\u2139"),
642
- success: source_default.green("\u2714"),
643
- warning: source_default.yellow("\u26A0"),
644
- error: source_default.red("\u2716")
645
- };
646
- var fallback = {
647
- info: source_default.blue("i"),
648
- success: source_default.green("\u221A"),
649
- warning: source_default.yellow("\u203C"),
650
- error: source_default.red("\xD7")
651
- };
652
- var logSymbols = isUnicodeSupported() ? main : fallback;
653
- var log_symbols_default = logSymbols;
231
+ // node_modules/.pnpm/log-symbols@7.0.0/node_modules/log-symbols/symbols.js
232
+ var _isUnicodeSupported = isUnicodeSupported();
233
+ var info = blue(_isUnicodeSupported ? "\u2139" : "i");
234
+ var success = green(_isUnicodeSupported ? "\u2714" : "\u221A");
235
+ var warning = yellow(_isUnicodeSupported ? "\u26A0" : "\u203C");
236
+ var error = red(_isUnicodeSupported ? "\u2716\uFE0F" : "\xD7");
237
+
238
+ // src/cli/index.ts
239
+ var import_tinyexec5 = require("tinyexec");
654
240
 
655
241
  // src/version-bump.ts
656
- var import_node_process5 = __toESM(require("process"));
657
- var ezSpawn4 = __toESM(require("@jsdevtools/ez-spawn"));
242
+ var import_node_process4 = __toESM(require("process"));
658
243
  var import_picocolors3 = __toESM(require_picocolors());
659
244
  var import_prompts2 = __toESM(require("prompts"));
245
+ var import_tinyexec4 = require("tinyexec");
660
246
 
661
247
  // src/get-current-version.ts
662
248
  var import_semver = require("semver");
@@ -710,8 +296,8 @@ function isManifest(obj) {
710
296
  return obj && typeof obj === "object" && isOptionalString(obj.name) && isOptionalString(obj.version) && isOptionalString(obj.description);
711
297
  }
712
298
  function isPackageLockManifest(manifest) {
713
- var _a, _b;
714
- return typeof ((_b = (_a = manifest.packages) == null ? void 0 : _a[""]) == null ? void 0 : _b.version) === "string";
299
+ var _a2, _b2;
300
+ return typeof ((_b2 = (_a2 = manifest.packages) == null ? void 0 : _a2[""]) == null ? void 0 : _b2.version) === "string";
715
301
  }
716
302
  function isOptionalString(value) {
717
303
  const type = typeof value;
@@ -756,14 +342,14 @@ async function readVersion(file, cwd) {
756
342
  }
757
343
 
758
344
  // src/get-new-version.ts
759
- var import_node_process3 = __toESM(require("process"));
345
+ var import_node_process2 = __toESM(require("process"));
760
346
  var import_picocolors2 = __toESM(require_picocolors());
761
347
  var import_prompts = __toESM(require("prompts"));
762
348
  var import_semver2 = __toESM(require("semver"));
763
349
 
764
350
  // src/print-commits.ts
765
- var ezSpawn = __toESM(require("@jsdevtools/ez-spawn"));
766
351
  var import_picocolors = __toESM(require_picocolors());
352
+ var import_tinyexec = require("tinyexec");
767
353
  var messageColorMap = {
768
354
  chore: import_picocolors.default.gray,
769
355
  fix: import_picocolors.default.yellow,
@@ -782,20 +368,21 @@ function parseCommits(raw) {
782
368
  return lines.map((line) => {
783
369
  const [hash, ...parts] = line.split(" ");
784
370
  const message = parts.join(" ");
785
- const match = message.match(/^(\w+)(!)?(\([^)]+\))?:(.*)$/);
371
+ const match = message.match(/^(\w+)(!)?(\([^)]+\))?(!)?:(.*)$/);
786
372
  if (match) {
787
373
  let color = messageColorMap[match[1].toLowerCase()] || ((c5) => c5);
788
- if (match[2] === "!") {
374
+ const breaking = match[2] === "!" || match[4] === "!";
375
+ if (breaking) {
789
376
  color = (s) => import_picocolors.default.inverse(import_picocolors.default.red(s));
790
377
  }
791
- const tag = [match[1], match[2]].filter(Boolean).join("");
378
+ const tag = [match[1], match[2], match[4]].filter(Boolean).join("");
792
379
  const scope = match[3] || "";
793
380
  return {
794
381
  hash,
795
382
  tag,
796
- message: match[4].trim(),
383
+ message: match[5].trim(),
797
384
  scope,
798
- breaking: match[2] === "!",
385
+ breaking,
799
386
  color
800
387
  };
801
388
  }
@@ -830,23 +417,23 @@ function formatParsedCommits(commits) {
830
417
  }
831
418
  async function printRecentCommits(operation) {
832
419
  let sha;
833
- sha || (sha = await ezSpawn.async(
420
+ sha || (sha = await (0, import_tinyexec.x)(
834
421
  "git",
835
422
  ["rev-list", "-n", "1", `v${operation.state.currentVersion}`],
836
- { stdio: "pipe" }
837
- ).then((res) => res.stdout.trim()).catch(() => void 0));
838
- sha || (sha = await ezSpawn.async(
423
+ { nodeOptions: { stdio: "pipe" }, throwOnError: false }
424
+ ).then((res) => res.stdout.trim()));
425
+ sha || (sha = await (0, import_tinyexec.x)(
839
426
  "git",
840
427
  ["rev-list", "-n", "1", operation.state.currentVersion],
841
- { stdio: "pipe" }
842
- ).then((res) => res.stdout.trim()).catch(() => void 0));
428
+ { nodeOptions: { stdio: "pipe" }, throwOnError: false }
429
+ ).then((res) => res.stdout.trim()));
843
430
  if (!sha) {
844
431
  console.log(
845
432
  import_picocolors.default.blue(`i`) + import_picocolors.default.gray(` Failed to locate the previous tag ${import_picocolors.default.yellow(`v${operation.state.currentVersion}`)}`)
846
433
  );
847
434
  return;
848
435
  }
849
- const { stdout } = await ezSpawn.async(
436
+ const { stdout } = await (0, import_tinyexec.x)(
850
437
  "git",
851
438
  [
852
439
  "--no-pager",
@@ -854,7 +441,11 @@ async function printRecentCommits(operation) {
854
441
  `${sha}..HEAD`,
855
442
  "--oneline"
856
443
  ],
857
- { stdio: "pipe" }
444
+ {
445
+ nodeOptions: {
446
+ stdio: "pipe"
447
+ }
448
+ }
858
449
  );
859
450
  const parsed = parseCommits(stdout.toString().trim());
860
451
  const prettified = formatParsedCommits(parsed);
@@ -923,11 +514,11 @@ function getNextVersions(currentVersion, preid) {
923
514
  return next;
924
515
  }
925
516
  async function promptForNewVersion(operation) {
926
- var _a, _b;
517
+ var _a2, _b2;
927
518
  const { currentVersion } = operation.state;
928
519
  const release = operation.options.release;
929
520
  const next = getNextVersions(currentVersion, release.preid);
930
- const configCustomVersion = await ((_b = (_a = operation.options).customVersion) == null ? void 0 : _b.call(_a, currentVersion, import_semver2.default));
521
+ const configCustomVersion = await ((_b2 = (_a2 = operation.options).customVersion) == null ? void 0 : _b2.call(_a2, currentVersion, import_semver2.default));
931
522
  if (operation.options.printCommits) {
932
523
  await printRecentCommits(operation);
933
524
  }
@@ -965,7 +556,7 @@ async function promptForNewVersion(operation) {
965
556
  ]);
966
557
  const newVersion = answers.release === "none" ? currentVersion : answers.release === "custom" ? (0, import_semver2.clean)(answers.custom) : answers.release === "config" ? (0, import_semver2.clean)(configCustomVersion) : next[answers.release];
967
558
  if (!newVersion)
968
- import_node_process3.default.exit(1);
559
+ import_node_process2.default.exit(1);
969
560
  switch (answers.release) {
970
561
  case "custom":
971
562
  case "config":
@@ -978,7 +569,7 @@ async function promptForNewVersion(operation) {
978
569
  }
979
570
 
980
571
  // src/git.ts
981
- var ezSpawn2 = __toESM(require("@jsdevtools/ez-spawn"));
572
+ var import_tinyexec2 = require("tinyexec");
982
573
  async function gitCommit(operation) {
983
574
  if (!operation.options.commit)
984
575
  return operation;
@@ -998,7 +589,7 @@ async function gitCommit(operation) {
998
589
  args.push("--message", commitMessage);
999
590
  if (!all)
1000
591
  args = args.concat(updatedFiles);
1001
- await ezSpawn2.async("git", ["commit", ...args]);
592
+ await (0, import_tinyexec2.x)("git", ["commit", ...args]);
1002
593
  return operation.update({ event: "git commit" /* GitCommit */, commitMessage });
1003
594
  }
1004
595
  async function gitTag(operation) {
@@ -1019,15 +610,15 @@ async function gitTag(operation) {
1019
610
  if (operation.options.sign) {
1020
611
  args.push("--sign");
1021
612
  }
1022
- await ezSpawn2.async("git", ["tag", ...args]);
613
+ await (0, import_tinyexec2.x)("git", ["tag", ...args]);
1023
614
  return operation.update({ event: "git tag" /* GitTag */, tagName });
1024
615
  }
1025
616
  async function gitPush(operation) {
1026
617
  if (!operation.options.push)
1027
618
  return operation;
1028
- await ezSpawn2.async("git", "push");
619
+ await (0, import_tinyexec2.x)("git", ["push"]);
1029
620
  if (operation.options.tag) {
1030
- await ezSpawn2.async("git", ["push", "--tags"]);
621
+ await (0, import_tinyexec2.x)("git", ["push", "--tags"]);
1031
622
  }
1032
623
  return operation.update({ event: "git push" /* GitPush */ });
1033
624
  }
@@ -1041,17 +632,17 @@ function formatVersionString(template, newVersion) {
1041
632
  // src/normalize-options.ts
1042
633
  var import_node_fs2 = __toESM(require("fs"));
1043
634
  var import_promises = __toESM(require("fs/promises"));
1044
- var import_node_process4 = __toESM(require("process"));
635
+ var import_node_process3 = __toESM(require("process"));
1045
636
  var import_js_yaml = __toESM(require("js-yaml"));
1046
637
  var import_tinyglobby = require("tinyglobby");
1047
638
  async function normalizeOptions(raw) {
1048
- var _a, _b, _d;
639
+ var _a2, _b2, _d2;
1049
640
  const preid = typeof raw.preid === "string" ? raw.preid : "beta";
1050
641
  const sign = Boolean(raw.sign);
1051
642
  const push = Boolean(raw.push);
1052
643
  const all = Boolean(raw.all);
1053
644
  const noVerify = Boolean(raw.noVerify);
1054
- const cwd = raw.cwd || import_node_process4.default.cwd();
645
+ const cwd = raw.cwd || import_node_process3.default.cwd();
1055
646
  const ignoreScripts = Boolean(raw.ignoreScripts);
1056
647
  const execute = raw.execute;
1057
648
  const recursive = Boolean(raw.recursive);
@@ -1072,7 +663,7 @@ async function normalizeOptions(raw) {
1072
663
  commit = { all, noVerify, message: raw.commit };
1073
664
  else if (raw.commit || tag || push)
1074
665
  commit = { all, noVerify, message: "chore: release v" };
1075
- if (recursive && !((_a = raw.files) == null ? void 0 : _a.length)) {
666
+ if (recursive && !((_a2 = raw.files) == null ? void 0 : _a2.length)) {
1076
667
  raw.files = [
1077
668
  "package.json",
1078
669
  "package-lock.json",
@@ -1087,13 +678,13 @@ async function normalizeOptions(raw) {
1087
678
  const workspaces = import_js_yaml.default.load(pnpmWorkspace);
1088
679
  const workspacesWithPackageJson = workspaces.packages.map((workspace) => `${workspace}/package.json`);
1089
680
  const withoutExcludedWorkspaces = workspacesWithPackageJson.filter((workspace) => {
1090
- var _a2;
1091
- return !workspace.startsWith("!") && !((_a2 = raw.files) == null ? void 0 : _a2.includes(workspace));
681
+ var _a3;
682
+ return !workspace.startsWith("!") && !((_a3 = raw.files) == null ? void 0 : _a3.includes(workspace));
1092
683
  });
1093
684
  raw.files = raw.files.concat(withoutExcludedWorkspaces);
1094
685
  }
1095
686
  } else {
1096
- raw.files = ((_b = raw.files) == null ? void 0 : _b.length) ? raw.files : ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc", "deno.json", "deno.jsonc"];
687
+ raw.files = ((_b2 = raw.files) == null ? void 0 : _b2.length) ? raw.files : ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc", "deno.json", "deno.jsonc"];
1097
688
  }
1098
689
  const files = await (0, import_tinyglobby.glob)(
1099
690
  raw.files,
@@ -1110,13 +701,13 @@ async function normalizeOptions(raw) {
1110
701
  if (raw.interface === false) {
1111
702
  ui = { input: false, output: false };
1112
703
  } else if (raw.interface === true || !raw.interface) {
1113
- ui = { input: import_node_process4.default.stdin, output: import_node_process4.default.stdout };
704
+ ui = { input: import_node_process3.default.stdin, output: import_node_process3.default.stdout };
1114
705
  } else {
1115
- let _c = raw.interface, { input, output } = _c, other = __objRest(_c, ["input", "output"]);
706
+ let _c2 = raw.interface, { input, output } = _c2, other = __objRest(_c2, ["input", "output"]);
1116
707
  if (input === true || input !== false && !input)
1117
- input = import_node_process4.default.stdin;
708
+ input = import_node_process3.default.stdin;
1118
709
  if (output === true || output !== false && !output)
1119
- output = import_node_process4.default.stdout;
710
+ output = import_node_process3.default.stdout;
1120
711
  ui = __spreadValues({ input, output }, other);
1121
712
  }
1122
713
  if (release.type === "prompt" && !(ui.input && ui.output))
@@ -1132,7 +723,7 @@ async function normalizeOptions(raw) {
1132
723
  interface: ui,
1133
724
  ignoreScripts,
1134
725
  execute,
1135
- printCommits: (_d = raw.printCommits) != null ? _d : true,
726
+ printCommits: (_d2 = raw.printCommits) != null ? _d2 : true,
1136
727
  customVersion: raw.customVersion,
1137
728
  currentVersion: raw.currentVersion
1138
729
  };
@@ -1192,8 +783,8 @@ var Operation = class _Operation {
1192
783
  /**
1193
784
  * Updates the operation state and results, and reports the updated progress to the user.
1194
785
  */
1195
- update(_a) {
1196
- var _b = _a, { event, script } = _b, newState = __objRest(_b, ["event", "script"]);
786
+ update(_a2) {
787
+ var _b2 = _a2, { event, script } = _b2, newState = __objRest(_b2, ["event", "script"]);
1197
788
  Object.assign(this.state, newState);
1198
789
  if (event && this._progress) {
1199
790
  this._progress(__spreadValues({ event, script }, this.results));
@@ -1203,13 +794,15 @@ var Operation = class _Operation {
1203
794
  };
1204
795
 
1205
796
  // src/run-npm-script.ts
1206
- var ezSpawn3 = __toESM(require("@jsdevtools/ez-spawn"));
797
+ var import_tinyexec3 = require("tinyexec");
1207
798
  async function runNpmScript(script, operation) {
1208
799
  const { cwd, ignoreScripts } = operation.options;
1209
800
  if (!ignoreScripts) {
1210
801
  const { data: manifest } = await readJsoncFile("package.json", cwd);
1211
802
  if (isManifest(manifest) && hasScript(manifest, script)) {
1212
- await ezSpawn3.async("npm", ["run", script, "--silent"], { stdio: "inherit" });
803
+ await (0, import_tinyexec3.x)("npm", ["run", script, "--silent"], {
804
+ nodeOptions: { stdio: "inherit" }
805
+ });
1213
806
  operation.update({ event: "npm script" /* NpmScript */, script });
1214
807
  }
1215
808
  }
@@ -1312,7 +905,7 @@ async function versionBump(arg = {}) {
1312
905
  message: "Bump?",
1313
906
  initial: true
1314
907
  }).then((r) => r.yes)) {
1315
- import_node_process5.default.exit(1);
908
+ import_node_process4.default.exit(1);
1316
909
  }
1317
910
  }
1318
911
  await runNpmScript("preversion" /* PreVersion */, operation);
@@ -1321,9 +914,13 @@ async function versionBump(arg = {}) {
1321
914
  if (typeof operation.options.execute === "function") {
1322
915
  await operation.options.execute(operation);
1323
916
  } else {
1324
- console.log(log_symbols_default.info, "Executing script", operation.options.execute);
1325
- await ezSpawn4.async(operation.options.execute, { stdio: "inherit" });
1326
- console.log(log_symbols_default.success, "Script finished");
917
+ console.log(symbols_exports.info, "Executing script", operation.options.execute);
918
+ await (0, import_tinyexec4.x)(operation.options.execute, [], {
919
+ nodeOptions: {
920
+ stdio: "inherit"
921
+ }
922
+ });
923
+ console.log(symbols_exports.success, "Script finished");
1327
924
  }
1328
925
  }
1329
926
  await runNpmScript("version" /* Version */, operation);
@@ -1351,17 +948,17 @@ function printSummary(operation) {
1351
948
  }
1352
949
 
1353
950
  // src/cli/parse-args.ts
1354
- var import_node_process7 = __toESM(require("process"));
951
+ var import_node_process6 = __toESM(require("process"));
1355
952
  var import_cac = __toESM(require("cac"));
1356
953
  var import_picocolors4 = __toESM(require_picocolors());
1357
954
  var import_semver3 = require("semver");
1358
955
 
1359
956
  // package.json
1360
- var version = "9.8.1";
957
+ var version = "9.9.0";
1361
958
 
1362
959
  // src/config.ts
1363
960
  var import_node_path2 = require("path");
1364
- var import_node_process6 = __toESM(require("process"));
961
+ var import_node_process5 = __toESM(require("process"));
1365
962
  var import_c12 = require("c12");
1366
963
  var import_sync = __toESM(require("escalade/sync"));
1367
964
  var bumpConfigDefaults = {
@@ -1377,7 +974,7 @@ var bumpConfigDefaults = {
1377
974
  noGitCheck: true,
1378
975
  files: []
1379
976
  };
1380
- async function loadBumpConfig(overrides, cwd = import_node_process6.default.cwd()) {
977
+ async function loadBumpConfig(overrides, cwd = import_node_process5.default.cwd()) {
1381
978
  const name = "bump";
1382
979
  const configFile = findConfigFile(name, cwd);
1383
980
  const { config } = await (0, import_c12.loadConfig)({
@@ -1407,16 +1004,16 @@ function findConfigFile(name, cwd) {
1407
1004
  }
1408
1005
  return false;
1409
1006
  });
1410
- } catch (error) {
1007
+ } catch (error2) {
1411
1008
  if (foundRepositoryRoot)
1412
1009
  return null;
1413
- throw error;
1010
+ throw error2;
1414
1011
  }
1415
1012
  }
1416
1013
 
1417
1014
  // src/cli/parse-args.ts
1418
1015
  async function parseArgs() {
1419
- var _a;
1016
+ var _a2;
1420
1017
  try {
1421
1018
  const { args, resultArgs } = loadCliArgs();
1422
1019
  const parsedArgs = {
@@ -1448,14 +1045,14 @@ async function parseArgs() {
1448
1045
  parsedArgs.options.files.shift();
1449
1046
  }
1450
1047
  }
1451
- if (parsedArgs.options.recursive && ((_a = parsedArgs.options.files) == null ? void 0 : _a.length))
1048
+ if (parsedArgs.options.recursive && ((_a2 = parsedArgs.options.files) == null ? void 0 : _a2.length))
1452
1049
  console.log(import_picocolors4.default.yellow("The --recursive option is ignored when files are specified"));
1453
1050
  return parsedArgs;
1454
- } catch (error) {
1455
- return errorHandler(error);
1051
+ } catch (error2) {
1052
+ return errorHandler(error2);
1456
1053
  }
1457
1054
  }
1458
- function loadCliArgs(argv = import_node_process7.default.argv) {
1055
+ function loadCliArgs(argv = import_node_process6.default.argv) {
1459
1056
  const cli = (0, import_cac.default)("bumpp");
1460
1057
  cli.version(version).usage("[...files]").option("--preid <preid>", "ID for prerelease").option("--all", `Include all files (default: ${bumpConfigDefaults.all})`).option("--no-git-check", `Skip git check`, { default: bumpConfigDefaults.noGitCheck }).option("-c, --commit [msg]", "Commit message", { default: true }).option("--no-commit", "Skip commit", { default: false }).option("-t, --tag [tag]", "Tag name", { default: true }).option("--no-tag", "Skip tag", { default: false }).option("--sign", "Sign commit and tag").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("--no-verify", "Skip git verification").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").help();
1461
1058
  const result = cli.parse(argv);
@@ -1465,7 +1062,7 @@ function loadCliArgs(argv = import_node_process7.default.argv) {
1465
1062
  const TAG_REG = /(?:-t|--tag|--no-tag)(?:=.*|$)/;
1466
1063
  const hasCommitFlag = rawArgs.some((arg) => COMMIT_REG.test(arg));
1467
1064
  const hasTagFlag = rawArgs.some((arg) => TAG_REG.test(arg));
1468
- const _a = args, { tag, commit } = _a, rest = __objRest(_a, ["tag", "commit"]);
1065
+ const _a2 = args, { tag, commit } = _a2, rest = __objRest(_a2, ["tag", "commit"]);
1469
1066
  return {
1470
1067
  args: __spreadProps(__spreadValues({}, rest), {
1471
1068
  commit: hasCommitFlag ? commit : void 0,
@@ -1474,33 +1071,33 @@ function loadCliArgs(argv = import_node_process7.default.argv) {
1474
1071
  resultArgs: result.args
1475
1072
  };
1476
1073
  }
1477
- function errorHandler(error) {
1478
- console.error(error.message);
1479
- return import_node_process7.default.exit(9 /* InvalidArgument */);
1074
+ function errorHandler(error2) {
1075
+ console.error(error2.message);
1076
+ return import_node_process6.default.exit(9 /* InvalidArgument */);
1480
1077
  }
1481
1078
 
1482
1079
  // src/cli/index.ts
1483
- async function main2() {
1080
+ async function main() {
1484
1081
  try {
1485
- import_node_process8.default.on("uncaughtException", errorHandler2);
1486
- import_node_process8.default.on("unhandledRejection", errorHandler2);
1082
+ import_node_process7.default.on("uncaughtException", errorHandler2);
1083
+ import_node_process7.default.on("unhandledRejection", errorHandler2);
1487
1084
  const { help, version: version2, quiet, options } = await parseArgs();
1488
1085
  if (help || version2) {
1489
- import_node_process8.default.exit(0 /* Success */);
1086
+ import_node_process7.default.exit(0 /* Success */);
1490
1087
  } else {
1491
1088
  if (!options.all && !options.noGitCheck) {
1492
- checkGitStatus();
1089
+ await checkGitStatus();
1493
1090
  }
1494
1091
  if (!quiet)
1495
1092
  options.progress = options.progress ? options.progress : progress;
1496
1093
  await versionBump(options);
1497
1094
  }
1498
- } catch (error) {
1499
- errorHandler2(error);
1095
+ } catch (error2) {
1096
+ errorHandler2(error2);
1500
1097
  }
1501
1098
  }
1502
- function checkGitStatus() {
1503
- const { stdout } = ezSpawn5.sync("git", ["status", "--porcelain"]);
1099
+ async function checkGitStatus() {
1100
+ const { stdout } = await (0, import_tinyexec5.x)("git", ["status", "--porcelain"]);
1504
1101
  if (stdout.trim()) {
1505
1102
  throw new Error(`Git working tree is not clean:
1506
1103
  ${stdout}`);
@@ -1509,31 +1106,31 @@ ${stdout}`);
1509
1106
  function progress({ event, script, updatedFiles, skippedFiles, newVersion }) {
1510
1107
  switch (event) {
1511
1108
  case "file updated" /* FileUpdated */:
1512
- console.log(log_symbols_default.success, `Updated ${updatedFiles.pop()} to ${newVersion}`);
1109
+ console.log(symbols_exports.success, `Updated ${updatedFiles.pop()} to ${newVersion}`);
1513
1110
  break;
1514
1111
  case "file skipped" /* FileSkipped */:
1515
- console.log(log_symbols_default.info, `${skippedFiles.pop()} did not need to be updated`);
1112
+ console.log(symbols_exports.info, `${skippedFiles.pop()} did not need to be updated`);
1516
1113
  break;
1517
1114
  case "git commit" /* GitCommit */:
1518
- console.log(log_symbols_default.success, "Git commit");
1115
+ console.log(symbols_exports.success, "Git commit");
1519
1116
  break;
1520
1117
  case "git tag" /* GitTag */:
1521
- console.log(log_symbols_default.success, "Git tag");
1118
+ console.log(symbols_exports.success, "Git tag");
1522
1119
  break;
1523
1120
  case "git push" /* GitPush */:
1524
- console.log(log_symbols_default.success, "Git push");
1121
+ console.log(symbols_exports.success, "Git push");
1525
1122
  break;
1526
1123
  case "npm script" /* NpmScript */:
1527
- console.log(log_symbols_default.success, `Npm run ${script}`);
1124
+ console.log(symbols_exports.success, `Npm run ${script}`);
1528
1125
  break;
1529
1126
  }
1530
1127
  }
1531
- function errorHandler2(error) {
1532
- let message = error.message || String(error);
1533
- if (import_node_process8.default.env.DEBUG || import_node_process8.default.env.NODE_ENV === "development")
1534
- message = error.stack || message;
1128
+ function errorHandler2(error2) {
1129
+ let message = error2.message || String(error2);
1130
+ if (import_node_process7.default.env.DEBUG || import_node_process7.default.env.NODE_ENV === "development")
1131
+ message = error2.stack || message;
1535
1132
  console.error(message);
1536
- import_node_process8.default.exit(1 /* FatalError */);
1133
+ import_node_process7.default.exit(1 /* FatalError */);
1537
1134
  }
1538
1135
  // Annotate the CommonJS export names for ESM import in node:
1539
1136
  0 && (module.exports = {