@kitschpatrol/shared-config 5.3.1 → 5.4.1

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.
Files changed (2) hide show
  1. package/bin/cli.js +114 -540
  2. package/package.json +13 -13
package/bin/cli.js CHANGED
@@ -33,6 +33,78 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  mod
34
34
  ));
35
35
 
36
+ // ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
37
+ var require_picocolors = __commonJS({
38
+ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module) {
39
+ var p = process || {};
40
+ var argv = p.argv || [];
41
+ var env2 = p.env || {};
42
+ 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);
43
+ var formatter = (open, close, replace = open) => (input) => {
44
+ let string = "" + input, index = string.indexOf(close, open.length);
45
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
46
+ };
47
+ var replaceClose = (string, close, replace, index) => {
48
+ let result = "", cursor = 0;
49
+ do {
50
+ result += string.substring(cursor, index) + replace;
51
+ cursor = index + close.length;
52
+ index = string.indexOf(close, cursor);
53
+ } while (~index);
54
+ return result + string.substring(cursor);
55
+ };
56
+ var createColors = (enabled = isColorSupported) => {
57
+ let f = enabled ? formatter : () => String;
58
+ return {
59
+ isColorSupported: enabled,
60
+ reset: f("\x1B[0m", "\x1B[0m"),
61
+ bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
62
+ dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
63
+ italic: f("\x1B[3m", "\x1B[23m"),
64
+ underline: f("\x1B[4m", "\x1B[24m"),
65
+ inverse: f("\x1B[7m", "\x1B[27m"),
66
+ hidden: f("\x1B[8m", "\x1B[28m"),
67
+ strikethrough: f("\x1B[9m", "\x1B[29m"),
68
+ black: f("\x1B[30m", "\x1B[39m"),
69
+ red: f("\x1B[31m", "\x1B[39m"),
70
+ green: f("\x1B[32m", "\x1B[39m"),
71
+ yellow: f("\x1B[33m", "\x1B[39m"),
72
+ blue: f("\x1B[34m", "\x1B[39m"),
73
+ magenta: f("\x1B[35m", "\x1B[39m"),
74
+ cyan: f("\x1B[36m", "\x1B[39m"),
75
+ white: f("\x1B[37m", "\x1B[39m"),
76
+ gray: f("\x1B[90m", "\x1B[39m"),
77
+ bgBlack: f("\x1B[40m", "\x1B[49m"),
78
+ bgRed: f("\x1B[41m", "\x1B[49m"),
79
+ bgGreen: f("\x1B[42m", "\x1B[49m"),
80
+ bgYellow: f("\x1B[43m", "\x1B[49m"),
81
+ bgBlue: f("\x1B[44m", "\x1B[49m"),
82
+ bgMagenta: f("\x1B[45m", "\x1B[49m"),
83
+ bgCyan: f("\x1B[46m", "\x1B[49m"),
84
+ bgWhite: f("\x1B[47m", "\x1B[49m"),
85
+ blackBright: f("\x1B[90m", "\x1B[39m"),
86
+ redBright: f("\x1B[91m", "\x1B[39m"),
87
+ greenBright: f("\x1B[92m", "\x1B[39m"),
88
+ yellowBright: f("\x1B[93m", "\x1B[39m"),
89
+ blueBright: f("\x1B[94m", "\x1B[39m"),
90
+ magentaBright: f("\x1B[95m", "\x1B[39m"),
91
+ cyanBright: f("\x1B[96m", "\x1B[39m"),
92
+ whiteBright: f("\x1B[97m", "\x1B[39m"),
93
+ bgBlackBright: f("\x1B[100m", "\x1B[49m"),
94
+ bgRedBright: f("\x1B[101m", "\x1B[49m"),
95
+ bgGreenBright: f("\x1B[102m", "\x1B[49m"),
96
+ bgYellowBright: f("\x1B[103m", "\x1B[49m"),
97
+ bgBlueBright: f("\x1B[104m", "\x1B[49m"),
98
+ bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
99
+ bgCyanBright: f("\x1B[106m", "\x1B[49m"),
100
+ bgWhiteBright: f("\x1B[107m", "\x1B[49m")
101
+ };
102
+ };
103
+ module.exports = createColors();
104
+ module.exports.createColors = createColors;
105
+ }
106
+ });
107
+
36
108
  // ../../node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js
37
109
  var require_cjs = __commonJS({
38
110
  "../../node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js"(exports, module) {
@@ -207,9 +279,9 @@ var require_path = __commonJS({
207
279
  "use strict";
208
280
  Object.defineProperty(exports, "__esModule", { value: true });
209
281
  exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
210
- var os2 = __require("os");
282
+ var os = __require("os");
211
283
  var path10 = __require("path");
212
- var IS_WINDOWS_PLATFORM = os2.platform() === "win32";
284
+ var IS_WINDOWS_PLATFORM = os.platform() === "win32";
213
285
  var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
214
286
  var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
215
287
  var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g;
@@ -5471,8 +5543,8 @@ var require_settings4 = __commonJS({
5471
5543
  Object.defineProperty(exports, "__esModule", { value: true });
5472
5544
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
5473
5545
  var fs8 = __require("fs");
5474
- var os2 = __require("os");
5475
- var CPU_COUNT = Math.max(os2.cpus().length, 1);
5546
+ var os = __require("os");
5547
+ var CPU_COUNT = Math.max(os.cpus().length, 1);
5476
5548
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
5477
5549
  lstat: fs8.lstat,
5478
5550
  lstatSync: fs8.lstatSync,
@@ -5625,9 +5697,9 @@ var require_out4 = __commonJS({
5625
5697
  }
5626
5698
  });
5627
5699
 
5628
- // ../../node_modules/.pnpm/ignore@7.0.3/node_modules/ignore/index.js
5700
+ // ../../node_modules/.pnpm/ignore@7.0.4/node_modules/ignore/index.js
5629
5701
  var require_ignore = __commonJS({
5630
- "../../node_modules/.pnpm/ignore@7.0.3/node_modules/ignore/index.js"(exports, module) {
5702
+ "../../node_modules/.pnpm/ignore@7.0.4/node_modules/ignore/index.js"(exports, module) {
5631
5703
  function makeArray(subject) {
5632
5704
  return Array.isArray(subject) ? subject : [subject];
5633
5705
  }
@@ -5640,7 +5712,7 @@ var require_ignore = __commonJS({
5640
5712
  var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
5641
5713
  var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
5642
5714
  var REGEX_SPLITALL_CRLF = /\r?\n/g;
5643
- var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/;
5715
+ var REGEX_TEST_INVALID_PATH = /^\.{0,2}\/|^\.{1,2}$/;
5644
5716
  var REGEX_TEST_TRAILING_SLASH = /\/$/;
5645
5717
  var SLASH = "/";
5646
5718
  var TMP_KEY_IGNORE = "node-ignore";
@@ -6078,495 +6150,6 @@ var require_ignore = __commonJS({
6078
6150
  }
6079
6151
  });
6080
6152
 
6081
- // ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/ansi-styles/index.js
6082
- var ANSI_BACKGROUND_OFFSET = 10;
6083
- var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
6084
- var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
6085
- var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
6086
- var styles = {
6087
- modifier: {
6088
- reset: [0, 0],
6089
- // 21 isn't widely supported and 22 does the same thing
6090
- bold: [1, 22],
6091
- dim: [2, 22],
6092
- italic: [3, 23],
6093
- underline: [4, 24],
6094
- overline: [53, 55],
6095
- inverse: [7, 27],
6096
- hidden: [8, 28],
6097
- strikethrough: [9, 29]
6098
- },
6099
- color: {
6100
- black: [30, 39],
6101
- red: [31, 39],
6102
- green: [32, 39],
6103
- yellow: [33, 39],
6104
- blue: [34, 39],
6105
- magenta: [35, 39],
6106
- cyan: [36, 39],
6107
- white: [37, 39],
6108
- // Bright color
6109
- blackBright: [90, 39],
6110
- gray: [90, 39],
6111
- // Alias of `blackBright`
6112
- grey: [90, 39],
6113
- // Alias of `blackBright`
6114
- redBright: [91, 39],
6115
- greenBright: [92, 39],
6116
- yellowBright: [93, 39],
6117
- blueBright: [94, 39],
6118
- magentaBright: [95, 39],
6119
- cyanBright: [96, 39],
6120
- whiteBright: [97, 39]
6121
- },
6122
- bgColor: {
6123
- bgBlack: [40, 49],
6124
- bgRed: [41, 49],
6125
- bgGreen: [42, 49],
6126
- bgYellow: [43, 49],
6127
- bgBlue: [44, 49],
6128
- bgMagenta: [45, 49],
6129
- bgCyan: [46, 49],
6130
- bgWhite: [47, 49],
6131
- // Bright color
6132
- bgBlackBright: [100, 49],
6133
- bgGray: [100, 49],
6134
- // Alias of `bgBlackBright`
6135
- bgGrey: [100, 49],
6136
- // Alias of `bgBlackBright`
6137
- bgRedBright: [101, 49],
6138
- bgGreenBright: [102, 49],
6139
- bgYellowBright: [103, 49],
6140
- bgBlueBright: [104, 49],
6141
- bgMagentaBright: [105, 49],
6142
- bgCyanBright: [106, 49],
6143
- bgWhiteBright: [107, 49]
6144
- }
6145
- };
6146
- var modifierNames = Object.keys(styles.modifier);
6147
- var foregroundColorNames = Object.keys(styles.color);
6148
- var backgroundColorNames = Object.keys(styles.bgColor);
6149
- var colorNames = [...foregroundColorNames, ...backgroundColorNames];
6150
- function assembleStyles() {
6151
- const codes = /* @__PURE__ */ new Map();
6152
- for (const [groupName, group] of Object.entries(styles)) {
6153
- for (const [styleName, style] of Object.entries(group)) {
6154
- styles[styleName] = {
6155
- open: `\x1B[${style[0]}m`,
6156
- close: `\x1B[${style[1]}m`
6157
- };
6158
- group[styleName] = styles[styleName];
6159
- codes.set(style[0], style[1]);
6160
- }
6161
- Object.defineProperty(styles, groupName, {
6162
- value: group,
6163
- enumerable: false
6164
- });
6165
- }
6166
- Object.defineProperty(styles, "codes", {
6167
- value: codes,
6168
- enumerable: false
6169
- });
6170
- styles.color.close = "\x1B[39m";
6171
- styles.bgColor.close = "\x1B[49m";
6172
- styles.color.ansi = wrapAnsi16();
6173
- styles.color.ansi256 = wrapAnsi256();
6174
- styles.color.ansi16m = wrapAnsi16m();
6175
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
6176
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
6177
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
6178
- Object.defineProperties(styles, {
6179
- rgbToAnsi256: {
6180
- value(red, green, blue) {
6181
- if (red === green && green === blue) {
6182
- if (red < 8) {
6183
- return 16;
6184
- }
6185
- if (red > 248) {
6186
- return 231;
6187
- }
6188
- return Math.round((red - 8) / 247 * 24) + 232;
6189
- }
6190
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
6191
- },
6192
- enumerable: false
6193
- },
6194
- hexToRgb: {
6195
- value(hex) {
6196
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
6197
- if (!matches) {
6198
- return [0, 0, 0];
6199
- }
6200
- let [colorString] = matches;
6201
- if (colorString.length === 3) {
6202
- colorString = [...colorString].map((character) => character + character).join("");
6203
- }
6204
- const integer = Number.parseInt(colorString, 16);
6205
- return [
6206
- /* eslint-disable no-bitwise */
6207
- integer >> 16 & 255,
6208
- integer >> 8 & 255,
6209
- integer & 255
6210
- /* eslint-enable no-bitwise */
6211
- ];
6212
- },
6213
- enumerable: false
6214
- },
6215
- hexToAnsi256: {
6216
- value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
6217
- enumerable: false
6218
- },
6219
- ansi256ToAnsi: {
6220
- value(code) {
6221
- if (code < 8) {
6222
- return 30 + code;
6223
- }
6224
- if (code < 16) {
6225
- return 90 + (code - 8);
6226
- }
6227
- let red;
6228
- let green;
6229
- let blue;
6230
- if (code >= 232) {
6231
- red = ((code - 232) * 10 + 8) / 255;
6232
- green = red;
6233
- blue = red;
6234
- } else {
6235
- code -= 16;
6236
- const remainder = code % 36;
6237
- red = Math.floor(code / 36) / 5;
6238
- green = Math.floor(remainder / 6) / 5;
6239
- blue = remainder % 6 / 5;
6240
- }
6241
- const value = Math.max(red, green, blue) * 2;
6242
- if (value === 0) {
6243
- return 30;
6244
- }
6245
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
6246
- if (value === 2) {
6247
- result += 60;
6248
- }
6249
- return result;
6250
- },
6251
- enumerable: false
6252
- },
6253
- rgbToAnsi: {
6254
- value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
6255
- enumerable: false
6256
- },
6257
- hexToAnsi: {
6258
- value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
6259
- enumerable: false
6260
- }
6261
- });
6262
- return styles;
6263
- }
6264
- var ansiStyles = assembleStyles();
6265
- var ansi_styles_default = ansiStyles;
6266
-
6267
- // ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/supports-color/index.js
6268
- import process2 from "node:process";
6269
- import os from "node:os";
6270
- import tty from "node:tty";
6271
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
6272
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
6273
- const position = argv.indexOf(prefix + flag);
6274
- const terminatorPosition = argv.indexOf("--");
6275
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
6276
- }
6277
- var { env } = process2;
6278
- var flagForceColor;
6279
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
6280
- flagForceColor = 0;
6281
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
6282
- flagForceColor = 1;
6283
- }
6284
- function envForceColor() {
6285
- if ("FORCE_COLOR" in env) {
6286
- if (env.FORCE_COLOR === "true") {
6287
- return 1;
6288
- }
6289
- if (env.FORCE_COLOR === "false") {
6290
- return 0;
6291
- }
6292
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
6293
- }
6294
- }
6295
- function translateLevel(level) {
6296
- if (level === 0) {
6297
- return false;
6298
- }
6299
- return {
6300
- level,
6301
- hasBasic: true,
6302
- has256: level >= 2,
6303
- has16m: level >= 3
6304
- };
6305
- }
6306
- function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
6307
- const noFlagForceColor = envForceColor();
6308
- if (noFlagForceColor !== void 0) {
6309
- flagForceColor = noFlagForceColor;
6310
- }
6311
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
6312
- if (forceColor === 0) {
6313
- return 0;
6314
- }
6315
- if (sniffFlags) {
6316
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
6317
- return 3;
6318
- }
6319
- if (hasFlag("color=256")) {
6320
- return 2;
6321
- }
6322
- }
6323
- if ("TF_BUILD" in env && "AGENT_NAME" in env) {
6324
- return 1;
6325
- }
6326
- if (haveStream && !streamIsTTY && forceColor === void 0) {
6327
- return 0;
6328
- }
6329
- const min = forceColor || 0;
6330
- if (env.TERM === "dumb") {
6331
- return min;
6332
- }
6333
- if (process2.platform === "win32") {
6334
- const osRelease = os.release().split(".");
6335
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
6336
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
6337
- }
6338
- return 1;
6339
- }
6340
- if ("CI" in env) {
6341
- if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
6342
- return 3;
6343
- }
6344
- if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
6345
- return 1;
6346
- }
6347
- return min;
6348
- }
6349
- if ("TEAMCITY_VERSION" in env) {
6350
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
6351
- }
6352
- if (env.COLORTERM === "truecolor") {
6353
- return 3;
6354
- }
6355
- if (env.TERM === "xterm-kitty") {
6356
- return 3;
6357
- }
6358
- if ("TERM_PROGRAM" in env) {
6359
- const version2 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
6360
- switch (env.TERM_PROGRAM) {
6361
- case "iTerm.app": {
6362
- return version2 >= 3 ? 3 : 2;
6363
- }
6364
- case "Apple_Terminal": {
6365
- return 2;
6366
- }
6367
- }
6368
- }
6369
- if (/-256(color)?$/i.test(env.TERM)) {
6370
- return 2;
6371
- }
6372
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
6373
- return 1;
6374
- }
6375
- if ("COLORTERM" in env) {
6376
- return 1;
6377
- }
6378
- return min;
6379
- }
6380
- function createSupportsColor(stream, options = {}) {
6381
- const level = _supportsColor(stream, {
6382
- streamIsTTY: stream && stream.isTTY,
6383
- ...options
6384
- });
6385
- return translateLevel(level);
6386
- }
6387
- var supportsColor = {
6388
- stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
6389
- stderr: createSupportsColor({ isTTY: tty.isatty(2) })
6390
- };
6391
- var supports_color_default = supportsColor;
6392
-
6393
- // ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/utilities.js
6394
- function stringReplaceAll(string, substring, replacer) {
6395
- let index = string.indexOf(substring);
6396
- if (index === -1) {
6397
- return string;
6398
- }
6399
- const substringLength = substring.length;
6400
- let endIndex = 0;
6401
- let returnValue = "";
6402
- do {
6403
- returnValue += string.slice(endIndex, index) + substring + replacer;
6404
- endIndex = index + substringLength;
6405
- index = string.indexOf(substring, endIndex);
6406
- } while (index !== -1);
6407
- returnValue += string.slice(endIndex);
6408
- return returnValue;
6409
- }
6410
- function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
6411
- let endIndex = 0;
6412
- let returnValue = "";
6413
- do {
6414
- const gotCR = string[index - 1] === "\r";
6415
- returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
6416
- endIndex = index + 1;
6417
- index = string.indexOf("\n", endIndex);
6418
- } while (index !== -1);
6419
- returnValue += string.slice(endIndex);
6420
- return returnValue;
6421
- }
6422
-
6423
- // ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/index.js
6424
- var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
6425
- var GENERATOR = Symbol("GENERATOR");
6426
- var STYLER = Symbol("STYLER");
6427
- var IS_EMPTY = Symbol("IS_EMPTY");
6428
- var levelMapping = [
6429
- "ansi",
6430
- "ansi",
6431
- "ansi256",
6432
- "ansi16m"
6433
- ];
6434
- var styles2 = /* @__PURE__ */ Object.create(null);
6435
- var applyOptions = (object, options = {}) => {
6436
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
6437
- throw new Error("The `level` option should be an integer from 0 to 3");
6438
- }
6439
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
6440
- object.level = options.level === void 0 ? colorLevel : options.level;
6441
- };
6442
- var chalkFactory = (options) => {
6443
- const chalk2 = (...strings) => strings.join(" ");
6444
- applyOptions(chalk2, options);
6445
- Object.setPrototypeOf(chalk2, createChalk.prototype);
6446
- return chalk2;
6447
- };
6448
- function createChalk(options) {
6449
- return chalkFactory(options);
6450
- }
6451
- Object.setPrototypeOf(createChalk.prototype, Function.prototype);
6452
- for (const [styleName, style] of Object.entries(ansi_styles_default)) {
6453
- styles2[styleName] = {
6454
- get() {
6455
- const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
6456
- Object.defineProperty(this, styleName, { value: builder });
6457
- return builder;
6458
- }
6459
- };
6460
- }
6461
- styles2.visible = {
6462
- get() {
6463
- const builder = createBuilder(this, this[STYLER], true);
6464
- Object.defineProperty(this, "visible", { value: builder });
6465
- return builder;
6466
- }
6467
- };
6468
- var getModelAnsi = (model, level, type, ...arguments_) => {
6469
- if (model === "rgb") {
6470
- if (level === "ansi16m") {
6471
- return ansi_styles_default[type].ansi16m(...arguments_);
6472
- }
6473
- if (level === "ansi256") {
6474
- return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
6475
- }
6476
- return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
6477
- }
6478
- if (model === "hex") {
6479
- return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
6480
- }
6481
- return ansi_styles_default[type][model](...arguments_);
6482
- };
6483
- var usedModels = ["rgb", "hex", "ansi256"];
6484
- for (const model of usedModels) {
6485
- styles2[model] = {
6486
- get() {
6487
- const { level } = this;
6488
- return function(...arguments_) {
6489
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
6490
- return createBuilder(this, styler, this[IS_EMPTY]);
6491
- };
6492
- }
6493
- };
6494
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
6495
- styles2[bgModel] = {
6496
- get() {
6497
- const { level } = this;
6498
- return function(...arguments_) {
6499
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
6500
- return createBuilder(this, styler, this[IS_EMPTY]);
6501
- };
6502
- }
6503
- };
6504
- }
6505
- var proto = Object.defineProperties(() => {
6506
- }, {
6507
- ...styles2,
6508
- level: {
6509
- enumerable: true,
6510
- get() {
6511
- return this[GENERATOR].level;
6512
- },
6513
- set(level) {
6514
- this[GENERATOR].level = level;
6515
- }
6516
- }
6517
- });
6518
- var createStyler = (open, close, parent) => {
6519
- let openAll;
6520
- let closeAll;
6521
- if (parent === void 0) {
6522
- openAll = open;
6523
- closeAll = close;
6524
- } else {
6525
- openAll = parent.openAll + open;
6526
- closeAll = close + parent.closeAll;
6527
- }
6528
- return {
6529
- open,
6530
- close,
6531
- openAll,
6532
- closeAll,
6533
- parent
6534
- };
6535
- };
6536
- var createBuilder = (self, _styler, _isEmpty) => {
6537
- const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
6538
- Object.setPrototypeOf(builder, proto);
6539
- builder[GENERATOR] = self;
6540
- builder[STYLER] = _styler;
6541
- builder[IS_EMPTY] = _isEmpty;
6542
- return builder;
6543
- };
6544
- var applyStyle = (self, string) => {
6545
- if (self.level <= 0 || !string) {
6546
- return self[IS_EMPTY] ? "" : string;
6547
- }
6548
- let styler = self[STYLER];
6549
- if (styler === void 0) {
6550
- return string;
6551
- }
6552
- const { openAll, closeAll } = styler;
6553
- if (string.includes("\x1B")) {
6554
- while (styler !== void 0) {
6555
- string = stringReplaceAll(string, styler.close, styler.open);
6556
- styler = styler.parent;
6557
- }
6558
- }
6559
- const lfIndex = string.indexOf("\n");
6560
- if (lfIndex !== -1) {
6561
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
6562
- }
6563
- return openAll + string + closeAll;
6564
- };
6565
- Object.defineProperties(createChalk.prototype, styles2);
6566
- var chalk = createChalk();
6567
- var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
6568
- var source_default = chalk;
6569
-
6570
6153
  // ../../src/command-builder.ts
6571
6154
  import { cosmiconfig } from "cosmiconfig";
6572
6155
  import { TypeScriptLoader as typeScriptLoader } from "cosmiconfig-typescript-loader";
@@ -6578,17 +6161,17 @@ import { PassThrough } from "node:stream";
6578
6161
  import { fileURLToPath as fileURLToPath3 } from "node:url";
6579
6162
 
6580
6163
  // ../../node_modules/.pnpm/package-up@5.0.0/node_modules/package-up/index.js
6581
- import process4 from "node:process";
6164
+ import process3 from "node:process";
6582
6165
 
6583
6166
  // ../../node_modules/.pnpm/find-up-simple@1.0.1/node_modules/find-up-simple/index.js
6584
- import process3 from "node:process";
6167
+ import process2 from "node:process";
6585
6168
  import fsPromises from "node:fs/promises";
6586
6169
  import { fileURLToPath } from "node:url";
6587
6170
  import fs from "node:fs";
6588
6171
  import path from "node:path";
6589
6172
  var toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
6590
6173
  async function findUp(name, {
6591
- cwd = process3.cwd(),
6174
+ cwd = process2.cwd(),
6592
6175
  type = "file",
6593
6176
  stopAt
6594
6177
  } = {}) {
@@ -6612,7 +6195,7 @@ async function findUp(name, {
6612
6195
  }
6613
6196
  }
6614
6197
  function findUpSync(name, {
6615
- cwd = process3.cwd(),
6198
+ cwd = process2.cwd(),
6616
6199
  type = "file",
6617
6200
  stopAt
6618
6201
  } = {}) {
@@ -6637,13 +6220,16 @@ function findUpSync(name, {
6637
6220
  }
6638
6221
 
6639
6222
  // ../../node_modules/.pnpm/package-up@5.0.0/node_modules/package-up/index.js
6640
- async function packageUp({ cwd = process4.cwd() } = {}) {
6223
+ async function packageUp({ cwd = process3.cwd() } = {}) {
6641
6224
  return findUp("package.json", { cwd });
6642
6225
  }
6643
- function packageUpSync({ cwd = process4.cwd() } = {}) {
6226
+ function packageUpSync({ cwd = process3.cwd() } = {}) {
6644
6227
  return findUpSync("package.json", { cwd });
6645
6228
  }
6646
6229
 
6230
+ // ../../src/command-builder.ts
6231
+ var import_picocolors2 = __toESM(require_picocolors(), 1);
6232
+
6647
6233
  // ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/lib/platform-shims/esm.mjs
6648
6234
  import { notStrictEqual, strictEqual } from "assert";
6649
6235
 
@@ -7589,8 +7175,8 @@ var YargsParser = class {
7589
7175
  if (typeof envPrefix === "undefined")
7590
7176
  return;
7591
7177
  const prefix = typeof envPrefix === "string" ? envPrefix : "";
7592
- const env3 = mixin2.env();
7593
- Object.keys(env3).forEach(function(envVar) {
7178
+ const env2 = mixin2.env();
7179
+ Object.keys(env2).forEach(function(envVar) {
7594
7180
  if (prefix === "" || envVar.lastIndexOf(prefix, 0) === 0) {
7595
7181
  const keys = envVar.split("__").map(function(key, i) {
7596
7182
  if (i === 0) {
@@ -7599,7 +7185,7 @@ var YargsParser = class {
7599
7185
  return camelCase(key);
7600
7186
  });
7601
7187
  if ((configOnly && flags.configs[keys.join(".")] || !configOnly) && !hasKey(argv2, keys)) {
7602
- setArg(keys.join("."), env3[envVar]);
7188
+ setArg(keys.join("."), env2[envVar]);
7603
7189
  }
7604
7190
  }
7605
7191
  });
@@ -7909,11 +7495,11 @@ if (nodeVersion) {
7909
7495
  throw Error(`yargs parser supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);
7910
7496
  }
7911
7497
  }
7912
- var env2 = process ? process.env : {};
7498
+ var env = process ? process.env : {};
7913
7499
  var parser = new YargsParser({
7914
7500
  cwd: process.cwd,
7915
7501
  env: () => {
7916
- return env2;
7502
+ return env;
7917
7503
  },
7918
7504
  format,
7919
7505
  normalize,
@@ -11494,11 +11080,12 @@ var Yargs = YargsFactory(esm_default);
11494
11080
  var yargs_default = Yargs;
11495
11081
 
11496
11082
  // ../../package.json
11497
- var version = "5.3.1";
11083
+ var version = "5.4.1";
11498
11084
 
11499
11085
  // ../../src/execa-utilities.ts
11500
11086
  function isErrorExecaError(error) {
11501
- return error instanceof Error && "exitCode" in error && typeof error.exitCode === "number";
11087
+ return error instanceof Error && "exitCode" in error && // eslint-disable-next-line ts/no-unsafe-type-assertion
11088
+ typeof error.exitCode === "number";
11502
11089
  }
11503
11090
 
11504
11091
  // ../../src/json-utilities.ts
@@ -11730,6 +11317,7 @@ async function formatFileInPlace(filePath) {
11730
11317
  }
11731
11318
 
11732
11319
  // ../../src/stream-utilities.ts
11320
+ var import_picocolors = __toESM(require_picocolors(), 1);
11733
11321
  import { Transform } from "node:stream";
11734
11322
  function createStreamFilter(matcher) {
11735
11323
  return new Transform({
@@ -11745,7 +11333,7 @@ function createStreamTransform(logPrefix, logColor) {
11745
11333
  transform(chunk, _, callback) {
11746
11334
  const lines = chunk.toString().split(/\r?\n/).filter((line) => line.trim().length > 0);
11747
11335
  const transformed = lines.map(
11748
- (line) => `${logPrefix ? logColor === void 0 ? logPrefix : source_default[logColor](logPrefix) : ""} ${line}
11336
+ (line) => `${logPrefix ? logColor === void 0 ? logPrefix : import_picocolors.default[logColor](logPrefix) : ""} ${line}
11749
11337
  `
11750
11338
  ).join("");
11751
11339
  this.push(transformed);
@@ -11787,7 +11375,7 @@ async function executeFunctionCommand(logStream, positionalArguments, optionFlag
11787
11375
  }
11788
11376
  if (verbose) {
11789
11377
  targetStream.write(
11790
- source_default.bold(
11378
+ import_picocolors2.default.bold(
11791
11379
  `Running: "${command2.name}() with Positional arguments: ${String(positionalArguments)} and Option flags: ${String(optionFlags)}"`
11792
11380
  )
11793
11381
  );
@@ -11883,17 +11471,21 @@ async function executeCommands(logStream, positionalArguments, optionFlags, comm
11883
11471
  const totalCommands = exitCodes.length;
11884
11472
  if (successfulCommands.length > 0) {
11885
11473
  logStream.write(
11886
- `\u2705 ${source_default.green.bold(
11887
- `${successfulCommands.length} / ${totalCommands} ${pluralize("Command", successfulCommands.length)} Succeeded:`
11888
- )} ${source_default.green(successfulCommands.join(", "))}
11474
+ `\u2705 ${import_picocolors2.default.green(
11475
+ import_picocolors2.default.bold(
11476
+ `${successfulCommands.length} / ${totalCommands} ${pluralize("Command", successfulCommands.length)} Succeeded:`
11477
+ )
11478
+ )} ${import_picocolors2.default.green(successfulCommands.join(", "))}
11889
11479
  `
11890
11480
  );
11891
11481
  }
11892
11482
  if (failedCommands.length > 0) {
11893
11483
  logStream.write(
11894
- `\u274C ${source_default.red.bold(
11895
- `${failedCommands.length} / ${totalCommands} ${pluralize("Command", failedCommands.length)} Failed:`
11896
- )} ${source_default.red(failedCommands.join(", "))}
11484
+ `\u274C ${import_picocolors2.default.red(
11485
+ import_picocolors2.default.bold(
11486
+ `${failedCommands.length} / ${totalCommands} ${pluralize("Command", failedCommands.length)} Failed:`
11487
+ )
11488
+ )} ${import_picocolors2.default.red(failedCommands.join(", "))}
11897
11489
  `
11898
11490
  );
11899
11491
  }
@@ -12757,7 +12349,7 @@ var commandDefinition6 = {
12757
12349
  };
12758
12350
 
12759
12351
  // ../../node_modules/.pnpm/globby@14.1.0/node_modules/globby/index.js
12760
- import process6 from "node:process";
12352
+ import process5 from "node:process";
12761
12353
  import fs6 from "node:fs";
12762
12354
  import nodePath from "node:path";
12763
12355
 
@@ -12991,7 +12583,7 @@ var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
12991
12583
  // ../../node_modules/.pnpm/globby@14.1.0/node_modules/globby/ignore.js
12992
12584
  var import_fast_glob = __toESM(require_out4(), 1);
12993
12585
  var import_ignore = __toESM(require_ignore(), 1);
12994
- import process5 from "node:process";
12586
+ import process4 from "node:process";
12995
12587
  import fs5 from "node:fs";
12996
12588
  import fsPromises3 from "node:fs/promises";
12997
12589
  import path7 from "node:path";
@@ -13045,7 +12637,7 @@ var getIsIgnoredPredicate = (files, cwd) => {
13045
12637
  };
13046
12638
  };
13047
12639
  var normalizeOptions = (options = {}) => ({
13048
- cwd: toPath2(options.cwd) ?? process5.cwd(),
12640
+ cwd: toPath2(options.cwd) ?? process4.cwd(),
13049
12641
  suppressErrors: Boolean(options.suppressErrors),
13050
12642
  deep: typeof options.deep === "number" ? options.deep : Number.POSITIVE_INFINITY,
13051
12643
  ignore: [...options.ignore ?? [], ...defaultIgnoredDirectories]
@@ -13098,7 +12690,7 @@ var getDirectoryGlob = ({ directoryPath, files, extensions }) => {
13098
12690
  return files ? files.map((file) => nodePath.posix.join(directoryPath, `**/${nodePath.extname(file) ? file : `${file}${extensionGlob}`}`)) : [nodePath.posix.join(directoryPath, `**${extensionGlob ? `/*${extensionGlob}` : ""}`)];
13099
12691
  };
13100
12692
  var directoryToGlob = async (directoryPaths, {
13101
- cwd = process6.cwd(),
12693
+ cwd = process5.cwd(),
13102
12694
  files,
13103
12695
  extensions
13104
12696
  } = {}) => {
@@ -13108,7 +12700,7 @@ var directoryToGlob = async (directoryPaths, {
13108
12700
  return globs.flat();
13109
12701
  };
13110
12702
  var directoryToGlobSync = (directoryPaths, {
13111
- cwd = process6.cwd(),
12703
+ cwd = process5.cwd(),
13112
12704
  files,
13113
12705
  extensions
13114
12706
  } = {}) => directoryPaths.flatMap((directoryPath) => isDirectorySync(normalizePathForDirectoryGlob(directoryPath, cwd)) ? getDirectoryGlob({ directoryPath, files, extensions }) : directoryPath);
@@ -13666,26 +13258,8 @@ run-parallel/index.js:
13666
13258
  (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
13667
13259
 
13668
13260
  yargs-parser/build/lib/string-utils.js:
13669
- (**
13670
- * @license
13671
- * Copyright (c) 2016, Contributors
13672
- * SPDX-License-Identifier: ISC
13673
- *)
13674
-
13675
13261
  yargs-parser/build/lib/tokenize-arg-string.js:
13676
- (**
13677
- * @license
13678
- * Copyright (c) 2016, Contributors
13679
- * SPDX-License-Identifier: ISC
13680
- *)
13681
-
13682
13262
  yargs-parser/build/lib/yargs-parser-types.js:
13683
- (**
13684
- * @license
13685
- * Copyright (c) 2016, Contributors
13686
- * SPDX-License-Identifier: ISC
13687
- *)
13688
-
13689
13263
  yargs-parser/build/lib/yargs-parser.js:
13690
13264
  (**
13691
13265
  * @license
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/shared-config",
3
- "version": "5.3.1",
3
+ "version": "5.4.1",
4
4
  "description": "A collection of shared configurations, linters, and formatting tools for TypeScript projects. All managed as a single dependency, and invoked via a single CLI command.",
5
5
  "keywords": [
6
6
  "shared-config",
@@ -39,23 +39,23 @@
39
39
  "@pinojs/json-colorizer": "^4.0.0",
40
40
  "cosmiconfig": "^9.0.0",
41
41
  "cosmiconfig-typescript-loader": "^6.1.0",
42
- "execa": "^9.5.2",
42
+ "execa": "^9.5.3",
43
43
  "find-workspaces": "^0.3.1",
44
44
  "fs-extra": "^11.3.0",
45
45
  "prettier": "^3.5.3",
46
- "@kitschpatrol/cspell-config": "5.3.1",
47
- "@kitschpatrol/eslint-config": "5.3.1",
48
- "@kitschpatrol/prettier-config": "5.3.1",
49
- "@kitschpatrol/mdat-config": "5.3.1",
50
- "@kitschpatrol/repo-config": "5.3.1",
51
- "@kitschpatrol/knip-config": "5.3.1",
52
- "@kitschpatrol/stylelint-config": "5.3.1",
53
- "@kitschpatrol/remark-config": "5.3.1",
54
- "@kitschpatrol/typescript-config": "5.3.1"
46
+ "@kitschpatrol/cspell-config": "5.4.1",
47
+ "@kitschpatrol/prettier-config": "5.4.1",
48
+ "@kitschpatrol/eslint-config": "5.4.1",
49
+ "@kitschpatrol/mdat-config": "5.4.1",
50
+ "@kitschpatrol/knip-config": "5.4.1",
51
+ "@kitschpatrol/repo-config": "5.4.1",
52
+ "@kitschpatrol/remark-config": "5.4.1",
53
+ "@kitschpatrol/stylelint-config": "5.4.1",
54
+ "@kitschpatrol/typescript-config": "5.4.1"
55
55
  },
56
56
  "devDependencies": {
57
- "chalk": "^5.4.1",
58
- "globby": "^14.1.0"
57
+ "globby": "^14.1.0",
58
+ "picocolors": "^1.1.1"
59
59
  },
60
60
  "engines": {
61
61
  "node": ">=20.9.0"