@storm-software/config-tools 1.82.0 → 1.83.0

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,15 @@
1
+ ## 1.83.0 (2024-09-02)
2
+
3
+
4
+ ### Features
5
+
6
+ - **terraform-modules:** Added the `aws/karpenter` and `cloudflare/r2-bucket` modules ([09deea18](https://github.com/storm-software/storm-ops/commit/09deea18))
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ - **terraform-modules:** Resolved issue with applying tags to resources ([a0fd5e19](https://github.com/storm-software/storm-ops/commit/a0fd5e19))
12
+
1
13
  ## 1.82.0 (2024-09-01)
2
14
 
3
15
  ### 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.81.1-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.82.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.cjs CHANGED
@@ -67033,7 +67033,8 @@ var RegistryConfigSchema = z2.object({
67033
67033
  github: RegistryUrlConfigSchema,
67034
67034
  npm: RegistryUrlConfigSchema,
67035
67035
  cargo: RegistryUrlConfigSchema,
67036
- cyclone: RegistryUrlConfigSchema
67036
+ cyclone: RegistryUrlConfigSchema,
67037
+ container: RegistryUrlConfigSchema
67037
67038
  }).default({}).describe("A list of remote registry URLs used by Storm Software");
67038
67039
  var ColorConfigSchema = SingleThemeColorConfigSchema.or(
67039
67040
  MultiThemeColorConfigSchema
@@ -67301,7 +67302,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
67301
67302
 
67302
67303
  // packages/config-tools/src/utilities/logger.ts
67303
67304
  var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
67304
- let _chalk = getChalk();
67305
+ const _chalk = getChalk();
67305
67306
  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;
67306
67307
  const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
67307
67308
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
@@ -67514,10 +67515,9 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
67514
67515
  };
67515
67516
  var getConfigFile = async (filePath, additionalFileNames = []) => {
67516
67517
  const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
67517
- let { config, configFile } = await getConfigFileByName(
67518
- "storm",
67519
- workspacePath
67520
- );
67518
+ const result = await getConfigFileByName("storm", workspacePath);
67519
+ let config = result.config;
67520
+ const configFile = result.configFile;
67521
67521
  if (config && Object.keys(config).length > 0) {
67522
67522
  writeTrace(
67523
67523
  `Found Storm configuration file "${configFile}" at "${workspacePath}"`,
@@ -67532,15 +67532,15 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
67532
67532
  (fileName) => getConfigFileByName(fileName, workspacePath)
67533
67533
  )
67534
67534
  );
67535
- for (const result of results) {
67536
- if (result?.config && Object.keys(result.config).length > 0) {
67535
+ for (const result2 of results) {
67536
+ if (result2?.config && Object.keys(result2.config).length > 0) {
67537
67537
  writeTrace(
67538
- `Found additional configuration file "${result.configFile}" at "${workspacePath}"`,
67538
+ `Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
67539
67539
  {
67540
67540
  logLevel: "all"
67541
67541
  }
67542
67542
  );
67543
- config = (0, import_deepmerge.default)(result.config ?? {}, config ?? {});
67543
+ config = (0, import_deepmerge.default)(result2.config ?? {}, config ?? {});
67544
67544
  }
67545
67545
  }
67546
67546
  }
@@ -67610,7 +67610,8 @@ var getConfigEnv = () => {
67610
67610
  github: process.env[`${prefix}REGISTRY_GITHUB`],
67611
67611
  npm: process.env[`${prefix}REGISTRY_NPM`],
67612
67612
  cargo: process.env[`${prefix}REGISTRY_CARGO`],
67613
- cyclone: process.env[`${prefix}REGISTRY_CYCLONE`]
67613
+ cyclone: process.env[`${prefix}REGISTRY_CYCLONE`],
67614
+ container: process.env[`${prefix}REGISTRY_CONTAINER`]
67614
67615
  },
67615
67616
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
67616
67617
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
@@ -67861,6 +67862,11 @@ var setConfigEnv = (config) => {
67861
67862
  config.registry.cyclone
67862
67863
  );
67863
67864
  }
67865
+ if (config.registry.container) {
67866
+ process.env[`${prefix}REGISTRY_CONTAINER`] = String(
67867
+ config.registry.cyclone
67868
+ );
67869
+ }
67864
67870
  }
67865
67871
  if (config.logLevel) {
67866
67872
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
@@ -68021,7 +68027,7 @@ var loadStormConfig = async (workspaceRoot) => {
68021
68027
  if (!_workspaceRoot) {
68022
68028
  _workspaceRoot = findWorkspaceRoot();
68023
68029
  }
68024
- let configFile = await getConfigFile(
68030
+ const configFile = await getConfigFile(
68025
68031
  _workspaceRoot
68026
68032
  );
68027
68033
  if (!configFile) {
@@ -68045,10 +68051,11 @@ var loadStormConfig = async (workspaceRoot) => {
68045
68051
  _workspaceRoot
68046
68052
  );
68047
68053
  setConfigEnv(config);
68048
- writeInfo(`\u2699\uFE0F Using Storm configuration:
68049
- ${formatLogMessage(config)}`, {
68050
- logLevel: "all"
68051
- });
68054
+ writeTrace(
68055
+ `\u2699\uFE0F Using Storm configuration:
68056
+ ${formatLogMessage(config)}`,
68057
+ config
68058
+ );
68052
68059
  return config;
68053
68060
  };
68054
68061
  // Annotate the CommonJS export names for ESM import in node:
package/index.js CHANGED
@@ -66990,7 +66990,8 @@ var RegistryConfigSchema = z2.object({
66990
66990
  github: RegistryUrlConfigSchema,
66991
66991
  npm: RegistryUrlConfigSchema,
66992
66992
  cargo: RegistryUrlConfigSchema,
66993
- cyclone: RegistryUrlConfigSchema
66993
+ cyclone: RegistryUrlConfigSchema,
66994
+ container: RegistryUrlConfigSchema
66994
66995
  }).default({}).describe("A list of remote registry URLs used by Storm Software");
66995
66996
  var ColorConfigSchema = SingleThemeColorConfigSchema.or(
66996
66997
  MultiThemeColorConfigSchema
@@ -67258,7 +67259,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
67258
67259
 
67259
67260
  // packages/config-tools/src/utilities/logger.ts
67260
67261
  var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
67261
- let _chalk = getChalk();
67262
+ const _chalk = getChalk();
67262
67263
  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;
67263
67264
  const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
67264
67265
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
@@ -67471,10 +67472,9 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
67471
67472
  };
67472
67473
  var getConfigFile = async (filePath, additionalFileNames = []) => {
67473
67474
  const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
67474
- let { config, configFile } = await getConfigFileByName(
67475
- "storm",
67476
- workspacePath
67477
- );
67475
+ const result = await getConfigFileByName("storm", workspacePath);
67476
+ let config = result.config;
67477
+ const configFile = result.configFile;
67478
67478
  if (config && Object.keys(config).length > 0) {
67479
67479
  writeTrace(
67480
67480
  `Found Storm configuration file "${configFile}" at "${workspacePath}"`,
@@ -67489,15 +67489,15 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
67489
67489
  (fileName) => getConfigFileByName(fileName, workspacePath)
67490
67490
  )
67491
67491
  );
67492
- for (const result of results) {
67493
- if (result?.config && Object.keys(result.config).length > 0) {
67492
+ for (const result2 of results) {
67493
+ if (result2?.config && Object.keys(result2.config).length > 0) {
67494
67494
  writeTrace(
67495
- `Found additional configuration file "${result.configFile}" at "${workspacePath}"`,
67495
+ `Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
67496
67496
  {
67497
67497
  logLevel: "all"
67498
67498
  }
67499
67499
  );
67500
- config = (0, import_deepmerge.default)(result.config ?? {}, config ?? {});
67500
+ config = (0, import_deepmerge.default)(result2.config ?? {}, config ?? {});
67501
67501
  }
67502
67502
  }
67503
67503
  }
@@ -67567,7 +67567,8 @@ var getConfigEnv = () => {
67567
67567
  github: process.env[`${prefix}REGISTRY_GITHUB`],
67568
67568
  npm: process.env[`${prefix}REGISTRY_NPM`],
67569
67569
  cargo: process.env[`${prefix}REGISTRY_CARGO`],
67570
- cyclone: process.env[`${prefix}REGISTRY_CYCLONE`]
67570
+ cyclone: process.env[`${prefix}REGISTRY_CYCLONE`],
67571
+ container: process.env[`${prefix}REGISTRY_CONTAINER`]
67571
67572
  },
67572
67573
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
67573
67574
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
@@ -67818,6 +67819,11 @@ var setConfigEnv = (config) => {
67818
67819
  config.registry.cyclone
67819
67820
  );
67820
67821
  }
67822
+ if (config.registry.container) {
67823
+ process.env[`${prefix}REGISTRY_CONTAINER`] = String(
67824
+ config.registry.cyclone
67825
+ );
67826
+ }
67821
67827
  }
67822
67828
  if (config.logLevel) {
67823
67829
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
@@ -67978,7 +67984,7 @@ var loadStormConfig = async (workspaceRoot) => {
67978
67984
  if (!_workspaceRoot) {
67979
67985
  _workspaceRoot = findWorkspaceRoot();
67980
67986
  }
67981
- let configFile = await getConfigFile(
67987
+ const configFile = await getConfigFile(
67982
67988
  _workspaceRoot
67983
67989
  );
67984
67990
  if (!configFile) {
@@ -68002,10 +68008,11 @@ var loadStormConfig = async (workspaceRoot) => {
68002
68008
  _workspaceRoot
68003
68009
  );
68004
68010
  setConfigEnv(config);
68005
- writeInfo(`\u2699\uFE0F Using Storm configuration:
68006
- ${formatLogMessage(config)}`, {
68007
- logLevel: "all"
68008
- });
68011
+ writeTrace(
68012
+ `\u2699\uFE0F Using Storm configuration:
68013
+ ${formatLogMessage(config)}`,
68014
+ config
68015
+ );
68009
68016
  return config;
68010
68017
  };
68011
68018
  export {