@storm-software/config-tools 1.67.0 → 1.68.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 +14 -0
- package/README.md +1 -1
- package/index.cjs +24 -16
- package/index.js +24 -16
- package/meta.cjs.json +1 -1
- package/meta.esm.json +1 -1
- package/package.json +1 -1
- package/utilities/logger.cjs +0 -4
- package/utilities/logger.js +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 1.68.0 (2024-08-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
- **terraform-tools:** Added terraform options to the plugin's executor schemas ([fb555cb4](https://github.com/storm-software/storm-ops/commit/fb555cb4))
|
|
7
|
+
|
|
8
|
+
## 1.67.1 (2024-07-31)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- **build-tools:** Remove unused plugin from unbuild ([ad8a5991](https://github.com/storm-software/storm-ops/commit/ad8a5991))
|
|
14
|
+
|
|
1
15
|
## 1.67.0 (2024-07-31)
|
|
2
16
|
|
|
3
17
|
|
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
|
@@ -66945,9 +66945,6 @@ var StormConfigSchema = z2.object({
|
|
|
66945
66945
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66946
66946
|
),
|
|
66947
66947
|
env: z2.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
|
|
66948
|
-
ci: z2.boolean().default(true).describe(
|
|
66949
|
-
"An indicator specifying if the current environment is a CI environment"
|
|
66950
|
-
),
|
|
66951
66948
|
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
66952
66949
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
66953
66950
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
@@ -67047,7 +67044,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
67047
67044
|
env: "production",
|
|
67048
67045
|
branch: "main",
|
|
67049
67046
|
organization: "storm-software",
|
|
67050
|
-
ci: true,
|
|
67051
67047
|
configFile: null,
|
|
67052
67048
|
runtimeVersion: "1.0.0",
|
|
67053
67049
|
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
@@ -67371,11 +67367,13 @@ Stacktrace: ${error.stack}`,
|
|
|
67371
67367
|
// packages/config-tools/src/utilities/run.ts
|
|
67372
67368
|
var import_node_child_process5 = require("node:child_process");
|
|
67373
67369
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
67374
|
-
var run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit") => {
|
|
67370
|
+
var run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
|
|
67375
67371
|
return (0, import_node_child_process5.execSync)(command, {
|
|
67376
67372
|
cwd: cwd2,
|
|
67377
67373
|
env: {
|
|
67378
67374
|
...process.env,
|
|
67375
|
+
...env,
|
|
67376
|
+
CLICOLOR: "true",
|
|
67379
67377
|
FORCE_COLOR: "true"
|
|
67380
67378
|
},
|
|
67381
67379
|
stdio,
|
|
@@ -67569,9 +67567,14 @@ var getConfigEnv = () => {
|
|
|
67569
67567
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67570
67568
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67571
67569
|
env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67572
|
-
ci:
|
|
67573
|
-
|
|
67574
|
-
|
|
67570
|
+
// ci:
|
|
67571
|
+
// process.env[`${prefix}CI`] !== undefined
|
|
67572
|
+
// ? Boolean(
|
|
67573
|
+
// process.env[`${prefix}CI`] ??
|
|
67574
|
+
// process.env.CI ??
|
|
67575
|
+
// process.env.CONTINUOUS_INTEGRATION
|
|
67576
|
+
// )
|
|
67577
|
+
// : undefined,
|
|
67575
67578
|
repository: process.env[`${prefix}REPOSITORY`],
|
|
67576
67579
|
branch: process.env[`${prefix}BRANCH`],
|
|
67577
67580
|
preid: process.env[`${prefix}PRE_ID`],
|
|
@@ -67764,11 +67767,6 @@ var setConfigEnv = (config) => {
|
|
|
67764
67767
|
process.env.NODE_ENV = config.env;
|
|
67765
67768
|
process.env.ENVIRONMENT = config.env;
|
|
67766
67769
|
}
|
|
67767
|
-
if (config.ci) {
|
|
67768
|
-
process.env[`${prefix}CI`] = String(config.ci);
|
|
67769
|
-
process.env.CI = String(config.ci);
|
|
67770
|
-
process.env.CONTINUOUS_INTEGRATION = String(config.ci);
|
|
67771
|
-
}
|
|
67772
67770
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67773
67771
|
for (const key of Object.keys(config.colors)) {
|
|
67774
67772
|
setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
@@ -67925,7 +67923,7 @@ var createConfig = (workspaceRoot) => {
|
|
|
67925
67923
|
};
|
|
67926
67924
|
var createStormConfig = (extensionName, schema, workspaceRoot) => {
|
|
67927
67925
|
let result;
|
|
67928
|
-
if (!_static_cache) {
|
|
67926
|
+
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 3e4) {
|
|
67929
67927
|
const config = getConfigEnv();
|
|
67930
67928
|
const defaultConfig = getDefaultConfig(config, workspaceRoot);
|
|
67931
67929
|
result = StormConfigSchema.parse({
|
|
@@ -67938,7 +67936,7 @@ var createStormConfig = (extensionName, schema, workspaceRoot) => {
|
|
|
67938
67936
|
});
|
|
67939
67937
|
result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
|
|
67940
67938
|
} else {
|
|
67941
|
-
result = _static_cache;
|
|
67939
|
+
result = _static_cache.data;
|
|
67942
67940
|
}
|
|
67943
67941
|
if (schema && extensionName) {
|
|
67944
67942
|
result.extensions = {
|
|
@@ -67946,7 +67944,10 @@ var createStormConfig = (extensionName, schema, workspaceRoot) => {
|
|
|
67946
67944
|
[extensionName]: createConfigExtension(extensionName, schema)
|
|
67947
67945
|
};
|
|
67948
67946
|
}
|
|
67949
|
-
_static_cache =
|
|
67947
|
+
_static_cache = {
|
|
67948
|
+
timestamp: Date.now(),
|
|
67949
|
+
data: result
|
|
67950
|
+
};
|
|
67950
67951
|
return result;
|
|
67951
67952
|
};
|
|
67952
67953
|
var createConfigExtension = (extensionName, schema) => {
|
|
@@ -67963,6 +67964,13 @@ var createConfigExtension = (extensionName, schema) => {
|
|
|
67963
67964
|
};
|
|
67964
67965
|
var loadStormConfig = async (workspaceRoot) => {
|
|
67965
67966
|
let config = {};
|
|
67967
|
+
if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
|
|
67968
|
+
writeInfo(
|
|
67969
|
+
`Configuration cache hit - ${_static_cache.timestamp}`,
|
|
67970
|
+
_static_cache.data
|
|
67971
|
+
);
|
|
67972
|
+
return _static_cache.data;
|
|
67973
|
+
}
|
|
67966
67974
|
let _workspaceRoot = workspaceRoot;
|
|
67967
67975
|
if (!_workspaceRoot) {
|
|
67968
67976
|
_workspaceRoot = findWorkspaceRoot();
|
package/index.js
CHANGED
|
@@ -66902,9 +66902,6 @@ var StormConfigSchema = z2.object({
|
|
|
66902
66902
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66903
66903
|
),
|
|
66904
66904
|
env: z2.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
|
|
66905
|
-
ci: z2.boolean().default(true).describe(
|
|
66906
|
-
"An indicator specifying if the current environment is a CI environment"
|
|
66907
|
-
),
|
|
66908
66905
|
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
66909
66906
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
66910
66907
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
@@ -67004,7 +67001,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
67004
67001
|
env: "production",
|
|
67005
67002
|
branch: "main",
|
|
67006
67003
|
organization: "storm-software",
|
|
67007
|
-
ci: true,
|
|
67008
67004
|
configFile: null,
|
|
67009
67005
|
runtimeVersion: "1.0.0",
|
|
67010
67006
|
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
@@ -67328,11 +67324,13 @@ Stacktrace: ${error.stack}`,
|
|
|
67328
67324
|
// packages/config-tools/src/utilities/run.ts
|
|
67329
67325
|
import { execSync } from "node:child_process";
|
|
67330
67326
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
67331
|
-
var run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit") => {
|
|
67327
|
+
var run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
|
|
67332
67328
|
return execSync(command, {
|
|
67333
67329
|
cwd: cwd2,
|
|
67334
67330
|
env: {
|
|
67335
67331
|
...process.env,
|
|
67332
|
+
...env,
|
|
67333
|
+
CLICOLOR: "true",
|
|
67336
67334
|
FORCE_COLOR: "true"
|
|
67337
67335
|
},
|
|
67338
67336
|
stdio,
|
|
@@ -67526,9 +67524,14 @@ var getConfigEnv = () => {
|
|
|
67526
67524
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
67527
67525
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
67528
67526
|
env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
67529
|
-
ci:
|
|
67530
|
-
|
|
67531
|
-
|
|
67527
|
+
// ci:
|
|
67528
|
+
// process.env[`${prefix}CI`] !== undefined
|
|
67529
|
+
// ? Boolean(
|
|
67530
|
+
// process.env[`${prefix}CI`] ??
|
|
67531
|
+
// process.env.CI ??
|
|
67532
|
+
// process.env.CONTINUOUS_INTEGRATION
|
|
67533
|
+
// )
|
|
67534
|
+
// : undefined,
|
|
67532
67535
|
repository: process.env[`${prefix}REPOSITORY`],
|
|
67533
67536
|
branch: process.env[`${prefix}BRANCH`],
|
|
67534
67537
|
preid: process.env[`${prefix}PRE_ID`],
|
|
@@ -67721,11 +67724,6 @@ var setConfigEnv = (config) => {
|
|
|
67721
67724
|
process.env.NODE_ENV = config.env;
|
|
67722
67725
|
process.env.ENVIRONMENT = config.env;
|
|
67723
67726
|
}
|
|
67724
|
-
if (config.ci) {
|
|
67725
|
-
process.env[`${prefix}CI`] = String(config.ci);
|
|
67726
|
-
process.env.CI = String(config.ci);
|
|
67727
|
-
process.env.CONTINUOUS_INTEGRATION = String(config.ci);
|
|
67728
|
-
}
|
|
67729
67727
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67730
67728
|
for (const key of Object.keys(config.colors)) {
|
|
67731
67729
|
setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
@@ -67882,7 +67880,7 @@ var createConfig = (workspaceRoot) => {
|
|
|
67882
67880
|
};
|
|
67883
67881
|
var createStormConfig = (extensionName, schema, workspaceRoot) => {
|
|
67884
67882
|
let result;
|
|
67885
|
-
if (!_static_cache) {
|
|
67883
|
+
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 3e4) {
|
|
67886
67884
|
const config = getConfigEnv();
|
|
67887
67885
|
const defaultConfig = getDefaultConfig(config, workspaceRoot);
|
|
67888
67886
|
result = StormConfigSchema.parse({
|
|
@@ -67895,7 +67893,7 @@ var createStormConfig = (extensionName, schema, workspaceRoot) => {
|
|
|
67895
67893
|
});
|
|
67896
67894
|
result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
|
|
67897
67895
|
} else {
|
|
67898
|
-
result = _static_cache;
|
|
67896
|
+
result = _static_cache.data;
|
|
67899
67897
|
}
|
|
67900
67898
|
if (schema && extensionName) {
|
|
67901
67899
|
result.extensions = {
|
|
@@ -67903,7 +67901,10 @@ var createStormConfig = (extensionName, schema, workspaceRoot) => {
|
|
|
67903
67901
|
[extensionName]: createConfigExtension(extensionName, schema)
|
|
67904
67902
|
};
|
|
67905
67903
|
}
|
|
67906
|
-
_static_cache =
|
|
67904
|
+
_static_cache = {
|
|
67905
|
+
timestamp: Date.now(),
|
|
67906
|
+
data: result
|
|
67907
|
+
};
|
|
67907
67908
|
return result;
|
|
67908
67909
|
};
|
|
67909
67910
|
var createConfigExtension = (extensionName, schema) => {
|
|
@@ -67920,6 +67921,13 @@ var createConfigExtension = (extensionName, schema) => {
|
|
|
67920
67921
|
};
|
|
67921
67922
|
var loadStormConfig = async (workspaceRoot) => {
|
|
67922
67923
|
let config = {};
|
|
67924
|
+
if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
|
|
67925
|
+
writeInfo(
|
|
67926
|
+
`Configuration cache hit - ${_static_cache.timestamp}`,
|
|
67927
|
+
_static_cache.data
|
|
67928
|
+
);
|
|
67929
|
+
return _static_cache.data;
|
|
67930
|
+
}
|
|
67923
67931
|
let _workspaceRoot = workspaceRoot;
|
|
67924
67932
|
if (!_workspaceRoot) {
|
|
67925
67933
|
_workspaceRoot = findWorkspaceRoot();
|