@storm-software/config-tools 1.115.0 → 1.116.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,8 +1,15 @@
1
+ ## 1.116.0 (2024-12-19)
2
+
3
+ ### Features
4
+
5
+ - **config:** Renamed the `env` config parameter to `envName` ([5903bc5e](https://github.com/storm-software/storm-ops/commit/5903bc5e))
6
+
1
7
  ## 1.115.0 (2024-12-18)
2
8
 
3
9
  ### Features
4
10
 
5
- - **storm-ops:** Improved descriptions and markdown across monorepo ([aec89c79](https://github.com/storm-software/storm-ops/commit/aec89c79))
11
+ - **storm-ops:** Improved descriptions and markdown across monorepo
12
+ ([aec89c79](https://github.com/storm-software/storm-ops/commit/aec89c79))
6
13
 
7
14
  ## 1.114.1 (2024-12-18)
8
15
 
package/index.cjs CHANGED
@@ -66379,7 +66379,7 @@ var StormConfigSchema = z3.object({
66379
66379
  worker: z3.string().trim().default("Stormie-Bot").describe(
66380
66380
  "The worker of the package (this is the bot that will be used to perform various tasks)"
66381
66381
  ),
66382
- env: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
66382
+ envName: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment name for the package"),
66383
66383
  workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
66384
66384
  packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
66385
66385
  externalPackagePatterns: z3.array(z3.string()).default([]).describe(
@@ -66400,7 +66400,9 @@ var StormConfigSchema = z3.object({
66400
66400
  runtimeVersion: z3.string().trim().regex(
66401
66401
  /^(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
66402
  ).default("1.0.0").describe("The global version of the Storm runtime"),
66403
- packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("pnpm").describe("The package manager used by the repository"),
66403
+ packageManager: z3.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
66404
+ "The JavaScript/TypeScript package manager used by the repository"
66405
+ ),
66404
66406
  timezone: z3.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
66405
66407
  locale: z3.string().trim().default("en-US").describe("The default locale of the workspace"),
66406
66408
  logLevel: z3.enum([
@@ -66479,19 +66481,17 @@ var DEFAULT_COLOR_CONFIG = {
66479
66481
  }
66480
66482
  };
66481
66483
  var DEFAULT_STORM_CONFIG = {
66482
- name: "storm",
66483
66484
  namespace: "storm-software",
66484
- license: "Apache 2.0",
66485
+ license: "Apache-2.0",
66485
66486
  homepage: "https://stormsoftware.com",
66486
- owner: "@storm-software/development",
66487
+ owner: "@storm-software/admin",
66487
66488
  worker: "stormie-bot",
66488
66489
  runtimeDirectory: "node_modules/.storm",
66489
- cacheDirectory: "node_modules/.cache/storm",
66490
66490
  skipCache: false,
66491
- packageManager: "npm",
66491
+ packageManager: "pnpm",
66492
66492
  timezone: "America/New_York",
66493
66493
  locale: "en-US",
66494
- env: "production",
66494
+ envName: "production",
66495
66495
  branch: "main",
66496
66496
  organization: "storm-software",
66497
66497
  configFile: null,
@@ -66923,7 +66923,7 @@ var getConfigEnv = () => {
66923
66923
  cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
66924
66924
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
66925
66925
  outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
66926
- env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
66926
+ envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
66927
66927
  // ci:
66928
66928
  // process.env[`${prefix}CI`] !== undefined
66929
66929
  // ? Boolean(
@@ -67144,10 +67144,10 @@ var setConfigEnv = (config) => {
67144
67144
  config.outputDirectory
67145
67145
  );
67146
67146
  }
67147
- if (config.env) {
67148
- process.env[`${prefix}ENV`] = config.env;
67149
- process.env.NODE_ENV = config.env;
67150
- process.env.ENVIRONMENT = config.env;
67147
+ if (config.envName) {
67148
+ process.env[`${prefix}ENV_NAME`] = config.envName;
67149
+ process.env.NODE_ENV = config.envName;
67150
+ process.env.ENVIRONMENT = config.envName;
67151
67151
  }
67152
67152
  if (config.colors?.base?.light || config.colors?.base?.dark) {
67153
67153
  for (const key of Object.keys(config.colors)) {
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
- env: z3.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
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("pnpm").describe("The package manager used by the repository"),
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 2.0",
66442
+ license: "Apache-2.0",
66442
66443
  homepage: "https://stormsoftware.com",
66443
- owner: "@storm-software/development",
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: "npm",
66448
+ packageManager: "pnpm",
66449
66449
  timezone: "America/New_York",
66450
66450
  locale: "en-US",
66451
- env: "production",
66451
+ envName: "production",
66452
66452
  branch: "main",
66453
66453
  organization: "storm-software",
66454
66454
  configFile: null,
@@ -66880,7 +66880,7 @@ var getConfigEnv = () => {
66880
66880
  cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
66881
66881
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
66882
66882
  outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
66883
- env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
66883
+ envName: process.env[`${prefix}ENV_NAME`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
66884
66884
  // ci:
66885
66885
  // process.env[`${prefix}CI`] !== undefined
66886
66886
  // ? Boolean(
@@ -67101,10 +67101,10 @@ var setConfigEnv = (config) => {
67101
67101
  config.outputDirectory
67102
67102
  );
67103
67103
  }
67104
- if (config.env) {
67105
- process.env[`${prefix}ENV`] = config.env;
67106
- process.env.NODE_ENV = config.env;
67107
- process.env.ENVIRONMENT = config.env;
67104
+ if (config.envName) {
67105
+ process.env[`${prefix}ENV_NAME`] = config.envName;
67106
+ process.env.NODE_ENV = config.envName;
67107
+ process.env.ENVIRONMENT = config.envName;
67108
67108
  }
67109
67109
  if (config.colors?.base?.light || config.colors?.base?.dark) {
67110
67110
  for (const key of Object.keys(config.colors)) {
package/meta.cjs.json CHANGED
@@ -3359,7 +3359,7 @@
3359
3359
  "format": "esm"
3360
3360
  },
3361
3361
  "packages/config/src/schema.ts": {
3362
- "bytes": 11821,
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": 3506,
3409
+ "bytes": 3441,
3410
3410
  "imports": [
3411
3411
  {
3412
3412
  "path": "packages/config/src/index.ts",
@@ -3589,7 +3589,7 @@
3589
3589
  "format": "esm"
3590
3590
  },
3591
3591
  "packages/config-tools/src/env/get-env.ts": {
3592
- "bytes": 9364,
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": 11104,
3613
+ "bytes": 11125,
3614
3614
  "imports": [
3615
3615
  {
3616
3616
  "path": "packages/config-tools/src/types.ts",
@@ -5151,13 +5151,13 @@
5151
5151
  "bytesInOutput": 117366
5152
5152
  },
5153
5153
  "packages/config/src/schema.ts": {
5154
- "bytesInOutput": 9852
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": 3002
5160
+ "bytesInOutput": 2937
5161
5161
  },
5162
5162
  "packages/config-tools/src/types.ts": {
5163
5163
  "bytesInOutput": 297
@@ -5181,16 +5181,16 @@
5181
5181
  "bytesInOutput": 2799
5182
5182
  },
5183
5183
  "packages/config-tools/src/env/get-env.ts": {
5184
- "bytesInOutput": 6602
5184
+ "bytesInOutput": 6611
5185
5185
  },
5186
5186
  "packages/config-tools/src/env/set-env.ts": {
5187
- "bytesInOutput": 8711
5187
+ "bytesInOutput": 8732
5188
5188
  },
5189
5189
  "packages/config-tools/src/env/index.ts": {
5190
5190
  "bytesInOutput": 0
5191
5191
  }
5192
5192
  },
5193
- "bytes": 4163172
5193
+ "bytes": 4163176
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": 9790
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": 186731
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": 11821,
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": 3506,
3409
+ "bytes": 3441,
3410
3410
  "imports": [
3411
3411
  {
3412
3412
  "path": "packages/config/src/index.ts",
@@ -3589,7 +3589,7 @@
3589
3589
  "format": "esm"
3590
3590
  },
3591
3591
  "packages/config-tools/src/env/get-env.ts": {
3592
- "bytes": 9364,
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": 11104,
3613
+ "bytes": 11125,
3614
3614
  "imports": [
3615
3615
  {
3616
3616
  "path": "packages/config-tools/src/types.ts",
@@ -5191,13 +5191,13 @@
5191
5191
  "bytesInOutput": 117366
5192
5192
  },
5193
5193
  "packages/config/src/schema.ts": {
5194
- "bytesInOutput": 9852
5194
+ "bytesInOutput": 9891
5195
5195
  },
5196
5196
  "packages/config/src/types.ts": {
5197
5197
  "bytesInOutput": 197
5198
5198
  },
5199
5199
  "packages/config-tools/src/utilities/get-default-config.ts": {
5200
- "bytesInOutput": 2954
5200
+ "bytesInOutput": 2889
5201
5201
  },
5202
5202
  "packages/config-tools/src/types.ts": {
5203
5203
  "bytesInOutput": 297
@@ -5224,16 +5224,16 @@
5224
5224
  "bytesInOutput": 2799
5225
5225
  },
5226
5226
  "packages/config-tools/src/env/get-env.ts": {
5227
- "bytesInOutput": 6602
5227
+ "bytesInOutput": 6611
5228
5228
  },
5229
5229
  "packages/config-tools/src/env/set-env.ts": {
5230
- "bytesInOutput": 8711
5230
+ "bytesInOutput": 8732
5231
5231
  },
5232
5232
  "packages/config-tools/src/env/index.ts": {
5233
5233
  "bytesInOutput": 0
5234
5234
  }
5235
5235
  },
5236
- "bytes": 4157620
5236
+ "bytes": 4157624
5237
5237
  },
5238
5238
  "dist/packages/config-tools/utilities/find-workspace-root.js": {
5239
5239
  "imports": [
@@ -5394,7 +5394,7 @@
5394
5394
  "bytesInOutput": 116969
5395
5395
  },
5396
5396
  "packages/config/src/schema.ts": {
5397
- "bytesInOutput": 9790
5397
+ "bytesInOutput": 9829
5398
5398
  },
5399
5399
  "packages/config-tools/src/utilities/get-default-config.ts": {
5400
5400
  "bytesInOutput": 638
@@ -5406,7 +5406,7 @@
5406
5406
  "bytesInOutput": 5793
5407
5407
  }
5408
5408
  },
5409
- "bytes": 186248
5409
+ "bytes": 186287
5410
5410
  }
5411
5411
  }
5412
5412
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/config-tools",
3
- "version": "1.115.0",
3
+ "version": "1.116.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",
@@ -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
- env: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
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("pnpm").describe("The package manager used by the repository"),
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([
@@ -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
- env: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
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("pnpm").describe("The package manager used by the repository"),
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([