@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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 1.198.1 (2024-11-10)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **config-tools:** Ensure trace logging is not marked as system logging
6
+ ([e8dca171](https://github.com/storm-software/storm-ops/commit/e8dca171))
7
+
8
+ ## 1.198.0 (2024-11-08)
9
+
10
+ ### Features
11
+
12
+ - **build-tools:** Added back cjs build and local package.json dependencies
13
+ ([d86d3c2a](https://github.com/storm-software/storm-ops/commit/d86d3c2a))
14
+
1
15
  ## 1.197.0 (2024-11-07)
2
16
 
3
17
  ### Features
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-1.196.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.198.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/index.js CHANGED
@@ -66546,7 +66546,7 @@ var init_logger = __esm({
66546
66546
  getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
66547
66547
  const _chalk = getChalk();
66548
66548
  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;
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(colors2.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors2.fatal ?? "#7d1a1a").whiteBright(
66557
+ `${_chalk.bold.hex(colors2.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors2.fatal ?? "#7d1a1a").whiteBright(
66559
66558
  " \u{1F480} Fatal "
66560
- )} ${_chalk.hex(colors2.danger ?? "#f85149")(formatLogMessage(message))}
66559
+ )} ${_chalk.hex(colors2.fatal ?? "#7d1a1a")(formatLogMessage(message))}
66561
66560
  `
66562
66561
  );
66563
66562
  };
@@ -66565,8 +66564,7 @@ ${_chalk.bold.hex(colors2.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors2
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(colors2.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors2.danger ?? "#f85149").whiteBright(
66567
+ `${_chalk.bold.hex(colors2.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors2.danger ?? "#f85149").whiteBright(
66570
66568
  " \u2718 Error "
66571
66569
  )} ${_chalk.hex(colors2.danger ?? "#f85149")(formatLogMessage(message))}
66572
66570
  `
@@ -66576,8 +66574,7 @@ ${_chalk.bold.hex(colors2.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors2
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(colors2.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors2.warning ?? "#e3b341").whiteBright(
66577
+ `${_chalk.bold.hex(colors2.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors2.warning ?? "#e3b341").whiteBright(
66581
66578
  " \u26A0 Warn "
66582
66579
  )} ${_chalk.hex(colors2.warning ?? "#e3b341")(formatLogMessage(message))}
66583
66580
  `
@@ -66587,8 +66584,7 @@ ${_chalk.bold.hex(colors2.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(colors2.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors2.success ?? "#56d364").whiteBright(
66587
+ `${_chalk.bold.hex(colors2.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors2.success ?? "#56d364").whiteBright(
66592
66588
  " \u2713 Success "
66593
66589
  )} ${_chalk.hex(colors2.success ?? "#56d364")(formatLogMessage(message))}
66594
66590
  `
@@ -66598,19 +66594,17 @@ ${_chalk.bold.hex(colors2.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(colors2.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors2.info ?? "#58a6ff").whiteBright(
66597
+ `${_chalk.bold.hex(colors2.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors2.info ?? "#58a6ff").whiteBright(
66603
66598
  " \u2139 Info "
66604
66599
  )} ${_chalk.hex(colors2.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(colors2.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors2.brand ?? "#1fb2a6").whiteBright(
66607
+ `${_chalk.bold.hex(colors2.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors2.brand ?? "#1fb2a6").whiteBright(
66614
66608
  " \u{1F6E0} Debug "
66615
66609
  )} ${_chalk.hex(colors2.brand ?? "#1fb2a6")(formatLogMessage(message))}
66616
66610
  `
@@ -66619,8 +66613,7 @@ ${_chalk.bold.hex(colors2.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors2.
66619
66613
  }
66620
66614
  return (message) => {
66621
66615
  console.log(
66622
- `
66623
- ${_chalk.bold.hex(colors2.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors2.brand ?? "#1fb2a6").whiteBright(
66616
+ `${_chalk.bold.hex(colors2.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors2.brand ?? "#1fb2a6").whiteBright(
66624
66617
  " \u2709 System "
66625
66618
  )} ${_chalk.hex(colors2.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
  }