@storm-software/config-tools 1.150.5 → 1.150.9

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 (130) hide show
  1. package/README.md +1 -1
  2. package/bin/config.cjs +14795 -283
  3. package/bin/config.js +14806 -266
  4. package/dist/chunk-2MY3KGBB.cjs +70 -0
  5. package/dist/chunk-322YBAWX.js +6 -0
  6. package/dist/chunk-3BGF4LNL.cjs +67 -0
  7. package/dist/chunk-3OZGKUMC.js +1120 -0
  8. package/dist/chunk-4CTFS6DM.js +143 -0
  9. package/dist/chunk-4YA7DJB5.cjs +451 -0
  10. package/dist/chunk-56RY3KW7.cjs +6 -0
  11. package/dist/chunk-5LYWI7E7.cjs +49 -0
  12. package/dist/chunk-5SDU662B.js +274 -0
  13. package/dist/chunk-5XAQKBRL.js +510 -0
  14. package/dist/chunk-6JG5O6FD.js +2645 -0
  15. package/dist/chunk-6R6FJLKT.cjs +84 -0
  16. package/dist/chunk-6ZPVROB4.js +51 -0
  17. package/dist/chunk-73C3QB67.js +27 -0
  18. package/dist/chunk-77YC3XPW.js +9228 -0
  19. package/dist/chunk-7PDFNXOV.js +67 -0
  20. package/dist/chunk-B2HXAAFT.cjs +274 -0
  21. package/dist/chunk-BKJUQIEL.cjs +6 -0
  22. package/dist/chunk-CHYZZRN6.cjs +165 -0
  23. package/dist/chunk-CUX3BOLK.cjs +6 -0
  24. package/dist/chunk-DYTSQ3L3.js +14 -0
  25. package/dist/chunk-E554LMEP.cjs +28 -0
  26. package/dist/chunk-FUALBFYR.cjs +247 -0
  27. package/dist/chunk-FZMUKCM5.js +50 -0
  28. package/dist/chunk-G62PQROD.cjs +510 -0
  29. package/dist/chunk-GJDVCWVL.cjs +27 -0
  30. package/dist/chunk-GZ6SGFYZ.cjs +2645 -0
  31. package/dist/chunk-HAYTD5F2.js +247 -0
  32. package/dist/chunk-HBJSM6VU.js +6 -0
  33. package/dist/chunk-HLB4MOTZ.js +6 -0
  34. package/dist/chunk-HUMXKKE6.js +765 -0
  35. package/dist/chunk-HVVHVCVH.js +24 -0
  36. package/dist/chunk-I2LFMHGF.cjs +14 -0
  37. package/dist/chunk-I5FJ2QOS.js +84 -0
  38. package/dist/chunk-IYMLNFGA.cjs +33 -0
  39. package/dist/chunk-JN37L7NL.js +33 -0
  40. package/dist/chunk-JVONSFJS.cjs +765 -0
  41. package/dist/chunk-KN7POPML.cjs +21 -0
  42. package/dist/chunk-KONO4OMT.cjs +9231 -0
  43. package/dist/chunk-KQLERSRE.js +93 -0
  44. package/dist/chunk-KXHNOCVY.cjs +24 -0
  45. package/dist/chunk-LAIQ2Z5B.cjs +93 -0
  46. package/dist/chunk-LUQRLSMI.js +6 -0
  47. package/dist/chunk-M3KQNO7N.cjs +93 -0
  48. package/dist/chunk-MJL6D7T3.js +28 -0
  49. package/dist/chunk-MKB5GTL4.js +451 -0
  50. package/dist/chunk-MMMRCNC6.js +77 -0
  51. package/dist/chunk-NERZUU47.js +93 -0
  52. package/dist/chunk-NVXMXDZM.js +70 -0
  53. package/dist/chunk-NWFS53UA.js +21 -0
  54. package/dist/chunk-PBEGXSGU.js +165 -0
  55. package/dist/chunk-PMRCDW2Q.cjs +44 -0
  56. package/dist/chunk-RDWCJD4I.cjs +30 -0
  57. package/dist/chunk-RN5XBSCX.cjs +77 -0
  58. package/dist/chunk-TJ7RSPG3.cjs +6 -0
  59. package/dist/chunk-US52HP52.cjs +143 -0
  60. package/dist/chunk-UXYX4UF4.cjs +50 -0
  61. package/dist/chunk-W7YJIINP.js +49 -0
  62. package/dist/chunk-WTHXS4H2.js +44 -0
  63. package/dist/chunk-X3T2GC65.cjs +51 -0
  64. package/dist/chunk-XUGBUGHC.cjs +1120 -0
  65. package/dist/chunk-YO6XHACG.js +30 -0
  66. package/dist/config-file/get-config-file.cjs +26 -66
  67. package/dist/config-file/get-config-file.js +25 -65
  68. package/dist/config-file/index.cjs +31 -1
  69. package/dist/config-file/index.js +31 -1
  70. package/dist/create-storm-config.cjs +30 -68
  71. package/dist/create-storm-config.js +29 -67
  72. package/dist/env/get-env.cjs +8 -152
  73. package/dist/env/get-env.js +7 -151
  74. package/dist/env/index.cjs +19 -2
  75. package/dist/env/index.js +19 -2
  76. package/dist/env/set-env.cjs +8 -259
  77. package/dist/env/set-env.js +7 -258
  78. package/dist/esm-HKV66HQZ.js +1716 -0
  79. package/dist/esm-TZUWSATN.cjs +1716 -0
  80. package/dist/get-config.cjs +29 -9
  81. package/dist/get-config.js +29 -9
  82. package/dist/index.cjs +180 -7
  83. package/dist/index.js +180 -7
  84. package/dist/json5-NI4CISQP.cjs +10 -0
  85. package/dist/json5-XMK3UBET.js +10 -0
  86. package/dist/jsonc-GYGN4BMZ.js +15 -0
  87. package/dist/jsonc-TDL6NXBV.cjs +15 -0
  88. package/dist/logger/chalk.cjs +4 -30
  89. package/dist/logger/chalk.js +3 -29
  90. package/dist/logger/console-icons.cjs +5 -15
  91. package/dist/logger/console-icons.js +5 -15
  92. package/dist/logger/console.cjs +37 -125
  93. package/dist/logger/console.js +23 -111
  94. package/dist/logger/create-logger.cjs +15 -31
  95. package/dist/logger/create-logger.js +14 -30
  96. package/dist/logger/format-timestamp.cjs +3 -5
  97. package/dist/logger/format-timestamp.js +3 -5
  98. package/dist/logger/get-log-level.cjs +6 -56
  99. package/dist/logger/get-log-level.js +6 -56
  100. package/dist/logger/index.cjs +61 -7
  101. package/dist/logger/index.js +61 -7
  102. package/dist/logger/is-unicode-supported.cjs +4 -16
  103. package/dist/logger/is-unicode-supported.js +3 -15
  104. package/dist/toml-5NX5FGDD.cjs +10 -0
  105. package/dist/toml-ZYXFVZLI.js +10 -0
  106. package/dist/types.cjs +6 -24
  107. package/dist/types.js +5 -23
  108. package/dist/utilities/apply-workspace-tokens.cjs +9 -55
  109. package/dist/utilities/apply-workspace-tokens.js +8 -54
  110. package/dist/utilities/correct-paths.cjs +33 -242
  111. package/dist/utilities/correct-paths.js +16 -225
  112. package/dist/utilities/file-path-utils.cjs +5 -18
  113. package/dist/utilities/file-path-utils.js +4 -17
  114. package/dist/utilities/find-up.cjs +4 -22
  115. package/dist/utilities/find-up.js +3 -21
  116. package/dist/utilities/find-workspace-root.cjs +7 -64
  117. package/dist/utilities/find-workspace-root.js +6 -63
  118. package/dist/utilities/get-default-config.cjs +7 -79
  119. package/dist/utilities/get-default-config.js +7 -79
  120. package/dist/utilities/index.cjs +84 -7
  121. package/dist/utilities/index.js +84 -7
  122. package/dist/utilities/process-handler.cjs +16 -35
  123. package/dist/utilities/process-handler.js +16 -35
  124. package/dist/utilities/run.cjs +6 -34
  125. package/dist/utilities/run.js +5 -33
  126. package/dist/yaml-GRT7ORXT.cjs +10 -0
  127. package/dist/yaml-WD4DF2QH.js +10 -0
  128. package/package.json +7 -4
  129. package/dist/chunk-SHUYVCID.js +0 -6
  130. package/dist/chunk-USNT2KNT.cjs +0 -6
@@ -0,0 +1,84 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+
4
+ var _chunk5LYWI7E7cjs = require('./chunk-5LYWI7E7.cjs');
5
+
6
+ // ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
7
+ _chunk5LYWI7E7cjs.init_cjs_shims.call(void 0, );
8
+ var b = /^(?:( )+|\t+)/;
9
+ var d = "space";
10
+ var h = "tab";
11
+ function g(e, t) {
12
+ const n = /* @__PURE__ */ new Map();
13
+ let i = 0, s, o;
14
+ for (const c of e.split(/\n/g)) {
15
+ if (!c) continue;
16
+ let f, a, l, p, r;
17
+ const y = c.match(b);
18
+ if (y === null) i = 0, s = "";
19
+ else {
20
+ if (f = y[0].length, a = y[1] ? d : h, t && a === d && f === 1) continue;
21
+ a !== s && (i = 0), s = a, l = 1, p = 0;
22
+ const u = f - i;
23
+ if (i = f, u === 0) l = 0, p = 1;
24
+ else {
25
+ const I = u > 0 ? u : -u;
26
+ o = T(a, I);
27
+ }
28
+ r = n.get(o), r = r === void 0 ? [1, 0] : [r[0] + l, r[1] + p], n.set(o, r);
29
+ }
30
+ }
31
+ return n;
32
+ }
33
+ _chunk5LYWI7E7cjs.__name.call(void 0, g, "g");
34
+ function T(e, t) {
35
+ return (e === d ? "s" : "t") + String(t);
36
+ }
37
+ _chunk5LYWI7E7cjs.__name.call(void 0, T, "T");
38
+ function w(e) {
39
+ const n = e[0] === "s" ? d : h, i = Number(e.slice(1));
40
+ return { type: n, amount: i };
41
+ }
42
+ _chunk5LYWI7E7cjs.__name.call(void 0, w, "w");
43
+ function E(e) {
44
+ let t, n = 0, i = 0;
45
+ for (const [s, [o, c]] of e) (o > n || o === n && c > i) && (n = o, i = c, t = s);
46
+ return t;
47
+ }
48
+ _chunk5LYWI7E7cjs.__name.call(void 0, E, "E");
49
+ function S(e, t) {
50
+ return (e === d ? " " : " ").repeat(t);
51
+ }
52
+ _chunk5LYWI7E7cjs.__name.call(void 0, S, "S");
53
+ function _(e) {
54
+ if (typeof e != "string") throw new TypeError("Expected a string");
55
+ let t = g(e, true);
56
+ t.size === 0 && (t = g(e, false));
57
+ const n = E(t);
58
+ let i, s = 0, o = "";
59
+ return n !== void 0 && ({ type: i, amount: s } = w(n), o = S(i, s)), { amount: s, type: i, indent: o };
60
+ }
61
+ _chunk5LYWI7E7cjs.__name.call(void 0, _, "_");
62
+ var m = Symbol.for("__confbox_fmt__");
63
+ var k = /^(\s+)/;
64
+ var v = /(\s+)$/;
65
+ function x(e, t = {}) {
66
+ const n = t.indent === void 0 && t.preserveIndentation !== false && e.slice(0, _optionalChain([t, 'optionalAccess', _2 => _2.sampleSize]) || 1024), i = t.preserveWhitespace === false ? void 0 : { start: _optionalChain([k, 'access', _3 => _3.exec, 'call', _4 => _4(e), 'optionalAccess', _5 => _5[0]]) || "", end: _optionalChain([v, 'access', _6 => _6.exec, 'call', _7 => _7(e), 'optionalAccess', _8 => _8[0]]) || "" };
67
+ return { sample: n, whiteSpace: i };
68
+ }
69
+ _chunk5LYWI7E7cjs.__name.call(void 0, x, "x");
70
+ function N(e, t, n) {
71
+ !t || typeof t != "object" || Object.defineProperty(t, m, { enumerable: false, configurable: true, writable: true, value: x(e, n) });
72
+ }
73
+ _chunk5LYWI7E7cjs.__name.call(void 0, N, "N");
74
+ function C(e, t) {
75
+ if (!e || typeof e != "object" || !(m in e)) return { indent: _optionalChain([t, 'optionalAccess', _9 => _9.indent]), whitespace: { start: "", end: "" } };
76
+ const n = e[m];
77
+ return { indent: _optionalChain([t, 'optionalAccess', _10 => _10.indent]) || _(n.sample || "").indent, whitespace: n.whiteSpace || { start: "", end: "" } };
78
+ }
79
+ _chunk5LYWI7E7cjs.__name.call(void 0, C, "C");
80
+
81
+
82
+
83
+
84
+ exports.N = N; exports.C = C;
@@ -0,0 +1,51 @@
1
+ import {
2
+ writeError,
3
+ writeFatal,
4
+ writeSuccess,
5
+ writeTrace
6
+ } from "./chunk-4CTFS6DM.js";
7
+ import {
8
+ __name,
9
+ init_esm_shims
10
+ } from "./chunk-W7YJIINP.js";
11
+
12
+ // src/utilities/process-handler.ts
13
+ init_esm_shims();
14
+ var exitWithError = /* @__PURE__ */ __name((config) => {
15
+ writeFatal("Exiting script with an error status...", config);
16
+ process.exit(1);
17
+ }, "exitWithError");
18
+ var exitWithSuccess = /* @__PURE__ */ __name((config) => {
19
+ writeSuccess("Script completed successfully. Exiting...", config);
20
+ process.exit(0);
21
+ }, "exitWithSuccess");
22
+ var handleProcess = /* @__PURE__ */ __name((config) => {
23
+ writeTrace(`Using the following arguments to process the script: ${process.argv.join(", ")}`, config);
24
+ process.on("unhandledRejection", (error) => {
25
+ writeError(`An Unhandled Rejection occurred while running the program: ${error}`, config);
26
+ exitWithError(config);
27
+ });
28
+ process.on("uncaughtException", (error) => {
29
+ writeError(`An Uncaught Exception occurred while running the program: ${error.message}
30
+ Stacktrace: ${error.stack}`, config);
31
+ exitWithError(config);
32
+ });
33
+ process.on("SIGTERM", (signal) => {
34
+ writeError(`The program terminated with signal code: ${signal}`, config);
35
+ exitWithError(config);
36
+ });
37
+ process.on("SIGINT", (signal) => {
38
+ writeError(`The program terminated with signal code: ${signal}`, config);
39
+ exitWithError(config);
40
+ });
41
+ process.on("SIGHUP", (signal) => {
42
+ writeError(`The program terminated with signal code: ${signal}`, config);
43
+ exitWithError(config);
44
+ });
45
+ }, "handleProcess");
46
+
47
+ export {
48
+ exitWithError,
49
+ exitWithSuccess,
50
+ handleProcess
51
+ };
@@ -0,0 +1,27 @@
1
+ import {
2
+ __name,
3
+ init_esm_shims
4
+ } from "./chunk-W7YJIINP.js";
5
+
6
+ // src/utilities/file-path-utils.ts
7
+ init_esm_shims();
8
+ import { sep } from "node:path";
9
+ var removeExtension = /* @__PURE__ */ __name((filePath) => {
10
+ const result = !filePath || (filePath.match(/./g) || []).length <= 1 ? "." : filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
11
+ if (result.startsWith("./")) {
12
+ return result.substring(2);
13
+ }
14
+ if (result.startsWith(".") || result.startsWith("/")) {
15
+ return result.substring(1);
16
+ }
17
+ return result;
18
+ }, "removeExtension");
19
+ function findFileName(filePath) {
20
+ return filePath?.split(filePath?.includes(sep) ? sep : filePath?.includes("/") ? "/" : "\\")?.pop() ?? "";
21
+ }
22
+ __name(findFileName, "findFileName");
23
+
24
+ export {
25
+ removeExtension,
26
+ findFileName
27
+ };