@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
@@ -1,83 +1,11 @@
1
1
  import {
2
- __name
3
- } from "../chunk-SHUYVCID.js";
4
- import { STORM_DEFAULT_HOMEPAGE, STORM_DEFAULT_LICENSE } from "@storm-software/config";
5
- import { existsSync } from "node:fs";
6
- import { readFile } from "node:fs/promises";
7
- import { join } from "node:path";
8
- import { joinPaths } from "./correct-paths";
9
- import { findWorkspaceRoot } from "./find-workspace-root";
10
- const DEFAULT_COLOR_CONFIG = {
11
- "light": {
12
- "background": "#fafafa",
13
- "foreground": "#1d1e22",
14
- "brand": "#1fb2a6",
15
- "alternate": "#db2777",
16
- "help": "#5C4EE5",
17
- "success": "#087f5b",
18
- "info": "#0550ae",
19
- "warning": "#e3b341",
20
- "danger": "#D8314A",
21
- "positive": "#22c55e",
22
- "negative": "#dc2626"
23
- },
24
- "dark": {
25
- "background": "#1d1e22",
26
- "foreground": "#cbd5e1",
27
- "brand": "#2dd4bf",
28
- "alternate": "#db2777",
29
- "help": "#818cf8",
30
- "success": "#10b981",
31
- "info": "#58a6ff",
32
- "warning": "#f3d371",
33
- "danger": "#D8314A",
34
- "positive": "#22c55e",
35
- "negative": "#dc2626"
36
- }
37
- };
38
- const getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
39
- let license = STORM_DEFAULT_LICENSE;
40
- let homepage = STORM_DEFAULT_HOMEPAGE;
41
- let name = void 0;
42
- let namespace = void 0;
43
- let repository = void 0;
44
- const workspaceRoot = findWorkspaceRoot(root);
45
- if (existsSync(join(workspaceRoot, "package.json"))) {
46
- const file = await readFile(joinPaths(workspaceRoot, "package.json"), "utf8");
47
- if (file) {
48
- const packageJson = JSON.parse(file);
49
- if (packageJson.name) {
50
- name = packageJson.name;
51
- }
52
- if (packageJson.namespace) {
53
- namespace = packageJson.namespace;
54
- }
55
- if (packageJson.repository) {
56
- if (typeof packageJson.repository === "string") {
57
- repository = packageJson.repository;
58
- } else if (packageJson.repository.url) {
59
- repository = packageJson.repository.url;
60
- }
61
- }
62
- if (packageJson.license) {
63
- license = packageJson.license;
64
- }
65
- if (packageJson.homepage) {
66
- homepage = packageJson.homepage;
67
- }
68
- }
69
- }
70
- return {
71
- workspaceRoot,
72
- name,
73
- namespace,
74
- repository,
75
- license,
76
- homepage,
77
- docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
78
- licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`
79
- };
80
- }, "getDefaultConfig");
2
+ DEFAULT_COLOR_CONFIG,
3
+ getDefaultConfig
4
+ } from "../chunk-KQLERSRE.js";
5
+ import "../chunk-MMMRCNC6.js";
6
+ import "../chunk-YO6XHACG.js";
7
+ import "../chunk-HAYTD5F2.js";
8
+ import "../chunk-W7YJIINP.js";
81
9
  export {
82
10
  DEFAULT_COLOR_CONFIG,
83
11
  getDefaultConfig
@@ -1,7 +1,84 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _createStarExport(obj) { Object.keys(obj) .filter((key) => key !== "default" && key !== "__esModule") .forEach((key) => { if (exports.hasOwnProperty(key)) { return; } Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]}); }); }var _applyworkspacetokens = require('./apply-workspace-tokens'); _createStarExport(_applyworkspacetokens);
2
- var _correctpaths = require('./correct-paths'); _createStarExport(_correctpaths);
3
- var _filepathutils = require('./file-path-utils'); _createStarExport(_filepathutils);
4
- var _findworkspaceroot = require('./find-workspace-root'); _createStarExport(_findworkspaceroot);
5
- var _getdefaultconfig = require('./get-default-config'); _createStarExport(_getdefaultconfig);
6
- var _processhandler = require('./process-handler'); _createStarExport(_processhandler);
7
- var _run = require('./run'); _createStarExport(_run);
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-BKJUQIEL.cjs');
2
+
3
+
4
+
5
+
6
+ var _chunkX3T2GC65cjs = require('../chunk-X3T2GC65.cjs');
7
+
8
+
9
+
10
+
11
+ var _chunkPMRCDW2Qcjs = require('../chunk-PMRCDW2Q.cjs');
12
+
13
+
14
+
15
+
16
+ var _chunk3BGF4LNLcjs = require('../chunk-3BGF4LNL.cjs');
17
+
18
+
19
+
20
+ var _chunkGJDVCWVLcjs = require('../chunk-GJDVCWVL.cjs');
21
+ require('../chunk-US52HP52.cjs');
22
+
23
+
24
+
25
+ var _chunkM3KQNO7Ncjs = require('../chunk-M3KQNO7N.cjs');
26
+
27
+
28
+
29
+ var _chunkRN5XBSCXcjs = require('../chunk-RN5XBSCX.cjs');
30
+ require('../chunk-RDWCJD4I.cjs');
31
+ require('../chunk-GZ6SGFYZ.cjs');
32
+ require('../chunk-E554LMEP.cjs');
33
+ require('../chunk-KXHNOCVY.cjs');
34
+ require('../chunk-I2LFMHGF.cjs');
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+ var _chunkFUALBFYRcjs = require('../chunk-FUALBFYR.cjs');
51
+ require('../chunk-2MY3KGBB.cjs');
52
+ require('../chunk-IYMLNFGA.cjs');
53
+ require('../chunk-5LYWI7E7.cjs');
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+ exports.DEFAULT_COLOR_CONFIG = _chunkM3KQNO7Ncjs.DEFAULT_COLOR_CONFIG; exports.LARGE_BUFFER = _chunkPMRCDW2Qcjs.LARGE_BUFFER; exports.applyWorkspaceBaseTokens = _chunk3BGF4LNLcjs.applyWorkspaceBaseTokens; exports.applyWorkspaceProjectTokens = _chunk3BGF4LNLcjs.applyWorkspaceProjectTokens; exports.applyWorkspaceTokens = _chunk3BGF4LNLcjs.applyWorkspaceTokens; exports.basename = _chunkFUALBFYRcjs.basename; exports.correctPaths = _chunkFUALBFYRcjs.correctPaths; exports.dirname = _chunkFUALBFYRcjs.dirname; exports.exitWithError = _chunkX3T2GC65cjs.exitWithError; exports.exitWithSuccess = _chunkX3T2GC65cjs.exitWithSuccess; exports.extname = _chunkFUALBFYRcjs.extname; exports.findFileName = _chunkGJDVCWVLcjs.findFileName; exports.findWorkspaceRoot = _chunkRN5XBSCXcjs.findWorkspaceRoot; exports.findWorkspaceRootSafe = _chunkRN5XBSCXcjs.findWorkspaceRootSafe; exports.format = _chunkFUALBFYRcjs.format; exports.getDefaultConfig = _chunkM3KQNO7Ncjs.getDefaultConfig; exports.handleProcess = _chunkX3T2GC65cjs.handleProcess; exports.isAbsolute = _chunkFUALBFYRcjs.isAbsolute; exports.joinPaths = _chunkFUALBFYRcjs.joinPaths; exports.normalizeString = _chunkFUALBFYRcjs.normalizeString; exports.normalizeWindowsPath = _chunkFUALBFYRcjs.normalizeWindowsPath; exports.parse = _chunkFUALBFYRcjs.parse; exports.relative = _chunkFUALBFYRcjs.relative; exports.removeExtension = _chunkGJDVCWVLcjs.removeExtension; exports.resolve = _chunkFUALBFYRcjs.resolve; exports.run = _chunkPMRCDW2Qcjs.run; exports.runAsync = _chunkPMRCDW2Qcjs.runAsync; exports.sep = _chunkFUALBFYRcjs.sep; exports.toNamespacedPath = _chunkFUALBFYRcjs.toNamespacedPath;
@@ -1,7 +1,84 @@
1
- export * from "./apply-workspace-tokens";
2
- export * from "./correct-paths";
3
- export * from "./file-path-utils";
4
- export * from "./find-workspace-root";
5
- export * from "./get-default-config";
6
- export * from "./process-handler";
7
- export * from "./run";
1
+ import "../chunk-322YBAWX.js";
2
+ import {
3
+ exitWithError,
4
+ exitWithSuccess,
5
+ handleProcess
6
+ } from "../chunk-6ZPVROB4.js";
7
+ import {
8
+ LARGE_BUFFER,
9
+ run,
10
+ runAsync
11
+ } from "../chunk-WTHXS4H2.js";
12
+ import {
13
+ applyWorkspaceBaseTokens,
14
+ applyWorkspaceProjectTokens,
15
+ applyWorkspaceTokens
16
+ } from "../chunk-7PDFNXOV.js";
17
+ import {
18
+ findFileName,
19
+ removeExtension
20
+ } from "../chunk-73C3QB67.js";
21
+ import "../chunk-4CTFS6DM.js";
22
+ import {
23
+ DEFAULT_COLOR_CONFIG,
24
+ getDefaultConfig
25
+ } from "../chunk-KQLERSRE.js";
26
+ import {
27
+ findWorkspaceRoot,
28
+ findWorkspaceRootSafe
29
+ } from "../chunk-MMMRCNC6.js";
30
+ import "../chunk-YO6XHACG.js";
31
+ import "../chunk-6JG5O6FD.js";
32
+ import "../chunk-MJL6D7T3.js";
33
+ import "../chunk-HVVHVCVH.js";
34
+ import "../chunk-DYTSQ3L3.js";
35
+ import {
36
+ basename,
37
+ correctPaths,
38
+ dirname,
39
+ extname,
40
+ format,
41
+ isAbsolute,
42
+ joinPaths,
43
+ normalizeString,
44
+ normalizeWindowsPath,
45
+ parse,
46
+ relative,
47
+ resolve,
48
+ sep,
49
+ toNamespacedPath
50
+ } from "../chunk-HAYTD5F2.js";
51
+ import "../chunk-NVXMXDZM.js";
52
+ import "../chunk-JN37L7NL.js";
53
+ import "../chunk-W7YJIINP.js";
54
+ export {
55
+ DEFAULT_COLOR_CONFIG,
56
+ LARGE_BUFFER,
57
+ applyWorkspaceBaseTokens,
58
+ applyWorkspaceProjectTokens,
59
+ applyWorkspaceTokens,
60
+ basename,
61
+ correctPaths,
62
+ dirname,
63
+ exitWithError,
64
+ exitWithSuccess,
65
+ extname,
66
+ findFileName,
67
+ findWorkspaceRoot,
68
+ findWorkspaceRootSafe,
69
+ format,
70
+ getDefaultConfig,
71
+ handleProcess,
72
+ isAbsolute,
73
+ joinPaths,
74
+ normalizeString,
75
+ normalizeWindowsPath,
76
+ parse,
77
+ relative,
78
+ removeExtension,
79
+ resolve,
80
+ run,
81
+ runAsync,
82
+ sep,
83
+ toNamespacedPath
84
+ };
@@ -1,41 +1,22 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUSNT2KNTcjs = require('../chunk-USNT2KNT.cjs');
4
- var _console = require('../logger/console');
5
- const exitWithError = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config) => {
6
- _console.writeFatal.call(void 0, "Exiting script with an error status...", config);
7
- process.exit(1);
8
- }, "exitWithError");
9
- const exitWithSuccess = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config) => {
10
- _console.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
11
- process.exit(0);
12
- }, "exitWithSuccess");
13
- const handleProcess = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config) => {
14
- _console.writeTrace.call(void 0, `Using the following arguments to process the script: ${process.argv.join(", ")}`, config);
15
- process.on("unhandledRejection", (error) => {
16
- _console.writeError.call(void 0, `An Unhandled Rejection occurred while running the program: ${error}`, config);
17
- exitWithError(config);
18
- });
19
- process.on("uncaughtException", (error) => {
20
- _console.writeError.call(void 0, `An Uncaught Exception occurred while running the program: ${error.message}
21
- Stacktrace: ${error.stack}`, config);
22
- exitWithError(config);
23
- });
24
- process.on("SIGTERM", (signal) => {
25
- _console.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
26
- exitWithError(config);
27
- });
28
- process.on("SIGINT", (signal) => {
29
- _console.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
30
- exitWithError(config);
31
- });
32
- process.on("SIGHUP", (signal) => {
33
- _console.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
34
- exitWithError(config);
35
- });
36
- }, "handleProcess");
37
3
 
38
4
 
5
+ var _chunkX3T2GC65cjs = require('../chunk-X3T2GC65.cjs');
6
+ require('../chunk-US52HP52.cjs');
7
+ require('../chunk-M3KQNO7N.cjs');
8
+ require('../chunk-RN5XBSCX.cjs');
9
+ require('../chunk-RDWCJD4I.cjs');
10
+ require('../chunk-GZ6SGFYZ.cjs');
11
+ require('../chunk-E554LMEP.cjs');
12
+ require('../chunk-KXHNOCVY.cjs');
13
+ require('../chunk-I2LFMHGF.cjs');
14
+ require('../chunk-FUALBFYR.cjs');
15
+ require('../chunk-2MY3KGBB.cjs');
16
+ require('../chunk-IYMLNFGA.cjs');
17
+ require('../chunk-5LYWI7E7.cjs');
39
18
 
40
19
 
41
- exports.exitWithError = exitWithError; exports.exitWithSuccess = exitWithSuccess; exports.handleProcess = handleProcess;
20
+
21
+
22
+ exports.exitWithError = _chunkX3T2GC65cjs.exitWithError; exports.exitWithSuccess = _chunkX3T2GC65cjs.exitWithSuccess; exports.handleProcess = _chunkX3T2GC65cjs.handleProcess;
@@ -1,39 +1,20 @@
1
1
  import {
2
- __name
3
- } from "../chunk-SHUYVCID.js";
4
- import { writeError, writeFatal, writeSuccess, writeTrace } from "../logger/console";
5
- const exitWithError = /* @__PURE__ */ __name((config) => {
6
- writeFatal("Exiting script with an error status...", config);
7
- process.exit(1);
8
- }, "exitWithError");
9
- const exitWithSuccess = /* @__PURE__ */ __name((config) => {
10
- writeSuccess("Script completed successfully. Exiting...", config);
11
- process.exit(0);
12
- }, "exitWithSuccess");
13
- const handleProcess = /* @__PURE__ */ __name((config) => {
14
- writeTrace(`Using the following arguments to process the script: ${process.argv.join(", ")}`, config);
15
- process.on("unhandledRejection", (error) => {
16
- writeError(`An Unhandled Rejection occurred while running the program: ${error}`, config);
17
- exitWithError(config);
18
- });
19
- process.on("uncaughtException", (error) => {
20
- writeError(`An Uncaught Exception occurred while running the program: ${error.message}
21
- Stacktrace: ${error.stack}`, config);
22
- exitWithError(config);
23
- });
24
- process.on("SIGTERM", (signal) => {
25
- writeError(`The program terminated with signal code: ${signal}`, config);
26
- exitWithError(config);
27
- });
28
- process.on("SIGINT", (signal) => {
29
- writeError(`The program terminated with signal code: ${signal}`, config);
30
- exitWithError(config);
31
- });
32
- process.on("SIGHUP", (signal) => {
33
- writeError(`The program terminated with signal code: ${signal}`, config);
34
- exitWithError(config);
35
- });
36
- }, "handleProcess");
2
+ exitWithError,
3
+ exitWithSuccess,
4
+ handleProcess
5
+ } from "../chunk-6ZPVROB4.js";
6
+ import "../chunk-4CTFS6DM.js";
7
+ import "../chunk-KQLERSRE.js";
8
+ import "../chunk-MMMRCNC6.js";
9
+ import "../chunk-YO6XHACG.js";
10
+ import "../chunk-6JG5O6FD.js";
11
+ import "../chunk-MJL6D7T3.js";
12
+ import "../chunk-HVVHVCVH.js";
13
+ import "../chunk-DYTSQ3L3.js";
14
+ import "../chunk-HAYTD5F2.js";
15
+ import "../chunk-NVXMXDZM.js";
16
+ import "../chunk-JN37L7NL.js";
17
+ import "../chunk-W7YJIINP.js";
37
18
  export {
38
19
  exitWithError,
39
20
  exitWithSuccess,
@@ -1,39 +1,11 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUSNT2KNTcjs = require('../chunk-USNT2KNT.cjs');
4
- var _nodechild_process = require('node:child_process');
5
- const LARGE_BUFFER = 1024 * 1e6;
6
- const run = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), stdio = "inherit", env = process.env) => {
7
- return _nodechild_process.execSync.call(void 0, command, {
8
- cwd,
9
- env: {
10
- ...process.env,
11
- ...env,
12
- CLICOLOR: "true",
13
- FORCE_COLOR: "true"
14
- },
15
- windowsHide: true,
16
- stdio,
17
- maxBuffer: LARGE_BUFFER,
18
- killSignal: "SIGTERM"
19
- });
20
- }, "run");
21
- const runAsync = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), env = process.env) => {
22
- return _nodechild_process.exec.call(void 0, command, {
23
- cwd,
24
- env: {
25
- ...process.env,
26
- ...env,
27
- CLICOLOR: "true",
28
- FORCE_COLOR: "true"
29
- },
30
- windowsHide: true,
31
- maxBuffer: LARGE_BUFFER,
32
- killSignal: "SIGTERM"
33
- });
34
- }, "runAsync");
35
3
 
36
4
 
5
+ var _chunkPMRCDW2Qcjs = require('../chunk-PMRCDW2Q.cjs');
6
+ require('../chunk-5LYWI7E7.cjs');
37
7
 
38
8
 
39
- exports.LARGE_BUFFER = LARGE_BUFFER; exports.run = run; exports.runAsync = runAsync;
9
+
10
+
11
+ exports.LARGE_BUFFER = _chunkPMRCDW2Qcjs.LARGE_BUFFER; exports.run = _chunkPMRCDW2Qcjs.run; exports.runAsync = _chunkPMRCDW2Qcjs.runAsync;
@@ -1,37 +1,9 @@
1
1
  import {
2
- __name
3
- } from "../chunk-SHUYVCID.js";
4
- import { exec, execSync } from "node:child_process";
5
- const LARGE_BUFFER = 1024 * 1e6;
6
- const run = /* @__PURE__ */ __name((config, command, cwd = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
7
- return execSync(command, {
8
- cwd,
9
- env: {
10
- ...process.env,
11
- ...env,
12
- CLICOLOR: "true",
13
- FORCE_COLOR: "true"
14
- },
15
- windowsHide: true,
16
- stdio,
17
- maxBuffer: LARGE_BUFFER,
18
- killSignal: "SIGTERM"
19
- });
20
- }, "run");
21
- const runAsync = /* @__PURE__ */ __name((config, command, cwd = config.workspaceRoot ?? process.cwd(), env = process.env) => {
22
- return exec(command, {
23
- cwd,
24
- env: {
25
- ...process.env,
26
- ...env,
27
- CLICOLOR: "true",
28
- FORCE_COLOR: "true"
29
- },
30
- windowsHide: true,
31
- maxBuffer: LARGE_BUFFER,
32
- killSignal: "SIGTERM"
33
- });
34
- }, "runAsync");
2
+ LARGE_BUFFER,
3
+ run,
4
+ runAsync
5
+ } from "../chunk-WTHXS4H2.js";
6
+ import "../chunk-W7YJIINP.js";
35
7
  export {
36
8
  LARGE_BUFFER,
37
9
  run,
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkXUGBUGHCcjs = require('./chunk-XUGBUGHC.cjs');
5
+ require('./chunk-6R6FJLKT.cjs');
6
+ require('./chunk-5LYWI7E7.cjs');
7
+
8
+
9
+
10
+ exports.parseYAML = _chunkXUGBUGHCcjs.Ar; exports.stringifyYAML = _chunkXUGBUGHCcjs.vr;
@@ -0,0 +1,10 @@
1
+ import {
2
+ Ar,
3
+ vr
4
+ } from "./chunk-3OZGKUMC.js";
5
+ import "./chunk-I5FJ2QOS.js";
6
+ import "./chunk-W7YJIINP.js";
7
+ export {
8
+ Ar as parseYAML,
9
+ vr as stringifyYAML
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/config-tools",
3
- "version": "1.150.5",
3
+ "version": "1.150.9",
4
4
  "type": "module",
5
5
  "description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
6
6
  "repository": {
@@ -220,8 +220,6 @@
220
220
  "peerDependencies": { "@storm-software/config": "workspace:*" },
221
221
  "peerDependenciesMeta": { "@storm-software/config": { "optional": false } },
222
222
  "dependencies": {
223
- "c12": "^2.0.0-beta.2",
224
- "chalk": "^4.1.2",
225
223
  "commander": "^12.1.0",
226
224
  "defu": "6.1.4",
227
225
  "giget": "^1.2.3",
@@ -229,7 +227,12 @@
229
227
  "sqlite": "^5.1.1",
230
228
  "zod": "^3.24.0"
231
229
  },
232
- "devDependencies": { "@types/node": "^22.10.2", "tsup": "8.3.5" },
230
+ "devDependencies": {
231
+ "@types/node": "^22.10.2",
232
+ "c12": "^2.0.0-beta.2",
233
+ "chalk": "^4.1.2",
234
+ "tsup": "8.3.5"
235
+ },
233
236
  "publishConfig": { "access": "public" },
234
237
  "sideEffects": false
235
238
  }
@@ -1,6 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
- export {
5
- __name
6
- };
@@ -1,6 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
-
5
-
6
- exports.__name = __name;