@storm-software/workspace-tools 1.198.0 → 1.198.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.
@@ -66546,7 +66546,7 @@ var init_logger = __esm({
66546
66546
  getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
66547
66547
  const _chalk = getChalk();
66548
66548
  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;
66549
- const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
66549
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
66550
66550
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
66551
66551
  return (_6) => {
66552
66552
  };
@@ -66554,9 +66554,9 @@ var init_logger = __esm({
66554
66554
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
66555
66555
  return (message) => {
66556
66556
  console.error(
66557
- `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
66557
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
66558
66558
  " \u{1F480} Fatal "
66559
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
66559
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
66560
66560
  `
66561
66561
  );
66562
66562
  };
@@ -66566,7 +66566,7 @@ var init_logger = __esm({
66566
66566
  console.error(
66567
66567
  `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
66568
66568
  " \u2718 Error "
66569
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
66569
+ )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
66570
66570
  `
66571
66571
  );
66572
66572
  };
@@ -66576,7 +66576,7 @@ var init_logger = __esm({
66576
66576
  console.warn(
66577
66577
  `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
66578
66578
  " \u26A0 Warn "
66579
- )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
66579
+ )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
66580
66580
  `
66581
66581
  );
66582
66582
  };
@@ -66586,7 +66586,7 @@ var init_logger = __esm({
66586
66586
  console.info(
66587
66587
  `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
66588
66588
  " \u2713 Success "
66589
- )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
66589
+ )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
66590
66590
  `
66591
66591
  );
66592
66592
  };
@@ -66596,17 +66596,17 @@ var init_logger = __esm({
66596
66596
  console.info(
66597
66597
  `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
66598
66598
  " \u2139 Info "
66599
- )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
66599
+ )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
66600
66600
  `
66601
66601
  );
66602
66602
  };
66603
66603
  }
66604
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
66604
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
66605
66605
  return (message) => {
66606
66606
  console.debug(
66607
66607
  `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66608
66608
  " \u{1F6E0} Debug "
66609
- )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
66609
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66610
66610
  `
66611
66611
  );
66612
66612
  };
@@ -66615,7 +66615,7 @@ var init_logger = __esm({
66615
66615
  console.log(
66616
66616
  `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66617
66617
  " \u2709 System "
66618
- )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
66618
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66619
66619
  `
66620
66620
  );
66621
66621
  };
@@ -66774,8 +66774,8 @@ var init_get_config_file = __esm({
66774
66774
  name: fileName,
66775
66775
  envName: fileName?.toUpperCase(),
66776
66776
  jitiOptions: {
66777
- debug: true,
66778
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66777
+ debug: false,
66778
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66779
66779
  },
66780
66780
  ...options
66781
66781
  });
@@ -66786,8 +66786,8 @@ var init_get_config_file = __esm({
66786
66786
  name: fileName,
66787
66787
  envName: fileName?.toUpperCase(),
66788
66788
  jitiOptions: {
66789
- debug: true,
66790
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66789
+ debug: false,
66790
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66791
66791
  },
66792
66792
  configFile: fileName,
66793
66793
  ...options
@@ -66800,9 +66800,9 @@ var init_get_config_file = __esm({
66800
66800
  const result = await getConfigFileByName("storm", workspacePath);
66801
66801
  let config = result.config;
66802
66802
  const configFile = result.configFile;
66803
- if (config && Object.keys(config).length > 0) {
66804
- writeTrace(
66805
- `Found Storm configuration file "${configFile}" at "${workspacePath}"`,
66803
+ if (config && configFile && Object.keys(config).length > 0) {
66804
+ writeSystem(
66805
+ `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
66806
66806
  {
66807
66807
  logLevel: "all"
66808
66808
  }
@@ -66815,9 +66815,9 @@ var init_get_config_file = __esm({
66815
66815
  )
66816
66816
  );
66817
66817
  for (const result2 of results) {
66818
- if (result2?.config && Object.keys(result2.config).length > 0) {
66819
- writeTrace(
66820
- `Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
66818
+ if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
66819
+ writeSystem(
66820
+ `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
66821
66821
  {
66822
66822
  logLevel: "all"
66823
66823
  }
@@ -66546,7 +66546,7 @@ var init_logger = __esm({
66546
66546
  getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
66547
66547
  const _chalk = getChalk();
66548
66548
  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;
66549
- const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
66549
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
66550
66550
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
66551
66551
  return (_6) => {
66552
66552
  };
@@ -66554,9 +66554,9 @@ var init_logger = __esm({
66554
66554
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
66555
66555
  return (message) => {
66556
66556
  console.error(
66557
- `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
66557
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
66558
66558
  " \u{1F480} Fatal "
66559
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
66559
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
66560
66560
  `
66561
66561
  );
66562
66562
  };
@@ -66566,7 +66566,7 @@ var init_logger = __esm({
66566
66566
  console.error(
66567
66567
  `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
66568
66568
  " \u2718 Error "
66569
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
66569
+ )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
66570
66570
  `
66571
66571
  );
66572
66572
  };
@@ -66576,7 +66576,7 @@ var init_logger = __esm({
66576
66576
  console.warn(
66577
66577
  `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
66578
66578
  " \u26A0 Warn "
66579
- )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
66579
+ )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
66580
66580
  `
66581
66581
  );
66582
66582
  };
@@ -66586,7 +66586,7 @@ var init_logger = __esm({
66586
66586
  console.info(
66587
66587
  `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
66588
66588
  " \u2713 Success "
66589
- )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
66589
+ )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
66590
66590
  `
66591
66591
  );
66592
66592
  };
@@ -66596,17 +66596,17 @@ var init_logger = __esm({
66596
66596
  console.info(
66597
66597
  `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
66598
66598
  " \u2139 Info "
66599
- )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
66599
+ )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
66600
66600
  `
66601
66601
  );
66602
66602
  };
66603
66603
  }
66604
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
66604
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
66605
66605
  return (message) => {
66606
66606
  console.debug(
66607
66607
  `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66608
66608
  " \u{1F6E0} Debug "
66609
- )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
66609
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66610
66610
  `
66611
66611
  );
66612
66612
  };
@@ -66615,7 +66615,7 @@ var init_logger = __esm({
66615
66615
  console.log(
66616
66616
  `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66617
66617
  " \u2709 System "
66618
- )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
66618
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66619
66619
  `
66620
66620
  );
66621
66621
  };
@@ -66774,8 +66774,8 @@ var init_get_config_file = __esm({
66774
66774
  name: fileName,
66775
66775
  envName: fileName?.toUpperCase(),
66776
66776
  jitiOptions: {
66777
- debug: true,
66778
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66777
+ debug: false,
66778
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66779
66779
  },
66780
66780
  ...options
66781
66781
  });
@@ -66786,8 +66786,8 @@ var init_get_config_file = __esm({
66786
66786
  name: fileName,
66787
66787
  envName: fileName?.toUpperCase(),
66788
66788
  jitiOptions: {
66789
- debug: true,
66790
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66789
+ debug: false,
66790
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66791
66791
  },
66792
66792
  configFile: fileName,
66793
66793
  ...options
@@ -66800,9 +66800,9 @@ var init_get_config_file = __esm({
66800
66800
  const result = await getConfigFileByName("storm", workspacePath);
66801
66801
  let config = result.config;
66802
66802
  const configFile = result.configFile;
66803
- if (config && Object.keys(config).length > 0) {
66804
- writeTrace(
66805
- `Found Storm configuration file "${configFile}" at "${workspacePath}"`,
66803
+ if (config && configFile && Object.keys(config).length > 0) {
66804
+ writeSystem(
66805
+ `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
66806
66806
  {
66807
66807
  logLevel: "all"
66808
66808
  }
@@ -66815,9 +66815,9 @@ var init_get_config_file = __esm({
66815
66815
  )
66816
66816
  );
66817
66817
  for (const result2 of results) {
66818
- if (result2?.config && Object.keys(result2.config).length > 0) {
66819
- writeTrace(
66820
- `Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
66818
+ if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
66819
+ writeSystem(
66820
+ `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
66821
66821
  {
66822
66822
  logLevel: "all"
66823
66823
  }
@@ -66546,7 +66546,7 @@ var init_logger = __esm({
66546
66546
  getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
66547
66547
  const _chalk = getChalk();
66548
66548
  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;
66549
- const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
66549
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
66550
66550
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
66551
66551
  return (_6) => {
66552
66552
  };
@@ -66554,9 +66554,9 @@ var init_logger = __esm({
66554
66554
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
66555
66555
  return (message) => {
66556
66556
  console.error(
66557
- `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
66557
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
66558
66558
  " \u{1F480} Fatal "
66559
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
66559
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
66560
66560
  `
66561
66561
  );
66562
66562
  };
@@ -66566,7 +66566,7 @@ var init_logger = __esm({
66566
66566
  console.error(
66567
66567
  `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
66568
66568
  " \u2718 Error "
66569
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
66569
+ )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
66570
66570
  `
66571
66571
  );
66572
66572
  };
@@ -66576,7 +66576,7 @@ var init_logger = __esm({
66576
66576
  console.warn(
66577
66577
  `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
66578
66578
  " \u26A0 Warn "
66579
- )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
66579
+ )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
66580
66580
  `
66581
66581
  );
66582
66582
  };
@@ -66586,7 +66586,7 @@ var init_logger = __esm({
66586
66586
  console.info(
66587
66587
  `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
66588
66588
  " \u2713 Success "
66589
- )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
66589
+ )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
66590
66590
  `
66591
66591
  );
66592
66592
  };
@@ -66596,17 +66596,17 @@ var init_logger = __esm({
66596
66596
  console.info(
66597
66597
  `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
66598
66598
  " \u2139 Info "
66599
- )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
66599
+ )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
66600
66600
  `
66601
66601
  );
66602
66602
  };
66603
66603
  }
66604
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
66604
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
66605
66605
  return (message) => {
66606
66606
  console.debug(
66607
66607
  `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66608
66608
  " \u{1F6E0} Debug "
66609
- )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
66609
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66610
66610
  `
66611
66611
  );
66612
66612
  };
@@ -66615,7 +66615,7 @@ var init_logger = __esm({
66615
66615
  console.log(
66616
66616
  `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66617
66617
  " \u2709 System "
66618
- )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
66618
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66619
66619
  `
66620
66620
  );
66621
66621
  };
@@ -66774,8 +66774,8 @@ var init_get_config_file = __esm({
66774
66774
  name: fileName,
66775
66775
  envName: fileName?.toUpperCase(),
66776
66776
  jitiOptions: {
66777
- debug: true,
66778
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66777
+ debug: false,
66778
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66779
66779
  },
66780
66780
  ...options
66781
66781
  });
@@ -66786,8 +66786,8 @@ var init_get_config_file = __esm({
66786
66786
  name: fileName,
66787
66787
  envName: fileName?.toUpperCase(),
66788
66788
  jitiOptions: {
66789
- debug: true,
66790
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66789
+ debug: false,
66790
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66791
66791
  },
66792
66792
  configFile: fileName,
66793
66793
  ...options
@@ -66800,9 +66800,9 @@ var init_get_config_file = __esm({
66800
66800
  const result = await getConfigFileByName("storm", workspacePath);
66801
66801
  let config = result.config;
66802
66802
  const configFile = result.configFile;
66803
- if (config && Object.keys(config).length > 0) {
66804
- writeTrace(
66805
- `Found Storm configuration file "${configFile}" at "${workspacePath}"`,
66803
+ if (config && configFile && Object.keys(config).length > 0) {
66804
+ writeSystem(
66805
+ `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
66806
66806
  {
66807
66807
  logLevel: "all"
66808
66808
  }
@@ -66815,9 +66815,9 @@ var init_get_config_file = __esm({
66815
66815
  )
66816
66816
  );
66817
66817
  for (const result2 of results) {
66818
- if (result2?.config && Object.keys(result2.config).length > 0) {
66819
- writeTrace(
66820
- `Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
66818
+ if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
66819
+ writeSystem(
66820
+ `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
66821
66821
  {
66822
66822
  logLevel: "all"
66823
66823
  }
@@ -68370,7 +68370,7 @@ var init_logger = __esm({
68370
68370
  getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
68371
68371
  const _chalk = getChalk();
68372
68372
  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;
68373
- const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
68373
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
68374
68374
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
68375
68375
  return (_6) => {
68376
68376
  };
@@ -68378,9 +68378,9 @@ var init_logger = __esm({
68378
68378
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
68379
68379
  return (message) => {
68380
68380
  console.error(
68381
- `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
68381
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
68382
68382
  " \u{1F480} Fatal "
68383
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
68383
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
68384
68384
  `
68385
68385
  );
68386
68386
  };
@@ -68390,7 +68390,7 @@ var init_logger = __esm({
68390
68390
  console.error(
68391
68391
  `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
68392
68392
  " \u2718 Error "
68393
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
68393
+ )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
68394
68394
  `
68395
68395
  );
68396
68396
  };
@@ -68400,7 +68400,7 @@ var init_logger = __esm({
68400
68400
  console.warn(
68401
68401
  `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
68402
68402
  " \u26A0 Warn "
68403
- )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
68403
+ )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
68404
68404
  `
68405
68405
  );
68406
68406
  };
@@ -68410,7 +68410,7 @@ var init_logger = __esm({
68410
68410
  console.info(
68411
68411
  `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
68412
68412
  " \u2713 Success "
68413
- )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
68413
+ )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
68414
68414
  `
68415
68415
  );
68416
68416
  };
@@ -68420,17 +68420,17 @@ var init_logger = __esm({
68420
68420
  console.info(
68421
68421
  `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
68422
68422
  " \u2139 Info "
68423
- )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
68423
+ )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
68424
68424
  `
68425
68425
  );
68426
68426
  };
68427
68427
  }
68428
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
68428
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
68429
68429
  return (message) => {
68430
68430
  console.debug(
68431
68431
  `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
68432
68432
  " \u{1F6E0} Debug "
68433
- )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
68433
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
68434
68434
  `
68435
68435
  );
68436
68436
  };
@@ -68439,7 +68439,7 @@ var init_logger = __esm({
68439
68439
  console.log(
68440
68440
  `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
68441
68441
  " \u2709 System "
68442
- )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
68442
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
68443
68443
  `
68444
68444
  );
68445
68445
  };
@@ -68598,8 +68598,8 @@ var init_get_config_file = __esm({
68598
68598
  name: fileName,
68599
68599
  envName: fileName?.toUpperCase(),
68600
68600
  jitiOptions: {
68601
- debug: true,
68602
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
68601
+ debug: false,
68602
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
68603
68603
  },
68604
68604
  ...options
68605
68605
  });
@@ -68610,8 +68610,8 @@ var init_get_config_file = __esm({
68610
68610
  name: fileName,
68611
68611
  envName: fileName?.toUpperCase(),
68612
68612
  jitiOptions: {
68613
- debug: true,
68614
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
68613
+ debug: false,
68614
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
68615
68615
  },
68616
68616
  configFile: fileName,
68617
68617
  ...options
@@ -68624,9 +68624,9 @@ var init_get_config_file = __esm({
68624
68624
  const result = await getConfigFileByName("storm", workspacePath);
68625
68625
  let config = result.config;
68626
68626
  const configFile = result.configFile;
68627
- if (config && Object.keys(config).length > 0) {
68628
- writeTrace(
68629
- `Found Storm configuration file "${configFile}" at "${workspacePath}"`,
68627
+ if (config && configFile && Object.keys(config).length > 0) {
68628
+ writeSystem(
68629
+ `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
68630
68630
  {
68631
68631
  logLevel: "all"
68632
68632
  }
@@ -68639,9 +68639,9 @@ var init_get_config_file = __esm({
68639
68639
  )
68640
68640
  );
68641
68641
  for (const result2 of results) {
68642
- if (result2?.config && Object.keys(result2.config).length > 0) {
68643
- writeTrace(
68644
- `Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
68642
+ if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
68643
+ writeSystem(
68644
+ `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
68645
68645
  {
68646
68646
  logLevel: "all"
68647
68647
  }
@@ -66546,7 +66546,7 @@ var init_logger = __esm({
66546
66546
  getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
66547
66547
  const _chalk = getChalk();
66548
66548
  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;
66549
- const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
66549
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
66550
66550
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
66551
66551
  return (_6) => {
66552
66552
  };
@@ -66554,9 +66554,9 @@ var init_logger = __esm({
66554
66554
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
66555
66555
  return (message) => {
66556
66556
  console.error(
66557
- `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
66557
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
66558
66558
  " \u{1F480} Fatal "
66559
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
66559
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
66560
66560
  `
66561
66561
  );
66562
66562
  };
@@ -66566,7 +66566,7 @@ var init_logger = __esm({
66566
66566
  console.error(
66567
66567
  `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
66568
66568
  " \u2718 Error "
66569
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
66569
+ )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
66570
66570
  `
66571
66571
  );
66572
66572
  };
@@ -66576,7 +66576,7 @@ var init_logger = __esm({
66576
66576
  console.warn(
66577
66577
  `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
66578
66578
  " \u26A0 Warn "
66579
- )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
66579
+ )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
66580
66580
  `
66581
66581
  );
66582
66582
  };
@@ -66586,7 +66586,7 @@ var init_logger = __esm({
66586
66586
  console.info(
66587
66587
  `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
66588
66588
  " \u2713 Success "
66589
- )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
66589
+ )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
66590
66590
  `
66591
66591
  );
66592
66592
  };
@@ -66596,17 +66596,17 @@ var init_logger = __esm({
66596
66596
  console.info(
66597
66597
  `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
66598
66598
  " \u2139 Info "
66599
- )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
66599
+ )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
66600
66600
  `
66601
66601
  );
66602
66602
  };
66603
66603
  }
66604
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
66604
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
66605
66605
  return (message) => {
66606
66606
  console.debug(
66607
66607
  `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66608
66608
  " \u{1F6E0} Debug "
66609
- )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
66609
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66610
66610
  `
66611
66611
  );
66612
66612
  };
@@ -66615,7 +66615,7 @@ var init_logger = __esm({
66615
66615
  console.log(
66616
66616
  `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66617
66617
  " \u2709 System "
66618
- )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
66618
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66619
66619
  `
66620
66620
  );
66621
66621
  };
@@ -66774,8 +66774,8 @@ var init_get_config_file = __esm({
66774
66774
  name: fileName,
66775
66775
  envName: fileName?.toUpperCase(),
66776
66776
  jitiOptions: {
66777
- debug: true,
66778
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66777
+ debug: false,
66778
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66779
66779
  },
66780
66780
  ...options
66781
66781
  });
@@ -66786,8 +66786,8 @@ var init_get_config_file = __esm({
66786
66786
  name: fileName,
66787
66787
  envName: fileName?.toUpperCase(),
66788
66788
  jitiOptions: {
66789
- debug: true,
66790
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66789
+ debug: false,
66790
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66791
66791
  },
66792
66792
  configFile: fileName,
66793
66793
  ...options
@@ -66800,9 +66800,9 @@ var init_get_config_file = __esm({
66800
66800
  const result = await getConfigFileByName("storm", workspacePath);
66801
66801
  let config = result.config;
66802
66802
  const configFile = result.configFile;
66803
- if (config && Object.keys(config).length > 0) {
66804
- writeTrace(
66805
- `Found Storm configuration file "${configFile}" at "${workspacePath}"`,
66803
+ if (config && configFile && Object.keys(config).length > 0) {
66804
+ writeSystem(
66805
+ `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
66806
66806
  {
66807
66807
  logLevel: "all"
66808
66808
  }
@@ -66815,9 +66815,9 @@ var init_get_config_file = __esm({
66815
66815
  )
66816
66816
  );
66817
66817
  for (const result2 of results) {
66818
- if (result2?.config && Object.keys(result2.config).length > 0) {
66819
- writeTrace(
66820
- `Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
66818
+ if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
66819
+ writeSystem(
66820
+ `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
66821
66821
  {
66822
66822
  logLevel: "all"
66823
66823
  }