@storm-software/config 1.101.26 → 1.102.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,13 @@
1
+ ## 1.102.0 (2025-02-18)
2
+
3
+ ### Features
4
+
5
+ - **config:** Change `env` parameter to `mode` ([2cb85c792](https://github.com/storm-software/storm-ops/commit/2cb85c792))
6
+
7
+ ### Miscellaneous
8
+
9
+ - **config:** Regenerate JSON schema ([0bbd4d5de](https://github.com/storm-software/storm-ops/commit/0bbd4d5de))
10
+
1
11
  ## 1.101.26 (2025-02-06)
2
12
 
3
13
  ### Miscellaneous
package/README.md CHANGED
@@ -40,6 +40,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
40
 
41
41
  <!-- START doctoc -->
42
42
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43
+
43
44
  ## Table of Contents
44
45
 
45
46
  - [Storm Configuration Package](#storm-configuration-package)
@@ -111,7 +112,7 @@ environment variables:
111
112
  | STORM_CACHE_DIRECTORY | The directory where cache is stored | "node_modules/.cache/storm" |
112
113
  | STORM_RUNTIME_VERSION | The runtime version used in the workspace | `null` |
113
114
  | STORM_OUTPUT_DIRECTORY | The directory where output files are stored | `null` |
114
- | STORM_ENV | The environment of the workspace | "production" |
115
+ | STORM_MODE | The environment mode type of the workspace | "production" |
115
116
  | STORM_REPOSITORY | The repository URL of the workspace | `null` |
116
117
  | STORM_BRANCH | The branch of the repository | "main" |
117
118
  | STORM_PRE_ID | The pre-release identifier | `null` |
@@ -116,11 +116,11 @@ var StormConfigSchema = _zod2.default.object({
116
116
  preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
117
117
  owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
118
118
  bot: WorkspaceBotConfigSchema,
119
- env: _zod2.default.enum([
119
+ mode: _zod2.default.enum([
120
120
  "development",
121
121
  "staging",
122
122
  "production"
123
- ]).default("production").describe("The current runtime environment name for the package"),
123
+ ]).default("production").describe("The current runtime environment mode for the package"),
124
124
  workspaceRoot: _zod2.default.string().trim().default("").describe("The root directory of the workspace"),
125
125
  externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
126
126
  skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
@@ -116,11 +116,11 @@ var StormConfigSchema = z.object({
116
116
  preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
117
117
  owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
118
118
  bot: WorkspaceBotConfigSchema,
119
- env: z.enum([
119
+ mode: z.enum([
120
120
  "development",
121
121
  "staging",
122
122
  "production"
123
- ]).default("production").describe("The current runtime environment name for the package"),
123
+ ]).default("production").describe("The current runtime environment mode for the package"),
124
124
  workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
125
125
  externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
126
126
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
@@ -181,7 +181,7 @@ declare const defineConfig: (input: StormConfigInput) => {
181
181
  branch?: string | undefined;
182
182
  preid?: string | undefined;
183
183
  owner?: string | undefined;
184
- env?: "development" | "staging" | "production" | undefined;
184
+ mode?: "development" | "staging" | "production" | undefined;
185
185
  workspaceRoot?: string | undefined;
186
186
  externalPackagePatterns?: string[] | undefined;
187
187
  skipCache?: boolean | undefined;
@@ -181,7 +181,7 @@ declare const defineConfig: (input: StormConfigInput) => {
181
181
  branch?: string | undefined;
182
182
  preid?: string | undefined;
183
183
  owner?: string | undefined;
184
- env?: "development" | "staging" | "production" | undefined;
184
+ mode?: "development" | "staging" | "production" | undefined;
185
185
  workspaceRoot?: string | undefined;
186
186
  externalPackagePatterns?: string[] | undefined;
187
187
  skipCache?: boolean | undefined;
package/dist/index.cjs CHANGED
@@ -14,7 +14,7 @@ var _chunkSNJKI2QWcjs = require('./chunk-SNJKI2QW.cjs');
14
14
 
15
15
 
16
16
 
17
- var _chunkRTN6VQFFcjs = require('./chunk-RTN6VQFF.cjs');
17
+ var _chunkKBXJ7YRCcjs = require('./chunk-KBXJ7YRC.cjs');
18
18
 
19
19
 
20
20
 
@@ -44,4 +44,4 @@ require('./chunk-USNT2KNT.cjs');
44
44
 
45
45
 
46
46
 
47
- exports.COLOR_KEYS = _chunkWRJN6ED4cjs.COLOR_KEYS; exports.ColorConfigMapSchema = _chunkRTN6VQFFcjs.ColorConfigMapSchema; exports.ColorConfigSchema = _chunkRTN6VQFFcjs.ColorConfigSchema; exports.DarkThemeColorConfigSchema = _chunkRTN6VQFFcjs.DarkThemeColorConfigSchema; exports.ExtendsSchema = _chunkRTN6VQFFcjs.ExtendsSchema; exports.LightThemeColorConfigSchema = _chunkRTN6VQFFcjs.LightThemeColorConfigSchema; exports.MultiThemeColorConfigSchema = _chunkRTN6VQFFcjs.MultiThemeColorConfigSchema; exports.RegistryConfigSchema = _chunkRTN6VQFFcjs.RegistryConfigSchema; exports.RegistryUrlConfigSchema = _chunkRTN6VQFFcjs.RegistryUrlConfigSchema; exports.STORM_DEFAULT_DOCS = _chunkAVMOBJJQcjs.STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = _chunkAVMOBJJQcjs.STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSE = _chunkAVMOBJJQcjs.STORM_DEFAULT_LICENSE; exports.STORM_DEFAULT_LICENSING = _chunkAVMOBJJQcjs.STORM_DEFAULT_LICENSING; exports.SingleThemeColorConfigSchema = _chunkRTN6VQFFcjs.SingleThemeColorConfigSchema; exports.StormConfigSchema = _chunkRTN6VQFFcjs.StormConfigSchema; exports.WorkspaceBotConfigSchema = _chunkRTN6VQFFcjs.WorkspaceBotConfigSchema; exports.WorkspaceDirectoryConfigSchema = _chunkRTN6VQFFcjs.WorkspaceDirectoryConfigSchema; exports.defineConfig = _chunkSNJKI2QWcjs.defineConfig;
47
+ exports.COLOR_KEYS = _chunkWRJN6ED4cjs.COLOR_KEYS; exports.ColorConfigMapSchema = _chunkKBXJ7YRCcjs.ColorConfigMapSchema; exports.ColorConfigSchema = _chunkKBXJ7YRCcjs.ColorConfigSchema; exports.DarkThemeColorConfigSchema = _chunkKBXJ7YRCcjs.DarkThemeColorConfigSchema; exports.ExtendsSchema = _chunkKBXJ7YRCcjs.ExtendsSchema; exports.LightThemeColorConfigSchema = _chunkKBXJ7YRCcjs.LightThemeColorConfigSchema; exports.MultiThemeColorConfigSchema = _chunkKBXJ7YRCcjs.MultiThemeColorConfigSchema; exports.RegistryConfigSchema = _chunkKBXJ7YRCcjs.RegistryConfigSchema; exports.RegistryUrlConfigSchema = _chunkKBXJ7YRCcjs.RegistryUrlConfigSchema; exports.STORM_DEFAULT_DOCS = _chunkAVMOBJJQcjs.STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = _chunkAVMOBJJQcjs.STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSE = _chunkAVMOBJJQcjs.STORM_DEFAULT_LICENSE; exports.STORM_DEFAULT_LICENSING = _chunkAVMOBJJQcjs.STORM_DEFAULT_LICENSING; exports.SingleThemeColorConfigSchema = _chunkKBXJ7YRCcjs.SingleThemeColorConfigSchema; exports.StormConfigSchema = _chunkKBXJ7YRCcjs.StormConfigSchema; exports.WorkspaceBotConfigSchema = _chunkKBXJ7YRCcjs.WorkspaceBotConfigSchema; exports.WorkspaceDirectoryConfigSchema = _chunkKBXJ7YRCcjs.WorkspaceDirectoryConfigSchema; exports.defineConfig = _chunkSNJKI2QWcjs.defineConfig;
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  StormConfigSchema,
15
15
  WorkspaceBotConfigSchema,
16
16
  WorkspaceDirectoryConfigSchema
17
- } from "./chunk-KDDB4C4G.js";
17
+ } from "./chunk-VSSMITCV.js";
18
18
  import {
19
19
  STORM_DEFAULT_DOCS,
20
20
  STORM_DEFAULT_HOMEPAGE,
package/dist/schema.cjs CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkRTN6VQFFcjs = require('./chunk-RTN6VQFF.cjs');
14
+ var _chunkKBXJ7YRCcjs = require('./chunk-KBXJ7YRC.cjs');
15
15
  require('./chunk-AVMOBJJQ.cjs');
16
16
  require('./chunk-USNT2KNT.cjs');
17
17
 
@@ -27,4 +27,4 @@ require('./chunk-USNT2KNT.cjs');
27
27
 
28
28
 
29
29
 
30
- exports.ColorConfigMapSchema = _chunkRTN6VQFFcjs.ColorConfigMapSchema; exports.ColorConfigSchema = _chunkRTN6VQFFcjs.ColorConfigSchema; exports.DarkThemeColorConfigSchema = _chunkRTN6VQFFcjs.DarkThemeColorConfigSchema; exports.ExtendsSchema = _chunkRTN6VQFFcjs.ExtendsSchema; exports.LightThemeColorConfigSchema = _chunkRTN6VQFFcjs.LightThemeColorConfigSchema; exports.MultiThemeColorConfigSchema = _chunkRTN6VQFFcjs.MultiThemeColorConfigSchema; exports.RegistryConfigSchema = _chunkRTN6VQFFcjs.RegistryConfigSchema; exports.RegistryUrlConfigSchema = _chunkRTN6VQFFcjs.RegistryUrlConfigSchema; exports.SingleThemeColorConfigSchema = _chunkRTN6VQFFcjs.SingleThemeColorConfigSchema; exports.StormConfigSchema = _chunkRTN6VQFFcjs.StormConfigSchema; exports.WorkspaceBotConfigSchema = _chunkRTN6VQFFcjs.WorkspaceBotConfigSchema; exports.WorkspaceDirectoryConfigSchema = _chunkRTN6VQFFcjs.WorkspaceDirectoryConfigSchema;
30
+ exports.ColorConfigMapSchema = _chunkKBXJ7YRCcjs.ColorConfigMapSchema; exports.ColorConfigSchema = _chunkKBXJ7YRCcjs.ColorConfigSchema; exports.DarkThemeColorConfigSchema = _chunkKBXJ7YRCcjs.DarkThemeColorConfigSchema; exports.ExtendsSchema = _chunkKBXJ7YRCcjs.ExtendsSchema; exports.LightThemeColorConfigSchema = _chunkKBXJ7YRCcjs.LightThemeColorConfigSchema; exports.MultiThemeColorConfigSchema = _chunkKBXJ7YRCcjs.MultiThemeColorConfigSchema; exports.RegistryConfigSchema = _chunkKBXJ7YRCcjs.RegistryConfigSchema; exports.RegistryUrlConfigSchema = _chunkKBXJ7YRCcjs.RegistryUrlConfigSchema; exports.SingleThemeColorConfigSchema = _chunkKBXJ7YRCcjs.SingleThemeColorConfigSchema; exports.StormConfigSchema = _chunkKBXJ7YRCcjs.StormConfigSchema; exports.WorkspaceBotConfigSchema = _chunkKBXJ7YRCcjs.WorkspaceBotConfigSchema; exports.WorkspaceDirectoryConfigSchema = _chunkKBXJ7YRCcjs.WorkspaceDirectoryConfigSchema;
package/dist/schema.d.cts CHANGED
@@ -1097,7 +1097,7 @@ declare const StormConfigSchema: z.ZodObject<{
1097
1097
  name?: string | undefined;
1098
1098
  email?: string | undefined;
1099
1099
  }>;
1100
- env: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
1100
+ mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
1101
1101
  workspaceRoot: z.ZodDefault<z.ZodString>;
1102
1102
  externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1103
1103
  skipCache: z.ZodDefault<z.ZodBoolean>;
@@ -1876,7 +1876,7 @@ declare const StormConfigSchema: z.ZodObject<{
1876
1876
  name: string;
1877
1877
  email: string;
1878
1878
  };
1879
- env: "development" | "staging" | "production";
1879
+ mode: "development" | "staging" | "production";
1880
1880
  workspaceRoot: string;
1881
1881
  externalPackagePatterns: string[];
1882
1882
  skipCache: boolean;
@@ -2228,7 +2228,7 @@ declare const StormConfigSchema: z.ZodObject<{
2228
2228
  branch?: string | undefined;
2229
2229
  preid?: string | undefined;
2230
2230
  owner?: string | undefined;
2231
- env?: "development" | "staging" | "production" | undefined;
2231
+ mode?: "development" | "staging" | "production" | undefined;
2232
2232
  workspaceRoot?: string | undefined;
2233
2233
  externalPackagePatterns?: string[] | undefined;
2234
2234
  skipCache?: boolean | undefined;
package/dist/schema.d.ts CHANGED
@@ -1097,7 +1097,7 @@ declare const StormConfigSchema: z.ZodObject<{
1097
1097
  name?: string | undefined;
1098
1098
  email?: string | undefined;
1099
1099
  }>;
1100
- env: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
1100
+ mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
1101
1101
  workspaceRoot: z.ZodDefault<z.ZodString>;
1102
1102
  externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1103
1103
  skipCache: z.ZodDefault<z.ZodBoolean>;
@@ -1876,7 +1876,7 @@ declare const StormConfigSchema: z.ZodObject<{
1876
1876
  name: string;
1877
1877
  email: string;
1878
1878
  };
1879
- env: "development" | "staging" | "production";
1879
+ mode: "development" | "staging" | "production";
1880
1880
  workspaceRoot: string;
1881
1881
  externalPackagePatterns: string[];
1882
1882
  skipCache: boolean;
@@ -2228,7 +2228,7 @@ declare const StormConfigSchema: z.ZodObject<{
2228
2228
  branch?: string | undefined;
2229
2229
  preid?: string | undefined;
2230
2230
  owner?: string | undefined;
2231
- env?: "development" | "staging" | "production" | undefined;
2231
+ mode?: "development" | "staging" | "production" | undefined;
2232
2232
  workspaceRoot?: string | undefined;
2233
2233
  externalPackagePatterns?: string[] | undefined;
2234
2234
  skipCache?: boolean | undefined;
package/dist/schema.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  StormConfigSchema,
12
12
  WorkspaceBotConfigSchema,
13
13
  WorkspaceDirectoryConfigSchema
14
- } from "./chunk-KDDB4C4G.js";
14
+ } from "./chunk-VSSMITCV.js";
15
15
  import "./chunk-PQYQEEST.js";
16
16
  import "./chunk-SHUYVCID.js";
17
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/config",
3
- "version": "1.101.26",
3
+ "version": "1.102.0",
4
4
  "type": "module",
5
5
  "description": "Configuration management tools and schemas for Storm Software projects, providing a standardized approach to handle project settings and presets.",
6
6
  "repository": {
package/presets/base.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "organization": "storm-software",
4
4
  "owner": "@storm-software/admin",
5
5
  "bot": { "name": "Stormie-Bot", "email": "bot@stormsoftware.com" },
6
- "env": "production",
6
+ "mode": "production",
7
7
  "timezone": "America/New_York",
8
8
  "locale": "en-US",
9
9
  "logLevel": "info",
@@ -110,11 +110,15 @@
110
110
  "additionalProperties": false,
111
111
  "description": "The workspace's bot user's config used to automated various operations tasks"
112
112
  },
113
- "env": {
113
+ "mode": {
114
114
  "type": "string",
115
- "enum": ["development", "staging", "production"],
115
+ "enum": [
116
+ "development",
117
+ "staging",
118
+ "production"
119
+ ],
116
120
  "default": "production",
117
- "description": "The current runtime environment name for the package"
121
+ "description": "The current runtime environment mode for the package"
118
122
  },
119
123
  "workspaceRoot": {
120
124
  "type": "string",
@@ -168,7 +172,12 @@
168
172
  },
169
173
  "packageManager": {
170
174
  "type": "string",
171
- "enum": ["npm", "yarn", "pnpm", "bun"],
175
+ "enum": [
176
+ "npm",
177
+ "yarn",
178
+ "pnpm",
179
+ "bun"
180
+ ],
172
181
  "default": "npm",
173
182
  "description": "The JavaScript/TypeScript package manager used by the repository"
174
183
  },
@@ -457,7 +466,10 @@
457
466
  "additionalProperties": false
458
467
  }
459
468
  },
460
- "required": ["dark", "light"],
469
+ "required": [
470
+ "dark",
471
+ "light"
472
+ ],
461
473
  "additionalProperties": false
462
474
  }
463
475
  ],
@@ -472,7 +484,9 @@
472
484
  "$ref": "#/definitions/StormWorkspaceConfiguration/properties/colors/anyOf/0"
473
485
  }
474
486
  },
475
- "required": ["base"],
487
+ "required": [
488
+ "base"
489
+ ],
476
490
  "additionalProperties": false
477
491
  },
478
492
  {
@@ -493,7 +507,11 @@
493
507
  "description": "Configuration of each used extension"
494
508
  }
495
509
  },
496
- "required": ["bot", "directories", "colors"],
510
+ "required": [
511
+ "bot",
512
+ "directories",
513
+ "colors"
514
+ ],
497
515
  "additionalProperties": false,
498
516
  "description": "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
499
517
  }
@@ -178,7 +178,7 @@ export declare const defineConfig: (input: StormConfigInput) => {
178
178
  branch?: string | undefined;
179
179
  preid?: string | undefined;
180
180
  owner?: string | undefined;
181
- env?: "development" | "staging" | "production" | undefined;
181
+ mode?: "development" | "staging" | "production" | undefined;
182
182
  workspaceRoot?: string | undefined;
183
183
  externalPackagePatterns?: string[] | undefined;
184
184
  skipCache?: boolean | undefined;
package/src/schema.d.ts CHANGED
@@ -1096,7 +1096,7 @@ export declare const StormConfigSchema: z.ZodObject<{
1096
1096
  name?: string | undefined;
1097
1097
  email?: string | undefined;
1098
1098
  }>;
1099
- env: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
1099
+ mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
1100
1100
  workspaceRoot: z.ZodDefault<z.ZodString>;
1101
1101
  externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1102
1102
  skipCache: z.ZodDefault<z.ZodBoolean>;
@@ -1875,7 +1875,7 @@ export declare const StormConfigSchema: z.ZodObject<{
1875
1875
  name: string;
1876
1876
  email: string;
1877
1877
  };
1878
- env: "development" | "staging" | "production";
1878
+ mode: "development" | "staging" | "production";
1879
1879
  workspaceRoot: string;
1880
1880
  externalPackagePatterns: string[];
1881
1881
  skipCache: boolean;
@@ -2227,7 +2227,7 @@ export declare const StormConfigSchema: z.ZodObject<{
2227
2227
  branch?: string | undefined;
2228
2228
  preid?: string | undefined;
2229
2229
  owner?: string | undefined;
2230
- env?: "development" | "staging" | "production" | undefined;
2230
+ mode?: "development" | "staging" | "production" | undefined;
2231
2231
  workspaceRoot?: string | undefined;
2232
2232
  externalPackagePatterns?: string[] | undefined;
2233
2233
  skipCache?: boolean | undefined;