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