@storm-software/config-tools 1.115.0 → 1.117.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 +16 -1
- package/index.cjs +19 -13
- package/index.js +18 -13
- package/meta.cjs.json +14 -14
- package/meta.esm.json +14 -13
- package/package.json +1 -1
- package/src/utilities/get-log-level.d.ts +7 -0
- package/utilities/logger.cjs +4 -2
- package/utilities/logger.js +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,23 @@
|
|
|
1
|
+
## 1.117.0 (2024-12-22)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **esbuild:** Added copy-assets and reporting build steps
|
|
6
|
+
([d8372730](https://github.com/storm-software/storm-ops/commit/d8372730))
|
|
7
|
+
|
|
8
|
+
## 1.116.0 (2024-12-19)
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
- **config:** Renamed the `env` config parameter to `envName`
|
|
13
|
+
([5903bc5e](https://github.com/storm-software/storm-ops/commit/5903bc5e))
|
|
14
|
+
|
|
1
15
|
## 1.115.0 (2024-12-18)
|
|
2
16
|
|
|
3
17
|
### Features
|
|
4
18
|
|
|
5
|
-
- **storm-ops:** Improved descriptions and markdown across monorepo
|
|
19
|
+
- **storm-ops:** Improved descriptions and markdown across monorepo
|
|
20
|
+
([aec89c79](https://github.com/storm-software/storm-ops/commit/aec89c79))
|
|
6
21
|
|
|
7
22
|
## 1.114.1 (2024-12-18)
|
|
8
23
|
|
package/index.cjs
CHANGED
|
@@ -60880,6 +60880,7 @@ __export(src_exports, {
|
|
|
60880
60880
|
getLogLevelLabel: () => getLogLevelLabel,
|
|
60881
60881
|
getStopwatch: () => getStopwatch,
|
|
60882
60882
|
handleProcess: () => handleProcess,
|
|
60883
|
+
isVerbose: () => isVerbose,
|
|
60883
60884
|
loadStormConfig: () => loadStormConfig,
|
|
60884
60885
|
removeExtension: () => removeExtension,
|
|
60885
60886
|
run: () => run,
|
|
@@ -66379,7 +66380,7 @@ var StormConfigSchema = z3.object({
|
|
|
66379
66380
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66380
66381
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66381
66382
|
),
|
|
66382
|
-
|
|
66383
|
+
envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
66383
66384
|
workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
|
|
66384
66385
|
packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
|
|
66385
66386
|
externalPackagePatterns: z3.array(z3.string()).default([]).describe(
|
|
@@ -66400,7 +66401,9 @@ var StormConfigSchema = z3.object({
|
|
|
66400
66401
|
runtimeVersion: z3.string().trim().regex(
|
|
66401
66402
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
66402
66403
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
66403
|
-
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
66404
|
+
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
66405
|
+
"The JavaScript/TypeScript package manager used by the repository"
|
|
66406
|
+
),
|
|
66404
66407
|
timezone: z3.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
66405
66408
|
locale: z3.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
66406
66409
|
logLevel: z3.enum([
|
|
@@ -66479,19 +66482,17 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66479
66482
|
}
|
|
66480
66483
|
};
|
|
66481
66484
|
var DEFAULT_STORM_CONFIG = {
|
|
66482
|
-
name: "storm",
|
|
66483
66485
|
namespace: "storm-software",
|
|
66484
|
-
license: "Apache
|
|
66486
|
+
license: "Apache-2.0",
|
|
66485
66487
|
homepage: "https://stormsoftware.com",
|
|
66486
|
-
owner: "@storm-software/
|
|
66488
|
+
owner: "@storm-software/admin",
|
|
66487
66489
|
worker: "stormie-bot",
|
|
66488
66490
|
runtimeDirectory: "node_modules/.storm",
|
|
66489
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66490
66491
|
skipCache: false,
|
|
66491
|
-
packageManager: "
|
|
66492
|
+
packageManager: "pnpm",
|
|
66492
66493
|
timezone: "America/New_York",
|
|
66493
66494
|
locale: "en-US",
|
|
66494
|
-
|
|
66495
|
+
envName: "production",
|
|
66495
66496
|
branch: "main",
|
|
66496
66497
|
organization: "storm-software",
|
|
66497
66498
|
configFile: null,
|
|
@@ -66626,6 +66627,10 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
66626
66627
|
}
|
|
66627
66628
|
return LogLevelLabel.INFO;
|
|
66628
66629
|
};
|
|
66630
|
+
var isVerbose = (label = LogLevelLabel.SILENT) => {
|
|
66631
|
+
const logLevel = typeof label === "string" ? getLogLevel(label) : label;
|
|
66632
|
+
return logLevel <= LogLevel.DEBUG;
|
|
66633
|
+
};
|
|
66629
66634
|
|
|
66630
66635
|
// packages/config-tools/src/utilities/logger.ts
|
|
66631
66636
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
@@ -66923,7 +66928,7 @@ var getConfigEnv = () => {
|
|
|
66923
66928
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
66924
66929
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
66925
66930
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
66926
|
-
|
|
66931
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
66927
66932
|
// ci:
|
|
66928
66933
|
// process.env[`${prefix}CI`] !== undefined
|
|
66929
66934
|
// ? Boolean(
|
|
@@ -67144,10 +67149,10 @@ var setConfigEnv = (config) => {
|
|
|
67144
67149
|
config.outputDirectory
|
|
67145
67150
|
);
|
|
67146
67151
|
}
|
|
67147
|
-
if (config.
|
|
67148
|
-
process.env[`${prefix}
|
|
67149
|
-
process.env.NODE_ENV = config.
|
|
67150
|
-
process.env.ENVIRONMENT = config.
|
|
67152
|
+
if (config.envName) {
|
|
67153
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67154
|
+
process.env.NODE_ENV = config.envName;
|
|
67155
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67151
67156
|
}
|
|
67152
67157
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67153
67158
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -67436,6 +67441,7 @@ ${formatLogMessage(config)}`,
|
|
|
67436
67441
|
getLogLevelLabel,
|
|
67437
67442
|
getStopwatch,
|
|
67438
67443
|
handleProcess,
|
|
67444
|
+
isVerbose,
|
|
67439
67445
|
loadStormConfig,
|
|
67440
67446
|
removeExtension,
|
|
67441
67447
|
run,
|
package/index.js
CHANGED
|
@@ -66336,7 +66336,7 @@ var StormConfigSchema = z3.object({
|
|
|
66336
66336
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66337
66337
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66338
66338
|
),
|
|
66339
|
-
|
|
66339
|
+
envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
66340
66340
|
workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
|
|
66341
66341
|
packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
|
|
66342
66342
|
externalPackagePatterns: z3.array(z3.string()).default([]).describe(
|
|
@@ -66357,7 +66357,9 @@ var StormConfigSchema = z3.object({
|
|
|
66357
66357
|
runtimeVersion: z3.string().trim().regex(
|
|
66358
66358
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
66359
66359
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
66360
|
-
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
66360
|
+
packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
66361
|
+
"The JavaScript/TypeScript package manager used by the repository"
|
|
66362
|
+
),
|
|
66361
66363
|
timezone: z3.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
66362
66364
|
locale: z3.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
66363
66365
|
logLevel: z3.enum([
|
|
@@ -66436,19 +66438,17 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66436
66438
|
}
|
|
66437
66439
|
};
|
|
66438
66440
|
var DEFAULT_STORM_CONFIG = {
|
|
66439
|
-
name: "storm",
|
|
66440
66441
|
namespace: "storm-software",
|
|
66441
|
-
license: "Apache
|
|
66442
|
+
license: "Apache-2.0",
|
|
66442
66443
|
homepage: "https://stormsoftware.com",
|
|
66443
|
-
owner: "@storm-software/
|
|
66444
|
+
owner: "@storm-software/admin",
|
|
66444
66445
|
worker: "stormie-bot",
|
|
66445
66446
|
runtimeDirectory: "node_modules/.storm",
|
|
66446
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
66447
66447
|
skipCache: false,
|
|
66448
|
-
packageManager: "
|
|
66448
|
+
packageManager: "pnpm",
|
|
66449
66449
|
timezone: "America/New_York",
|
|
66450
66450
|
locale: "en-US",
|
|
66451
|
-
|
|
66451
|
+
envName: "production",
|
|
66452
66452
|
branch: "main",
|
|
66453
66453
|
organization: "storm-software",
|
|
66454
66454
|
configFile: null,
|
|
@@ -66583,6 +66583,10 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
66583
66583
|
}
|
|
66584
66584
|
return LogLevelLabel.INFO;
|
|
66585
66585
|
};
|
|
66586
|
+
var isVerbose = (label = LogLevelLabel.SILENT) => {
|
|
66587
|
+
const logLevel = typeof label === "string" ? getLogLevel(label) : label;
|
|
66588
|
+
return logLevel <= LogLevel.DEBUG;
|
|
66589
|
+
};
|
|
66586
66590
|
|
|
66587
66591
|
// packages/config-tools/src/utilities/logger.ts
|
|
66588
66592
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
@@ -66880,7 +66884,7 @@ var getConfigEnv = () => {
|
|
|
66880
66884
|
cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
|
|
66881
66885
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
66882
66886
|
outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
|
|
66883
|
-
|
|
66887
|
+
envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
66884
66888
|
// ci:
|
|
66885
66889
|
// process.env[`${prefix}CI`] !== undefined
|
|
66886
66890
|
// ? Boolean(
|
|
@@ -67101,10 +67105,10 @@ var setConfigEnv = (config) => {
|
|
|
67101
67105
|
config.outputDirectory
|
|
67102
67106
|
);
|
|
67103
67107
|
}
|
|
67104
|
-
if (config.
|
|
67105
|
-
process.env[`${prefix}
|
|
67106
|
-
process.env.NODE_ENV = config.
|
|
67107
|
-
process.env.ENVIRONMENT = config.
|
|
67108
|
+
if (config.envName) {
|
|
67109
|
+
process.env[`${prefix}ENV_NAME`] = config.envName;
|
|
67110
|
+
process.env.NODE_ENV = config.envName;
|
|
67111
|
+
process.env.ENVIRONMENT = config.envName;
|
|
67108
67112
|
}
|
|
67109
67113
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
67110
67114
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -67392,6 +67396,7 @@ export {
|
|
|
67392
67396
|
getLogLevelLabel,
|
|
67393
67397
|
getStopwatch,
|
|
67394
67398
|
handleProcess,
|
|
67399
|
+
isVerbose,
|
|
67395
67400
|
loadStormConfig,
|
|
67396
67401
|
removeExtension,
|
|
67397
67402
|
run,
|
package/meta.cjs.json
CHANGED
|
@@ -3359,7 +3359,7 @@
|
|
|
3359
3359
|
"format": "esm"
|
|
3360
3360
|
},
|
|
3361
3361
|
"packages/config/src/schema.ts": {
|
|
3362
|
-
"bytes":
|
|
3362
|
+
"bytes": 11868,
|
|
3363
3363
|
"imports": [
|
|
3364
3364
|
{
|
|
3365
3365
|
"path": "node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs",
|
|
@@ -3406,7 +3406,7 @@
|
|
|
3406
3406
|
"format": "esm"
|
|
3407
3407
|
},
|
|
3408
3408
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
3409
|
-
"bytes":
|
|
3409
|
+
"bytes": 3441,
|
|
3410
3410
|
"imports": [
|
|
3411
3411
|
{
|
|
3412
3412
|
"path": "packages/config/src/index.ts",
|
|
@@ -3437,7 +3437,7 @@
|
|
|
3437
3437
|
"format": "esm"
|
|
3438
3438
|
},
|
|
3439
3439
|
"packages/config-tools/src/utilities/get-log-level.ts": {
|
|
3440
|
-
"bytes":
|
|
3440
|
+
"bytes": 1859,
|
|
3441
3441
|
"imports": [
|
|
3442
3442
|
{
|
|
3443
3443
|
"path": "packages/config-tools/src/types.ts",
|
|
@@ -3589,7 +3589,7 @@
|
|
|
3589
3589
|
"format": "esm"
|
|
3590
3590
|
},
|
|
3591
3591
|
"packages/config-tools/src/env/get-env.ts": {
|
|
3592
|
-
"bytes":
|
|
3592
|
+
"bytes": 9377,
|
|
3593
3593
|
"imports": [
|
|
3594
3594
|
{
|
|
3595
3595
|
"path": "packages/config/src/index.ts",
|
|
@@ -3610,7 +3610,7 @@
|
|
|
3610
3610
|
"format": "esm"
|
|
3611
3611
|
},
|
|
3612
3612
|
"packages/config-tools/src/env/set-env.ts": {
|
|
3613
|
-
"bytes":
|
|
3613
|
+
"bytes": 11125,
|
|
3614
3614
|
"imports": [
|
|
3615
3615
|
{
|
|
3616
3616
|
"path": "packages/config-tools/src/types.ts",
|
|
@@ -5097,7 +5097,7 @@
|
|
|
5097
5097
|
"bytesInOutput": 5964
|
|
5098
5098
|
},
|
|
5099
5099
|
"packages/config-tools/src/index.ts": {
|
|
5100
|
-
"bytesInOutput":
|
|
5100
|
+
"bytesInOutput": 1801
|
|
5101
5101
|
},
|
|
5102
5102
|
"node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/shared/c12.cwi6FO2_.mjs": {
|
|
5103
5103
|
"bytesInOutput": 11878
|
|
@@ -5151,19 +5151,19 @@
|
|
|
5151
5151
|
"bytesInOutput": 117366
|
|
5152
5152
|
},
|
|
5153
5153
|
"packages/config/src/schema.ts": {
|
|
5154
|
-
"bytesInOutput":
|
|
5154
|
+
"bytesInOutput": 9891
|
|
5155
5155
|
},
|
|
5156
5156
|
"packages/config/src/types.ts": {
|
|
5157
5157
|
"bytesInOutput": 197
|
|
5158
5158
|
},
|
|
5159
5159
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
5160
|
-
"bytesInOutput":
|
|
5160
|
+
"bytesInOutput": 2937
|
|
5161
5161
|
},
|
|
5162
5162
|
"packages/config-tools/src/types.ts": {
|
|
5163
5163
|
"bytesInOutput": 297
|
|
5164
5164
|
},
|
|
5165
5165
|
"packages/config-tools/src/utilities/get-log-level.ts": {
|
|
5166
|
-
"bytesInOutput":
|
|
5166
|
+
"bytesInOutput": 1292
|
|
5167
5167
|
},
|
|
5168
5168
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
5169
5169
|
"bytesInOutput": 5805
|
|
@@ -5181,16 +5181,16 @@
|
|
|
5181
5181
|
"bytesInOutput": 2799
|
|
5182
5182
|
},
|
|
5183
5183
|
"packages/config-tools/src/env/get-env.ts": {
|
|
5184
|
-
"bytesInOutput":
|
|
5184
|
+
"bytesInOutput": 6611
|
|
5185
5185
|
},
|
|
5186
5186
|
"packages/config-tools/src/env/set-env.ts": {
|
|
5187
|
-
"bytesInOutput":
|
|
5187
|
+
"bytesInOutput": 8732
|
|
5188
5188
|
},
|
|
5189
5189
|
"packages/config-tools/src/env/index.ts": {
|
|
5190
5190
|
"bytesInOutput": 0
|
|
5191
5191
|
}
|
|
5192
5192
|
},
|
|
5193
|
-
"bytes":
|
|
5193
|
+
"bytes": 4163386
|
|
5194
5194
|
},
|
|
5195
5195
|
"dist/packages/config-tools/utilities/find-workspace-root.cjs": {
|
|
5196
5196
|
"imports": [
|
|
@@ -5337,7 +5337,7 @@
|
|
|
5337
5337
|
"bytesInOutput": 116969
|
|
5338
5338
|
},
|
|
5339
5339
|
"packages/config/src/schema.ts": {
|
|
5340
|
-
"bytesInOutput":
|
|
5340
|
+
"bytesInOutput": 9829
|
|
5341
5341
|
},
|
|
5342
5342
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
5343
5343
|
"bytesInOutput": 638
|
|
@@ -5346,7 +5346,7 @@
|
|
|
5346
5346
|
"bytesInOutput": 468
|
|
5347
5347
|
}
|
|
5348
5348
|
},
|
|
5349
|
-
"bytes":
|
|
5349
|
+
"bytes": 186770
|
|
5350
5350
|
}
|
|
5351
5351
|
}
|
|
5352
5352
|
}
|
package/meta.esm.json
CHANGED
|
@@ -3359,7 +3359,7 @@
|
|
|
3359
3359
|
"format": "esm"
|
|
3360
3360
|
},
|
|
3361
3361
|
"packages/config/src/schema.ts": {
|
|
3362
|
-
"bytes":
|
|
3362
|
+
"bytes": 11868,
|
|
3363
3363
|
"imports": [
|
|
3364
3364
|
{
|
|
3365
3365
|
"path": "node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs",
|
|
@@ -3406,7 +3406,7 @@
|
|
|
3406
3406
|
"format": "esm"
|
|
3407
3407
|
},
|
|
3408
3408
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
3409
|
-
"bytes":
|
|
3409
|
+
"bytes": 3441,
|
|
3410
3410
|
"imports": [
|
|
3411
3411
|
{
|
|
3412
3412
|
"path": "packages/config/src/index.ts",
|
|
@@ -3437,7 +3437,7 @@
|
|
|
3437
3437
|
"format": "esm"
|
|
3438
3438
|
},
|
|
3439
3439
|
"packages/config-tools/src/utilities/get-log-level.ts": {
|
|
3440
|
-
"bytes":
|
|
3440
|
+
"bytes": 1859,
|
|
3441
3441
|
"imports": [
|
|
3442
3442
|
{
|
|
3443
3443
|
"path": "packages/config-tools/src/types.ts",
|
|
@@ -3589,7 +3589,7 @@
|
|
|
3589
3589
|
"format": "esm"
|
|
3590
3590
|
},
|
|
3591
3591
|
"packages/config-tools/src/env/get-env.ts": {
|
|
3592
|
-
"bytes":
|
|
3592
|
+
"bytes": 9377,
|
|
3593
3593
|
"imports": [
|
|
3594
3594
|
{
|
|
3595
3595
|
"path": "packages/config/src/index.ts",
|
|
@@ -3610,7 +3610,7 @@
|
|
|
3610
3610
|
"format": "esm"
|
|
3611
3611
|
},
|
|
3612
3612
|
"packages/config-tools/src/env/set-env.ts": {
|
|
3613
|
-
"bytes":
|
|
3613
|
+
"bytes": 11125,
|
|
3614
3614
|
"imports": [
|
|
3615
3615
|
{
|
|
3616
3616
|
"path": "packages/config-tools/src/types.ts",
|
|
@@ -4763,6 +4763,7 @@
|
|
|
4763
4763
|
"getLogLevelLabel",
|
|
4764
4764
|
"getStopwatch",
|
|
4765
4765
|
"handleProcess",
|
|
4766
|
+
"isVerbose",
|
|
4766
4767
|
"loadStormConfig",
|
|
4767
4768
|
"removeExtension",
|
|
4768
4769
|
"run",
|
|
@@ -5191,19 +5192,19 @@
|
|
|
5191
5192
|
"bytesInOutput": 117366
|
|
5192
5193
|
},
|
|
5193
5194
|
"packages/config/src/schema.ts": {
|
|
5194
|
-
"bytesInOutput":
|
|
5195
|
+
"bytesInOutput": 9891
|
|
5195
5196
|
},
|
|
5196
5197
|
"packages/config/src/types.ts": {
|
|
5197
5198
|
"bytesInOutput": 197
|
|
5198
5199
|
},
|
|
5199
5200
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
5200
|
-
"bytesInOutput":
|
|
5201
|
+
"bytesInOutput": 2889
|
|
5201
5202
|
},
|
|
5202
5203
|
"packages/config-tools/src/types.ts": {
|
|
5203
5204
|
"bytesInOutput": 297
|
|
5204
5205
|
},
|
|
5205
5206
|
"packages/config-tools/src/utilities/get-log-level.ts": {
|
|
5206
|
-
"bytesInOutput":
|
|
5207
|
+
"bytesInOutput": 1292
|
|
5207
5208
|
},
|
|
5208
5209
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
5209
5210
|
"bytesInOutput": 5805
|
|
@@ -5224,16 +5225,16 @@
|
|
|
5224
5225
|
"bytesInOutput": 2799
|
|
5225
5226
|
},
|
|
5226
5227
|
"packages/config-tools/src/env/get-env.ts": {
|
|
5227
|
-
"bytesInOutput":
|
|
5228
|
+
"bytesInOutput": 6611
|
|
5228
5229
|
},
|
|
5229
5230
|
"packages/config-tools/src/env/set-env.ts": {
|
|
5230
|
-
"bytesInOutput":
|
|
5231
|
+
"bytesInOutput": 8732
|
|
5231
5232
|
},
|
|
5232
5233
|
"packages/config-tools/src/env/index.ts": {
|
|
5233
5234
|
"bytesInOutput": 0
|
|
5234
5235
|
}
|
|
5235
5236
|
},
|
|
5236
|
-
"bytes":
|
|
5237
|
+
"bytes": 4157804
|
|
5237
5238
|
},
|
|
5238
5239
|
"dist/packages/config-tools/utilities/find-workspace-root.js": {
|
|
5239
5240
|
"imports": [
|
|
@@ -5394,7 +5395,7 @@
|
|
|
5394
5395
|
"bytesInOutput": 116969
|
|
5395
5396
|
},
|
|
5396
5397
|
"packages/config/src/schema.ts": {
|
|
5397
|
-
"bytesInOutput":
|
|
5398
|
+
"bytesInOutput": 9829
|
|
5398
5399
|
},
|
|
5399
5400
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
5400
5401
|
"bytesInOutput": 638
|
|
@@ -5406,7 +5407,7 @@
|
|
|
5406
5407
|
"bytesInOutput": 5793
|
|
5407
5408
|
}
|
|
5408
5409
|
},
|
|
5409
|
-
"bytes":
|
|
5410
|
+
"bytes": 186287
|
|
5410
5411
|
}
|
|
5411
5412
|
}
|
|
5412
5413
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.117.0",
|
|
4
4
|
"description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
|
@@ -13,3 +13,10 @@ export declare const getLogLevel: (label?: string) => LogLevel;
|
|
|
13
13
|
* @returns The log level label
|
|
14
14
|
*/
|
|
15
15
|
export declare const getLogLevelLabel: (logLevel?: number) => LogLevelLabel;
|
|
16
|
+
/**
|
|
17
|
+
* Check if the log level is verbose
|
|
18
|
+
*
|
|
19
|
+
* @param label - The log level label to check
|
|
20
|
+
* @returns True if the log level is verbose
|
|
21
|
+
*/
|
|
22
|
+
export declare const isVerbose: (label?: string | LogLevel) => boolean;
|
package/utilities/logger.cjs
CHANGED
|
@@ -5669,7 +5669,7 @@ var StormConfigSchema = z.object({
|
|
|
5669
5669
|
worker: z.string().trim().default("Stormie-Bot").describe(
|
|
5670
5670
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
5671
5671
|
),
|
|
5672
|
-
|
|
5672
|
+
envName: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
5673
5673
|
workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
|
|
5674
5674
|
packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
|
|
5675
5675
|
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
@@ -5690,7 +5690,9 @@ var StormConfigSchema = z.object({
|
|
|
5690
5690
|
runtimeVersion: z.string().trim().regex(
|
|
5691
5691
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
5692
5692
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
5693
|
-
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
5693
|
+
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
5694
|
+
"The JavaScript/TypeScript package manager used by the repository"
|
|
5695
|
+
),
|
|
5694
5696
|
timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
5695
5697
|
locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
5696
5698
|
logLevel: z.enum([
|
package/utilities/logger.js
CHANGED
|
@@ -5653,7 +5653,7 @@ var StormConfigSchema = z.object({
|
|
|
5653
5653
|
worker: z.string().trim().default("Stormie-Bot").describe(
|
|
5654
5654
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
5655
5655
|
),
|
|
5656
|
-
|
|
5656
|
+
envName: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
|
|
5657
5657
|
workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
|
|
5658
5658
|
packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
|
|
5659
5659
|
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
@@ -5674,7 +5674,9 @@ var StormConfigSchema = z.object({
|
|
|
5674
5674
|
runtimeVersion: z.string().trim().regex(
|
|
5675
5675
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
5676
5676
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
5677
|
-
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
5677
|
+
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
5678
|
+
"The JavaScript/TypeScript package manager used by the repository"
|
|
5679
|
+
),
|
|
5678
5680
|
timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
5679
5681
|
locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
5680
5682
|
logLevel: z.enum([
|