@storm-software/workspace-tools 1.197.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.
@@ -68867,7 +68867,7 @@ var init_logger = __esm({
68867
68867
  getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
68868
68868
  const _chalk = getChalk();
68869
68869
  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;
68870
- const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
68870
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
68871
68871
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
68872
68872
  return (_6) => {
68873
68873
  };
@@ -68875,10 +68875,9 @@ var init_logger = __esm({
68875
68875
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
68876
68876
  return (message) => {
68877
68877
  console.error(
68878
- `
68879
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
68878
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
68880
68879
  " \u{1F480} Fatal "
68881
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
68880
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
68882
68881
  `
68883
68882
  );
68884
68883
  };
@@ -68886,8 +68885,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
68886
68885
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
68887
68886
  return (message) => {
68888
68887
  console.error(
68889
- `
68890
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
68888
+ `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
68891
68889
  " \u2718 Error "
68892
68890
  )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
68893
68891
  `
@@ -68897,8 +68895,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
68897
68895
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
68898
68896
  return (message) => {
68899
68897
  console.warn(
68900
- `
68901
- ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
68898
+ `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
68902
68899
  " \u26A0 Warn "
68903
68900
  )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
68904
68901
  `
@@ -68908,8 +68905,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
68908
68905
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
68909
68906
  return (message) => {
68910
68907
  console.info(
68911
- `
68912
- ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
68908
+ `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
68913
68909
  " \u2713 Success "
68914
68910
  )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
68915
68911
  `
@@ -68919,19 +68915,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
68919
68915
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
68920
68916
  return (message) => {
68921
68917
  console.info(
68922
- `
68923
- ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
68918
+ `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
68924
68919
  " \u2139 Info "
68925
68920
  )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
68926
68921
  `
68927
68922
  );
68928
68923
  };
68929
68924
  }
68930
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
68925
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
68931
68926
  return (message) => {
68932
68927
  console.debug(
68933
- `
68934
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
68928
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
68935
68929
  " \u{1F6E0} Debug "
68936
68930
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
68937
68931
  `
@@ -68940,8 +68934,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
68940
68934
  }
68941
68935
  return (message) => {
68942
68936
  console.log(
68943
- `
68944
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
68937
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
68945
68938
  " \u2709 System "
68946
68939
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
68947
68940
  `
@@ -69102,8 +69095,8 @@ var init_get_config_file = __esm({
69102
69095
  name: fileName,
69103
69096
  envName: fileName?.toUpperCase(),
69104
69097
  jitiOptions: {
69105
- debug: true,
69106
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
69098
+ debug: false,
69099
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
69107
69100
  },
69108
69101
  ...options
69109
69102
  });
@@ -69114,8 +69107,8 @@ var init_get_config_file = __esm({
69114
69107
  name: fileName,
69115
69108
  envName: fileName?.toUpperCase(),
69116
69109
  jitiOptions: {
69117
- debug: true,
69118
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
69110
+ debug: false,
69111
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
69119
69112
  },
69120
69113
  configFile: fileName,
69121
69114
  ...options
@@ -69128,9 +69121,9 @@ var init_get_config_file = __esm({
69128
69121
  const result = await getConfigFileByName("storm", workspacePath);
69129
69122
  let config = result.config;
69130
69123
  const configFile = result.configFile;
69131
- if (config && Object.keys(config).length > 0) {
69132
- writeTrace(
69133
- `Found Storm configuration file "${configFile}" at "${workspacePath}"`,
69124
+ if (config && configFile && Object.keys(config).length > 0) {
69125
+ writeSystem(
69126
+ `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
69134
69127
  {
69135
69128
  logLevel: "all"
69136
69129
  }
@@ -69143,9 +69136,9 @@ var init_get_config_file = __esm({
69143
69136
  )
69144
69137
  );
69145
69138
  for (const result2 of results) {
69146
- if (result2?.config && Object.keys(result2.config).length > 0) {
69147
- writeTrace(
69148
- `Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
69139
+ if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
69140
+ writeSystem(
69141
+ `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
69149
69142
  {
69150
69143
  logLevel: "all"
69151
69144
  }
@@ -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,10 +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
- `
66558
- ${_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(
66559
66558
  " \u{1F480} Fatal "
66560
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
66559
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
66561
66560
  `
66562
66561
  );
66563
66562
  };
@@ -66565,8 +66564,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
66565
66564
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
66566
66565
  return (message) => {
66567
66566
  console.error(
66568
- `
66569
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
66567
+ `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
66570
66568
  " \u2718 Error "
66571
66569
  )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
66572
66570
  `
@@ -66576,8 +66574,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
66576
66574
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
66577
66575
  return (message) => {
66578
66576
  console.warn(
66579
- `
66580
- ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
66577
+ `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
66581
66578
  " \u26A0 Warn "
66582
66579
  )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
66583
66580
  `
@@ -66587,8 +66584,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
66587
66584
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
66588
66585
  return (message) => {
66589
66586
  console.info(
66590
- `
66591
- ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
66587
+ `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
66592
66588
  " \u2713 Success "
66593
66589
  )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
66594
66590
  `
@@ -66598,19 +66594,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
66598
66594
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
66599
66595
  return (message) => {
66600
66596
  console.info(
66601
- `
66602
- ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
66597
+ `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
66603
66598
  " \u2139 Info "
66604
66599
  )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
66605
66600
  `
66606
66601
  );
66607
66602
  };
66608
66603
  }
66609
- 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)) {
66610
66605
  return (message) => {
66611
66606
  console.debug(
66612
- `
66613
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66607
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66614
66608
  " \u{1F6E0} Debug "
66615
66609
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66616
66610
  `
@@ -66619,8 +66613,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
66619
66613
  }
66620
66614
  return (message) => {
66621
66615
  console.log(
66622
- `
66623
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66616
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66624
66617
  " \u2709 System "
66625
66618
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66626
66619
  `
@@ -66781,8 +66774,8 @@ var init_get_config_file = __esm({
66781
66774
  name: fileName,
66782
66775
  envName: fileName?.toUpperCase(),
66783
66776
  jitiOptions: {
66784
- debug: true,
66785
- 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"
66786
66779
  },
66787
66780
  ...options
66788
66781
  });
@@ -66793,8 +66786,8 @@ var init_get_config_file = __esm({
66793
66786
  name: fileName,
66794
66787
  envName: fileName?.toUpperCase(),
66795
66788
  jitiOptions: {
66796
- debug: true,
66797
- 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"
66798
66791
  },
66799
66792
  configFile: fileName,
66800
66793
  ...options
@@ -66807,9 +66800,9 @@ var init_get_config_file = __esm({
66807
66800
  const result = await getConfigFileByName("storm", workspacePath);
66808
66801
  let config = result.config;
66809
66802
  const configFile = result.configFile;
66810
- if (config && Object.keys(config).length > 0) {
66811
- writeTrace(
66812
- `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}"`,
66813
66806
  {
66814
66807
  logLevel: "all"
66815
66808
  }
@@ -66822,9 +66815,9 @@ var init_get_config_file = __esm({
66822
66815
  )
66823
66816
  );
66824
66817
  for (const result2 of results) {
66825
- if (result2?.config && Object.keys(result2.config).length > 0) {
66826
- writeTrace(
66827
- `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}"`,
66828
66821
  {
66829
66822
  logLevel: "all"
66830
66823
  }
@@ -93460,7 +93460,7 @@ var init_logger = __esm({
93460
93460
  getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
93461
93461
  const _chalk = getChalk();
93462
93462
  const colors2 = !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;
93463
- const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
93463
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
93464
93464
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
93465
93465
  return (_6) => {
93466
93466
  };
@@ -93468,10 +93468,9 @@ var init_logger = __esm({
93468
93468
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
93469
93469
  return (message) => {
93470
93470
  console.error(
93471
- `
93472
- ${_chalk.bold.hex(colors2.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors2.fatal ?? "#7d1a1a").whiteBright(
93471
+ `${_chalk.bold.hex(colors2.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors2.fatal ?? "#7d1a1a").whiteBright(
93473
93472
  " \u{1F480} Fatal "
93474
- )} ${_chalk.hex(colors2.danger ?? "#f85149")(formatLogMessage(message))}
93473
+ )} ${_chalk.hex(colors2.fatal ?? "#7d1a1a")(formatLogMessage(message))}
93475
93474
  `
93476
93475
  );
93477
93476
  };
@@ -93479,8 +93478,7 @@ ${_chalk.bold.hex(colors2.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors2
93479
93478
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
93480
93479
  return (message) => {
93481
93480
  console.error(
93482
- `
93483
- ${_chalk.bold.hex(colors2.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors2.danger ?? "#f85149").whiteBright(
93481
+ `${_chalk.bold.hex(colors2.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors2.danger ?? "#f85149").whiteBright(
93484
93482
  " \u2718 Error "
93485
93483
  )} ${_chalk.hex(colors2.danger ?? "#f85149")(formatLogMessage(message))}
93486
93484
  `
@@ -93490,8 +93488,7 @@ ${_chalk.bold.hex(colors2.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors2
93490
93488
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
93491
93489
  return (message) => {
93492
93490
  console.warn(
93493
- `
93494
- ${_chalk.bold.hex(colors2.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors2.warning ?? "#e3b341").whiteBright(
93491
+ `${_chalk.bold.hex(colors2.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors2.warning ?? "#e3b341").whiteBright(
93495
93492
  " \u26A0 Warn "
93496
93493
  )} ${_chalk.hex(colors2.warning ?? "#e3b341")(formatLogMessage(message))}
93497
93494
  `
@@ -93501,8 +93498,7 @@ ${_chalk.bold.hex(colors2.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors
93501
93498
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
93502
93499
  return (message) => {
93503
93500
  console.info(
93504
- `
93505
- ${_chalk.bold.hex(colors2.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors2.success ?? "#56d364").whiteBright(
93501
+ `${_chalk.bold.hex(colors2.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors2.success ?? "#56d364").whiteBright(
93506
93502
  " \u2713 Success "
93507
93503
  )} ${_chalk.hex(colors2.success ?? "#56d364")(formatLogMessage(message))}
93508
93504
  `
@@ -93512,19 +93508,17 @@ ${_chalk.bold.hex(colors2.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors
93512
93508
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
93513
93509
  return (message) => {
93514
93510
  console.info(
93515
- `
93516
- ${_chalk.bold.hex(colors2.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors2.info ?? "#58a6ff").whiteBright(
93511
+ `${_chalk.bold.hex(colors2.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors2.info ?? "#58a6ff").whiteBright(
93517
93512
  " \u2139 Info "
93518
93513
  )} ${_chalk.hex(colors2.info ?? "#58a6ff")(formatLogMessage(message))}
93519
93514
  `
93520
93515
  );
93521
93516
  };
93522
93517
  }
93523
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
93518
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
93524
93519
  return (message) => {
93525
93520
  console.debug(
93526
- `
93527
- ${_chalk.bold.hex(colors2.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors2.brand ?? "#1fb2a6").whiteBright(
93521
+ `${_chalk.bold.hex(colors2.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors2.brand ?? "#1fb2a6").whiteBright(
93528
93522
  " \u{1F6E0} Debug "
93529
93523
  )} ${_chalk.hex(colors2.brand ?? "#1fb2a6")(formatLogMessage(message))}
93530
93524
  `
@@ -93533,8 +93527,7 @@ ${_chalk.bold.hex(colors2.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors2.
93533
93527
  }
93534
93528
  return (message) => {
93535
93529
  console.log(
93536
- `
93537
- ${_chalk.bold.hex(colors2.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors2.brand ?? "#1fb2a6").whiteBright(
93530
+ `${_chalk.bold.hex(colors2.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors2.brand ?? "#1fb2a6").whiteBright(
93538
93531
  " \u2709 System "
93539
93532
  )} ${_chalk.hex(colors2.brand ?? "#1fb2a6")(formatLogMessage(message))}
93540
93533
  `
@@ -93695,8 +93688,8 @@ var init_get_config_file = __esm({
93695
93688
  name: fileName,
93696
93689
  envName: fileName?.toUpperCase(),
93697
93690
  jitiOptions: {
93698
- debug: true,
93699
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
93691
+ debug: false,
93692
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
93700
93693
  },
93701
93694
  ...options
93702
93695
  });
@@ -93707,8 +93700,8 @@ var init_get_config_file = __esm({
93707
93700
  name: fileName,
93708
93701
  envName: fileName?.toUpperCase(),
93709
93702
  jitiOptions: {
93710
- debug: true,
93711
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
93703
+ debug: false,
93704
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
93712
93705
  },
93713
93706
  configFile: fileName,
93714
93707
  ...options
@@ -93721,9 +93714,9 @@ var init_get_config_file = __esm({
93721
93714
  const result = await getConfigFileByName("storm", workspacePath);
93722
93715
  let config = result.config;
93723
93716
  const configFile = result.configFile;
93724
- if (config && Object.keys(config).length > 0) {
93725
- writeTrace(
93726
- `Found Storm configuration file "${configFile}" at "${workspacePath}"`,
93717
+ if (config && configFile && Object.keys(config).length > 0) {
93718
+ writeSystem(
93719
+ `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
93727
93720
  {
93728
93721
  logLevel: "all"
93729
93722
  }
@@ -93736,9 +93729,9 @@ var init_get_config_file = __esm({
93736
93729
  )
93737
93730
  );
93738
93731
  for (const result2 of results) {
93739
- if (result2?.config && Object.keys(result2.config).length > 0) {
93740
- writeTrace(
93741
- `Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
93732
+ if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
93733
+ writeSystem(
93734
+ `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
93742
93735
  {
93743
93736
  logLevel: "all"
93744
93737
  }
@@ -67034,7 +67034,7 @@ var init_logger = __esm({
67034
67034
  getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
67035
67035
  const _chalk = getChalk();
67036
67036
  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;
67037
- const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
67037
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
67038
67038
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
67039
67039
  return (_6) => {
67040
67040
  };
@@ -67042,10 +67042,9 @@ var init_logger = __esm({
67042
67042
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
67043
67043
  return (message) => {
67044
67044
  console.error(
67045
- `
67046
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
67045
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
67047
67046
  " \u{1F480} Fatal "
67048
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
67047
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
67049
67048
  `
67050
67049
  );
67051
67050
  };
@@ -67053,8 +67052,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
67053
67052
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
67054
67053
  return (message) => {
67055
67054
  console.error(
67056
- `
67057
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
67055
+ `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
67058
67056
  " \u2718 Error "
67059
67057
  )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
67060
67058
  `
@@ -67064,8 +67062,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
67064
67062
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
67065
67063
  return (message) => {
67066
67064
  console.warn(
67067
- `
67068
- ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
67065
+ `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
67069
67066
  " \u26A0 Warn "
67070
67067
  )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
67071
67068
  `
@@ -67075,8 +67072,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
67075
67072
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
67076
67073
  return (message) => {
67077
67074
  console.info(
67078
- `
67079
- ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
67075
+ `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
67080
67076
  " \u2713 Success "
67081
67077
  )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
67082
67078
  `
@@ -67086,19 +67082,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
67086
67082
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
67087
67083
  return (message) => {
67088
67084
  console.info(
67089
- `
67090
- ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
67085
+ `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
67091
67086
  " \u2139 Info "
67092
67087
  )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
67093
67088
  `
67094
67089
  );
67095
67090
  };
67096
67091
  }
67097
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
67092
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
67098
67093
  return (message) => {
67099
67094
  console.debug(
67100
- `
67101
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
67095
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
67102
67096
  " \u{1F6E0} Debug "
67103
67097
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
67104
67098
  `
@@ -67107,8 +67101,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
67107
67101
  }
67108
67102
  return (message) => {
67109
67103
  console.log(
67110
- `
67111
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
67104
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
67112
67105
  " \u2709 System "
67113
67106
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
67114
67107
  `
@@ -67269,8 +67262,8 @@ var init_get_config_file = __esm({
67269
67262
  name: fileName,
67270
67263
  envName: fileName?.toUpperCase(),
67271
67264
  jitiOptions: {
67272
- debug: true,
67273
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
67265
+ debug: false,
67266
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
67274
67267
  },
67275
67268
  ...options
67276
67269
  });
@@ -67281,8 +67274,8 @@ var init_get_config_file = __esm({
67281
67274
  name: fileName,
67282
67275
  envName: fileName?.toUpperCase(),
67283
67276
  jitiOptions: {
67284
- debug: true,
67285
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
67277
+ debug: false,
67278
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
67286
67279
  },
67287
67280
  configFile: fileName,
67288
67281
  ...options
@@ -67295,9 +67288,9 @@ var init_get_config_file = __esm({
67295
67288
  const result = await getConfigFileByName("storm", workspacePath);
67296
67289
  let config = result.config;
67297
67290
  const configFile = result.configFile;
67298
- if (config && Object.keys(config).length > 0) {
67299
- writeTrace(
67300
- `Found Storm configuration file "${configFile}" at "${workspacePath}"`,
67291
+ if (config && configFile && Object.keys(config).length > 0) {
67292
+ writeSystem(
67293
+ `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
67301
67294
  {
67302
67295
  logLevel: "all"
67303
67296
  }
@@ -67310,9 +67303,9 @@ var init_get_config_file = __esm({
67310
67303
  )
67311
67304
  );
67312
67305
  for (const result2 of results) {
67313
- if (result2?.config && Object.keys(result2.config).length > 0) {
67314
- writeTrace(
67315
- `Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
67306
+ if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
67307
+ writeSystem(
67308
+ `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
67316
67309
  {
67317
67310
  logLevel: "all"
67318
67311
  }