@storm-software/config-tools 1.189.78 → 1.190.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/bin/config.cjs +17 -28
  2. package/bin/config.js +17 -28
  3. package/dist/{chunk-Q4XFXQVF.cjs → chunk-6IBSNO2S.cjs} +9 -9
  4. package/dist/{chunk-X6AAQM4H.js → chunk-7KE7OYDW.js} +9 -9
  5. package/dist/{chunk-DTC27IVR.js → chunk-CZGO7WY3.js} +1 -1
  6. package/dist/{chunk-DLJF3QQS.cjs → chunk-DZS54O6N.cjs} +16 -27
  7. package/dist/{chunk-MN5CJYWO.cjs → chunk-EEPODKNE.cjs} +10 -10
  8. package/dist/{chunk-KJJNDXDT.cjs → chunk-HUQ5Y2QK.cjs} +2 -2
  9. package/dist/chunk-JZAYHDV3.js +8 -0
  10. package/dist/{chunk-RLO6OMCM.js → chunk-KLUNEHDC.js} +1 -1
  11. package/dist/{chunk-TVLYWDEI.cjs → chunk-KOSKDPTM.cjs} +3 -3
  12. package/dist/{chunk-JLQZPWQ2.js → chunk-KVDT6KNS.js} +2 -2
  13. package/dist/{chunk-G4FBFCNL.js → chunk-ORVHSCSN.js} +1 -1
  14. package/dist/{chunk-PWT57ER4.cjs → chunk-PAQH5U2F.cjs} +3 -3
  15. package/dist/{chunk-JWLOTPPR.js → chunk-PN7H7GUE.js} +1 -1
  16. package/dist/chunk-S22A75II.cjs +35 -0
  17. package/dist/{chunk-XHJNCOIU.js → chunk-TOMKPXJE.js} +16 -27
  18. package/dist/chunk-WQJYIPSL.cjs +8 -0
  19. package/dist/config-file/get-config-file.cjs +7 -7
  20. package/dist/config-file/get-config-file.js +6 -6
  21. package/dist/config-file/index.cjs +7 -7
  22. package/dist/config-file/index.js +6 -6
  23. package/dist/create-storm-config.cjs +8 -8
  24. package/dist/create-storm-config.js +7 -7
  25. package/dist/get-config.cjs +9 -9
  26. package/dist/get-config.js +8 -8
  27. package/dist/index.cjs +9 -9
  28. package/dist/index.d.cts +1 -1
  29. package/dist/index.d.ts +1 -1
  30. package/dist/index.js +8 -8
  31. package/dist/logger/console.cjs +3 -3
  32. package/dist/logger/console.d.cts +20 -2
  33. package/dist/logger/console.d.ts +20 -2
  34. package/dist/logger/console.js +2 -2
  35. package/dist/logger/create-logger.cjs +4 -4
  36. package/dist/logger/create-logger.js +3 -3
  37. package/dist/logger/format-timestamp.cjs +2 -2
  38. package/dist/logger/format-timestamp.d.cts +2 -1
  39. package/dist/logger/format-timestamp.d.ts +2 -1
  40. package/dist/logger/format-timestamp.js +1 -1
  41. package/dist/logger/index.cjs +4 -4
  42. package/dist/logger/index.d.cts +1 -1
  43. package/dist/logger/index.d.ts +1 -1
  44. package/dist/logger/index.js +3 -3
  45. package/dist/utilities/index.cjs +6 -6
  46. package/dist/utilities/index.js +5 -5
  47. package/dist/utilities/process-handler.cjs +4 -4
  48. package/dist/utilities/process-handler.js +3 -3
  49. package/dist/utilities/toml.cjs +5 -5
  50. package/dist/utilities/toml.js +4 -4
  51. package/package.json +3 -3
  52. package/dist/chunk-BN6MEGGY.cjs +0 -8
  53. package/dist/chunk-CZ4IE2QN.js +0 -8
  54. package/dist/chunk-YWMI5JWG.cjs +0 -35
package/bin/config.cjs CHANGED
@@ -200,8 +200,8 @@ var CONSOLE_ICONS = {
200
200
  };
201
201
 
202
202
  // src/logger/format-timestamp.ts
203
- var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
204
- return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
203
+ var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
204
+ return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
205
205
  };
206
206
 
207
207
  // src/logger/get-log-level.ts
@@ -261,7 +261,12 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
261
261
  };
262
262
 
263
263
  // src/logger/console.ts
264
- var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
264
+ var getLogFn = (logLevel = LogLevel.INFO, config = {}, options = {}) => {
265
+ const {
266
+ chalk: _chalk = getChalk(),
267
+ fullDateTime = false,
268
+ hideDateTime = false
269
+ } = options;
265
270
  const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
266
271
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
267
272
  if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
@@ -272,9 +277,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
272
277
  return (message) => {
273
278
  console.error(
274
279
  `
275
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
276
- colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
277
- )(
280
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal)(
278
281
  `[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
279
282
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
280
283
  `
@@ -285,9 +288,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
285
288
  return (message) => {
286
289
  console.error(
287
290
  `
288
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
289
- colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
290
- )(
291
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger)(
291
292
  `[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
292
293
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
293
294
  `
@@ -298,9 +299,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
298
299
  return (message) => {
299
300
  console.warn(
300
301
  `
301
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
302
- colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
303
- )(
302
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning)(
304
303
  `[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
305
304
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
306
305
  `
@@ -311,9 +310,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
311
310
  return (message) => {
312
311
  console.info(
313
312
  `
314
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
315
- colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
316
- )(
313
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.success ?? DEFAULT_COLOR_CONFIG.dark.success)(
317
314
  `[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
318
315
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
319
316
  `
@@ -324,9 +321,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
324
321
  return (message) => {
325
322
  console.info(
326
323
  `
327
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
328
- colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
329
- )(
324
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(
330
325
  `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
331
326
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
332
327
  `
@@ -337,9 +332,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
337
332
  return (message) => {
338
333
  console.debug(
339
334
  `
340
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
341
- colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
342
- )(
335
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance)(
343
336
  `[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
344
337
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
345
338
  `
@@ -350,9 +343,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
350
343
  return (message) => {
351
344
  console.debug(
352
345
  `
353
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
354
- colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
355
- )(
346
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(
356
347
  `[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
357
348
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
358
349
  `
@@ -363,7 +354,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
363
354
  return (message) => {
364
355
  console.debug(
365
356
  `
366
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
357
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex("#bbbbbb")(
367
358
  `[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
368
359
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
369
360
  `
@@ -373,9 +364,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
373
364
  return (message) => {
374
365
  console.log(
375
366
  `
376
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
377
- colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
378
- )(
367
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand)(
379
368
  `[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
380
369
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
381
370
  `
package/bin/config.js CHANGED
@@ -167,8 +167,8 @@ var CONSOLE_ICONS = {
167
167
  };
168
168
 
169
169
  // src/logger/format-timestamp.ts
170
- var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
171
- return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
170
+ var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
171
+ return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
172
172
  };
173
173
 
174
174
  // src/logger/get-log-level.ts
@@ -228,7 +228,12 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
228
228
  };
229
229
 
230
230
  // src/logger/console.ts
231
- var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
231
+ var getLogFn = (logLevel = LogLevel.INFO, config = {}, options = {}) => {
232
+ const {
233
+ chalk: _chalk = getChalk(),
234
+ fullDateTime = false,
235
+ hideDateTime = false
236
+ } = options;
232
237
  const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
233
238
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
234
239
  if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
@@ -239,9 +244,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
239
244
  return (message) => {
240
245
  console.error(
241
246
  `
242
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
243
- colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
244
- )(
247
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal)(
245
248
  `[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
246
249
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
247
250
  `
@@ -252,9 +255,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
252
255
  return (message) => {
253
256
  console.error(
254
257
  `
255
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
256
- colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
257
- )(
258
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger)(
258
259
  `[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
259
260
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
260
261
  `
@@ -265,9 +266,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
265
266
  return (message) => {
266
267
  console.warn(
267
268
  `
268
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
269
- colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
270
- )(
269
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning)(
271
270
  `[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
272
271
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
273
272
  `
@@ -278,9 +277,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
278
277
  return (message) => {
279
278
  console.info(
280
279
  `
281
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
282
- colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
283
- )(
280
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.success ?? DEFAULT_COLOR_CONFIG.dark.success)(
284
281
  `[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
285
282
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
286
283
  `
@@ -291,9 +288,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
291
288
  return (message) => {
292
289
  console.info(
293
290
  `
294
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
295
- colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
296
- )(
291
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(
297
292
  `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
298
293
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
299
294
  `
@@ -304,9 +299,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
304
299
  return (message) => {
305
300
  console.debug(
306
301
  `
307
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
308
- colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
309
- )(
302
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance)(
310
303
  `[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
311
304
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
312
305
  `
@@ -317,9 +310,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
317
310
  return (message) => {
318
311
  console.debug(
319
312
  `
320
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
321
- colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
322
- )(
313
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(
323
314
  `[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
324
315
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
325
316
  `
@@ -330,7 +321,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
330
321
  return (message) => {
331
322
  console.debug(
332
323
  `
333
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
324
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex("#bbbbbb")(
334
325
  `[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
335
326
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
336
327
  `
@@ -340,9 +331,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
340
331
  return (message) => {
341
332
  console.log(
342
333
  `
343
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
344
- colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
345
- )(
334
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand)(
346
335
  `[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
347
336
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
348
337
  `
@@ -3,31 +3,31 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkDLJF3QQScjs = require('./chunk-DLJF3QQS.cjs');
6
+ var _chunkDZS54O6Ncjs = require('./chunk-DZS54O6N.cjs');
7
7
 
8
8
  // src/utilities/process-handler.ts
9
9
  var exitWithError = (config) => {
10
- _chunkDLJF3QQScjs.writeFatal.call(void 0, "Exiting script with an error status...", config);
10
+ _chunkDZS54O6Ncjs.writeFatal.call(void 0, "Exiting script with an error status...", config);
11
11
  process.exit(1);
12
12
  };
13
13
  var exitWithSuccess = (config) => {
14
- _chunkDLJF3QQScjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
14
+ _chunkDZS54O6Ncjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
15
15
  process.exit(0);
16
16
  };
17
17
  var handleProcess = (config) => {
18
- _chunkDLJF3QQScjs.writeTrace.call(void 0,
18
+ _chunkDZS54O6Ncjs.writeTrace.call(void 0,
19
19
  `Using the following arguments to process the script: ${process.argv.join(", ")}`,
20
20
  config
21
21
  );
22
22
  process.on("unhandledRejection", (error) => {
23
- _chunkDLJF3QQScjs.writeError.call(void 0,
23
+ _chunkDZS54O6Ncjs.writeError.call(void 0,
24
24
  `An Unhandled Rejection occurred while running the program: ${error}`,
25
25
  config
26
26
  );
27
27
  exitWithError(config);
28
28
  });
29
29
  process.on("uncaughtException", (error) => {
30
- _chunkDLJF3QQScjs.writeError.call(void 0,
30
+ _chunkDZS54O6Ncjs.writeError.call(void 0,
31
31
  `An Uncaught Exception occurred while running the program: ${error.message}
32
32
  Stacktrace: ${error.stack}`,
33
33
  config
@@ -35,15 +35,15 @@ Stacktrace: ${error.stack}`,
35
35
  exitWithError(config);
36
36
  });
37
37
  process.on("SIGTERM", (signal) => {
38
- _chunkDLJF3QQScjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
38
+ _chunkDZS54O6Ncjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
39
39
  exitWithError(config);
40
40
  });
41
41
  process.on("SIGINT", (signal) => {
42
- _chunkDLJF3QQScjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
42
+ _chunkDZS54O6Ncjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
43
43
  exitWithError(config);
44
44
  });
45
45
  process.on("SIGHUP", (signal) => {
46
- _chunkDLJF3QQScjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
46
+ _chunkDZS54O6Ncjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
47
47
  exitWithError(config);
48
48
  });
49
49
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getLogFn,
3
3
  getStopwatch
4
- } from "./chunk-XHJNCOIU.js";
4
+ } from "./chunk-TOMKPXJE.js";
5
5
  import {
6
6
  LogLevel
7
7
  } from "./chunk-RALMUN5C.js";
@@ -9,14 +9,14 @@ import {
9
9
  // src/logger/create-logger.ts
10
10
  import chalk from "chalk";
11
11
  async function createLogger(config) {
12
- const writeFatal = getLogFn(LogLevel.FATAL, config, chalk);
13
- const writeError = getLogFn(LogLevel.ERROR, config, chalk);
14
- const writeWarning = getLogFn(LogLevel.WARN, config, chalk);
15
- const writeInfo = getLogFn(LogLevel.INFO, config, chalk);
16
- const writeSuccess = getLogFn(LogLevel.SUCCESS, config, chalk);
17
- const writeDebug = getLogFn(LogLevel.DEBUG, config, chalk);
18
- const writePerformance = getLogFn(LogLevel.PERFORMANCE, config, chalk);
19
- const writeTrace = getLogFn(LogLevel.TRACE, config, chalk);
12
+ const writeFatal = getLogFn(LogLevel.FATAL, config, { chalk });
13
+ const writeError = getLogFn(LogLevel.ERROR, config, { chalk });
14
+ const writeWarning = getLogFn(LogLevel.WARN, config, { chalk });
15
+ const writeInfo = getLogFn(LogLevel.INFO, config, { chalk });
16
+ const writeSuccess = getLogFn(LogLevel.SUCCESS, config, { chalk });
17
+ const writeDebug = getLogFn(LogLevel.DEBUG, config, { chalk });
18
+ const writePerformance = getLogFn(LogLevel.PERFORMANCE, config, { chalk });
19
+ const writeTrace = getLogFn(LogLevel.TRACE, config, { chalk });
20
20
  return {
21
21
  fatal: writeFatal,
22
22
  error: writeError,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  loadStormWorkspaceConfig,
3
3
  tryLoadStormWorkspaceConfig
4
- } from "./chunk-JLQZPWQ2.js";
4
+ } from "./chunk-KVDT6KNS.js";
5
5
  import {
6
6
  findWorkspaceRoot
7
7
  } from "./chunk-LF3SAK2O.js";
@@ -10,7 +10,7 @@ var _chunkLOY6ICHZcjs = require('./chunk-LOY6ICHZ.cjs');
10
10
  var _chunkEC2KPWRGcjs = require('./chunk-EC2KPWRG.cjs');
11
11
 
12
12
 
13
- var _chunkBN6MEGGYcjs = require('./chunk-BN6MEGGY.cjs');
13
+ var _chunkWQJYIPSLcjs = require('./chunk-WQJYIPSL.cjs');
14
14
 
15
15
 
16
16
  var _chunkJWLDCEBZcjs = require('./chunk-JWLDCEBZ.cjs');
@@ -760,7 +760,12 @@ function formatDistanceToNow(date, options) {
760
760
  }
761
761
 
762
762
  // src/logger/console.ts
763
- var getLogFn = (logLevel = _chunk7QBTVNMRcjs.LogLevel.INFO, config = {}, _chalk = _chunkLOY6ICHZcjs.getChalk.call(void 0, )) => {
763
+ var getLogFn = (logLevel = _chunk7QBTVNMRcjs.LogLevel.INFO, config = {}, options = {}) => {
764
+ const {
765
+ chalk: _chalk = _chunkLOY6ICHZcjs.getChalk.call(void 0, ),
766
+ fullDateTime = false,
767
+ hideDateTime = false
768
+ } = options;
764
769
  const colors = !_optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17.dark]) && !_optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19["base"]]) && !_optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) ? _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26["base"], 'optionalAccess', _27 => _27.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _28 => _28.colors, 'optionalAccess', _29 => _29["base"]]) ? _optionalChain([config, 'access', _30 => _30.colors, 'optionalAccess', _31 => _31["base"]]) : _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG;
765
770
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || _chunk7QBTVNMRcjs.LogLevelLabel.INFO;
766
771
  if (logLevel > _chunkJWLDCEBZcjs.getLogLevel.call(void 0, configLogLevel) || logLevel <= _chunk7QBTVNMRcjs.LogLevel.SILENT || _chunkJWLDCEBZcjs.getLogLevel.call(void 0, configLogLevel) <= _chunk7QBTVNMRcjs.LogLevel.SILENT) {
@@ -771,9 +776,7 @@ var getLogFn = (logLevel = _chunk7QBTVNMRcjs.LogLevel.INFO, config = {}, _chalk
771
776
  return (message) => {
772
777
  console.error(
773
778
  `
774
- ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
775
- _nullishCoalesce(colors.fatal, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.fatal))
776
- )(
779
+ ${hideDateTime ? "" : `${_chalk.gray(_chunkWQJYIPSLcjs.formatTimestamp.call(void 0, fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.fatal)))(
777
780
  `[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.FATAL]} Fatal] `
778
781
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
779
782
  `
@@ -784,9 +787,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
784
787
  return (message) => {
785
788
  console.error(
786
789
  `
787
- ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
788
- _nullishCoalesce(colors.danger, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.danger))
789
- )(
790
+ ${hideDateTime ? "" : `${_chalk.gray(_chunkWQJYIPSLcjs.formatTimestamp.call(void 0, fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.danger, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.danger)))(
790
791
  `[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.ERROR]} Error] `
791
792
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
792
793
  `
@@ -797,9 +798,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
797
798
  return (message) => {
798
799
  console.warn(
799
800
  `
800
- ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
801
- _nullishCoalesce(colors.warning, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.warning))
802
- )(
801
+ ${hideDateTime ? "" : `${_chalk.gray(_chunkWQJYIPSLcjs.formatTimestamp.call(void 0, fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.warning, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.warning)))(
803
802
  `[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.WARN]} Warn] `
804
803
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
805
804
  `
@@ -810,9 +809,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
810
809
  return (message) => {
811
810
  console.info(
812
811
  `
813
- ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
814
- _nullishCoalesce(colors.success, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.success))
815
- )(
812
+ ${hideDateTime ? "" : `${_chalk.gray(_chunkWQJYIPSLcjs.formatTimestamp.call(void 0, fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.success, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.success)))(
816
813
  `[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.SUCCESS]} Success] `
817
814
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
818
815
  `
@@ -823,9 +820,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
823
820
  return (message) => {
824
821
  console.info(
825
822
  `
826
- ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
827
- _nullishCoalesce(colors.info, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.info))
828
- )(
823
+ ${hideDateTime ? "" : `${_chalk.gray(_chunkWQJYIPSLcjs.formatTimestamp.call(void 0, fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.info, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.info)))(
829
824
  `[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.INFO]} Info] `
830
825
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
831
826
  `
@@ -836,9 +831,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
836
831
  return (message) => {
837
832
  console.debug(
838
833
  `
839
- ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
840
- _nullishCoalesce(colors.performance, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.performance))
841
- )(
834
+ ${hideDateTime ? "" : `${_chalk.gray(_chunkWQJYIPSLcjs.formatTimestamp.call(void 0, fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.performance, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.performance)))(
842
835
  `[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.PERFORMANCE]} Performance] `
843
836
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
844
837
  `
@@ -849,9 +842,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
849
842
  return (message) => {
850
843
  console.debug(
851
844
  `
852
- ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
853
- _nullishCoalesce(colors.debug, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.debug))
854
- )(
845
+ ${hideDateTime ? "" : `${_chalk.gray(_chunkWQJYIPSLcjs.formatTimestamp.call(void 0, fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.debug, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.debug)))(
855
846
  `[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.DEBUG]} Debug] `
856
847
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
857
848
  `
@@ -862,7 +853,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
862
853
  return (message) => {
863
854
  console.debug(
864
855
  `
865
- ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex("#bbbbbb")(
856
+ ${hideDateTime ? "" : `${_chalk.gray(_chunkWQJYIPSLcjs.formatTimestamp.call(void 0, fullDateTime))} `}${_chalk.hex("#bbbbbb")(
866
857
  `[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.TRACE]} Trace] `
867
858
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
868
859
  `
@@ -872,9 +863,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex("#
872
863
  return (message) => {
873
864
  console.log(
874
865
  `
875
- ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
876
- _nullishCoalesce(colors.brand, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.brand))
877
- )(
866
+ ${hideDateTime ? "" : `${_chalk.gray(_chunkWQJYIPSLcjs.formatTimestamp.call(void 0, fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.brand, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.brand)))(
878
867
  `[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.ALL]} System] `
879
868
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
880
869
  `
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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
2
 
3
- var _chunkPWT57ER4cjs = require('./chunk-PWT57ER4.cjs');
3
+ var _chunkPAQH5U2Fcjs = require('./chunk-PAQH5U2F.cjs');
4
4
 
5
5
 
6
6
 
@@ -12,7 +12,7 @@ var _chunk3CNCDDWZcjs = require('./chunk-3CNCDDWZ.cjs');
12
12
 
13
13
 
14
14
 
15
- var _chunkDLJF3QQScjs = require('./chunk-DLJF3QQS.cjs');
15
+ var _chunkDZS54O6Ncjs = require('./chunk-DZS54O6N.cjs');
16
16
 
17
17
 
18
18
  var _chunkB2CQPVVLcjs = require('./chunk-B2CQPVVL.cjs');
@@ -38,10 +38,10 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
38
38
  _workspaceRoot = _chunk3CNCDDWZcjs.findWorkspaceRoot.call(void 0, );
39
39
  }
40
40
  const configEnv = _chunkNHILCONIcjs.getConfigEnv.call(void 0, );
41
- const configFile = await _chunkPWT57ER4cjs.getConfigFile.call(void 0, _workspaceRoot);
41
+ const configFile = await _chunkPAQH5U2Fcjs.getConfigFile.call(void 0, _workspaceRoot);
42
42
  if (!configFile) {
43
43
  if (!skipLogs) {
44
- _chunkDLJF3QQScjs.writeWarning.call(void 0,
44
+ _chunkDZS54O6Ncjs.writeWarning.call(void 0,
45
45
  "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
46
46
  { logLevel: "all" }
47
47
  );
@@ -72,7 +72,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
72
72
  throw new Error(
73
73
  `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _3 => _3.message]) ? `: ${error.message}` : ""}
74
74
 
75
- Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkDLJF3QQScjs.formatLogMessage.call(void 0,
75
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkDZS54O6Ncjs.formatLogMessage.call(void 0,
76
76
  configInput
77
77
  )}`,
78
78
  {
@@ -117,9 +117,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
117
117
  );
118
118
  _chunkB2CQPVVLcjs.setConfigEnv.call(void 0, config);
119
119
  if (!skipLogs && !config.skipConfigLogging) {
120
- _chunkDLJF3QQScjs.writeTrace.call(void 0,
120
+ _chunkDZS54O6Ncjs.writeTrace.call(void 0,
121
121
  `\u2699\uFE0F Using Storm Workspace configuration:
122
- ${_chunkDLJF3QQScjs.formatLogMessage.call(void 0, config)}`,
122
+ ${_chunkDZS54O6Ncjs.formatLogMessage.call(void 0, config)}`,
123
123
  config
124
124
  );
125
125
  }
@@ -139,16 +139,16 @@ var tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDefa
139
139
  }
140
140
  _chunkB2CQPVVLcjs.setConfigEnv.call(void 0, config);
141
141
  if (!skipLogs && !config.skipConfigLogging) {
142
- _chunkDLJF3QQScjs.writeTrace.call(void 0,
142
+ _chunkDZS54O6Ncjs.writeTrace.call(void 0,
143
143
  `\u2699\uFE0F Using Storm Workspace configuration:
144
- ${_chunkDLJF3QQScjs.formatLogMessage.call(void 0, config)}`,
144
+ ${_chunkDZS54O6Ncjs.formatLogMessage.call(void 0, config)}`,
145
145
  config
146
146
  );
147
147
  }
148
148
  return config;
149
149
  } catch (error) {
150
150
  if (!skipLogs) {
151
- _chunkDLJF3QQScjs.writeWarning.call(void 0,
151
+ _chunkDZS54O6Ncjs.writeWarning.call(void 0,
152
152
  `\u26A0\uFE0F Failed to load Storm Workspace configuration: ${error}`,
153
153
  { logLevel: "all" }
154
154
  );
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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
2
 
3
- var _chunkDLJF3QQScjs = require('./chunk-DLJF3QQS.cjs');
3
+ var _chunkDZS54O6Ncjs = require('./chunk-DZS54O6N.cjs');
4
4
 
5
5
  // src/utilities/toml.ts
6
6
  var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
7
7
  function parseCargoTomlWithTree(tree, projectRoot, projectName) {
8
8
  const cargoTomlString = _optionalChain([tree, 'access', _ => _.read, 'call', _2 => _2(`${projectRoot}/Cargo.toml`), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
9
9
  if (!cargoTomlString) {
10
- _chunkDLJF3QQScjs.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
10
+ _chunkDZS54O6Ncjs.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
11
11
  throw new Error();
12
12
  }
13
13
  return parseCargoToml(cargoTomlString);
@@ -0,0 +1,8 @@
1
+ // src/logger/format-timestamp.ts
2
+ var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
3
+ return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
4
+ };
5
+
6
+ export {
7
+ formatTimestamp
8
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-XHJNCOIU.js";
3
+ } from "./chunk-TOMKPXJE.js";
4
4
 
5
5
  // src/utilities/toml.ts
6
6
  import TOML from "@ltd/j-toml";
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkMN5CJYWOcjs = require('./chunk-MN5CJYWO.cjs');
4
+ var _chunkEEPODKNEcjs = require('./chunk-EEPODKNE.cjs');
5
5
 
6
6
 
7
7
  var _chunk3CNCDDWZcjs = require('./chunk-3CNCDDWZ.cjs');
8
8
 
9
9
  // src/get-config.ts
10
10
  function getConfig(workspaceRoot, skipLogs = false) {
11
- return _chunkMN5CJYWOcjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
11
+ return _chunkEEPODKNEcjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
12
12
  }
13
13
  function getWorkspaceConfig(skipLogs = true, options = {}) {
14
14
  let workspaceRoot = options.workspaceRoot;
@@ -23,7 +23,7 @@ async function tryGetWorkspaceConfig(skipLogs = true, options = {}) {
23
23
  if (!workspaceRoot) {
24
24
  workspaceRoot = _chunk3CNCDDWZcjs.findWorkspaceRoot.call(void 0, options.cwd);
25
25
  }
26
- return _chunkMN5CJYWOcjs.tryLoadStormWorkspaceConfig.call(void 0,
26
+ return _chunkEEPODKNEcjs.tryLoadStormWorkspaceConfig.call(void 0,
27
27
  workspaceRoot,
28
28
  skipLogs,
29
29
  options.useDefault
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getConfigFile
3
- } from "./chunk-G4FBFCNL.js";
3
+ } from "./chunk-ORVHSCSN.js";
4
4
  import {
5
5
  applyDefaultConfig,
6
6
  getPackageJsonConfig
@@ -12,7 +12,7 @@ import {
12
12
  formatLogMessage,
13
13
  writeTrace,
14
14
  writeWarning
15
- } from "./chunk-XHJNCOIU.js";
15
+ } from "./chunk-TOMKPXJE.js";
16
16
  import {
17
17
  setConfigEnv
18
18
  } from "./chunk-SDSQ2HHF.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-LF3SAK2O.js";
4
4
  import {
5
5
  writeTrace
6
- } from "./chunk-XHJNCOIU.js";
6
+ } from "./chunk-TOMKPXJE.js";
7
7
  import {
8
8
  joinPaths
9
9
  } from "./chunk-V3GMJ4TX.js";
@@ -3,7 +3,7 @@
3
3
  var _chunk3CNCDDWZcjs = require('./chunk-3CNCDDWZ.cjs');
4
4
 
5
5
 
6
- var _chunkDLJF3QQScjs = require('./chunk-DLJF3QQS.cjs');
6
+ var _chunkDZS54O6Ncjs = require('./chunk-DZS54O6N.cjs');
7
7
 
8
8
 
9
9
  var _chunkBDATZ3UBcjs = require('./chunk-BDATZ3UB.cjs');
@@ -52,7 +52,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
52
52
  let config = result.config;
53
53
  const configFile = result.configFile;
54
54
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
55
- _chunkDLJF3QQScjs.writeTrace.call(void 0,
55
+ _chunkDZS54O6Ncjs.writeTrace.call(void 0,
56
56
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
57
57
  {
58
58
  logLevel: "all"
@@ -68,7 +68,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
68
68
  for (const result2 of results) {
69
69
  if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
70
70
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
71
- _chunkDLJF3QQScjs.writeTrace.call(void 0,
71
+ _chunkDZS54O6Ncjs.writeTrace.call(void 0,
72
72
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
73
73
  {
74
74
  logLevel: "all"