@storm-software/config-tools 1.175.0 → 1.175.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/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.174.3-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.175.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 -->
@@ -19,18 +19,18 @@ function getColorConfig(config) {
19
19
  }
20
20
  return config.colors ?? DEFAULT_COLOR_CONFIG;
21
21
  }
22
- function getColor(config, key) {
22
+ function getColor(key, config) {
23
23
  const colors = getColorConfig(config);
24
24
  const result = (typeof colors["dark"] === "object" ? colors["dark"][key] : colors[key]) || DEFAULT_COLOR_CONFIG["dark"][key] || DEFAULT_COLOR_CONFIG[key];
25
25
  if (result) {
26
26
  return result;
27
27
  }
28
28
  if (key === "link") {
29
- return getColor(config, "info");
29
+ return getColor("info", config);
30
30
  } else if (key === "fatal") {
31
- return getColor(config, "danger");
31
+ return getColor("danger", config);
32
32
  }
33
- return getColor(config, "brand");
33
+ return getColor("brand", config);
34
34
  }
35
35
 
36
36
  export {
@@ -19,18 +19,18 @@ function getColorConfig(config) {
19
19
  }
20
20
  return _nullishCoalesce(config.colors, () => ( _chunkKH5SONKWcjs.DEFAULT_COLOR_CONFIG));
21
21
  }
22
- function getColor(config, key) {
22
+ function getColor(key, config) {
23
23
  const colors = getColorConfig(config);
24
24
  const result = (typeof colors["dark"] === "object" ? colors["dark"][key] : colors[key]) || _chunkKH5SONKWcjs.DEFAULT_COLOR_CONFIG["dark"][key] || _chunkKH5SONKWcjs.DEFAULT_COLOR_CONFIG[key];
25
25
  if (result) {
26
26
  return result;
27
27
  }
28
28
  if (key === "link") {
29
- return getColor(config, "info");
29
+ return getColor("info", config);
30
30
  } else if (key === "fatal") {
31
- return getColor(config, "danger");
31
+ return getColor("danger", config);
32
32
  }
33
- return getColor(config, "brand");
33
+ return getColor("brand", config);
34
34
  }
35
35
 
36
36
 
@@ -7,7 +7,7 @@ require('../chunk-BKUK5DV7.cjs');
7
7
  require('../chunk-DQT6QJRQ.cjs');
8
8
  require('../chunk-3FETUQ3K.cjs');
9
9
  require('../chunk-QLJYCKMD.cjs');
10
- require('../chunk-CLCBZGN5.cjs');
10
+ require('../chunk-UCO4HZFN.cjs');
11
11
  require('../chunk-JMI7BRL7.cjs');
12
12
  require('../chunk-7PV6L7I7.cjs');
13
13
  require('../chunk-K24I634E.cjs');
@@ -7,7 +7,7 @@ import "../chunk-JLIGJTMV.js";
7
7
  import "../chunk-6RVIJKY3.js";
8
8
  import "../chunk-AUCRLLQF.js";
9
9
  import "../chunk-HYJVQZYZ.js";
10
- import "../chunk-QYEKN4QV.js";
10
+ import "../chunk-CL6NTH3D.js";
11
11
  import "../chunk-WYQYWPLE.js";
12
12
  import "../chunk-RRKB32OH.js";
13
13
  import "../chunk-KBOEI4OA.js";
@@ -8,7 +8,7 @@ require('../chunk-BKUK5DV7.cjs');
8
8
  require('../chunk-DQT6QJRQ.cjs');
9
9
  require('../chunk-3FETUQ3K.cjs');
10
10
  require('../chunk-QLJYCKMD.cjs');
11
- require('../chunk-CLCBZGN5.cjs');
11
+ require('../chunk-UCO4HZFN.cjs');
12
12
  require('../chunk-JMI7BRL7.cjs');
13
13
  require('../chunk-7PV6L7I7.cjs');
14
14
  require('../chunk-K24I634E.cjs');
@@ -8,7 +8,7 @@ import "../chunk-JLIGJTMV.js";
8
8
  import "../chunk-6RVIJKY3.js";
9
9
  import "../chunk-AUCRLLQF.js";
10
10
  import "../chunk-HYJVQZYZ.js";
11
- import "../chunk-QYEKN4QV.js";
11
+ import "../chunk-CL6NTH3D.js";
12
12
  import "../chunk-WYQYWPLE.js";
13
13
  import "../chunk-RRKB32OH.js";
14
14
  import "../chunk-KBOEI4OA.js";
@@ -10,7 +10,7 @@ require('./chunk-BKUK5DV7.cjs');
10
10
  require('./chunk-DQT6QJRQ.cjs');
11
11
  require('./chunk-3FETUQ3K.cjs');
12
12
  require('./chunk-QLJYCKMD.cjs');
13
- require('./chunk-CLCBZGN5.cjs');
13
+ require('./chunk-UCO4HZFN.cjs');
14
14
  require('./chunk-JMI7BRL7.cjs');
15
15
  require('./chunk-7PV6L7I7.cjs');
16
16
  require('./chunk-K24I634E.cjs');
@@ -10,7 +10,7 @@ import "./chunk-JLIGJTMV.js";
10
10
  import "./chunk-6RVIJKY3.js";
11
11
  import "./chunk-AUCRLLQF.js";
12
12
  import "./chunk-HYJVQZYZ.js";
13
- import "./chunk-QYEKN4QV.js";
13
+ import "./chunk-CL6NTH3D.js";
14
14
  import "./chunk-WYQYWPLE.js";
15
15
  import "./chunk-RRKB32OH.js";
16
16
  import "./chunk-KBOEI4OA.js";
@@ -10,7 +10,7 @@ require('./chunk-BKUK5DV7.cjs');
10
10
  require('./chunk-DQT6QJRQ.cjs');
11
11
  require('./chunk-3FETUQ3K.cjs');
12
12
  require('./chunk-QLJYCKMD.cjs');
13
- require('./chunk-CLCBZGN5.cjs');
13
+ require('./chunk-UCO4HZFN.cjs');
14
14
  require('./chunk-JMI7BRL7.cjs');
15
15
  require('./chunk-7PV6L7I7.cjs');
16
16
  require('./chunk-K24I634E.cjs');
@@ -10,7 +10,7 @@ import "./chunk-JLIGJTMV.js";
10
10
  import "./chunk-6RVIJKY3.js";
11
11
  import "./chunk-AUCRLLQF.js";
12
12
  import "./chunk-HYJVQZYZ.js";
13
- import "./chunk-QYEKN4QV.js";
13
+ import "./chunk-CL6NTH3D.js";
14
14
  import "./chunk-WYQYWPLE.js";
15
15
  import "./chunk-RRKB32OH.js";
16
16
  import "./chunk-KBOEI4OA.js";
package/dist/index.cjs CHANGED
@@ -40,7 +40,7 @@ var _chunkQLJYCKMDcjs = require('./chunk-QLJYCKMD.cjs');
40
40
 
41
41
 
42
42
 
43
- var _chunkCLCBZGN5cjs = require('./chunk-CLCBZGN5.cjs');
43
+ var _chunkUCO4HZFNcjs = require('./chunk-UCO4HZFN.cjs');
44
44
 
45
45
 
46
46
 
@@ -192,4 +192,4 @@ var _chunkIRCFHYKZcjs = require('./chunk-IRCFHYKZ.cjs');
192
192
 
193
193
 
194
194
 
195
- exports.CONSOLE_ICONS = _chunkWBQ4VS7Ecjs.CONSOLE_ICONS; exports.DEFAULT_COLOR_CONFIG = _chunkKH5SONKWcjs.DEFAULT_COLOR_CONFIG; exports.LARGE_BUFFER = _chunkDQT6QJRQcjs.LARGE_BUFFER; exports.LogLevel = _chunkIRCFHYKZcjs.LogLevel; exports.LogLevelLabel = _chunkIRCFHYKZcjs.LogLevelLabel; exports.applyDefaultConfig = _chunkKH5SONKWcjs.applyDefaultConfig; exports.applyWorkspaceBaseTokens = _chunkQLJYCKMDcjs.applyWorkspaceBaseTokens; exports.applyWorkspaceProjectTokens = _chunkQLJYCKMDcjs.applyWorkspaceProjectTokens; exports.applyWorkspaceTokens = _chunkQLJYCKMDcjs.applyWorkspaceTokens; exports.basename = _chunkM3REM2FUcjs.basename; exports.correctPaths = _chunkM3REM2FUcjs.correctPaths; exports.createConfigExtension = _chunkKQSZHZV3cjs.createConfigExtension; exports.createLogger = _chunkK24I634Ecjs.createLogger; exports.createStormWorkspaceConfig = _chunkKQSZHZV3cjs.createStormWorkspaceConfig; exports.dirname = _chunkM3REM2FUcjs.dirname; exports.exitWithError = _chunkBKUK5DV7cjs.exitWithError; exports.exitWithSuccess = _chunkBKUK5DV7cjs.exitWithSuccess; exports.extname = _chunkM3REM2FUcjs.extname; exports.findFileName = _chunkJMI7BRL7cjs.findFileName; exports.findFilePath = _chunkJMI7BRL7cjs.findFilePath; exports.findWorkspaceRoot = _chunkU436743Ucjs.findWorkspaceRoot; exports.findWorkspaceRootSafe = _chunkU436743Ucjs.findWorkspaceRootSafe; exports.format = _chunkM3REM2FUcjs.format; exports.formatLogMessage = _chunkXPQXNNGZcjs.formatLogMessage; exports.formatTimestamp = _chunkBN6MEGGYcjs.formatTimestamp; exports.getChalk = _chunkCTYIEJ7Ccjs.getChalk; exports.getColor = _chunkCLCBZGN5cjs.getColor; exports.getColorConfig = _chunkCLCBZGN5cjs.getColorConfig; exports.getConfig = _chunkUEKOSCRWcjs.getConfig; exports.getConfigEnv = _chunkCIVWRQRNcjs.getConfigEnv; exports.getConfigFile = _chunkN5TOHWQYcjs.getConfigFile; exports.getConfigFileByName = _chunkN5TOHWQYcjs.getConfigFileByName; exports.getExtensionEnv = _chunkCIVWRQRNcjs.getExtensionEnv; exports.getLogFn = _chunkXPQXNNGZcjs.getLogFn; exports.getLogLevel = _chunk4PX5UVANcjs.getLogLevel; exports.getLogLevelLabel = _chunk4PX5UVANcjs.getLogLevelLabel; exports.getPackageJsonConfig = _chunkKH5SONKWcjs.getPackageJsonConfig; exports.getStopwatch = _chunkXPQXNNGZcjs.getStopwatch; exports.getWorkspaceConfig = _chunkUEKOSCRWcjs.getWorkspaceConfig; exports.handleProcess = _chunkBKUK5DV7cjs.handleProcess; exports.isAbsolute = _chunkM3REM2FUcjs.isAbsolute; exports.isUnicodeSupported = _chunkDTGT4OI3cjs.isUnicodeSupported; exports.isVerbose = _chunk4PX5UVANcjs.isVerbose; exports.joinPaths = _chunkM3REM2FUcjs.joinPaths; exports.loadStormWorkspaceConfig = _chunkKQSZHZV3cjs.loadStormWorkspaceConfig; exports.modifyCargoNestedTable = _chunk3FETUQ3Kcjs.modifyCargoNestedTable; exports.modifyCargoTable = _chunk3FETUQ3Kcjs.modifyCargoTable; exports.normalizeString = _chunkM3REM2FUcjs.normalizeString; exports.normalizeWindowsPath = _chunkM3REM2FUcjs.normalizeWindowsPath; exports.parse = _chunkM3REM2FUcjs.parse; exports.parseCargoToml = _chunk3FETUQ3Kcjs.parseCargoToml; exports.parseCargoTomlWithTree = _chunk3FETUQ3Kcjs.parseCargoTomlWithTree; exports.relative = _chunkM3REM2FUcjs.relative; exports.removeExtension = _chunkJMI7BRL7cjs.removeExtension; exports.resolve = _chunkM3REM2FUcjs.resolve; exports.run = _chunkDQT6QJRQcjs.run; exports.runAsync = _chunkDQT6QJRQcjs.runAsync; exports.sep = _chunkM3REM2FUcjs.sep; exports.setConfigEnv = _chunk6YHEX4VCcjs.setConfigEnv; exports.setExtensionEnv = _chunk6YHEX4VCcjs.setExtensionEnv; exports.stringifyCargoToml = _chunk3FETUQ3Kcjs.stringifyCargoToml; exports.toNamespacedPath = _chunkM3REM2FUcjs.toNamespacedPath; exports.tryGetWorkspaceConfig = _chunkUEKOSCRWcjs.tryGetWorkspaceConfig; exports.tryLoadStormWorkspaceConfig = _chunkKQSZHZV3cjs.tryLoadStormWorkspaceConfig; exports.writeDebug = _chunkXPQXNNGZcjs.writeDebug; exports.writeError = _chunkXPQXNNGZcjs.writeError; exports.writeFatal = _chunkXPQXNNGZcjs.writeFatal; exports.writeInfo = _chunkXPQXNNGZcjs.writeInfo; exports.writeSuccess = _chunkXPQXNNGZcjs.writeSuccess; exports.writeSystem = _chunkXPQXNNGZcjs.writeSystem; exports.writeTrace = _chunkXPQXNNGZcjs.writeTrace; exports.writeWarning = _chunkXPQXNNGZcjs.writeWarning;
195
+ exports.CONSOLE_ICONS = _chunkWBQ4VS7Ecjs.CONSOLE_ICONS; exports.DEFAULT_COLOR_CONFIG = _chunkKH5SONKWcjs.DEFAULT_COLOR_CONFIG; exports.LARGE_BUFFER = _chunkDQT6QJRQcjs.LARGE_BUFFER; exports.LogLevel = _chunkIRCFHYKZcjs.LogLevel; exports.LogLevelLabel = _chunkIRCFHYKZcjs.LogLevelLabel; exports.applyDefaultConfig = _chunkKH5SONKWcjs.applyDefaultConfig; exports.applyWorkspaceBaseTokens = _chunkQLJYCKMDcjs.applyWorkspaceBaseTokens; exports.applyWorkspaceProjectTokens = _chunkQLJYCKMDcjs.applyWorkspaceProjectTokens; exports.applyWorkspaceTokens = _chunkQLJYCKMDcjs.applyWorkspaceTokens; exports.basename = _chunkM3REM2FUcjs.basename; exports.correctPaths = _chunkM3REM2FUcjs.correctPaths; exports.createConfigExtension = _chunkKQSZHZV3cjs.createConfigExtension; exports.createLogger = _chunkK24I634Ecjs.createLogger; exports.createStormWorkspaceConfig = _chunkKQSZHZV3cjs.createStormWorkspaceConfig; exports.dirname = _chunkM3REM2FUcjs.dirname; exports.exitWithError = _chunkBKUK5DV7cjs.exitWithError; exports.exitWithSuccess = _chunkBKUK5DV7cjs.exitWithSuccess; exports.extname = _chunkM3REM2FUcjs.extname; exports.findFileName = _chunkJMI7BRL7cjs.findFileName; exports.findFilePath = _chunkJMI7BRL7cjs.findFilePath; exports.findWorkspaceRoot = _chunkU436743Ucjs.findWorkspaceRoot; exports.findWorkspaceRootSafe = _chunkU436743Ucjs.findWorkspaceRootSafe; exports.format = _chunkM3REM2FUcjs.format; exports.formatLogMessage = _chunkXPQXNNGZcjs.formatLogMessage; exports.formatTimestamp = _chunkBN6MEGGYcjs.formatTimestamp; exports.getChalk = _chunkCTYIEJ7Ccjs.getChalk; exports.getColor = _chunkUCO4HZFNcjs.getColor; exports.getColorConfig = _chunkUCO4HZFNcjs.getColorConfig; exports.getConfig = _chunkUEKOSCRWcjs.getConfig; exports.getConfigEnv = _chunkCIVWRQRNcjs.getConfigEnv; exports.getConfigFile = _chunkN5TOHWQYcjs.getConfigFile; exports.getConfigFileByName = _chunkN5TOHWQYcjs.getConfigFileByName; exports.getExtensionEnv = _chunkCIVWRQRNcjs.getExtensionEnv; exports.getLogFn = _chunkXPQXNNGZcjs.getLogFn; exports.getLogLevel = _chunk4PX5UVANcjs.getLogLevel; exports.getLogLevelLabel = _chunk4PX5UVANcjs.getLogLevelLabel; exports.getPackageJsonConfig = _chunkKH5SONKWcjs.getPackageJsonConfig; exports.getStopwatch = _chunkXPQXNNGZcjs.getStopwatch; exports.getWorkspaceConfig = _chunkUEKOSCRWcjs.getWorkspaceConfig; exports.handleProcess = _chunkBKUK5DV7cjs.handleProcess; exports.isAbsolute = _chunkM3REM2FUcjs.isAbsolute; exports.isUnicodeSupported = _chunkDTGT4OI3cjs.isUnicodeSupported; exports.isVerbose = _chunk4PX5UVANcjs.isVerbose; exports.joinPaths = _chunkM3REM2FUcjs.joinPaths; exports.loadStormWorkspaceConfig = _chunkKQSZHZV3cjs.loadStormWorkspaceConfig; exports.modifyCargoNestedTable = _chunk3FETUQ3Kcjs.modifyCargoNestedTable; exports.modifyCargoTable = _chunk3FETUQ3Kcjs.modifyCargoTable; exports.normalizeString = _chunkM3REM2FUcjs.normalizeString; exports.normalizeWindowsPath = _chunkM3REM2FUcjs.normalizeWindowsPath; exports.parse = _chunkM3REM2FUcjs.parse; exports.parseCargoToml = _chunk3FETUQ3Kcjs.parseCargoToml; exports.parseCargoTomlWithTree = _chunk3FETUQ3Kcjs.parseCargoTomlWithTree; exports.relative = _chunkM3REM2FUcjs.relative; exports.removeExtension = _chunkJMI7BRL7cjs.removeExtension; exports.resolve = _chunkM3REM2FUcjs.resolve; exports.run = _chunkDQT6QJRQcjs.run; exports.runAsync = _chunkDQT6QJRQcjs.runAsync; exports.sep = _chunkM3REM2FUcjs.sep; exports.setConfigEnv = _chunk6YHEX4VCcjs.setConfigEnv; exports.setExtensionEnv = _chunk6YHEX4VCcjs.setExtensionEnv; exports.stringifyCargoToml = _chunk3FETUQ3Kcjs.stringifyCargoToml; exports.toNamespacedPath = _chunkM3REM2FUcjs.toNamespacedPath; exports.tryGetWorkspaceConfig = _chunkUEKOSCRWcjs.tryGetWorkspaceConfig; exports.tryLoadStormWorkspaceConfig = _chunkKQSZHZV3cjs.tryLoadStormWorkspaceConfig; exports.writeDebug = _chunkXPQXNNGZcjs.writeDebug; exports.writeError = _chunkXPQXNNGZcjs.writeError; exports.writeFatal = _chunkXPQXNNGZcjs.writeFatal; exports.writeInfo = _chunkXPQXNNGZcjs.writeInfo; exports.writeSuccess = _chunkXPQXNNGZcjs.writeSuccess; exports.writeSystem = _chunkXPQXNNGZcjs.writeSystem; exports.writeTrace = _chunkXPQXNNGZcjs.writeTrace; exports.writeWarning = _chunkXPQXNNGZcjs.writeWarning;
package/dist/index.js CHANGED
@@ -40,7 +40,7 @@ import {
40
40
  import {
41
41
  getColor,
42
42
  getColorConfig
43
- } from "./chunk-QYEKN4QV.js";
43
+ } from "./chunk-CL6NTH3D.js";
44
44
  import {
45
45
  findFileName,
46
46
  findFilePath,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkCLCBZGN5cjs = require('../chunk-CLCBZGN5.cjs');
4
+ var _chunkUCO4HZFNcjs = require('../chunk-UCO4HZFN.cjs');
5
5
  require('../chunk-KH5SONKW.cjs');
6
6
  require('../chunk-U436743U.cjs');
7
7
  require('../chunk-N3UX6L7X.cjs');
@@ -9,4 +9,4 @@ require('../chunk-M3REM2FU.cjs');
9
9
 
10
10
 
11
11
 
12
- exports.getColor = _chunkCLCBZGN5cjs.getColor; exports.getColorConfig = _chunkCLCBZGN5cjs.getColorConfig;
12
+ exports.getColor = _chunkUCO4HZFNcjs.getColor; exports.getColorConfig = _chunkUCO4HZFNcjs.getColorConfig;
@@ -3,17 +3,17 @@ import { StormWorkspaceConfig, ColorConfig } from '@storm-software/config/types'
3
3
  /**
4
4
  * Get the color configuration from the Storm workspace configuration.
5
5
  *
6
- * @param config - The Storm workspace configuration object.
6
+ * @param config - An optional, partial color configuration for the Storm workspace.
7
7
  * @returns The color configuration, or the default color configuration if not defined.
8
8
  */
9
- declare function getColorConfig(config: Pick<StormWorkspaceConfig, "colors">): ColorConfig;
9
+ declare function getColorConfig(config?: Partial<Pick<StormWorkspaceConfig, "colors">>): ColorConfig;
10
10
  /**
11
11
  * Get a specific color from the Storm workspace configuration.
12
12
  *
13
- * @param config - The Storm workspace configuration object.
14
13
  * @param key - The key of the color to retrieve.
14
+ * @param config - An optional, partial color configuration for the Storm workspace.
15
15
  * @returns The color value for the specified key, or a default value if not defined.
16
16
  */
17
- declare function getColor(config: Pick<StormWorkspaceConfig, "colors">, key: "background" | "foreground" | "brand" | "help" | "success" | "info" | "warning" | "danger" | "positive" | "negative" | "alternate" | "accent" | "link" | "fatal"): string;
17
+ declare function getColor(key: "background" | "foreground" | "brand" | "help" | "success" | "info" | "warning" | "danger" | "positive" | "negative" | "alternate" | "accent" | "link" | "fatal", config?: Partial<Pick<StormWorkspaceConfig, "colors">>): string;
18
18
 
19
19
  export { getColor, getColorConfig };
@@ -3,17 +3,17 @@ import { StormWorkspaceConfig, ColorConfig } from '@storm-software/config/types'
3
3
  /**
4
4
  * Get the color configuration from the Storm workspace configuration.
5
5
  *
6
- * @param config - The Storm workspace configuration object.
6
+ * @param config - An optional, partial color configuration for the Storm workspace.
7
7
  * @returns The color configuration, or the default color configuration if not defined.
8
8
  */
9
- declare function getColorConfig(config: Pick<StormWorkspaceConfig, "colors">): ColorConfig;
9
+ declare function getColorConfig(config?: Partial<Pick<StormWorkspaceConfig, "colors">>): ColorConfig;
10
10
  /**
11
11
  * Get a specific color from the Storm workspace configuration.
12
12
  *
13
- * @param config - The Storm workspace configuration object.
14
13
  * @param key - The key of the color to retrieve.
14
+ * @param config - An optional, partial color configuration for the Storm workspace.
15
15
  * @returns The color value for the specified key, or a default value if not defined.
16
16
  */
17
- declare function getColor(config: Pick<StormWorkspaceConfig, "colors">, key: "background" | "foreground" | "brand" | "help" | "success" | "info" | "warning" | "danger" | "positive" | "negative" | "alternate" | "accent" | "link" | "fatal"): string;
17
+ declare function getColor(key: "background" | "foreground" | "brand" | "help" | "success" | "info" | "warning" | "danger" | "positive" | "negative" | "alternate" | "accent" | "link" | "fatal", config?: Partial<Pick<StormWorkspaceConfig, "colors">>): string;
18
18
 
19
19
  export { getColor, getColorConfig };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getColor,
3
3
  getColorConfig
4
- } from "../chunk-QYEKN4QV.js";
4
+ } from "../chunk-CL6NTH3D.js";
5
5
  import "../chunk-SHD7ZUSQ.js";
6
6
  import "../chunk-PTHGOJU6.js";
7
7
  import "../chunk-6JBGUE4A.js";
@@ -24,7 +24,7 @@ var _chunkQLJYCKMDcjs = require('../chunk-QLJYCKMD.cjs');
24
24
 
25
25
 
26
26
 
27
- var _chunkCLCBZGN5cjs = require('../chunk-CLCBZGN5.cjs');
27
+ var _chunkUCO4HZFNcjs = require('../chunk-UCO4HZFN.cjs');
28
28
 
29
29
 
30
30
 
@@ -104,4 +104,4 @@ require('../chunk-IRCFHYKZ.cjs');
104
104
 
105
105
 
106
106
 
107
- exports.DEFAULT_COLOR_CONFIG = _chunkKH5SONKWcjs.DEFAULT_COLOR_CONFIG; exports.LARGE_BUFFER = _chunkDQT6QJRQcjs.LARGE_BUFFER; exports.applyDefaultConfig = _chunkKH5SONKWcjs.applyDefaultConfig; exports.applyWorkspaceBaseTokens = _chunkQLJYCKMDcjs.applyWorkspaceBaseTokens; exports.applyWorkspaceProjectTokens = _chunkQLJYCKMDcjs.applyWorkspaceProjectTokens; exports.applyWorkspaceTokens = _chunkQLJYCKMDcjs.applyWorkspaceTokens; exports.basename = _chunkM3REM2FUcjs.basename; exports.correctPaths = _chunkM3REM2FUcjs.correctPaths; exports.dirname = _chunkM3REM2FUcjs.dirname; exports.exitWithError = _chunkBKUK5DV7cjs.exitWithError; exports.exitWithSuccess = _chunkBKUK5DV7cjs.exitWithSuccess; exports.extname = _chunkM3REM2FUcjs.extname; exports.findFileName = _chunkJMI7BRL7cjs.findFileName; exports.findFilePath = _chunkJMI7BRL7cjs.findFilePath; exports.findWorkspaceRoot = _chunkU436743Ucjs.findWorkspaceRoot; exports.findWorkspaceRootSafe = _chunkU436743Ucjs.findWorkspaceRootSafe; exports.format = _chunkM3REM2FUcjs.format; exports.getColor = _chunkCLCBZGN5cjs.getColor; exports.getColorConfig = _chunkCLCBZGN5cjs.getColorConfig; exports.getPackageJsonConfig = _chunkKH5SONKWcjs.getPackageJsonConfig; exports.handleProcess = _chunkBKUK5DV7cjs.handleProcess; exports.isAbsolute = _chunkM3REM2FUcjs.isAbsolute; exports.joinPaths = _chunkM3REM2FUcjs.joinPaths; exports.modifyCargoNestedTable = _chunk3FETUQ3Kcjs.modifyCargoNestedTable; exports.modifyCargoTable = _chunk3FETUQ3Kcjs.modifyCargoTable; exports.normalizeString = _chunkM3REM2FUcjs.normalizeString; exports.normalizeWindowsPath = _chunkM3REM2FUcjs.normalizeWindowsPath; exports.parse = _chunkM3REM2FUcjs.parse; exports.parseCargoToml = _chunk3FETUQ3Kcjs.parseCargoToml; exports.parseCargoTomlWithTree = _chunk3FETUQ3Kcjs.parseCargoTomlWithTree; exports.relative = _chunkM3REM2FUcjs.relative; exports.removeExtension = _chunkJMI7BRL7cjs.removeExtension; exports.resolve = _chunkM3REM2FUcjs.resolve; exports.run = _chunkDQT6QJRQcjs.run; exports.runAsync = _chunkDQT6QJRQcjs.runAsync; exports.sep = _chunkM3REM2FUcjs.sep; exports.stringifyCargoToml = _chunk3FETUQ3Kcjs.stringifyCargoToml; exports.toNamespacedPath = _chunkM3REM2FUcjs.toNamespacedPath;
107
+ exports.DEFAULT_COLOR_CONFIG = _chunkKH5SONKWcjs.DEFAULT_COLOR_CONFIG; exports.LARGE_BUFFER = _chunkDQT6QJRQcjs.LARGE_BUFFER; exports.applyDefaultConfig = _chunkKH5SONKWcjs.applyDefaultConfig; exports.applyWorkspaceBaseTokens = _chunkQLJYCKMDcjs.applyWorkspaceBaseTokens; exports.applyWorkspaceProjectTokens = _chunkQLJYCKMDcjs.applyWorkspaceProjectTokens; exports.applyWorkspaceTokens = _chunkQLJYCKMDcjs.applyWorkspaceTokens; exports.basename = _chunkM3REM2FUcjs.basename; exports.correctPaths = _chunkM3REM2FUcjs.correctPaths; exports.dirname = _chunkM3REM2FUcjs.dirname; exports.exitWithError = _chunkBKUK5DV7cjs.exitWithError; exports.exitWithSuccess = _chunkBKUK5DV7cjs.exitWithSuccess; exports.extname = _chunkM3REM2FUcjs.extname; exports.findFileName = _chunkJMI7BRL7cjs.findFileName; exports.findFilePath = _chunkJMI7BRL7cjs.findFilePath; exports.findWorkspaceRoot = _chunkU436743Ucjs.findWorkspaceRoot; exports.findWorkspaceRootSafe = _chunkU436743Ucjs.findWorkspaceRootSafe; exports.format = _chunkM3REM2FUcjs.format; exports.getColor = _chunkUCO4HZFNcjs.getColor; exports.getColorConfig = _chunkUCO4HZFNcjs.getColorConfig; exports.getPackageJsonConfig = _chunkKH5SONKWcjs.getPackageJsonConfig; exports.handleProcess = _chunkBKUK5DV7cjs.handleProcess; exports.isAbsolute = _chunkM3REM2FUcjs.isAbsolute; exports.joinPaths = _chunkM3REM2FUcjs.joinPaths; exports.modifyCargoNestedTable = _chunk3FETUQ3Kcjs.modifyCargoNestedTable; exports.modifyCargoTable = _chunk3FETUQ3Kcjs.modifyCargoTable; exports.normalizeString = _chunkM3REM2FUcjs.normalizeString; exports.normalizeWindowsPath = _chunkM3REM2FUcjs.normalizeWindowsPath; exports.parse = _chunkM3REM2FUcjs.parse; exports.parseCargoToml = _chunk3FETUQ3Kcjs.parseCargoToml; exports.parseCargoTomlWithTree = _chunk3FETUQ3Kcjs.parseCargoTomlWithTree; exports.relative = _chunkM3REM2FUcjs.relative; exports.removeExtension = _chunkJMI7BRL7cjs.removeExtension; exports.resolve = _chunkM3REM2FUcjs.resolve; exports.run = _chunkDQT6QJRQcjs.run; exports.runAsync = _chunkDQT6QJRQcjs.runAsync; exports.sep = _chunkM3REM2FUcjs.sep; exports.stringifyCargoToml = _chunk3FETUQ3Kcjs.stringifyCargoToml; exports.toNamespacedPath = _chunkM3REM2FUcjs.toNamespacedPath;
@@ -24,7 +24,7 @@ import {
24
24
  import {
25
25
  getColor,
26
26
  getColorConfig
27
- } from "../chunk-QYEKN4QV.js";
27
+ } from "../chunk-CL6NTH3D.js";
28
28
  import {
29
29
  findFileName,
30
30
  findFilePath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/config-tools",
3
- "version": "1.175.0",
3
+ "version": "1.175.1",
4
4
  "type": "module",
5
5
  "description": "A package containing various utilities to support custom workspace configurations and environment management for Storm Software projects, including configuration file handling, environment variable management, and logging utilities.",
6
6
  "repository": {
@@ -211,7 +211,7 @@
211
211
  ],
212
212
  "dependencies": {
213
213
  "@ltd/j-toml": "1.38.0",
214
- "@storm-software/config": "^1.124.4",
214
+ "@storm-software/config": "^1.124.5",
215
215
  "c12": "^2.0.0-beta.2",
216
216
  "chalk": "^4.1.2",
217
217
  "commander": "^12.1.0",
@@ -224,5 +224,5 @@
224
224
  "devDependencies": { "@types/node": "^22.10.2", "tsup": "8.4.0" },
225
225
  "publishConfig": { "access": "public" },
226
226
  "sideEffects": false,
227
- "gitHead": "e9a128c5dc2c122d72a5611cf5cec6e227a03931"
227
+ "gitHead": "0a4f6bb876fd1fb34e8cecc243e38eb88deee463"
228
228
  }
@@ -1,40 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkXTF5ACDNcjs = require('./chunk-XTF5ACDN.cjs');
5
-
6
-
7
- var _chunkU436743Ucjs = require('./chunk-U436743U.cjs');
8
-
9
- // src/get-config.ts
10
- var getConfig = (workspaceRoot, skipLogs = false) => {
11
- return _chunkXTF5ACDNcjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
12
- };
13
- var getWorkspaceConfig = (skipLogs = true, options = {}) => {
14
- let workspaceRoot = options.workspaceRoot;
15
- if (!workspaceRoot) {
16
- workspaceRoot = _chunkU436743Ucjs.findWorkspaceRoot.call(void 0, options.cwd);
17
- }
18
- return getConfig(workspaceRoot, skipLogs);
19
- };
20
- var tryGetWorkspaceConfig = async (skipLogs = true, options = {}) => {
21
- try {
22
- let workspaceRoot = options.workspaceRoot;
23
- if (!workspaceRoot) {
24
- workspaceRoot = _chunkU436743Ucjs.findWorkspaceRoot.call(void 0, options.cwd);
25
- }
26
- return _chunkXTF5ACDNcjs.tryLoadStormWorkspaceConfig.call(void 0,
27
- workspaceRoot,
28
- skipLogs,
29
- options.useDefault
30
- );
31
- } catch (e) {
32
- return void 0;
33
- }
34
- };
35
-
36
-
37
-
38
-
39
-
40
- exports.getConfig = getConfig; exports.getWorkspaceConfig = getWorkspaceConfig; exports.tryGetWorkspaceConfig = tryGetWorkspaceConfig;
@@ -1,138 +0,0 @@
1
- import {
2
- getConfigEnv,
3
- getExtensionEnv
4
- } from "./chunk-BWCGUZR7.js";
5
- import {
6
- setConfigEnv
7
- } from "./chunk-NNI6CYBY.js";
8
- import {
9
- getConfigFile
10
- } from "./chunk-73L7WNYI.js";
11
- import {
12
- formatLogMessage,
13
- writeTrace,
14
- writeWarning
15
- } from "./chunk-SMVSQFZ3.js";
16
- import {
17
- applyDefaultConfig,
18
- getPackageJsonConfig
19
- } from "./chunk-SHD7ZUSQ.js";
20
- import {
21
- findWorkspaceRoot
22
- } from "./chunk-PTHGOJU6.js";
23
-
24
- // src/create-storm-config.ts
25
- import { stormWorkspaceConfigSchema } from "@storm-software/config/schema";
26
- import defu from "defu";
27
- var _extension_cache = /* @__PURE__ */ new WeakMap();
28
- var _static_cache = void 0;
29
- var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
30
- let result;
31
- if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
32
- let _workspaceRoot = workspaceRoot;
33
- if (!_workspaceRoot) {
34
- _workspaceRoot = findWorkspaceRoot();
35
- }
36
- const configEnv = getConfigEnv();
37
- const configFile = await getConfigFile(_workspaceRoot);
38
- if (!configFile) {
39
- if (!skipLogs) {
40
- writeWarning(
41
- "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
42
- { logLevel: "all" }
43
- );
44
- }
45
- if (useDefault === false) {
46
- return void 0;
47
- }
48
- }
49
- const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
50
- result = applyDefaultConfig(
51
- await stormWorkspaceConfigSchema.parseAsync(
52
- defu(configEnv, configFile, defaultConfig)
53
- )
54
- );
55
- result.workspaceRoot ??= _workspaceRoot;
56
- } else {
57
- result = _static_cache.data;
58
- }
59
- if (schema && extensionName) {
60
- result.extensions = {
61
- ...result.extensions,
62
- [extensionName]: createConfigExtension(extensionName, schema)
63
- };
64
- }
65
- _static_cache = {
66
- timestamp: Date.now(),
67
- data: result
68
- };
69
- return result;
70
- };
71
- var createConfigExtension = (extensionName, schema) => {
72
- const extension_cache_key = { extensionName };
73
- if (_extension_cache.has(extension_cache_key)) {
74
- return _extension_cache.get(extension_cache_key);
75
- }
76
- let extension = getExtensionEnv(extensionName);
77
- if (schema) {
78
- extension = schema.parse(extension);
79
- }
80
- _extension_cache.set(extension_cache_key, extension);
81
- return extension;
82
- };
83
- var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
84
- const config = await createStormWorkspaceConfig(
85
- void 0,
86
- void 0,
87
- workspaceRoot,
88
- skipLogs,
89
- true
90
- );
91
- setConfigEnv(config);
92
- if (!skipLogs && !config.skipConfigLogging) {
93
- writeTrace(
94
- `\u2699\uFE0F Using Storm Workspace configuration:
95
- ${formatLogMessage(config)}`,
96
- config
97
- );
98
- }
99
- return config;
100
- };
101
- var tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDefault = false) => {
102
- try {
103
- const config = await createStormWorkspaceConfig(
104
- void 0,
105
- void 0,
106
- workspaceRoot,
107
- skipLogs,
108
- useDefault
109
- );
110
- if (!config) {
111
- return void 0;
112
- }
113
- setConfigEnv(config);
114
- if (!skipLogs && !config.skipConfigLogging) {
115
- writeTrace(
116
- `\u2699\uFE0F Using Storm Workspace configuration:
117
- ${formatLogMessage(config)}`,
118
- config
119
- );
120
- }
121
- return config;
122
- } catch (error) {
123
- if (!skipLogs) {
124
- writeWarning(
125
- `\u26A0\uFE0F Failed to load Storm Workspace configuration: ${error}`,
126
- { logLevel: "all" }
127
- );
128
- }
129
- return void 0;
130
- }
131
- };
132
-
133
- export {
134
- createStormWorkspaceConfig,
135
- createConfigExtension,
136
- loadStormWorkspaceConfig,
137
- tryLoadStormWorkspaceConfig
138
- };
@@ -1,40 +0,0 @@
1
- import {
2
- loadStormWorkspaceConfig,
3
- tryLoadStormWorkspaceConfig
4
- } from "./chunk-BVJJK74Q.js";
5
- import {
6
- findWorkspaceRoot
7
- } from "./chunk-PTHGOJU6.js";
8
-
9
- // src/get-config.ts
10
- var getConfig = (workspaceRoot, skipLogs = false) => {
11
- return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
12
- };
13
- var getWorkspaceConfig = (skipLogs = true, options = {}) => {
14
- let workspaceRoot = options.workspaceRoot;
15
- if (!workspaceRoot) {
16
- workspaceRoot = findWorkspaceRoot(options.cwd);
17
- }
18
- return getConfig(workspaceRoot, skipLogs);
19
- };
20
- var tryGetWorkspaceConfig = async (skipLogs = true, options = {}) => {
21
- try {
22
- let workspaceRoot = options.workspaceRoot;
23
- if (!workspaceRoot) {
24
- workspaceRoot = findWorkspaceRoot(options.cwd);
25
- }
26
- return tryLoadStormWorkspaceConfig(
27
- workspaceRoot,
28
- skipLogs,
29
- options.useDefault
30
- );
31
- } catch {
32
- return void 0;
33
- }
34
- };
35
-
36
- export {
37
- getConfig,
38
- getWorkspaceConfig,
39
- tryGetWorkspaceConfig
40
- };
@@ -1,138 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
-
3
-
4
- var _chunkCIVWRQRNcjs = require('./chunk-CIVWRQRN.cjs');
5
-
6
-
7
- var _chunk6YHEX4VCcjs = require('./chunk-6YHEX4VC.cjs');
8
-
9
-
10
- var _chunkN5TOHWQYcjs = require('./chunk-N5TOHWQY.cjs');
11
-
12
-
13
-
14
-
15
- var _chunkXPQXNNGZcjs = require('./chunk-XPQXNNGZ.cjs');
16
-
17
-
18
-
19
- var _chunkKH5SONKWcjs = require('./chunk-KH5SONKW.cjs');
20
-
21
-
22
- var _chunkU436743Ucjs = require('./chunk-U436743U.cjs');
23
-
24
- // src/create-storm-config.ts
25
- var _schema = require('@storm-software/config/schema');
26
- var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
27
- var _extension_cache = /* @__PURE__ */ new WeakMap();
28
- var _static_cache = void 0;
29
- var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
30
- let result;
31
- if (!_optionalChain([_static_cache, 'optionalAccess', _ => _.data]) || !_optionalChain([_static_cache, 'optionalAccess', _2 => _2.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
32
- let _workspaceRoot = workspaceRoot;
33
- if (!_workspaceRoot) {
34
- _workspaceRoot = _chunkU436743Ucjs.findWorkspaceRoot.call(void 0, );
35
- }
36
- const configEnv = _chunkCIVWRQRNcjs.getConfigEnv.call(void 0, );
37
- const configFile = await _chunkN5TOHWQYcjs.getConfigFile.call(void 0, _workspaceRoot);
38
- if (!configFile) {
39
- if (!skipLogs) {
40
- _chunkXPQXNNGZcjs.writeWarning.call(void 0,
41
- "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
42
- { logLevel: "all" }
43
- );
44
- }
45
- if (useDefault === false) {
46
- return void 0;
47
- }
48
- }
49
- const defaultConfig = await _chunkKH5SONKWcjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
50
- result = _chunkKH5SONKWcjs.applyDefaultConfig.call(void 0,
51
- await _schema.stormWorkspaceConfigSchema.parseAsync(
52
- _defu2.default.call(void 0, configEnv, configFile, defaultConfig)
53
- )
54
- );
55
- result.workspaceRoot ??= _workspaceRoot;
56
- } else {
57
- result = _static_cache.data;
58
- }
59
- if (schema && extensionName) {
60
- result.extensions = {
61
- ...result.extensions,
62
- [extensionName]: createConfigExtension(extensionName, schema)
63
- };
64
- }
65
- _static_cache = {
66
- timestamp: Date.now(),
67
- data: result
68
- };
69
- return result;
70
- };
71
- var createConfigExtension = (extensionName, schema) => {
72
- const extension_cache_key = { extensionName };
73
- if (_extension_cache.has(extension_cache_key)) {
74
- return _extension_cache.get(extension_cache_key);
75
- }
76
- let extension = _chunkCIVWRQRNcjs.getExtensionEnv.call(void 0, extensionName);
77
- if (schema) {
78
- extension = schema.parse(extension);
79
- }
80
- _extension_cache.set(extension_cache_key, extension);
81
- return extension;
82
- };
83
- var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
84
- const config = await createStormWorkspaceConfig(
85
- void 0,
86
- void 0,
87
- workspaceRoot,
88
- skipLogs,
89
- true
90
- );
91
- _chunk6YHEX4VCcjs.setConfigEnv.call(void 0, config);
92
- if (!skipLogs && !config.skipConfigLogging) {
93
- _chunkXPQXNNGZcjs.writeTrace.call(void 0,
94
- `\u2699\uFE0F Using Storm Workspace configuration:
95
- ${_chunkXPQXNNGZcjs.formatLogMessage.call(void 0, config)}`,
96
- config
97
- );
98
- }
99
- return config;
100
- };
101
- var tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDefault = false) => {
102
- try {
103
- const config = await createStormWorkspaceConfig(
104
- void 0,
105
- void 0,
106
- workspaceRoot,
107
- skipLogs,
108
- useDefault
109
- );
110
- if (!config) {
111
- return void 0;
112
- }
113
- _chunk6YHEX4VCcjs.setConfigEnv.call(void 0, config);
114
- if (!skipLogs && !config.skipConfigLogging) {
115
- _chunkXPQXNNGZcjs.writeTrace.call(void 0,
116
- `\u2699\uFE0F Using Storm Workspace configuration:
117
- ${_chunkXPQXNNGZcjs.formatLogMessage.call(void 0, config)}`,
118
- config
119
- );
120
- }
121
- return config;
122
- } catch (error) {
123
- if (!skipLogs) {
124
- _chunkXPQXNNGZcjs.writeWarning.call(void 0,
125
- `\u26A0\uFE0F Failed to load Storm Workspace configuration: ${error}`,
126
- { logLevel: "all" }
127
- );
128
- }
129
- return void 0;
130
- }
131
- };
132
-
133
-
134
-
135
-
136
-
137
-
138
- exports.createStormWorkspaceConfig = createStormWorkspaceConfig; exports.createConfigExtension = createConfigExtension; exports.loadStormWorkspaceConfig = loadStormWorkspaceConfig; exports.tryLoadStormWorkspaceConfig = tryLoadStormWorkspaceConfig;