@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,21 @@
1
+ import {
2
+ loadStormConfig
3
+ } from "./chunk-NERZUU47.js";
4
+ import {
5
+ __name,
6
+ init_esm_shims
7
+ } from "./chunk-W7YJIINP.js";
8
+
9
+ // src/get-config.ts
10
+ init_esm_shims();
11
+ var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
12
+ return loadStormConfig(workspaceRoot, skipLogs);
13
+ }, "getConfig");
14
+ var getWorkspaceConfig = /* @__PURE__ */ __name((skipLogs = false) => {
15
+ return getConfig(void 0, skipLogs);
16
+ }, "getWorkspaceConfig");
17
+
18
+ export {
19
+ getConfig,
20
+ getWorkspaceConfig
21
+ };
@@ -0,0 +1,165 @@
1
+ import {
2
+ correctPaths
3
+ } from "./chunk-HAYTD5F2.js";
4
+ import {
5
+ getLogLevelLabel
6
+ } from "./chunk-NVXMXDZM.js";
7
+ import {
8
+ __name,
9
+ init_esm_shims
10
+ } from "./chunk-W7YJIINP.js";
11
+
12
+ // src/env/get-env.ts
13
+ init_esm_shims();
14
+ import { COLOR_KEYS, STORM_DEFAULT_DOCS, STORM_DEFAULT_HOMEPAGE, STORM_DEFAULT_LICENSING } from "@storm-software/config";
15
+ var getExtensionEnv = /* @__PURE__ */ __name((extensionName) => {
16
+ const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
17
+ return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
18
+ const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
19
+ if (name) {
20
+ ret[name] = process.env[key];
21
+ }
22
+ return ret;
23
+ }, {});
24
+ }, "getExtensionEnv");
25
+ var getConfigEnv = /* @__PURE__ */ __name(() => {
26
+ const prefix = "STORM_";
27
+ let config = {
28
+ extends: process.env[`${prefix}EXTENDS`] || void 0,
29
+ name: process.env[`${prefix}NAME`] || void 0,
30
+ namespace: process.env[`${prefix}NAMESPACE`] || void 0,
31
+ owner: process.env[`${prefix}OWNER`] || void 0,
32
+ bot: {
33
+ name: process.env[`${prefix}BOT_NAME`] || void 0,
34
+ email: process.env[`${prefix}BOT_EMAIL`] || void 0
35
+ },
36
+ organization: process.env[`${prefix}ORGANIZATION`] || void 0,
37
+ packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
38
+ license: process.env[`${prefix}LICENSE`] || void 0,
39
+ homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
40
+ docs: process.env[`${prefix}DOCS`] || void 0,
41
+ licensing: process.env[`${prefix}LICENSING`] || void 0,
42
+ timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
43
+ locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
44
+ configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
45
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
46
+ directories: {
47
+ cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
48
+ data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
49
+ config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
50
+ temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
51
+ log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
52
+ build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
53
+ },
54
+ skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
55
+ env: (process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
56
+ // ci:
57
+ // process.env[`${prefix}CI`] !== undefined
58
+ // ? Boolean(
59
+ // process.env[`${prefix}CI`] ??
60
+ // process.env.CI ??
61
+ // process.env.CONTINUOUS_INTEGRATION
62
+ // )
63
+ // : undefined,
64
+ repository: process.env[`${prefix}REPOSITORY`] || void 0,
65
+ branch: process.env[`${prefix}BRANCH`] || void 0,
66
+ preid: process.env[`${prefix}PRE_ID`] || void 0,
67
+ externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
68
+ registry: {
69
+ github: process.env[`${prefix}REGISTRY_GITHUB`] || void 0,
70
+ npm: process.env[`${prefix}REGISTRY_NPM`] || void 0,
71
+ cargo: process.env[`${prefix}REGISTRY_CARGO`] || void 0,
72
+ cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
73
+ container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
74
+ },
75
+ logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
76
+ skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
77
+ };
78
+ const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
79
+ config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
80
+ ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
81
+ return ret;
82
+ }, {}) : getThemeColorConfigEnv(prefix);
83
+ if (config.docs === STORM_DEFAULT_DOCS) {
84
+ if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
85
+ config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
86
+ } else {
87
+ config.docs = `${config.homepage}/docs`;
88
+ }
89
+ }
90
+ if (config.licensing === STORM_DEFAULT_LICENSING) {
91
+ if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
92
+ config.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
93
+ } else {
94
+ config.licensing = `${config.homepage}/docs`;
95
+ }
96
+ }
97
+ const serializedConfig = process.env[`${prefix}CONFIG`];
98
+ if (serializedConfig) {
99
+ const parsed = JSON.parse(serializedConfig);
100
+ config = {
101
+ ...config,
102
+ ...parsed,
103
+ colors: {
104
+ ...config.colors,
105
+ ...parsed.colors
106
+ },
107
+ extensions: {
108
+ ...config.extensions,
109
+ ...parsed.extensions
110
+ }
111
+ };
112
+ }
113
+ return config;
114
+ }, "getConfigEnv");
115
+ var getThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, theme) => {
116
+ const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
117
+ return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
118
+ }, "getThemeColorConfigEnv");
119
+ var getSingleThemeColorConfigEnv = /* @__PURE__ */ __name((prefix) => {
120
+ return {
121
+ dark: process.env[`${prefix}DARK`],
122
+ light: process.env[`${prefix}LIGHT`],
123
+ brand: process.env[`${prefix}BRAND`],
124
+ alternate: process.env[`${prefix}ALTERNATE`],
125
+ accent: process.env[`${prefix}ACCENT`],
126
+ link: process.env[`${prefix}LINK`],
127
+ help: process.env[`${prefix}HELP`],
128
+ success: process.env[`${prefix}SUCCESS`],
129
+ info: process.env[`${prefix}INFO`],
130
+ warning: process.env[`${prefix}WARNING`],
131
+ danger: process.env[`${prefix}DANGER`],
132
+ fatal: process.env[`${prefix}FATAL`],
133
+ positive: process.env[`${prefix}POSITIVE`],
134
+ negative: process.env[`${prefix}NEGATIVE`]
135
+ };
136
+ }, "getSingleThemeColorConfigEnv");
137
+ var getMultiThemeColorConfigEnv = /* @__PURE__ */ __name((prefix) => {
138
+ return {
139
+ light: getBaseThemeColorConfigEnv(`${prefix}_LIGHT_`),
140
+ dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
141
+ };
142
+ }, "getMultiThemeColorConfigEnv");
143
+ var getBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix) => {
144
+ return {
145
+ foreground: process.env[`${prefix}FOREGROUND`],
146
+ background: process.env[`${prefix}BACKGROUND`],
147
+ brand: process.env[`${prefix}BRAND`],
148
+ alternate: process.env[`${prefix}ALTERNATE`],
149
+ accent: process.env[`${prefix}ACCENT`],
150
+ link: process.env[`${prefix}LINK`],
151
+ help: process.env[`${prefix}HELP`],
152
+ success: process.env[`${prefix}SUCCESS`],
153
+ info: process.env[`${prefix}INFO`],
154
+ warning: process.env[`${prefix}WARNING`],
155
+ danger: process.env[`${prefix}DANGER`],
156
+ fatal: process.env[`${prefix}FATAL`],
157
+ positive: process.env[`${prefix}POSITIVE`],
158
+ negative: process.env[`${prefix}NEGATIVE`]
159
+ };
160
+ }, "getBaseThemeColorConfigEnv");
161
+
162
+ export {
163
+ getExtensionEnv,
164
+ getConfigEnv
165
+ };
@@ -0,0 +1,44 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
+
3
+
4
+ var _chunk5LYWI7E7cjs = require('./chunk-5LYWI7E7.cjs');
5
+
6
+ // src/utilities/run.ts
7
+ _chunk5LYWI7E7cjs.init_cjs_shims.call(void 0, );
8
+ var _child_process = require('child_process');
9
+ var LARGE_BUFFER = 1024 * 1e6;
10
+ var run = /* @__PURE__ */ _chunk5LYWI7E7cjs.__name.call(void 0, (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), stdio = "inherit", env = process.env) => {
11
+ return _child_process.execSync.call(void 0, command, {
12
+ cwd,
13
+ env: {
14
+ ...process.env,
15
+ ...env,
16
+ CLICOLOR: "true",
17
+ FORCE_COLOR: "true"
18
+ },
19
+ windowsHide: true,
20
+ stdio,
21
+ maxBuffer: LARGE_BUFFER,
22
+ killSignal: "SIGTERM"
23
+ });
24
+ }, "run");
25
+ var runAsync = /* @__PURE__ */ _chunk5LYWI7E7cjs.__name.call(void 0, (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), env = process.env) => {
26
+ return _child_process.exec.call(void 0, command, {
27
+ cwd,
28
+ env: {
29
+ ...process.env,
30
+ ...env,
31
+ CLICOLOR: "true",
32
+ FORCE_COLOR: "true"
33
+ },
34
+ windowsHide: true,
35
+ maxBuffer: LARGE_BUFFER,
36
+ killSignal: "SIGTERM"
37
+ });
38
+ }, "runAsync");
39
+
40
+
41
+
42
+
43
+
44
+ exports.LARGE_BUFFER = LARGE_BUFFER; exports.run = run; exports.runAsync = runAsync;
@@ -0,0 +1,30 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
+
3
+
4
+ var _chunk5LYWI7E7cjs = require('./chunk-5LYWI7E7.cjs');
5
+
6
+ // src/utilities/find-up.ts
7
+ _chunk5LYWI7E7cjs.init_cjs_shims.call(void 0, );
8
+ var _fs = require('fs');
9
+ var _path = require('path');
10
+ var MAX_PATH_SEARCH_DEPTH = 30;
11
+ var depth = 0;
12
+ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
13
+ const _startPath = _nullishCoalesce(startPath, () => ( process.cwd()));
14
+ if (endDirectoryNames.some((endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName)))) {
15
+ return _startPath;
16
+ }
17
+ if (endFileNames.some((endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName)))) {
18
+ return _startPath;
19
+ }
20
+ if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
21
+ const parent = _path.join.call(void 0, _startPath, "..");
22
+ return findFolderUp(parent, endFileNames, endDirectoryNames);
23
+ }
24
+ return void 0;
25
+ }
26
+ _chunk5LYWI7E7cjs.__name.call(void 0, findFolderUp, "findFolderUp");
27
+
28
+
29
+
30
+ exports.findFolderUp = findFolderUp;
@@ -0,0 +1,77 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
+
3
+ var _chunkRDWCJD4Icjs = require('./chunk-RDWCJD4I.cjs');
4
+
5
+
6
+ var _chunkFUALBFYRcjs = require('./chunk-FUALBFYR.cjs');
7
+
8
+
9
+
10
+ var _chunk5LYWI7E7cjs = require('./chunk-5LYWI7E7.cjs');
11
+
12
+ // src/utilities/find-workspace-root.ts
13
+ _chunk5LYWI7E7cjs.init_cjs_shims.call(void 0, );
14
+ var rootFiles = [
15
+ "storm-workspace.json",
16
+ "storm-workspace.json",
17
+ "storm-workspace.yaml",
18
+ "storm-workspace.yml",
19
+ "storm-workspace.js",
20
+ "storm-workspace.ts",
21
+ ".storm-workspace.json",
22
+ ".storm-workspace.yaml",
23
+ ".storm-workspace.yml",
24
+ ".storm-workspace.js",
25
+ ".storm-workspace.ts",
26
+ "lerna.json",
27
+ "nx.json",
28
+ "turbo.json",
29
+ "npm-workspace.json",
30
+ "yarn-workspace.json",
31
+ "pnpm-workspace.json",
32
+ "npm-workspace.yaml",
33
+ "yarn-workspace.yaml",
34
+ "pnpm-workspace.yaml",
35
+ "npm-workspace.yml",
36
+ "yarn-workspace.yml",
37
+ "pnpm-workspace.yml",
38
+ "npm-lock.json",
39
+ "yarn-lock.json",
40
+ "pnpm-lock.json",
41
+ "npm-lock.yaml",
42
+ "yarn-lock.yaml",
43
+ "pnpm-lock.yaml",
44
+ "npm-lock.yml",
45
+ "yarn-lock.yml",
46
+ "pnpm-lock.yml",
47
+ "bun.lockb"
48
+ ];
49
+ var rootDirectories = [
50
+ ".storm-workspace",
51
+ ".nx",
52
+ ".github",
53
+ ".vscode",
54
+ ".verdaccio"
55
+ ];
56
+ function findWorkspaceRootSafe(pathInsideMonorepo) {
57
+ if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
58
+ return _chunkFUALBFYRcjs.correctPaths.call(void 0, _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH)));
59
+ }
60
+ return _chunkFUALBFYRcjs.correctPaths.call(void 0, _chunkRDWCJD4Icjs.findFolderUp.call(void 0, _nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles, rootDirectories));
61
+ }
62
+ _chunk5LYWI7E7cjs.__name.call(void 0, findWorkspaceRootSafe, "findWorkspaceRootSafe");
63
+ function findWorkspaceRoot(pathInsideMonorepo) {
64
+ const result = findWorkspaceRootSafe(pathInsideMonorepo);
65
+ if (!result) {
66
+ throw new Error(`Cannot find workspace root upwards from known path. Files search list includes:
67
+ ${rootFiles.join("\n")}
68
+ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
69
+ }
70
+ return result;
71
+ }
72
+ _chunk5LYWI7E7cjs.__name.call(void 0, findWorkspaceRoot, "findWorkspaceRoot");
73
+
74
+
75
+
76
+
77
+ exports.findWorkspaceRootSafe = findWorkspaceRootSafe; exports.findWorkspaceRoot = findWorkspaceRoot;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ var _chunk5LYWI7E7cjs = require('./chunk-5LYWI7E7.cjs');
4
+
5
+ // src/config-file/index.ts
6
+ _chunk5LYWI7E7cjs.init_cjs_shims.call(void 0, );
@@ -0,0 +1,143 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
+ var _chunkM3KQNO7Ncjs = require('./chunk-M3KQNO7N.cjs');
4
+
5
+
6
+ var _chunkGZ6SGFYZcjs = require('./chunk-GZ6SGFYZ.cjs');
7
+
8
+
9
+ var _chunkE554LMEPcjs = require('./chunk-E554LMEP.cjs');
10
+
11
+
12
+ var _chunkI2LFMHGFcjs = require('./chunk-I2LFMHGF.cjs');
13
+
14
+
15
+ var _chunk2MY3KGBBcjs = require('./chunk-2MY3KGBB.cjs');
16
+
17
+
18
+
19
+ var _chunkIYMLNFGAcjs = require('./chunk-IYMLNFGA.cjs');
20
+
21
+
22
+
23
+ var _chunk5LYWI7E7cjs = require('./chunk-5LYWI7E7.cjs');
24
+
25
+ // src/logger/console.ts
26
+ _chunk5LYWI7E7cjs.init_cjs_shims.call(void 0, );
27
+ var getLogFn = /* @__PURE__ */ _chunk5LYWI7E7cjs.__name.call(void 0, (logLevel = _chunkIYMLNFGAcjs.LogLevel.INFO, config = {}, _chalk = _chunkGZ6SGFYZcjs.getChalk.call(void 0, )) => {
28
+ const colors = !_optionalChain([config, 'access', _2 => _2.colors, 'optionalAccess', _3 => _3.dark]) && !_optionalChain([config, 'access', _4 => _4.colors, 'optionalAccess', _5 => _5["base"]]) && !_optionalChain([config, 'access', _6 => _6.colors, 'optionalAccess', _7 => _7["base"], 'optionalAccess', _8 => _8.dark]) ? _chunkM3KQNO7Ncjs.DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) ? _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"]]) : _chunkM3KQNO7Ncjs.DEFAULT_COLOR_CONFIG;
29
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || _chunkIYMLNFGAcjs.LogLevelLabel.INFO;
30
+ if (logLevel > _chunk2MY3KGBBcjs.getLogLevel.call(void 0, configLogLevel) || logLevel <= _chunkIYMLNFGAcjs.LogLevel.SILENT || _chunk2MY3KGBBcjs.getLogLevel.call(void 0, configLogLevel) <= _chunkIYMLNFGAcjs.LogLevel.SILENT) {
31
+ return (_) => {
32
+ };
33
+ }
34
+ if (typeof logLevel === "number" && _chunkIYMLNFGAcjs.LogLevel.FATAL >= logLevel) {
35
+ return (message) => {
36
+ console.error(`
37
+ ${_chalk.gray(_chunkI2LFMHGFcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${_chunkE554LMEPcjs.CONSOLE_ICONS[_chunkIYMLNFGAcjs.LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
38
+ `);
39
+ };
40
+ }
41
+ if (typeof logLevel === "number" && _chunkIYMLNFGAcjs.LogLevel.ERROR >= logLevel) {
42
+ return (message) => {
43
+ console.error(`
44
+ ${_chalk.gray(_chunkI2LFMHGFcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${_chunkE554LMEPcjs.CONSOLE_ICONS[_chunkIYMLNFGAcjs.LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
45
+ `);
46
+ };
47
+ }
48
+ if (typeof logLevel === "number" && _chunkIYMLNFGAcjs.LogLevel.WARN >= logLevel) {
49
+ return (message) => {
50
+ console.warn(`
51
+ ${_chalk.gray(_chunkI2LFMHGFcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${_chunkE554LMEPcjs.CONSOLE_ICONS[_chunkIYMLNFGAcjs.LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
52
+ `);
53
+ };
54
+ }
55
+ if (typeof logLevel === "number" && _chunkIYMLNFGAcjs.LogLevel.SUCCESS >= logLevel) {
56
+ return (message) => {
57
+ console.info(`
58
+ ${_chalk.gray(_chunkI2LFMHGFcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${_chunkE554LMEPcjs.CONSOLE_ICONS[_chunkIYMLNFGAcjs.LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
59
+ `);
60
+ };
61
+ }
62
+ if (typeof logLevel === "number" && _chunkIYMLNFGAcjs.LogLevel.INFO >= logLevel) {
63
+ return (message) => {
64
+ console.info(`
65
+ ${_chalk.gray(_chunkI2LFMHGFcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${_chunkE554LMEPcjs.CONSOLE_ICONS[_chunkIYMLNFGAcjs.LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
66
+ `);
67
+ };
68
+ }
69
+ if (typeof logLevel === "number" && _chunkIYMLNFGAcjs.LogLevel.DEBUG >= logLevel) {
70
+ return (message) => {
71
+ console.debug(`
72
+ ${_chalk.gray(_chunkI2LFMHGFcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${_chunkE554LMEPcjs.CONSOLE_ICONS[_chunkIYMLNFGAcjs.LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
73
+ `);
74
+ };
75
+ }
76
+ if (typeof logLevel === "number" && _chunkIYMLNFGAcjs.LogLevel.TRACE >= logLevel) {
77
+ return (message) => {
78
+ console.debug(`
79
+ ${_chalk.gray(_chunkI2LFMHGFcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${_chunkE554LMEPcjs.CONSOLE_ICONS[_chunkIYMLNFGAcjs.LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
80
+ `);
81
+ };
82
+ }
83
+ return (message) => {
84
+ console.log(`
85
+ ${_chalk.gray(_chunkI2LFMHGFcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${_chunkE554LMEPcjs.CONSOLE_ICONS[_chunkIYMLNFGAcjs.LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
86
+ `);
87
+ };
88
+ }, "getLogFn");
89
+ var writeFatal = /* @__PURE__ */ _chunk5LYWI7E7cjs.__name.call(void 0, (message, config) => getLogFn(_chunkIYMLNFGAcjs.LogLevel.FATAL, config)(message), "writeFatal");
90
+ var writeError = /* @__PURE__ */ _chunk5LYWI7E7cjs.__name.call(void 0, (message, config) => getLogFn(_chunkIYMLNFGAcjs.LogLevel.ERROR, config)(message), "writeError");
91
+ var writeWarning = /* @__PURE__ */ _chunk5LYWI7E7cjs.__name.call(void 0, (message, config) => getLogFn(_chunkIYMLNFGAcjs.LogLevel.WARN, config)(message), "writeWarning");
92
+ var writeInfo = /* @__PURE__ */ _chunk5LYWI7E7cjs.__name.call(void 0, (message, config) => getLogFn(_chunkIYMLNFGAcjs.LogLevel.INFO, config)(message), "writeInfo");
93
+ var writeSuccess = /* @__PURE__ */ _chunk5LYWI7E7cjs.__name.call(void 0, (message, config) => getLogFn(_chunkIYMLNFGAcjs.LogLevel.SUCCESS, config)(message), "writeSuccess");
94
+ var writeDebug = /* @__PURE__ */ _chunk5LYWI7E7cjs.__name.call(void 0, (message, config) => getLogFn(_chunkIYMLNFGAcjs.LogLevel.DEBUG, config)(message), "writeDebug");
95
+ var writeTrace = /* @__PURE__ */ _chunk5LYWI7E7cjs.__name.call(void 0, (message, config) => getLogFn(_chunkIYMLNFGAcjs.LogLevel.TRACE, config)(message), "writeTrace");
96
+ var writeSystem = /* @__PURE__ */ _chunk5LYWI7E7cjs.__name.call(void 0, (message, config) => getLogFn(_chunkIYMLNFGAcjs.LogLevel.ALL, config)(message), "writeSystem");
97
+ var getStopwatch = /* @__PURE__ */ _chunk5LYWI7E7cjs.__name.call(void 0, (name) => {
98
+ const start = process.hrtime();
99
+ return () => {
100
+ const end = process.hrtime(start);
101
+ console.info(`
102
+ > \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(end[0] * 1e3 + end[1] / 1e6)}ms to complete
103
+ `);
104
+ };
105
+ }, "getStopwatch");
106
+ var MAX_DEPTH = 4;
107
+ var formatLogMessage = /* @__PURE__ */ _chunk5LYWI7E7cjs.__name.call(void 0, (message, options = {}, depth = 0) => {
108
+ if (depth > MAX_DEPTH) {
109
+ return "<max depth>";
110
+ }
111
+ const prefix = _nullishCoalesce(options.prefix, () => ( "-"));
112
+ const skip = _nullishCoalesce(options.skip, () => ( []));
113
+ return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
114
+ ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, {
115
+ prefix: `${prefix}-`,
116
+ skip
117
+ }, depth + 1)}`).join("\n")}` : typeof message === "object" ? `
118
+ ${Object.keys(message).filter((key) => !skip.includes(key)).map((key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], {
119
+ prefix: `${prefix}-`,
120
+ skip
121
+ }, depth + 1) : message[key]}`).join("\n")}` : message;
122
+ }, "formatLogMessage");
123
+ var _isFunction = /* @__PURE__ */ _chunk5LYWI7E7cjs.__name.call(void 0, (value) => {
124
+ try {
125
+ return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _18 => _18.constructor]) && _optionalChain([value, 'optionalAccess', _19 => _19.call]) && _optionalChain([value, 'optionalAccess', _20 => _20.apply]));
126
+ } catch (e) {
127
+ return false;
128
+ }
129
+ }, "_isFunction");
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+ exports.getLogFn = getLogFn; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.writeSystem = writeSystem; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage;
@@ -0,0 +1,50 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkUS52HP52cjs = require('./chunk-US52HP52.cjs');
5
+
6
+
7
+ var _chunkRN5XBSCXcjs = require('./chunk-RN5XBSCX.cjs');
8
+
9
+
10
+ var _chunkGZ6SGFYZcjs = require('./chunk-GZ6SGFYZ.cjs');
11
+
12
+
13
+ var _chunkIYMLNFGAcjs = require('./chunk-IYMLNFGA.cjs');
14
+
15
+
16
+
17
+
18
+ var _chunk5LYWI7E7cjs = require('./chunk-5LYWI7E7.cjs');
19
+
20
+ // src/logger/create-logger.ts
21
+ _chunk5LYWI7E7cjs.init_cjs_shims.call(void 0, );
22
+ var import_chalk = _chunk5LYWI7E7cjs.__toESM.call(void 0, _chunkGZ6SGFYZcjs.require_source.call(void 0, ), 1);
23
+ async function createLogger(config) {
24
+ const workspaceRoot = _chunkRN5XBSCXcjs.findWorkspaceRoot.call(void 0, );
25
+ if (!workspaceRoot) {
26
+ throw new Error("Cannot find workspace root");
27
+ }
28
+ const writeFatal = _chunkUS52HP52cjs.getLogFn.call(void 0, _chunkIYMLNFGAcjs.LogLevel.FATAL, config, import_chalk.default);
29
+ const writeError = _chunkUS52HP52cjs.getLogFn.call(void 0, _chunkIYMLNFGAcjs.LogLevel.ERROR, config, import_chalk.default);
30
+ const writeWarning = _chunkUS52HP52cjs.getLogFn.call(void 0, _chunkIYMLNFGAcjs.LogLevel.WARN, config, import_chalk.default);
31
+ const writeInfo = _chunkUS52HP52cjs.getLogFn.call(void 0, _chunkIYMLNFGAcjs.LogLevel.INFO, config, import_chalk.default);
32
+ const writeSuccess = _chunkUS52HP52cjs.getLogFn.call(void 0, _chunkIYMLNFGAcjs.LogLevel.SUCCESS, config, import_chalk.default);
33
+ const writeDebug = _chunkUS52HP52cjs.getLogFn.call(void 0, _chunkIYMLNFGAcjs.LogLevel.DEBUG, config, import_chalk.default);
34
+ const writeTrace = _chunkUS52HP52cjs.getLogFn.call(void 0, _chunkIYMLNFGAcjs.LogLevel.DEBUG, config, import_chalk.default);
35
+ return {
36
+ fatal: writeFatal,
37
+ error: writeError,
38
+ warning: writeWarning,
39
+ info: writeInfo,
40
+ success: writeSuccess,
41
+ debug: writeDebug,
42
+ trace: writeTrace,
43
+ getStopwatch: _chunkUS52HP52cjs.getStopwatch
44
+ };
45
+ }
46
+ _chunk5LYWI7E7cjs.__name.call(void 0, createLogger, "createLogger");
47
+
48
+
49
+
50
+ exports.createLogger = createLogger;
@@ -0,0 +1,49 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined") return require.apply(this, arguments);
12
+ throw Error('Dynamic require of "' + x + '" is not supported');
13
+ });
14
+ var __esm = (fn, res) => function __init() {
15
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
16
+ };
17
+ var __commonJS = (cb, mod) => function __require2() {
18
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
36
+
37
+ // ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.2_@types+node@22.13.0__@swc+core@1.7.26_@swc+helpers_kupakjppxzf7wv7pnek6irqjpq/node_modules/tsup/assets/esm_shims.js
38
+ var init_esm_shims = __esm({
39
+ "../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.2_@types+node@22.13.0__@swc+core@1.7.26_@swc+helpers_kupakjppxzf7wv7pnek6irqjpq/node_modules/tsup/assets/esm_shims.js"() {
40
+ }
41
+ });
42
+
43
+ export {
44
+ __name,
45
+ __require,
46
+ __commonJS,
47
+ __toESM,
48
+ init_esm_shims
49
+ };
@@ -0,0 +1,44 @@
1
+ import {
2
+ __name,
3
+ init_esm_shims
4
+ } from "./chunk-W7YJIINP.js";
5
+
6
+ // src/utilities/run.ts
7
+ init_esm_shims();
8
+ import { exec, execSync } from "node:child_process";
9
+ var LARGE_BUFFER = 1024 * 1e6;
10
+ var run = /* @__PURE__ */ __name((config, command, cwd = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
11
+ return execSync(command, {
12
+ cwd,
13
+ env: {
14
+ ...process.env,
15
+ ...env,
16
+ CLICOLOR: "true",
17
+ FORCE_COLOR: "true"
18
+ },
19
+ windowsHide: true,
20
+ stdio,
21
+ maxBuffer: LARGE_BUFFER,
22
+ killSignal: "SIGTERM"
23
+ });
24
+ }, "run");
25
+ var runAsync = /* @__PURE__ */ __name((config, command, cwd = config.workspaceRoot ?? process.cwd(), env = process.env) => {
26
+ return exec(command, {
27
+ cwd,
28
+ env: {
29
+ ...process.env,
30
+ ...env,
31
+ CLICOLOR: "true",
32
+ FORCE_COLOR: "true"
33
+ },
34
+ windowsHide: true,
35
+ maxBuffer: LARGE_BUFFER,
36
+ killSignal: "SIGTERM"
37
+ });
38
+ }, "runAsync");
39
+
40
+ export {
41
+ LARGE_BUFFER,
42
+ run,
43
+ runAsync
44
+ };