@storm-software/config-tools 1.114.1 → 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,3 +1,16 @@
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
+
7
+ ## 1.115.0 (2024-12-18)
8
+
9
+ ### Features
10
+
11
+ - **storm-ops:** Improved descriptions and markdown across monorepo
12
+ ([aec89c79](https://github.com/storm-software/storm-ops/commit/aec89c79))
13
+
1
14
  ## 1.114.1 (2024-12-18)
2
15
 
3
16
  ### Bug Fixes
package/index.cjs CHANGED
@@ -66360,7 +66360,12 @@ var StormConfigSchema = z3.object({
66360
66360
  extends: z3.string().trim().optional().describe(
66361
66361
  "The path to a base JSON file to use as a configuration preset file"
66362
66362
  ),
66363
- name: z3.string().trim().toLowerCase().optional().describe("The name of the package"),
66363
+ isRoot: z3.boolean().optional().describe(
66364
+ "A flag indicating if the current configuration is the set in the root of the workspace"
66365
+ ),
66366
+ name: z3.string().trim().toLowerCase().optional().describe(
66367
+ "The name of the service/package/scope using this configuration"
66368
+ ),
66364
66369
  namespace: z3.string().trim().toLowerCase().optional().describe("The namespace of the package"),
66365
66370
  organization: z3.string().trim().default("storm-software").describe("The organization of the workspace"),
66366
66371
  repository: z3.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
@@ -66370,24 +66375,34 @@ var StormConfigSchema = z3.object({
66370
66375
  licensing: z3.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
66371
66376
  branch: z3.string().trim().default("main").describe("The branch of the workspace"),
66372
66377
  preid: z3.string().optional().describe("A tag specifying the version pre-release identifier"),
66373
- owner: z3.string().trim().default("@storm-software/development").describe("The owner of the package"),
66378
+ owner: z3.string().trim().default("@storm-software/admin").describe("The owner of the package"),
66374
66379
  worker: z3.string().trim().default("Stormie-Bot").describe(
66375
66380
  "The worker of the package (this is the bot that will be used to perform various tasks)"
66376
66381
  ),
66377
- 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"),
66378
66383
  workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
66379
66384
  packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
66380
66385
  externalPackagePatterns: z3.array(z3.string()).default([]).describe(
66381
66386
  "The build will use these package patterns to determine if they should be external to the bundle"
66382
66387
  ),
66383
66388
  skipCache: z3.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
66384
- cacheDirectory: z3.string().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
66389
+ cacheDirectory: z3.string().trim().optional().describe(
66390
+ "The directory used to store the environment's cached file data"
66391
+ ),
66392
+ dataDirectory: z3.string().trim().optional().describe("The directory used to store the environment's data files"),
66393
+ configDirectory: z3.string().trim().optional().describe(
66394
+ "The directory used to store the environment's configuration files"
66395
+ ),
66396
+ tempDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
66397
+ logDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
66385
66398
  buildDirectory: z3.string().trim().default("dist").describe("The build directory for the workspace"),
66386
66399
  outputDirectory: z3.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
66387
66400
  runtimeVersion: z3.string().trim().regex(
66388
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-]+)*))?$/
66389
66402
  ).default("1.0.0").describe("The global version of the Storm runtime"),
66390
- 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
+ ),
66391
66406
  timezone: z3.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
66392
66407
  locale: z3.string().trim().default("en-US").describe("The default locale of the workspace"),
66393
66408
  logLevel: z3.enum([
@@ -66399,7 +66414,7 @@ var StormConfigSchema = z3.object({
66399
66414
  "debug",
66400
66415
  "trace",
66401
66416
  "all"
66402
- ]).default("debug").describe(
66417
+ ]).default("info").describe(
66403
66418
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
66404
66419
  ),
66405
66420
  cloudflareAccountId: z3.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
@@ -66466,19 +66481,17 @@ var DEFAULT_COLOR_CONFIG = {
66466
66481
  }
66467
66482
  };
66468
66483
  var DEFAULT_STORM_CONFIG = {
66469
- name: "storm",
66470
66484
  namespace: "storm-software",
66471
- license: "Apache 2.0",
66485
+ license: "Apache-2.0",
66472
66486
  homepage: "https://stormsoftware.com",
66473
- owner: "@storm-software/development",
66487
+ owner: "@storm-software/admin",
66474
66488
  worker: "stormie-bot",
66475
66489
  runtimeDirectory: "node_modules/.storm",
66476
- cacheDirectory: "node_modules/.cache/storm",
66477
66490
  skipCache: false,
66478
- packageManager: "npm",
66491
+ packageManager: "pnpm",
66479
66492
  timezone: "America/New_York",
66480
66493
  locale: "en-US",
66481
- env: "production",
66494
+ envName: "production",
66482
66495
  branch: "main",
66483
66496
  organization: "storm-software",
66484
66497
  configFile: null,
@@ -66910,7 +66923,7 @@ var getConfigEnv = () => {
66910
66923
  cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
66911
66924
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
66912
66925
  outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
66913
- 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,
66914
66927
  // ci:
66915
66928
  // process.env[`${prefix}CI`] !== undefined
66916
66929
  // ? Boolean(
@@ -67131,10 +67144,10 @@ var setConfigEnv = (config) => {
67131
67144
  config.outputDirectory
67132
67145
  );
67133
67146
  }
67134
- if (config.env) {
67135
- process.env[`${prefix}ENV`] = config.env;
67136
- process.env.NODE_ENV = config.env;
67137
- 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;
67138
67151
  }
67139
67152
  if (config.colors?.base?.light || config.colors?.base?.dark) {
67140
67153
  for (const key of Object.keys(config.colors)) {
package/index.js CHANGED
@@ -66317,7 +66317,12 @@ var StormConfigSchema = z3.object({
66317
66317
  extends: z3.string().trim().optional().describe(
66318
66318
  "The path to a base JSON file to use as a configuration preset file"
66319
66319
  ),
66320
- name: z3.string().trim().toLowerCase().optional().describe("The name of the package"),
66320
+ isRoot: z3.boolean().optional().describe(
66321
+ "A flag indicating if the current configuration is the set in the root of the workspace"
66322
+ ),
66323
+ name: z3.string().trim().toLowerCase().optional().describe(
66324
+ "The name of the service/package/scope using this configuration"
66325
+ ),
66321
66326
  namespace: z3.string().trim().toLowerCase().optional().describe("The namespace of the package"),
66322
66327
  organization: z3.string().trim().default("storm-software").describe("The organization of the workspace"),
66323
66328
  repository: z3.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
@@ -66327,24 +66332,34 @@ var StormConfigSchema = z3.object({
66327
66332
  licensing: z3.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
66328
66333
  branch: z3.string().trim().default("main").describe("The branch of the workspace"),
66329
66334
  preid: z3.string().optional().describe("A tag specifying the version pre-release identifier"),
66330
- owner: z3.string().trim().default("@storm-software/development").describe("The owner of the package"),
66335
+ owner: z3.string().trim().default("@storm-software/admin").describe("The owner of the package"),
66331
66336
  worker: z3.string().trim().default("Stormie-Bot").describe(
66332
66337
  "The worker of the package (this is the bot that will be used to perform various tasks)"
66333
66338
  ),
66334
- 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"),
66335
66340
  workspaceRoot: z3.string().trim().default("").describe("The root directory of the workspace"),
66336
66341
  packageDirectory: z3.string().trim().optional().describe("The root directory of the package"),
66337
66342
  externalPackagePatterns: z3.array(z3.string()).default([]).describe(
66338
66343
  "The build will use these package patterns to determine if they should be external to the bundle"
66339
66344
  ),
66340
66345
  skipCache: z3.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
66341
- cacheDirectory: z3.string().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
66346
+ cacheDirectory: z3.string().trim().optional().describe(
66347
+ "The directory used to store the environment's cached file data"
66348
+ ),
66349
+ dataDirectory: z3.string().trim().optional().describe("The directory used to store the environment's data files"),
66350
+ configDirectory: z3.string().trim().optional().describe(
66351
+ "The directory used to store the environment's configuration files"
66352
+ ),
66353
+ tempDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
66354
+ logDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
66342
66355
  buildDirectory: z3.string().trim().default("dist").describe("The build directory for the workspace"),
66343
66356
  outputDirectory: z3.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
66344
66357
  runtimeVersion: z3.string().trim().regex(
66345
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-]+)*))?$/
66346
66359
  ).default("1.0.0").describe("The global version of the Storm runtime"),
66347
- 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
+ ),
66348
66363
  timezone: z3.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
66349
66364
  locale: z3.string().trim().default("en-US").describe("The default locale of the workspace"),
66350
66365
  logLevel: z3.enum([
@@ -66356,7 +66371,7 @@ var StormConfigSchema = z3.object({
66356
66371
  "debug",
66357
66372
  "trace",
66358
66373
  "all"
66359
- ]).default("debug").describe(
66374
+ ]).default("info").describe(
66360
66375
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
66361
66376
  ),
66362
66377
  cloudflareAccountId: z3.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
@@ -66423,19 +66438,17 @@ var DEFAULT_COLOR_CONFIG = {
66423
66438
  }
66424
66439
  };
66425
66440
  var DEFAULT_STORM_CONFIG = {
66426
- name: "storm",
66427
66441
  namespace: "storm-software",
66428
- license: "Apache 2.0",
66442
+ license: "Apache-2.0",
66429
66443
  homepage: "https://stormsoftware.com",
66430
- owner: "@storm-software/development",
66444
+ owner: "@storm-software/admin",
66431
66445
  worker: "stormie-bot",
66432
66446
  runtimeDirectory: "node_modules/.storm",
66433
- cacheDirectory: "node_modules/.cache/storm",
66434
66447
  skipCache: false,
66435
- packageManager: "npm",
66448
+ packageManager: "pnpm",
66436
66449
  timezone: "America/New_York",
66437
66450
  locale: "en-US",
66438
- env: "production",
66451
+ envName: "production",
66439
66452
  branch: "main",
66440
66453
  organization: "storm-software",
66441
66454
  configFile: null,
@@ -66867,7 +66880,7 @@ var getConfigEnv = () => {
66867
66880
  cacheDirectory: correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]),
66868
66881
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
66869
66882
  outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
66870
- 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,
66871
66884
  // ci:
66872
66885
  // process.env[`${prefix}CI`] !== undefined
66873
66886
  // ? Boolean(
@@ -67088,10 +67101,10 @@ var setConfigEnv = (config) => {
67088
67101
  config.outputDirectory
67089
67102
  );
67090
67103
  }
67091
- if (config.env) {
67092
- process.env[`${prefix}ENV`] = config.env;
67093
- process.env.NODE_ENV = config.env;
67094
- 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;
67095
67108
  }
67096
67109
  if (config.colors?.base?.light || config.colors?.base?.dark) {
67097
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": 10999,
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": 9200
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": 4162520
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": 9143
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": 186084
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": 10999,
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": 9200
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": 4156968
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": 9143
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": 185601
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.114.1",
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",
@@ -5650,7 +5650,12 @@ var StormConfigSchema = z.object({
5650
5650
  extends: z.string().trim().optional().describe(
5651
5651
  "The path to a base JSON file to use as a configuration preset file"
5652
5652
  ),
5653
- name: z.string().trim().toLowerCase().optional().describe("The name of the package"),
5653
+ isRoot: z.boolean().optional().describe(
5654
+ "A flag indicating if the current configuration is the set in the root of the workspace"
5655
+ ),
5656
+ name: z.string().trim().toLowerCase().optional().describe(
5657
+ "The name of the service/package/scope using this configuration"
5658
+ ),
5654
5659
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
5655
5660
  organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
5656
5661
  repository: z.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
@@ -5660,24 +5665,34 @@ var StormConfigSchema = z.object({
5660
5665
  licensing: z.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
5661
5666
  branch: z.string().trim().default("main").describe("The branch of the workspace"),
5662
5667
  preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
5663
- owner: z.string().trim().default("@storm-software/development").describe("The owner of the package"),
5668
+ owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
5664
5669
  worker: z.string().trim().default("Stormie-Bot").describe(
5665
5670
  "The worker of the package (this is the bot that will be used to perform various tasks)"
5666
5671
  ),
5667
- 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"),
5668
5673
  workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
5669
5674
  packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
5670
5675
  externalPackagePatterns: z.array(z.string()).default([]).describe(
5671
5676
  "The build will use these package patterns to determine if they should be external to the bundle"
5672
5677
  ),
5673
5678
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
5674
- cacheDirectory: z.string().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
5679
+ cacheDirectory: z.string().trim().optional().describe(
5680
+ "The directory used to store the environment's cached file data"
5681
+ ),
5682
+ dataDirectory: z.string().trim().optional().describe("The directory used to store the environment's data files"),
5683
+ configDirectory: z.string().trim().optional().describe(
5684
+ "The directory used to store the environment's configuration files"
5685
+ ),
5686
+ tempDirectory: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
5687
+ logDirectory: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
5675
5688
  buildDirectory: z.string().trim().default("dist").describe("The build directory for the workspace"),
5676
5689
  outputDirectory: z.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
5677
5690
  runtimeVersion: z.string().trim().regex(
5678
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-]+)*))?$/
5679
5692
  ).default("1.0.0").describe("The global version of the Storm runtime"),
5680
- 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
+ ),
5681
5696
  timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
5682
5697
  locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
5683
5698
  logLevel: z.enum([
@@ -5689,7 +5704,7 @@ var StormConfigSchema = z.object({
5689
5704
  "debug",
5690
5705
  "trace",
5691
5706
  "all"
5692
- ]).default("debug").describe(
5707
+ ]).default("info").describe(
5693
5708
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
5694
5709
  ),
5695
5710
  cloudflareAccountId: z.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
@@ -5634,7 +5634,12 @@ var StormConfigSchema = z.object({
5634
5634
  extends: z.string().trim().optional().describe(
5635
5635
  "The path to a base JSON file to use as a configuration preset file"
5636
5636
  ),
5637
- name: z.string().trim().toLowerCase().optional().describe("The name of the package"),
5637
+ isRoot: z.boolean().optional().describe(
5638
+ "A flag indicating if the current configuration is the set in the root of the workspace"
5639
+ ),
5640
+ name: z.string().trim().toLowerCase().optional().describe(
5641
+ "The name of the service/package/scope using this configuration"
5642
+ ),
5638
5643
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
5639
5644
  organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
5640
5645
  repository: z.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
@@ -5644,24 +5649,34 @@ var StormConfigSchema = z.object({
5644
5649
  licensing: z.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
5645
5650
  branch: z.string().trim().default("main").describe("The branch of the workspace"),
5646
5651
  preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
5647
- owner: z.string().trim().default("@storm-software/development").describe("The owner of the package"),
5652
+ owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
5648
5653
  worker: z.string().trim().default("Stormie-Bot").describe(
5649
5654
  "The worker of the package (this is the bot that will be used to perform various tasks)"
5650
5655
  ),
5651
- 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"),
5652
5657
  workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
5653
5658
  packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
5654
5659
  externalPackagePatterns: z.array(z.string()).default([]).describe(
5655
5660
  "The build will use these package patterns to determine if they should be external to the bundle"
5656
5661
  ),
5657
5662
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
5658
- cacheDirectory: z.string().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
5663
+ cacheDirectory: z.string().trim().optional().describe(
5664
+ "The directory used to store the environment's cached file data"
5665
+ ),
5666
+ dataDirectory: z.string().trim().optional().describe("The directory used to store the environment's data files"),
5667
+ configDirectory: z.string().trim().optional().describe(
5668
+ "The directory used to store the environment's configuration files"
5669
+ ),
5670
+ tempDirectory: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
5671
+ logDirectory: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
5659
5672
  buildDirectory: z.string().trim().default("dist").describe("The build directory for the workspace"),
5660
5673
  outputDirectory: z.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
5661
5674
  runtimeVersion: z.string().trim().regex(
5662
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-]+)*))?$/
5663
5676
  ).default("1.0.0").describe("The global version of the Storm runtime"),
5664
- 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
+ ),
5665
5680
  timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
5666
5681
  locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
5667
5682
  logLevel: z.enum([
@@ -5673,7 +5688,7 @@ var StormConfigSchema = z.object({
5673
5688
  "debug",
5674
5689
  "trace",
5675
5690
  "all"
5676
- ]).default("debug").describe(
5691
+ ]).default("info").describe(
5677
5692
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
5678
5693
  ),
5679
5694
  cloudflareAccountId: z.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),