@storm-software/config-tools 1.82.0 → 1.84.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 +22 -0
- package/README.md +1 -1
- package/index.cjs +23 -16
- package/index.js +23 -16
- package/meta.cjs.json +1 -1
- package/meta.esm.json +1 -1
- package/package.json +1 -1
- package/utilities/logger.cjs +3 -2
- package/utilities/logger.js +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## 1.84.0 (2024-09-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
- **k8s-tools:** Added `container-publish` executor and `docker` plugin ([36d4d1d0](https://github.com/storm-software/storm-ops/commit/36d4d1d0))
|
|
7
|
+
|
|
8
|
+
- **storm-ops:** Upgrade the Nx workspace versions ([15cb7ee2](https://github.com/storm-software/storm-ops/commit/15cb7ee2))
|
|
9
|
+
|
|
10
|
+
## 1.83.0 (2024-09-02)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **terraform-modules:** Added the `aws/karpenter` and `cloudflare/r2-bucket`
|
|
15
|
+
modules
|
|
16
|
+
([09deea18](https://github.com/storm-software/storm-ops/commit/09deea18))
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
- **terraform-modules:** Resolved issue with applying tags to resources
|
|
21
|
+
([a0fd5e19](https://github.com/storm-software/storm-ops/commit/a0fd5e19))
|
|
22
|
+
|
|
1
23
|
## 1.82.0 (2024-09-01)
|
|
2
24
|
|
|
3
25
|
### 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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
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
|
-
|
|
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
|
-
|
|
67518
|
-
|
|
67519
|
-
|
|
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
|
|
67536
|
-
if (
|
|
67535
|
+
for (const result2 of results) {
|
|
67536
|
+
if (result2?.config && Object.keys(result2.config).length > 0) {
|
|
67537
67537
|
writeTrace(
|
|
67538
|
-
`Found additional configuration file "${
|
|
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)(
|
|
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
|
-
|
|
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
|
-
|
|
68049
|
-
|
|
68050
|
-
|
|
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
|
-
|
|
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
|
-
|
|
67475
|
-
|
|
67476
|
-
|
|
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
|
|
67493
|
-
if (
|
|
67492
|
+
for (const result2 of results) {
|
|
67493
|
+
if (result2?.config && Object.keys(result2.config).length > 0) {
|
|
67494
67494
|
writeTrace(
|
|
67495
|
-
`Found additional configuration file "${
|
|
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)(
|
|
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
|
-
|
|
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
|
-
|
|
68006
|
-
|
|
68007
|
-
|
|
68008
|
-
|
|
68011
|
+
writeTrace(
|
|
68012
|
+
`\u2699\uFE0F Using Storm configuration:
|
|
68013
|
+
${formatLogMessage(config)}`,
|
|
68014
|
+
config
|
|
68015
|
+
);
|
|
68009
68016
|
return config;
|
|
68010
68017
|
};
|
|
68011
68018
|
export {
|