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/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;
@@ -145,524 +145,108 @@ __export(src_exports, {
145
145
  module.exports = __toCommonJS(src_exports);
146
146
 
147
147
  // src/version-bump.ts
148
- var import_node_process5 = __toESM(require("process"));
149
- var ezSpawn4 = __toESM(require("@jsdevtools/ez-spawn"));
148
+ var import_node_process4 = __toESM(require("process"));
150
149
 
151
- // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/ansi-styles/index.js
152
- var ANSI_BACKGROUND_OFFSET = 10;
153
- var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
154
- var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
155
- var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
156
- var styles = {
157
- modifier: {
158
- reset: [0, 0],
159
- // 21 isn't widely supported and 22 does the same thing
160
- bold: [1, 22],
161
- dim: [2, 22],
162
- italic: [3, 23],
163
- underline: [4, 24],
164
- overline: [53, 55],
165
- inverse: [7, 27],
166
- hidden: [8, 28],
167
- strikethrough: [9, 29]
168
- },
169
- color: {
170
- black: [30, 39],
171
- red: [31, 39],
172
- green: [32, 39],
173
- yellow: [33, 39],
174
- blue: [34, 39],
175
- magenta: [35, 39],
176
- cyan: [36, 39],
177
- white: [37, 39],
178
- // Bright color
179
- blackBright: [90, 39],
180
- gray: [90, 39],
181
- // Alias of `blackBright`
182
- grey: [90, 39],
183
- // Alias of `blackBright`
184
- redBright: [91, 39],
185
- greenBright: [92, 39],
186
- yellowBright: [93, 39],
187
- blueBright: [94, 39],
188
- magentaBright: [95, 39],
189
- cyanBright: [96, 39],
190
- whiteBright: [97, 39]
191
- },
192
- bgColor: {
193
- bgBlack: [40, 49],
194
- bgRed: [41, 49],
195
- bgGreen: [42, 49],
196
- bgYellow: [43, 49],
197
- bgBlue: [44, 49],
198
- bgMagenta: [45, 49],
199
- bgCyan: [46, 49],
200
- bgWhite: [47, 49],
201
- // Bright color
202
- bgBlackBright: [100, 49],
203
- bgGray: [100, 49],
204
- // Alias of `bgBlackBright`
205
- bgGrey: [100, 49],
206
- // Alias of `bgBlackBright`
207
- bgRedBright: [101, 49],
208
- bgGreenBright: [102, 49],
209
- bgYellowBright: [103, 49],
210
- bgBlueBright: [104, 49],
211
- bgMagentaBright: [105, 49],
212
- bgCyanBright: [106, 49],
213
- bgWhiteBright: [107, 49]
214
- }
215
- };
216
- var modifierNames = Object.keys(styles.modifier);
217
- var foregroundColorNames = Object.keys(styles.color);
218
- var backgroundColorNames = Object.keys(styles.bgColor);
219
- var colorNames = [...foregroundColorNames, ...backgroundColorNames];
220
- function assembleStyles() {
221
- const codes = /* @__PURE__ */ new Map();
222
- for (const [groupName, group] of Object.entries(styles)) {
223
- for (const [styleName, style] of Object.entries(group)) {
224
- styles[styleName] = {
225
- open: `\x1B[${style[0]}m`,
226
- close: `\x1B[${style[1]}m`
227
- };
228
- group[styleName] = styles[styleName];
229
- codes.set(style[0], style[1]);
230
- }
231
- Object.defineProperty(styles, groupName, {
232
- value: group,
233
- enumerable: false
234
- });
235
- }
236
- Object.defineProperty(styles, "codes", {
237
- value: codes,
238
- enumerable: false
239
- });
240
- styles.color.close = "\x1B[39m";
241
- styles.bgColor.close = "\x1B[49m";
242
- styles.color.ansi = wrapAnsi16();
243
- styles.color.ansi256 = wrapAnsi256();
244
- styles.color.ansi16m = wrapAnsi16m();
245
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
246
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
247
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
248
- Object.defineProperties(styles, {
249
- rgbToAnsi256: {
250
- value(red, green, blue) {
251
- if (red === green && green === blue) {
252
- if (red < 8) {
253
- return 16;
254
- }
255
- if (red > 248) {
256
- return 231;
257
- }
258
- return Math.round((red - 8) / 247 * 24) + 232;
259
- }
260
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
261
- },
262
- enumerable: false
263
- },
264
- hexToRgb: {
265
- value(hex) {
266
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
267
- if (!matches) {
268
- return [0, 0, 0];
269
- }
270
- let [colorString] = matches;
271
- if (colorString.length === 3) {
272
- colorString = [...colorString].map((character) => character + character).join("");
273
- }
274
- const integer = Number.parseInt(colorString, 16);
275
- return [
276
- /* eslint-disable no-bitwise */
277
- integer >> 16 & 255,
278
- integer >> 8 & 255,
279
- integer & 255
280
- /* eslint-enable no-bitwise */
281
- ];
282
- },
283
- enumerable: false
284
- },
285
- hexToAnsi256: {
286
- value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
287
- enumerable: false
288
- },
289
- ansi256ToAnsi: {
290
- value(code) {
291
- if (code < 8) {
292
- return 30 + code;
293
- }
294
- if (code < 16) {
295
- return 90 + (code - 8);
296
- }
297
- let red;
298
- let green;
299
- let blue;
300
- if (code >= 232) {
301
- red = ((code - 232) * 10 + 8) / 255;
302
- green = red;
303
- blue = red;
304
- } else {
305
- code -= 16;
306
- const remainder = code % 36;
307
- red = Math.floor(code / 36) / 5;
308
- green = Math.floor(remainder / 6) / 5;
309
- blue = remainder % 6 / 5;
310
- }
311
- const value = Math.max(red, green, blue) * 2;
312
- if (value === 0) {
313
- return 30;
314
- }
315
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
316
- if (value === 2) {
317
- result += 60;
318
- }
319
- return result;
320
- },
321
- enumerable: false
322
- },
323
- rgbToAnsi: {
324
- value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
325
- enumerable: false
326
- },
327
- hexToAnsi: {
328
- value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
329
- enumerable: false
330
- }
331
- });
332
- return styles;
333
- }
334
- var ansiStyles = assembleStyles();
335
- var ansi_styles_default = ansiStyles;
150
+ // node_modules/.pnpm/log-symbols@7.0.0/node_modules/log-symbols/symbols.js
151
+ var symbols_exports = {};
152
+ __export(symbols_exports, {
153
+ error: () => error,
154
+ info: () => info,
155
+ success: () => success,
156
+ warning: () => warning
157
+ });
336
158
 
337
- // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/supports-color/index.js
338
- var import_node_process = __toESM(require("process"), 1);
339
- var import_node_os = __toESM(require("os"), 1);
159
+ // node_modules/.pnpm/yoctocolors@2.1.1/node_modules/yoctocolors/base.js
340
160
  var import_node_tty = __toESM(require("tty"), 1);
341
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
342
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
343
- const position = argv.indexOf(prefix + flag);
344
- const terminatorPosition = argv.indexOf("--");
345
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
346
- }
347
- var { env } = import_node_process.default;
348
- var flagForceColor;
349
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
350
- flagForceColor = 0;
351
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
352
- flagForceColor = 1;
353
- }
354
- function envForceColor() {
355
- if ("FORCE_COLOR" in env) {
356
- if (env.FORCE_COLOR === "true") {
357
- return 1;
358
- }
359
- if (env.FORCE_COLOR === "false") {
360
- return 0;
361
- }
362
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
363
- }
364
- }
365
- function translateLevel(level) {
366
- if (level === 0) {
367
- return false;
368
- }
369
- return {
370
- level,
371
- hasBasic: true,
372
- has256: level >= 2,
373
- has16m: level >= 3
374
- };
375
- }
376
- function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
377
- const noFlagForceColor = envForceColor();
378
- if (noFlagForceColor !== void 0) {
379
- flagForceColor = noFlagForceColor;
380
- }
381
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
382
- if (forceColor === 0) {
383
- return 0;
384
- }
385
- if (sniffFlags) {
386
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
387
- return 3;
388
- }
389
- if (hasFlag("color=256")) {
390
- return 2;
391
- }
392
- }
393
- if ("TF_BUILD" in env && "AGENT_NAME" in env) {
394
- return 1;
395
- }
396
- if (haveStream && !streamIsTTY && forceColor === void 0) {
397
- return 0;
398
- }
399
- const min = forceColor || 0;
400
- if (env.TERM === "dumb") {
401
- return min;
402
- }
403
- if (import_node_process.default.platform === "win32") {
404
- const osRelease = import_node_os.default.release().split(".");
405
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
406
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
407
- }
408
- return 1;
409
- }
410
- if ("CI" in env) {
411
- if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
412
- return 3;
413
- }
414
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
415
- return 1;
416
- }
417
- return min;
418
- }
419
- if ("TEAMCITY_VERSION" in env) {
420
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
421
- }
422
- if (env.COLORTERM === "truecolor") {
423
- return 3;
424
- }
425
- if (env.TERM === "xterm-kitty") {
426
- return 3;
427
- }
428
- if ("TERM_PROGRAM" in env) {
429
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
430
- switch (env.TERM_PROGRAM) {
431
- case "iTerm.app": {
432
- return version >= 3 ? 3 : 2;
433
- }
434
- case "Apple_Terminal": {
435
- return 2;
436
- }
437
- }
438
- }
439
- if (/-256(color)?$/i.test(env.TERM)) {
440
- return 2;
441
- }
442
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
443
- return 1;
444
- }
445
- if ("COLORTERM" in env) {
446
- return 1;
447
- }
448
- return min;
449
- }
450
- function createSupportsColor(stream, options = {}) {
451
- const level = _supportsColor(stream, __spreadValues({
452
- streamIsTTY: stream && stream.isTTY
453
- }, options));
454
- return translateLevel(level);
455
- }
456
- var supportsColor = {
457
- stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
458
- stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
459
- };
460
- var supports_color_default = supportsColor;
461
-
462
- // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/utilities.js
463
- function stringReplaceAll(string, substring, replacer) {
464
- let index = string.indexOf(substring);
465
- if (index === -1) {
466
- return string;
467
- }
468
- const substringLength = substring.length;
469
- let endIndex = 0;
470
- let returnValue = "";
471
- do {
472
- returnValue += string.slice(endIndex, index) + substring + replacer;
473
- endIndex = index + substringLength;
474
- index = string.indexOf(substring, endIndex);
475
- } while (index !== -1);
476
- returnValue += string.slice(endIndex);
477
- return returnValue;
478
- }
479
- function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
480
- let endIndex = 0;
481
- let returnValue = "";
482
- do {
483
- const gotCR = string[index - 1] === "\r";
484
- returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
485
- endIndex = index + 1;
486
- index = string.indexOf("\n", endIndex);
487
- } while (index !== -1);
488
- returnValue += string.slice(endIndex);
489
- return returnValue;
490
- }
491
-
492
- // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js
493
- var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
494
- var GENERATOR = Symbol("GENERATOR");
495
- var STYLER = Symbol("STYLER");
496
- var IS_EMPTY = Symbol("IS_EMPTY");
497
- var levelMapping = [
498
- "ansi",
499
- "ansi",
500
- "ansi256",
501
- "ansi16m"
502
- ];
503
- var styles2 = /* @__PURE__ */ Object.create(null);
504
- var applyOptions = (object, options = {}) => {
505
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
506
- throw new Error("The `level` option should be an integer from 0 to 3");
507
- }
508
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
509
- object.level = options.level === void 0 ? colorLevel : options.level;
510
- };
511
- var chalkFactory = (options) => {
512
- const chalk2 = (...strings) => strings.join(" ");
513
- applyOptions(chalk2, options);
514
- Object.setPrototypeOf(chalk2, createChalk.prototype);
515
- return chalk2;
516
- };
517
- function createChalk(options) {
518
- return chalkFactory(options);
519
- }
520
- Object.setPrototypeOf(createChalk.prototype, Function.prototype);
521
- for (const [styleName, style] of Object.entries(ansi_styles_default)) {
522
- styles2[styleName] = {
523
- get() {
524
- const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
525
- Object.defineProperty(this, styleName, { value: builder });
526
- return builder;
527
- }
528
- };
529
- }
530
- styles2.visible = {
531
- get() {
532
- const builder = createBuilder(this, this[STYLER], true);
533
- Object.defineProperty(this, "visible", { value: builder });
534
- return builder;
535
- }
536
- };
537
- var getModelAnsi = (model, level, type, ...arguments_) => {
538
- if (model === "rgb") {
539
- if (level === "ansi16m") {
540
- return ansi_styles_default[type].ansi16m(...arguments_);
541
- }
542
- if (level === "ansi256") {
543
- return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
161
+ var _a, _b, _c, _d, _e;
162
+ 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;
163
+ var format = (open, close) => {
164
+ if (!hasColors) {
165
+ return (input) => input;
166
+ }
167
+ const openCode = `\x1B[${open}m`;
168
+ const closeCode = `\x1B[${close}m`;
169
+ return (input) => {
170
+ const string = input + "";
171
+ let index = string.indexOf(closeCode);
172
+ if (index === -1) {
173
+ return openCode + string + closeCode;
544
174
  }
545
- return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
546
- }
547
- if (model === "hex") {
548
- return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
549
- }
550
- return ansi_styles_default[type][model](...arguments_);
551
- };
552
- var usedModels = ["rgb", "hex", "ansi256"];
553
- for (const model of usedModels) {
554
- styles2[model] = {
555
- get() {
556
- const { level } = this;
557
- return function(...arguments_) {
558
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
559
- return createBuilder(this, styler, this[IS_EMPTY]);
560
- };
561
- }
562
- };
563
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
564
- styles2[bgModel] = {
565
- get() {
566
- const { level } = this;
567
- return function(...arguments_) {
568
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
569
- return createBuilder(this, styler, this[IS_EMPTY]);
570
- };
175
+ let result = openCode;
176
+ let lastIndex = 0;
177
+ while (index !== -1) {
178
+ result += string.slice(lastIndex, index) + openCode;
179
+ lastIndex = index + closeCode.length;
180
+ index = string.indexOf(closeCode, lastIndex);
571
181
  }
182
+ result += string.slice(lastIndex) + closeCode;
183
+ return result;
572
184
  };
573
- }
574
- var proto = Object.defineProperties(() => {
575
- }, __spreadProps(__spreadValues({}, styles2), {
576
- level: {
577
- enumerable: true,
578
- get() {
579
- return this[GENERATOR].level;
580
- },
581
- set(level) {
582
- this[GENERATOR].level = level;
583
- }
584
- }
585
- }));
586
- var createStyler = (open, close, parent) => {
587
- let openAll;
588
- let closeAll;
589
- if (parent === void 0) {
590
- openAll = open;
591
- closeAll = close;
592
- } else {
593
- openAll = parent.openAll + open;
594
- closeAll = close + parent.closeAll;
595
- }
596
- return {
597
- open,
598
- close,
599
- openAll,
600
- closeAll,
601
- parent
602
- };
603
- };
604
- var createBuilder = (self, _styler, _isEmpty) => {
605
- const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
606
- Object.setPrototypeOf(builder, proto);
607
- builder[GENERATOR] = self;
608
- builder[STYLER] = _styler;
609
- builder[IS_EMPTY] = _isEmpty;
610
- return builder;
611
- };
612
- var applyStyle = (self, string) => {
613
- if (self.level <= 0 || !string) {
614
- return self[IS_EMPTY] ? "" : string;
615
- }
616
- let styler = self[STYLER];
617
- if (styler === void 0) {
618
- return string;
619
- }
620
- const { openAll, closeAll } = styler;
621
- if (string.includes("\x1B")) {
622
- while (styler !== void 0) {
623
- string = stringReplaceAll(string, styler.close, styler.open);
624
- styler = styler.parent;
625
- }
626
- }
627
- const lfIndex = string.indexOf("\n");
628
- if (lfIndex !== -1) {
629
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
630
- }
631
- return openAll + string + closeAll;
632
185
  };
633
- Object.defineProperties(createChalk.prototype, styles2);
634
- var chalk = createChalk();
635
- var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
636
- var source_default = chalk;
186
+ var reset = format(0, 0);
187
+ var bold = format(1, 22);
188
+ var dim = format(2, 22);
189
+ var italic = format(3, 23);
190
+ var underline = format(4, 24);
191
+ var overline = format(53, 55);
192
+ var inverse = format(7, 27);
193
+ var hidden = format(8, 28);
194
+ var strikethrough = format(9, 29);
195
+ var black = format(30, 39);
196
+ var red = format(31, 39);
197
+ var green = format(32, 39);
198
+ var yellow = format(33, 39);
199
+ var blue = format(34, 39);
200
+ var magenta = format(35, 39);
201
+ var cyan = format(36, 39);
202
+ var white = format(37, 39);
203
+ var gray = format(90, 39);
204
+ var bgBlack = format(40, 49);
205
+ var bgRed = format(41, 49);
206
+ var bgGreen = format(42, 49);
207
+ var bgYellow = format(43, 49);
208
+ var bgBlue = format(44, 49);
209
+ var bgMagenta = format(45, 49);
210
+ var bgCyan = format(46, 49);
211
+ var bgWhite = format(47, 49);
212
+ var bgGray = format(100, 49);
213
+ var redBright = format(91, 39);
214
+ var greenBright = format(92, 39);
215
+ var yellowBright = format(93, 39);
216
+ var blueBright = format(94, 39);
217
+ var magentaBright = format(95, 39);
218
+ var cyanBright = format(96, 39);
219
+ var whiteBright = format(97, 39);
220
+ var bgRedBright = format(101, 49);
221
+ var bgGreenBright = format(102, 49);
222
+ var bgYellowBright = format(103, 49);
223
+ var bgBlueBright = format(104, 49);
224
+ var bgMagentaBright = format(105, 49);
225
+ var bgCyanBright = format(106, 49);
226
+ var bgWhiteBright = format(107, 49);
637
227
 
638
- // node_modules/.pnpm/is-unicode-supported@1.3.0/node_modules/is-unicode-supported/index.js
639
- var import_node_process2 = __toESM(require("process"), 1);
228
+ // node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
229
+ var import_node_process = __toESM(require("process"), 1);
640
230
  function isUnicodeSupported() {
641
- if (import_node_process2.default.platform !== "win32") {
642
- return import_node_process2.default.env.TERM !== "linux";
231
+ const { env } = import_node_process.default;
232
+ const { TERM, TERM_PROGRAM } = env;
233
+ if (import_node_process.default.platform !== "win32") {
234
+ return TERM !== "linux";
643
235
  }
644
- 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";
236
+ 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";
645
237
  }
646
238
 
647
- // node_modules/.pnpm/log-symbols@6.0.0/node_modules/log-symbols/index.js
648
- var main = {
649
- info: source_default.blue("\u2139"),
650
- success: source_default.green("\u2714"),
651
- warning: source_default.yellow("\u26A0"),
652
- error: source_default.red("\u2716")
653
- };
654
- var fallback = {
655
- info: source_default.blue("i"),
656
- success: source_default.green("\u221A"),
657
- warning: source_default.yellow("\u203C"),
658
- error: source_default.red("\xD7")
659
- };
660
- var logSymbols = isUnicodeSupported() ? main : fallback;
661
- var log_symbols_default = logSymbols;
239
+ // node_modules/.pnpm/log-symbols@7.0.0/node_modules/log-symbols/symbols.js
240
+ var _isUnicodeSupported = isUnicodeSupported();
241
+ var info = blue(_isUnicodeSupported ? "\u2139" : "i");
242
+ var success = green(_isUnicodeSupported ? "\u2714" : "\u221A");
243
+ var warning = yellow(_isUnicodeSupported ? "\u26A0" : "\u203C");
244
+ var error = red(_isUnicodeSupported ? "\u2716\uFE0F" : "\xD7");
662
245
 
663
246
  // src/version-bump.ts
664
247
  var import_picocolors3 = __toESM(require_picocolors());
665
248
  var import_prompts2 = __toESM(require("prompts"));
249
+ var import_tinyexec4 = require("tinyexec");
666
250
 
667
251
  // src/get-current-version.ts
668
252
  var import_semver = require("semver");
@@ -716,8 +300,8 @@ function isManifest(obj) {
716
300
  return obj && typeof obj === "object" && isOptionalString(obj.name) && isOptionalString(obj.version) && isOptionalString(obj.description);
717
301
  }
718
302
  function isPackageLockManifest(manifest) {
719
- var _a, _b;
720
- return typeof ((_b = (_a = manifest.packages) == null ? void 0 : _a[""]) == null ? void 0 : _b.version) === "string";
303
+ var _a2, _b2;
304
+ return typeof ((_b2 = (_a2 = manifest.packages) == null ? void 0 : _a2[""]) == null ? void 0 : _b2.version) === "string";
721
305
  }
722
306
  function isOptionalString(value) {
723
307
  const type = typeof value;
@@ -762,14 +346,14 @@ async function readVersion(file, cwd) {
762
346
  }
763
347
 
764
348
  // src/get-new-version.ts
765
- var import_node_process3 = __toESM(require("process"));
349
+ var import_node_process2 = __toESM(require("process"));
766
350
  var import_picocolors2 = __toESM(require_picocolors());
767
351
  var import_prompts = __toESM(require("prompts"));
768
352
  var import_semver2 = __toESM(require("semver"));
769
353
 
770
354
  // src/print-commits.ts
771
- var ezSpawn = __toESM(require("@jsdevtools/ez-spawn"));
772
355
  var import_picocolors = __toESM(require_picocolors());
356
+ var import_tinyexec = require("tinyexec");
773
357
  var messageColorMap = {
774
358
  chore: import_picocolors.default.gray,
775
359
  fix: import_picocolors.default.yellow,
@@ -788,20 +372,21 @@ function parseCommits(raw) {
788
372
  return lines.map((line) => {
789
373
  const [hash, ...parts] = line.split(" ");
790
374
  const message = parts.join(" ");
791
- const match = message.match(/^(\w+)(!)?(\([^)]+\))?:(.*)$/);
375
+ const match = message.match(/^(\w+)(!)?(\([^)]+\))?(!)?:(.*)$/);
792
376
  if (match) {
793
377
  let color = messageColorMap[match[1].toLowerCase()] || ((c4) => c4);
794
- if (match[2] === "!") {
378
+ const breaking = match[2] === "!" || match[4] === "!";
379
+ if (breaking) {
795
380
  color = (s) => import_picocolors.default.inverse(import_picocolors.default.red(s));
796
381
  }
797
- const tag = [match[1], match[2]].filter(Boolean).join("");
382
+ const tag = [match[1], match[2], match[4]].filter(Boolean).join("");
798
383
  const scope = match[3] || "";
799
384
  return {
800
385
  hash,
801
386
  tag,
802
- message: match[4].trim(),
387
+ message: match[5].trim(),
803
388
  scope,
804
- breaking: match[2] === "!",
389
+ breaking,
805
390
  color
806
391
  };
807
392
  }
@@ -836,23 +421,23 @@ function formatParsedCommits(commits) {
836
421
  }
837
422
  async function printRecentCommits(operation) {
838
423
  let sha;
839
- sha || (sha = await ezSpawn.async(
424
+ sha || (sha = await (0, import_tinyexec.x)(
840
425
  "git",
841
426
  ["rev-list", "-n", "1", `v${operation.state.currentVersion}`],
842
- { stdio: "pipe" }
843
- ).then((res) => res.stdout.trim()).catch(() => void 0));
844
- sha || (sha = await ezSpawn.async(
427
+ { nodeOptions: { stdio: "pipe" }, throwOnError: false }
428
+ ).then((res) => res.stdout.trim()));
429
+ sha || (sha = await (0, import_tinyexec.x)(
845
430
  "git",
846
431
  ["rev-list", "-n", "1", operation.state.currentVersion],
847
- { stdio: "pipe" }
848
- ).then((res) => res.stdout.trim()).catch(() => void 0));
432
+ { nodeOptions: { stdio: "pipe" }, throwOnError: false }
433
+ ).then((res) => res.stdout.trim()));
849
434
  if (!sha) {
850
435
  console.log(
851
436
  import_picocolors.default.blue(`i`) + import_picocolors.default.gray(` Failed to locate the previous tag ${import_picocolors.default.yellow(`v${operation.state.currentVersion}`)}`)
852
437
  );
853
438
  return;
854
439
  }
855
- const { stdout } = await ezSpawn.async(
440
+ const { stdout } = await (0, import_tinyexec.x)(
856
441
  "git",
857
442
  [
858
443
  "--no-pager",
@@ -860,7 +445,11 @@ async function printRecentCommits(operation) {
860
445
  `${sha}..HEAD`,
861
446
  "--oneline"
862
447
  ],
863
- { stdio: "pipe" }
448
+ {
449
+ nodeOptions: {
450
+ stdio: "pipe"
451
+ }
452
+ }
864
453
  );
865
454
  const parsed = parseCommits(stdout.toString().trim());
866
455
  const prettified = formatParsedCommits(parsed);
@@ -929,11 +518,11 @@ function getNextVersions(currentVersion, preid) {
929
518
  return next;
930
519
  }
931
520
  async function promptForNewVersion(operation) {
932
- var _a, _b;
521
+ var _a2, _b2;
933
522
  const { currentVersion } = operation.state;
934
523
  const release = operation.options.release;
935
524
  const next = getNextVersions(currentVersion, release.preid);
936
- const configCustomVersion = await ((_b = (_a = operation.options).customVersion) == null ? void 0 : _b.call(_a, currentVersion, import_semver2.default));
525
+ const configCustomVersion = await ((_b2 = (_a2 = operation.options).customVersion) == null ? void 0 : _b2.call(_a2, currentVersion, import_semver2.default));
937
526
  if (operation.options.printCommits) {
938
527
  await printRecentCommits(operation);
939
528
  }
@@ -971,7 +560,7 @@ async function promptForNewVersion(operation) {
971
560
  ]);
972
561
  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];
973
562
  if (!newVersion)
974
- import_node_process3.default.exit(1);
563
+ import_node_process2.default.exit(1);
975
564
  switch (answers.release) {
976
565
  case "custom":
977
566
  case "config":
@@ -984,7 +573,7 @@ async function promptForNewVersion(operation) {
984
573
  }
985
574
 
986
575
  // src/git.ts
987
- var ezSpawn2 = __toESM(require("@jsdevtools/ez-spawn"));
576
+ var import_tinyexec2 = require("tinyexec");
988
577
 
989
578
  // src/types/version-bump-progress.ts
990
579
  var ProgressEvent = /* @__PURE__ */ ((ProgressEvent2) => {
@@ -1023,7 +612,7 @@ async function gitCommit(operation) {
1023
612
  args.push("--message", commitMessage);
1024
613
  if (!all)
1025
614
  args = args.concat(updatedFiles);
1026
- await ezSpawn2.async("git", ["commit", ...args]);
615
+ await (0, import_tinyexec2.x)("git", ["commit", ...args]);
1027
616
  return operation.update({ event: "git commit" /* GitCommit */, commitMessage });
1028
617
  }
1029
618
  async function gitTag(operation) {
@@ -1044,15 +633,15 @@ async function gitTag(operation) {
1044
633
  if (operation.options.sign) {
1045
634
  args.push("--sign");
1046
635
  }
1047
- await ezSpawn2.async("git", ["tag", ...args]);
636
+ await (0, import_tinyexec2.x)("git", ["tag", ...args]);
1048
637
  return operation.update({ event: "git tag" /* GitTag */, tagName });
1049
638
  }
1050
639
  async function gitPush(operation) {
1051
640
  if (!operation.options.push)
1052
641
  return operation;
1053
- await ezSpawn2.async("git", "push");
642
+ await (0, import_tinyexec2.x)("git", ["push"]);
1054
643
  if (operation.options.tag) {
1055
- await ezSpawn2.async("git", ["push", "--tags"]);
644
+ await (0, import_tinyexec2.x)("git", ["push", "--tags"]);
1056
645
  }
1057
646
  return operation.update({ event: "git push" /* GitPush */ });
1058
647
  }
@@ -1066,17 +655,17 @@ function formatVersionString(template, newVersion) {
1066
655
  // src/normalize-options.ts
1067
656
  var import_node_fs2 = __toESM(require("fs"));
1068
657
  var import_promises = __toESM(require("fs/promises"));
1069
- var import_node_process4 = __toESM(require("process"));
658
+ var import_node_process3 = __toESM(require("process"));
1070
659
  var import_js_yaml = __toESM(require("js-yaml"));
1071
660
  var import_tinyglobby = require("tinyglobby");
1072
661
  async function normalizeOptions(raw) {
1073
- var _a, _b, _d;
662
+ var _a2, _b2, _d2;
1074
663
  const preid = typeof raw.preid === "string" ? raw.preid : "beta";
1075
664
  const sign = Boolean(raw.sign);
1076
665
  const push = Boolean(raw.push);
1077
666
  const all = Boolean(raw.all);
1078
667
  const noVerify = Boolean(raw.noVerify);
1079
- const cwd = raw.cwd || import_node_process4.default.cwd();
668
+ const cwd = raw.cwd || import_node_process3.default.cwd();
1080
669
  const ignoreScripts = Boolean(raw.ignoreScripts);
1081
670
  const execute = raw.execute;
1082
671
  const recursive = Boolean(raw.recursive);
@@ -1097,7 +686,7 @@ async function normalizeOptions(raw) {
1097
686
  commit = { all, noVerify, message: raw.commit };
1098
687
  else if (raw.commit || tag || push)
1099
688
  commit = { all, noVerify, message: "chore: release v" };
1100
- if (recursive && !((_a = raw.files) == null ? void 0 : _a.length)) {
689
+ if (recursive && !((_a2 = raw.files) == null ? void 0 : _a2.length)) {
1101
690
  raw.files = [
1102
691
  "package.json",
1103
692
  "package-lock.json",
@@ -1112,13 +701,13 @@ async function normalizeOptions(raw) {
1112
701
  const workspaces = import_js_yaml.default.load(pnpmWorkspace);
1113
702
  const workspacesWithPackageJson = workspaces.packages.map((workspace) => `${workspace}/package.json`);
1114
703
  const withoutExcludedWorkspaces = workspacesWithPackageJson.filter((workspace) => {
1115
- var _a2;
1116
- return !workspace.startsWith("!") && !((_a2 = raw.files) == null ? void 0 : _a2.includes(workspace));
704
+ var _a3;
705
+ return !workspace.startsWith("!") && !((_a3 = raw.files) == null ? void 0 : _a3.includes(workspace));
1117
706
  });
1118
707
  raw.files = raw.files.concat(withoutExcludedWorkspaces);
1119
708
  }
1120
709
  } else {
1121
- 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"];
710
+ 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"];
1122
711
  }
1123
712
  const files = await (0, import_tinyglobby.glob)(
1124
713
  raw.files,
@@ -1135,13 +724,13 @@ async function normalizeOptions(raw) {
1135
724
  if (raw.interface === false) {
1136
725
  ui = { input: false, output: false };
1137
726
  } else if (raw.interface === true || !raw.interface) {
1138
- ui = { input: import_node_process4.default.stdin, output: import_node_process4.default.stdout };
727
+ ui = { input: import_node_process3.default.stdin, output: import_node_process3.default.stdout };
1139
728
  } else {
1140
- let _c = raw.interface, { input, output } = _c, other = __objRest(_c, ["input", "output"]);
729
+ let _c2 = raw.interface, { input, output } = _c2, other = __objRest(_c2, ["input", "output"]);
1141
730
  if (input === true || input !== false && !input)
1142
- input = import_node_process4.default.stdin;
731
+ input = import_node_process3.default.stdin;
1143
732
  if (output === true || output !== false && !output)
1144
- output = import_node_process4.default.stdout;
733
+ output = import_node_process3.default.stdout;
1145
734
  ui = __spreadValues({ input, output }, other);
1146
735
  }
1147
736
  if (release.type === "prompt" && !(ui.input && ui.output))
@@ -1157,7 +746,7 @@ async function normalizeOptions(raw) {
1157
746
  interface: ui,
1158
747
  ignoreScripts,
1159
748
  execute,
1160
- printCommits: (_d = raw.printCommits) != null ? _d : true,
749
+ printCommits: (_d2 = raw.printCommits) != null ? _d2 : true,
1161
750
  customVersion: raw.customVersion,
1162
751
  currentVersion: raw.currentVersion
1163
752
  };
@@ -1217,8 +806,8 @@ var Operation = class _Operation {
1217
806
  /**
1218
807
  * Updates the operation state and results, and reports the updated progress to the user.
1219
808
  */
1220
- update(_a) {
1221
- var _b = _a, { event, script } = _b, newState = __objRest(_b, ["event", "script"]);
809
+ update(_a2) {
810
+ var _b2 = _a2, { event, script } = _b2, newState = __objRest(_b2, ["event", "script"]);
1222
811
  Object.assign(this.state, newState);
1223
812
  if (event && this._progress) {
1224
813
  this._progress(__spreadValues({ event, script }, this.results));
@@ -1228,13 +817,15 @@ var Operation = class _Operation {
1228
817
  };
1229
818
 
1230
819
  // src/run-npm-script.ts
1231
- var ezSpawn3 = __toESM(require("@jsdevtools/ez-spawn"));
820
+ var import_tinyexec3 = require("tinyexec");
1232
821
  async function runNpmScript(script, operation) {
1233
822
  const { cwd, ignoreScripts } = operation.options;
1234
823
  if (!ignoreScripts) {
1235
824
  const { data: manifest } = await readJsoncFile("package.json", cwd);
1236
825
  if (isManifest(manifest) && hasScript(manifest, script)) {
1237
- await ezSpawn3.async("npm", ["run", script, "--silent"], { stdio: "inherit" });
826
+ await (0, import_tinyexec3.x)("npm", ["run", script, "--silent"], {
827
+ nodeOptions: { stdio: "inherit" }
828
+ });
1238
829
  operation.update({ event: "npm script" /* NpmScript */, script });
1239
830
  }
1240
831
  }
@@ -1337,7 +928,7 @@ async function versionBump(arg = {}) {
1337
928
  message: "Bump?",
1338
929
  initial: true
1339
930
  }).then((r) => r.yes)) {
1340
- import_node_process5.default.exit(1);
931
+ import_node_process4.default.exit(1);
1341
932
  }
1342
933
  }
1343
934
  await runNpmScript("preversion" /* PreVersion */, operation);
@@ -1346,9 +937,13 @@ async function versionBump(arg = {}) {
1346
937
  if (typeof operation.options.execute === "function") {
1347
938
  await operation.options.execute(operation);
1348
939
  } else {
1349
- console.log(log_symbols_default.info, "Executing script", operation.options.execute);
1350
- await ezSpawn4.async(operation.options.execute, { stdio: "inherit" });
1351
- console.log(log_symbols_default.success, "Script finished");
940
+ console.log(symbols_exports.info, "Executing script", operation.options.execute);
941
+ await (0, import_tinyexec4.x)(operation.options.execute, [], {
942
+ nodeOptions: {
943
+ stdio: "inherit"
944
+ }
945
+ });
946
+ console.log(symbols_exports.success, "Script finished");
1352
947
  }
1353
948
  }
1354
949
  await runNpmScript("version" /* Version */, operation);
@@ -1385,7 +980,7 @@ async function versionBumpInfo(arg = {}) {
1385
980
 
1386
981
  // src/config.ts
1387
982
  var import_node_path2 = require("path");
1388
- var import_node_process6 = __toESM(require("process"));
983
+ var import_node_process5 = __toESM(require("process"));
1389
984
  var import_c12 = require("c12");
1390
985
  var import_sync = __toESM(require("escalade/sync"));
1391
986
  var bumpConfigDefaults = {
@@ -1401,7 +996,7 @@ var bumpConfigDefaults = {
1401
996
  noGitCheck: true,
1402
997
  files: []
1403
998
  };
1404
- async function loadBumpConfig(overrides, cwd = import_node_process6.default.cwd()) {
999
+ async function loadBumpConfig(overrides, cwd = import_node_process5.default.cwd()) {
1405
1000
  const name = "bump";
1406
1001
  const configFile = findConfigFile(name, cwd);
1407
1002
  const { config } = await (0, import_c12.loadConfig)({
@@ -1431,10 +1026,10 @@ function findConfigFile(name, cwd) {
1431
1026
  }
1432
1027
  return false;
1433
1028
  });
1434
- } catch (error) {
1029
+ } catch (error2) {
1435
1030
  if (foundRepositoryRoot)
1436
1031
  return null;
1437
- throw error;
1032
+ throw error2;
1438
1033
  }
1439
1034
  }
1440
1035
  function defineConfig(config) {