@storm-software/git-tools 2.66.0 → 2.67.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66561,7 +66561,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
66561
66561
  var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
66562
66562
  const _chalk = getChalk();
66563
66563
  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;
66564
- const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
66564
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
66565
66565
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
66566
66566
  return (_6) => {
66567
66567
  };
@@ -66569,10 +66569,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
66569
66569
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
66570
66570
  return (message) => {
66571
66571
  console.error(
66572
- `
66573
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
66572
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
66574
66573
  " \u{1F480} Fatal "
66575
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
66574
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
66576
66575
  `
66577
66576
  );
66578
66577
  };
@@ -66580,8 +66579,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
66580
66579
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
66581
66580
  return (message) => {
66582
66581
  console.error(
66583
- `
66584
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
66582
+ `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
66585
66583
  " \u2718 Error "
66586
66584
  )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
66587
66585
  `
@@ -66591,8 +66589,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
66591
66589
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
66592
66590
  return (message) => {
66593
66591
  console.warn(
66594
- `
66595
- ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
66592
+ `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
66596
66593
  " \u26A0 Warn "
66597
66594
  )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
66598
66595
  `
@@ -66602,8 +66599,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
66602
66599
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
66603
66600
  return (message) => {
66604
66601
  console.info(
66605
- `
66606
- ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
66602
+ `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
66607
66603
  " \u2713 Success "
66608
66604
  )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
66609
66605
  `
@@ -66613,19 +66609,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
66613
66609
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
66614
66610
  return (message) => {
66615
66611
  console.info(
66616
- `
66617
- ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
66612
+ `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
66618
66613
  " \u2139 Info "
66619
66614
  )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
66620
66615
  `
66621
66616
  );
66622
66617
  };
66623
66618
  }
66624
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
66619
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
66625
66620
  return (message) => {
66626
66621
  console.debug(
66627
- `
66628
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66622
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66629
66623
  " \u{1F6E0} Debug "
66630
66624
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66631
66625
  `
@@ -66634,8 +66628,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
66634
66628
  }
66635
66629
  return (message) => {
66636
66630
  console.log(
66637
- `
66638
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66631
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66639
66632
  " \u2709 System "
66640
66633
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66641
66634
  `
@@ -66647,6 +66640,7 @@ var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
66647
66640
  var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
66648
66641
  var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
66649
66642
  var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
66643
+ var writeSystem = (message, config) => getLogFn(LogLevel.ALL, config)(message);
66650
66644
  var MAX_DEPTH = 4;
66651
66645
  var formatLogMessage = (message, options = {}, depth2 = 0) => {
66652
66646
  if (depth2 > MAX_DEPTH) {
@@ -66723,8 +66717,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
66723
66717
  name: fileName,
66724
66718
  envName: fileName?.toUpperCase(),
66725
66719
  jitiOptions: {
66726
- debug: true,
66727
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66720
+ debug: false,
66721
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66728
66722
  },
66729
66723
  ...options
66730
66724
  });
@@ -66735,8 +66729,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
66735
66729
  name: fileName,
66736
66730
  envName: fileName?.toUpperCase(),
66737
66731
  jitiOptions: {
66738
- debug: true,
66739
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66732
+ debug: false,
66733
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66740
66734
  },
66741
66735
  configFile: fileName,
66742
66736
  ...options
@@ -66749,9 +66743,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
66749
66743
  const result = await getConfigFileByName("storm", workspacePath);
66750
66744
  let config = result.config;
66751
66745
  const configFile = result.configFile;
66752
- if (config && Object.keys(config).length > 0) {
66753
- writeTrace(
66754
- `Found Storm configuration file "${configFile}" at "${workspacePath}"`,
66746
+ if (config && configFile && Object.keys(config).length > 0) {
66747
+ writeSystem(
66748
+ `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
66755
66749
  {
66756
66750
  logLevel: "all"
66757
66751
  }
@@ -66764,9 +66758,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
66764
66758
  )
66765
66759
  );
66766
66760
  for (const result2 of results) {
66767
- if (result2?.config && Object.keys(result2.config).length > 0) {
66768
- writeTrace(
66769
- `Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
66761
+ if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
66762
+ writeSystem(
66763
+ `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
66770
66764
  {
66771
66765
  logLevel: "all"
66772
66766
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "2.66.0",
3
+ "version": "2.67.1",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing various git tools used in Storm workspaces.",
6
6
  "repository": {
package/src/cli/index.js CHANGED
@@ -226083,7 +226083,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
226083
226083
  var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
226084
226084
  const _chalk = getChalk();
226085
226085
  const colors = !config2.colors?.dark && !config2.colors?.["base"] && !config2.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config2.colors?.dark && typeof config2.colors.dark === "string" ? config2.colors : config2.colors?.["base"]?.dark && typeof config2.colors["base"].dark === "string" ? config2.colors["base"].dark : config2.colors?.["base"] ? config2.colors?.["base"] : DEFAULT_COLOR_CONFIG;
226086
- const configLogLevel = config2.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
226086
+ const configLogLevel = config2.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
226087
226087
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
226088
226088
  return (_15) => {
226089
226089
  };
@@ -226091,10 +226091,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
226091
226091
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
226092
226092
  return (message) => {
226093
226093
  console.error(
226094
- `
226095
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
226094
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
226096
226095
  " \u{1F480} Fatal "
226097
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
226096
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
226098
226097
  `
226099
226098
  );
226100
226099
  };
@@ -226102,8 +226101,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
226102
226101
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
226103
226102
  return (message) => {
226104
226103
  console.error(
226105
- `
226106
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
226104
+ `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
226107
226105
  " \u2718 Error "
226108
226106
  )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
226109
226107
  `
@@ -226113,8 +226111,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
226113
226111
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
226114
226112
  return (message) => {
226115
226113
  console.warn(
226116
- `
226117
- ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
226114
+ `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
226118
226115
  " \u26A0 Warn "
226119
226116
  )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
226120
226117
  `
@@ -226124,8 +226121,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
226124
226121
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
226125
226122
  return (message) => {
226126
226123
  console.info(
226127
- `
226128
- ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
226124
+ `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
226129
226125
  " \u2713 Success "
226130
226126
  )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
226131
226127
  `
@@ -226135,19 +226131,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
226135
226131
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
226136
226132
  return (message) => {
226137
226133
  console.info(
226138
- `
226139
- ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
226134
+ `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
226140
226135
  " \u2139 Info "
226141
226136
  )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
226142
226137
  `
226143
226138
  );
226144
226139
  };
226145
226140
  }
226146
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
226141
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
226147
226142
  return (message) => {
226148
226143
  console.debug(
226149
- `
226150
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
226144
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
226151
226145
  " \u{1F6E0} Debug "
226152
226146
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
226153
226147
  `
@@ -226156,8 +226150,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
226156
226150
  }
226157
226151
  return (message) => {
226158
226152
  console.log(
226159
- `
226160
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
226153
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
226161
226154
  " \u2709 System "
226162
226155
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
226163
226156
  `
@@ -226171,6 +226164,7 @@ var writeInfo = (message, config2) => getLogFn(LogLevel.INFO, config2)(message);
226171
226164
  var writeSuccess = (message, config2) => getLogFn(LogLevel.SUCCESS, config2)(message);
226172
226165
  var writeDebug = (message, config2) => getLogFn(LogLevel.DEBUG, config2)(message);
226173
226166
  var writeTrace = (message, config2) => getLogFn(LogLevel.TRACE, config2)(message);
226167
+ var writeSystem = (message, config2) => getLogFn(LogLevel.ALL, config2)(message);
226174
226168
  var MAX_DEPTH = 4;
226175
226169
  var formatLogMessage = (message, options8 = {}, depth2 = 0) => {
226176
226170
  if (depth2 > MAX_DEPTH) {
@@ -226208,8 +226202,8 @@ var getConfigFileByName = async (fileName, filePath, options8 = {}) => {
226208
226202
  name: fileName,
226209
226203
  envName: fileName?.toUpperCase(),
226210
226204
  jitiOptions: {
226211
- debug: true,
226212
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
226205
+ debug: false,
226206
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
226213
226207
  },
226214
226208
  ...options8
226215
226209
  });
@@ -226220,8 +226214,8 @@ var getConfigFileByName = async (fileName, filePath, options8 = {}) => {
226220
226214
  name: fileName,
226221
226215
  envName: fileName?.toUpperCase(),
226222
226216
  jitiOptions: {
226223
- debug: true,
226224
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
226217
+ debug: false,
226218
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
226225
226219
  },
226226
226220
  configFile: fileName,
226227
226221
  ...options8
@@ -226234,9 +226228,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
226234
226228
  const result2 = await getConfigFileByName("storm", workspacePath);
226235
226229
  let config2 = result2.config;
226236
226230
  const configFile = result2.configFile;
226237
- if (config2 && Object.keys(config2).length > 0) {
226238
- writeTrace(
226239
- `Found Storm configuration file "${configFile}" at "${workspacePath}"`,
226231
+ if (config2 && configFile && Object.keys(config2).length > 0) {
226232
+ writeSystem(
226233
+ `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
226240
226234
  {
226241
226235
  logLevel: "all"
226242
226236
  }
@@ -226249,9 +226243,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
226249
226243
  )
226250
226244
  );
226251
226245
  for (const result3 of results) {
226252
- if (result3?.config && Object.keys(result3.config).length > 0) {
226253
- writeTrace(
226254
- `Found additional configuration file "${result3.configFile}" at "${workspacePath}"`,
226246
+ if (result3?.config && result3?.configFile && Object.keys(result3.config).length > 0) {
226247
+ writeSystem(
226248
+ `Found alternative configuration file "${result3.configFile.includes(`${workspacePath}/`) ? result3.configFile.replace(`${workspacePath}/`, "") : result3.configFile}" at "${workspacePath}"`,
226255
226249
  {
226256
226250
  logLevel: "all"
226257
226251
  }
@@ -37538,7 +37538,7 @@ var getLogLevel = (label) => {
37538
37538
  var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
37539
37539
  const _chalk = getChalk();
37540
37540
  const colors = !config2.colors?.dark && !config2.colors?.["base"] && !config2.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config2.colors?.dark && typeof config2.colors.dark === "string" ? config2.colors : config2.colors?.["base"]?.dark && typeof config2.colors["base"].dark === "string" ? config2.colors["base"].dark : config2.colors?.["base"] ? config2.colors?.["base"] : DEFAULT_COLOR_CONFIG;
37541
- const configLogLevel = config2.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
37541
+ const configLogLevel = config2.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
37542
37542
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
37543
37543
  return (_3) => {
37544
37544
  };
@@ -37546,10 +37546,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
37546
37546
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
37547
37547
  return (message) => {
37548
37548
  console.error(
37549
- `
37550
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
37549
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
37551
37550
  " \u{1F480} Fatal "
37552
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
37551
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
37553
37552
  `
37554
37553
  );
37555
37554
  };
@@ -37557,8 +37556,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
37557
37556
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
37558
37557
  return (message) => {
37559
37558
  console.error(
37560
- `
37561
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
37559
+ `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
37562
37560
  " \u2718 Error "
37563
37561
  )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
37564
37562
  `
@@ -37568,8 +37566,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
37568
37566
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
37569
37567
  return (message) => {
37570
37568
  console.warn(
37571
- `
37572
- ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
37569
+ `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
37573
37570
  " \u26A0 Warn "
37574
37571
  )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
37575
37572
  `
@@ -37579,8 +37576,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
37579
37576
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
37580
37577
  return (message) => {
37581
37578
  console.info(
37582
- `
37583
- ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
37579
+ `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
37584
37580
  " \u2713 Success "
37585
37581
  )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
37586
37582
  `
@@ -37590,19 +37586,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
37590
37586
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
37591
37587
  return (message) => {
37592
37588
  console.info(
37593
- `
37594
- ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
37589
+ `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
37595
37590
  " \u2139 Info "
37596
37591
  )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
37597
37592
  `
37598
37593
  );
37599
37594
  };
37600
37595
  }
37601
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
37596
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
37602
37597
  return (message) => {
37603
37598
  console.debug(
37604
- `
37605
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
37599
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
37606
37600
  " \u{1F6E0} Debug "
37607
37601
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
37608
37602
  `
@@ -37611,8 +37605,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
37611
37605
  }
37612
37606
  return (message) => {
37613
37607
  console.log(
37614
- `
37615
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
37608
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
37616
37609
  " \u2709 System "
37617
37610
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
37618
37611
  `
@@ -37485,7 +37485,7 @@ var getLogLevel = (label) => {
37485
37485
  var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
37486
37486
  const _chalk = getChalk();
37487
37487
  const colors = !config2.colors?.dark && !config2.colors?.["base"] && !config2.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config2.colors?.dark && typeof config2.colors.dark === "string" ? config2.colors : config2.colors?.["base"]?.dark && typeof config2.colors["base"].dark === "string" ? config2.colors["base"].dark : config2.colors?.["base"] ? config2.colors?.["base"] : DEFAULT_COLOR_CONFIG;
37488
- const configLogLevel = config2.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
37488
+ const configLogLevel = config2.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
37489
37489
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
37490
37490
  return (_3) => {
37491
37491
  };
@@ -37493,10 +37493,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
37493
37493
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
37494
37494
  return (message) => {
37495
37495
  console.error(
37496
- `
37497
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
37496
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
37498
37497
  " \u{1F480} Fatal "
37499
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
37498
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
37500
37499
  `
37501
37500
  );
37502
37501
  };
@@ -37504,8 +37503,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
37504
37503
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
37505
37504
  return (message) => {
37506
37505
  console.error(
37507
- `
37508
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
37506
+ `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
37509
37507
  " \u2718 Error "
37510
37508
  )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
37511
37509
  `
@@ -37515,8 +37513,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
37515
37513
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
37516
37514
  return (message) => {
37517
37515
  console.warn(
37518
- `
37519
- ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
37516
+ `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
37520
37517
  " \u26A0 Warn "
37521
37518
  )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
37522
37519
  `
@@ -37526,8 +37523,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
37526
37523
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
37527
37524
  return (message) => {
37528
37525
  console.info(
37529
- `
37530
- ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
37526
+ `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
37531
37527
  " \u2713 Success "
37532
37528
  )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
37533
37529
  `
@@ -37537,19 +37533,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
37537
37533
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
37538
37534
  return (message) => {
37539
37535
  console.info(
37540
- `
37541
- ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
37536
+ `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
37542
37537
  " \u2139 Info "
37543
37538
  )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
37544
37539
  `
37545
37540
  );
37546
37541
  };
37547
37542
  }
37548
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
37543
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
37549
37544
  return (message) => {
37550
37545
  console.debug(
37551
- `
37552
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
37546
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
37553
37547
  " \u{1F6E0} Debug "
37554
37548
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
37555
37549
  `
@@ -37558,8 +37552,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
37558
37552
  }
37559
37553
  return (message) => {
37560
37554
  console.log(
37561
- `
37562
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
37555
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
37563
37556
  " \u2709 System "
37564
37557
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
37565
37558
  `
package/src/index.js CHANGED
@@ -226083,7 +226083,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
226083
226083
  var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
226084
226084
  const _chalk = getChalk();
226085
226085
  const colors = !config2.colors?.dark && !config2.colors?.["base"] && !config2.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config2.colors?.dark && typeof config2.colors.dark === "string" ? config2.colors : config2.colors?.["base"]?.dark && typeof config2.colors["base"].dark === "string" ? config2.colors["base"].dark : config2.colors?.["base"] ? config2.colors?.["base"] : DEFAULT_COLOR_CONFIG;
226086
- const configLogLevel = config2.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
226086
+ const configLogLevel = config2.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
226087
226087
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
226088
226088
  return (_15) => {
226089
226089
  };
@@ -226091,10 +226091,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
226091
226091
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
226092
226092
  return (message) => {
226093
226093
  console.error(
226094
- `
226095
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
226094
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
226096
226095
  " \u{1F480} Fatal "
226097
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
226096
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
226098
226097
  `
226099
226098
  );
226100
226099
  };
@@ -226102,8 +226101,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
226102
226101
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
226103
226102
  return (message) => {
226104
226103
  console.error(
226105
- `
226106
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
226104
+ `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
226107
226105
  " \u2718 Error "
226108
226106
  )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
226109
226107
  `
@@ -226113,8 +226111,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
226113
226111
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
226114
226112
  return (message) => {
226115
226113
  console.warn(
226116
- `
226117
- ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
226114
+ `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
226118
226115
  " \u26A0 Warn "
226119
226116
  )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
226120
226117
  `
@@ -226124,8 +226121,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
226124
226121
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
226125
226122
  return (message) => {
226126
226123
  console.info(
226127
- `
226128
- ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
226124
+ `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
226129
226125
  " \u2713 Success "
226130
226126
  )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
226131
226127
  `
@@ -226135,19 +226131,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
226135
226131
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
226136
226132
  return (message) => {
226137
226133
  console.info(
226138
- `
226139
- ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
226134
+ `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
226140
226135
  " \u2139 Info "
226141
226136
  )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
226142
226137
  `
226143
226138
  );
226144
226139
  };
226145
226140
  }
226146
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
226141
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
226147
226142
  return (message) => {
226148
226143
  console.debug(
226149
- `
226150
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
226144
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
226151
226145
  " \u{1F6E0} Debug "
226152
226146
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
226153
226147
  `
@@ -226156,8 +226150,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
226156
226150
  }
226157
226151
  return (message) => {
226158
226152
  console.log(
226159
- `
226160
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
226153
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
226161
226154
  " \u2709 System "
226162
226155
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
226163
226156
  `
@@ -226171,6 +226164,7 @@ var writeInfo = (message, config2) => getLogFn(LogLevel.INFO, config2)(message);
226171
226164
  var writeSuccess = (message, config2) => getLogFn(LogLevel.SUCCESS, config2)(message);
226172
226165
  var writeDebug = (message, config2) => getLogFn(LogLevel.DEBUG, config2)(message);
226173
226166
  var writeTrace = (message, config2) => getLogFn(LogLevel.TRACE, config2)(message);
226167
+ var writeSystem = (message, config2) => getLogFn(LogLevel.ALL, config2)(message);
226174
226168
  var MAX_DEPTH = 4;
226175
226169
  var formatLogMessage = (message, options8 = {}, depth2 = 0) => {
226176
226170
  if (depth2 > MAX_DEPTH) {
@@ -226208,8 +226202,8 @@ var getConfigFileByName = async (fileName, filePath, options8 = {}) => {
226208
226202
  name: fileName,
226209
226203
  envName: fileName?.toUpperCase(),
226210
226204
  jitiOptions: {
226211
- debug: true,
226212
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
226205
+ debug: false,
226206
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
226213
226207
  },
226214
226208
  ...options8
226215
226209
  });
@@ -226220,8 +226214,8 @@ var getConfigFileByName = async (fileName, filePath, options8 = {}) => {
226220
226214
  name: fileName,
226221
226215
  envName: fileName?.toUpperCase(),
226222
226216
  jitiOptions: {
226223
- debug: true,
226224
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
226217
+ debug: false,
226218
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
226225
226219
  },
226226
226220
  configFile: fileName,
226227
226221
  ...options8
@@ -226234,9 +226228,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
226234
226228
  const result2 = await getConfigFileByName("storm", workspacePath);
226235
226229
  let config2 = result2.config;
226236
226230
  const configFile = result2.configFile;
226237
- if (config2 && Object.keys(config2).length > 0) {
226238
- writeTrace(
226239
- `Found Storm configuration file "${configFile}" at "${workspacePath}"`,
226231
+ if (config2 && configFile && Object.keys(config2).length > 0) {
226232
+ writeSystem(
226233
+ `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
226240
226234
  {
226241
226235
  logLevel: "all"
226242
226236
  }
@@ -226249,9 +226243,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
226249
226243
  )
226250
226244
  );
226251
226245
  for (const result3 of results) {
226252
- if (result3?.config && Object.keys(result3.config).length > 0) {
226253
- writeTrace(
226254
- `Found additional configuration file "${result3.configFile}" at "${workspacePath}"`,
226246
+ if (result3?.config && result3?.configFile && Object.keys(result3.config).length > 0) {
226247
+ writeSystem(
226248
+ `Found alternative configuration file "${result3.configFile.includes(`${workspacePath}/`) ? result3.configFile.replace(`${workspacePath}/`, "") : result3.configFile}" at "${workspacePath}"`,
226255
226249
  {
226256
226250
  logLevel: "all"
226257
226251
  }