@storm-software/config 1.110.6 → 1.112.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/dist/schema.js CHANGED
@@ -8,13 +8,14 @@ import {
8
8
  RegistryConfigSchema,
9
9
  RegistryUrlConfigSchema,
10
10
  SingleThemeColorConfigSchema,
11
- StormConfigSchema,
12
11
  WorkspaceAccountConfigSchema,
13
12
  WorkspaceBotConfigSchema,
14
13
  WorkspaceDirectoryConfigSchema,
15
- WorkspaceReleaseConfigSchema
16
- } from "./chunk-FWJ7T4PW.js";
17
- import "./chunk-HODJMVAD.js";
14
+ WorkspaceReleaseConfigSchema,
15
+ errorConfigSchema,
16
+ stormWorkspaceConfigSchema
17
+ } from "./chunk-CIOGSYBE.js";
18
+ import "./chunk-JXP4TNRB.js";
18
19
  import "./chunk-SHUYVCID.js";
19
20
  export {
20
21
  ColorConfigMapSchema,
@@ -26,9 +27,10 @@ export {
26
27
  RegistryConfigSchema,
27
28
  RegistryUrlConfigSchema,
28
29
  SingleThemeColorConfigSchema,
29
- StormConfigSchema,
30
30
  WorkspaceAccountConfigSchema,
31
31
  WorkspaceBotConfigSchema,
32
32
  WorkspaceDirectoryConfigSchema,
33
- WorkspaceReleaseConfigSchema
33
+ WorkspaceReleaseConfigSchema,
34
+ errorConfigSchema,
35
+ stormWorkspaceConfigSchema
34
36
  };
package/dist/types.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import z from 'zod';
2
- import { DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema } from './schema.cjs';
2
+ import { DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, stormWorkspaceConfigSchema } from './schema.cjs';
3
3
 
4
4
  type DarkThemeColorConfig = z.infer<typeof DarkThemeColorConfigSchema>;
5
5
  type DarkThemeColorConfigInput = z.input<typeof DarkThemeColorConfigSchema>;
@@ -13,13 +13,29 @@ type ColorConfig = z.infer<typeof ColorConfigSchema>;
13
13
  type ColorConfigInput = z.input<typeof ColorConfigSchema>;
14
14
  type ColorConfigMap = z.infer<typeof ColorConfigMapSchema>;
15
15
  type ColorConfigMapInput = z.input<typeof ColorConfigMapSchema>;
16
- type TStormConfig = z.infer<typeof StormConfigSchema>;
17
- type StormConfigInput = z.input<typeof StormConfigSchema>;
18
- type StormConfig<TExtensionName extends keyof TStormConfig["extensions"] = keyof TStormConfig["extensions"], TExtensionConfig extends TStormConfig["extensions"][TExtensionName] = TStormConfig["extensions"][TExtensionName]> = TStormConfig & {
19
- extensions: (TStormConfig["extensions"] & {
16
+ type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
17
+ type StormWorkspaceConfigInput = z.input<typeof stormWorkspaceConfigSchema>;
18
+ /**
19
+ * The Storm workspace's configuration object
20
+ *
21
+ * @remarks
22
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
23
+ *
24
+ * @deprecated
25
+ * This type is deprecated and will be removed in the next major version. Use `StormWorkspaceConfig` instead.
26
+ */
27
+ type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
28
+ extensions: (TStormWorkspaceConfig["extensions"] & {
20
29
  [extensionName in TExtensionName]: TExtensionConfig;
21
30
  }) | NonNullable<Record<string, any>>;
22
31
  };
32
+ /**
33
+ * The Storm workspace's configuration object
34
+ *
35
+ * @remarks
36
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
37
+ */
38
+ type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
23
39
  declare const COLOR_KEYS: string[];
24
40
 
25
- export { COLOR_KEYS, type ColorConfig, type ColorConfigInput, type ColorConfigMap, type ColorConfigMapInput, type DarkThemeColorConfig, type DarkThemeColorConfigInput, type LightThemeColorConfig, type LightThemeColorConfigInput, type MultiThemeColorConfig, type MultiThemeColorConfigInput, type SingleThemeColorConfig, type SingleThemeColorConfigInput, type StormConfig, type StormConfigInput };
41
+ export { COLOR_KEYS, type ColorConfig, type ColorConfigInput, type ColorConfigMap, type ColorConfigMapInput, type DarkThemeColorConfig, type DarkThemeColorConfigInput, type LightThemeColorConfig, type LightThemeColorConfigInput, type MultiThemeColorConfig, type MultiThemeColorConfigInput, type SingleThemeColorConfig, type SingleThemeColorConfigInput, type StormConfig, type StormWorkspaceConfig, type StormWorkspaceConfigInput };
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import z from 'zod';
2
- import { DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema } from './schema.js';
2
+ import { DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, stormWorkspaceConfigSchema } from './schema.js';
3
3
 
4
4
  type DarkThemeColorConfig = z.infer<typeof DarkThemeColorConfigSchema>;
5
5
  type DarkThemeColorConfigInput = z.input<typeof DarkThemeColorConfigSchema>;
@@ -13,13 +13,29 @@ type ColorConfig = z.infer<typeof ColorConfigSchema>;
13
13
  type ColorConfigInput = z.input<typeof ColorConfigSchema>;
14
14
  type ColorConfigMap = z.infer<typeof ColorConfigMapSchema>;
15
15
  type ColorConfigMapInput = z.input<typeof ColorConfigMapSchema>;
16
- type TStormConfig = z.infer<typeof StormConfigSchema>;
17
- type StormConfigInput = z.input<typeof StormConfigSchema>;
18
- type StormConfig<TExtensionName extends keyof TStormConfig["extensions"] = keyof TStormConfig["extensions"], TExtensionConfig extends TStormConfig["extensions"][TExtensionName] = TStormConfig["extensions"][TExtensionName]> = TStormConfig & {
19
- extensions: (TStormConfig["extensions"] & {
16
+ type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
17
+ type StormWorkspaceConfigInput = z.input<typeof stormWorkspaceConfigSchema>;
18
+ /**
19
+ * The Storm workspace's configuration object
20
+ *
21
+ * @remarks
22
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
23
+ *
24
+ * @deprecated
25
+ * This type is deprecated and will be removed in the next major version. Use `StormWorkspaceConfig` instead.
26
+ */
27
+ type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
28
+ extensions: (TStormWorkspaceConfig["extensions"] & {
20
29
  [extensionName in TExtensionName]: TExtensionConfig;
21
30
  }) | NonNullable<Record<string, any>>;
22
31
  };
32
+ /**
33
+ * The Storm workspace's configuration object
34
+ *
35
+ * @remarks
36
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
37
+ */
38
+ type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
23
39
  declare const COLOR_KEYS: string[];
24
40
 
25
- export { COLOR_KEYS, type ColorConfig, type ColorConfigInput, type ColorConfigMap, type ColorConfigMapInput, type DarkThemeColorConfig, type DarkThemeColorConfigInput, type LightThemeColorConfig, type LightThemeColorConfigInput, type MultiThemeColorConfig, type MultiThemeColorConfigInput, type SingleThemeColorConfig, type SingleThemeColorConfigInput, type StormConfig, type StormConfigInput };
41
+ export { COLOR_KEYS, type ColorConfig, type ColorConfigInput, type ColorConfigMap, type ColorConfigMapInput, type DarkThemeColorConfig, type DarkThemeColorConfigInput, type LightThemeColorConfig, type LightThemeColorConfigInput, type MultiThemeColorConfig, type MultiThemeColorConfigInput, type SingleThemeColorConfig, type SingleThemeColorConfigInput, type StormConfig, type StormWorkspaceConfig, type StormWorkspaceConfigInput };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/config",
3
- "version": "1.110.6",
3
+ "version": "1.112.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
@@ -12,6 +12,9 @@
12
12
  "directories": {
13
13
  "build": "dist"
14
14
  },
15
+ "error": {
16
+ "codesFile": "errors/codes.json"
17
+ },
15
18
  "externalPackagePatterns": ["@storm-software/"],
16
19
  "registry": {
17
20
  "github": "https://npm.pkg.github.com",
@@ -174,6 +174,23 @@
174
174
  "additionalProperties": false,
175
175
  "description": "The workspace's account config used to store various social media links"
176
176
  },
177
+ "error": {
178
+ "type": "object",
179
+ "properties": {
180
+ "codesFile": {
181
+ "type": "string",
182
+ "default": "https://public.storm-cdn.com/brand-banner.png",
183
+ "description": "The path to the workspace's error codes JSON file"
184
+ },
185
+ "url": {
186
+ "type": "string",
187
+ "format": "uri",
188
+ "description": "A URL to a page that looks up the workspace's error messages given a specific error code"
189
+ }
190
+ },
191
+ "additionalProperties": false,
192
+ "description": "The workspace's error config used during the error process"
193
+ },
177
194
  "mode": {
178
195
  "type": "string",
179
196
  "enum": ["development", "staging", "production"],
@@ -557,7 +574,14 @@
557
574
  "description": "Configuration of each used extension"
558
575
  }
559
576
  },
560
- "required": ["bot", "release", "account", "directories", "colors"],
577
+ "required": [
578
+ "bot",
579
+ "release",
580
+ "account",
581
+ "error",
582
+ "directories",
583
+ "colors"
584
+ ],
561
585
  "additionalProperties": false,
562
586
  "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."
563
587
  }
@@ -11,3 +11,4 @@ export declare const STORM_DEFAULT_ACCOUNT_SLACK = "https://join.slack.com/t/sto
11
11
  export declare const STORM_DEFAULT_ACCOUNT_MEDIUM = "https://medium.com/storm-software";
12
12
  export declare const STORM_DEFAULT_ACCOUNT_GITHUB = "https://github.com/storm-software";
13
13
  export declare const STORM_DEFAULT_RELEASE_FOOTER = "\nStorm Software is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.\n\nJoin us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team, receive release notifications, ask questions, and get involved.\n\nIf this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](https://stormsoftware.com/contact) or join our [Slack](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA) channel!\n";
14
+ export declare const STORM_DEFAULT_ERROR_CODES_FILE = "errors/codes.json";
@@ -1,11 +1,11 @@
1
- import type { StormConfigInput } from "./types";
1
+ import type { StormWorkspaceConfigInput } from "./types";
2
2
  /**
3
3
  * Type the config values for the current Storm workspace
4
4
  *
5
5
  * @param input - The config values for the current Storm workspace
6
6
  * @returns The config values for the current Storm workspace
7
7
  */
8
- export declare const defineConfig: (input: StormConfigInput) => {
8
+ export declare const defineConfig: (input: StormWorkspaceConfigInput) => {
9
9
  bot: {
10
10
  name?: string | undefined;
11
11
  email?: string | undefined;
@@ -23,6 +23,10 @@ export declare const defineConfig: (input: StormConfigInput) => {
23
23
  slack?: string | undefined;
24
24
  medium?: string | undefined;
25
25
  };
26
+ error: {
27
+ codesFile?: string | undefined;
28
+ url?: string | undefined;
29
+ };
26
30
  directories: {
27
31
  cache?: string | undefined;
28
32
  data?: string | undefined;
@@ -199,7 +203,7 @@ export declare const defineConfig: (input: StormConfigInput) => {
199
203
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
200
204
  timezone?: string | undefined;
201
205
  locale?: string | undefined;
202
- logLevel?: "success" | "info" | "fatal" | "silent" | "error" | "warn" | "debug" | "trace" | "all" | undefined;
206
+ logLevel?: "success" | "info" | "fatal" | "error" | "silent" | "warn" | "debug" | "trace" | "all" | undefined;
203
207
  skipConfigLogging?: boolean | undefined;
204
208
  registry?: {
205
209
  github?: string | undefined;
package/src/schema.d.ts CHANGED
@@ -1104,10 +1104,20 @@ export declare const WorkspaceDirectoryConfigSchema: z.ZodObject<{
1104
1104
  log?: string | undefined;
1105
1105
  build?: string | undefined;
1106
1106
  }>;
1107
+ export declare const errorConfigSchema: z.ZodObject<{
1108
+ codesFile: z.ZodDefault<z.ZodString>;
1109
+ url: z.ZodOptional<z.ZodString>;
1110
+ }, "strip", z.ZodTypeAny, {
1111
+ codesFile: string;
1112
+ url?: string | undefined;
1113
+ }, {
1114
+ codesFile?: string | undefined;
1115
+ url?: string | undefined;
1116
+ }>;
1107
1117
  /**
1108
1118
  * Storm Workspace config values used during various dev-ops processes. It represents the config of the entire monorepo.
1109
1119
  */
1110
- export declare const StormConfigSchema: z.ZodObject<{
1120
+ export declare const stormWorkspaceConfigSchema: z.ZodObject<{
1111
1121
  $schema: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodString>>>>;
1112
1122
  extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1113
1123
  name: z.ZodOptional<z.ZodString>;
@@ -1167,6 +1177,16 @@ export declare const StormConfigSchema: z.ZodObject<{
1167
1177
  slack?: string | undefined;
1168
1178
  medium?: string | undefined;
1169
1179
  }>;
1180
+ error: z.ZodObject<{
1181
+ codesFile: z.ZodDefault<z.ZodString>;
1182
+ url: z.ZodOptional<z.ZodString>;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ codesFile: string;
1185
+ url?: string | undefined;
1186
+ }, {
1187
+ codesFile?: string | undefined;
1188
+ url?: string | undefined;
1189
+ }>;
1170
1190
  mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
1171
1191
  workspaceRoot: z.ZodDefault<z.ZodString>;
1172
1192
  externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -1960,6 +1980,10 @@ export declare const StormConfigSchema: z.ZodObject<{
1960
1980
  slack: string;
1961
1981
  medium: string;
1962
1982
  };
1983
+ error: {
1984
+ codesFile: string;
1985
+ url?: string | undefined;
1986
+ };
1963
1987
  mode: "development" | "staging" | "production";
1964
1988
  workspaceRoot: string;
1965
1989
  externalPackagePatterns: string[];
@@ -1975,7 +1999,7 @@ export declare const StormConfigSchema: z.ZodObject<{
1975
1999
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
1976
2000
  timezone: string;
1977
2001
  locale: string;
1978
- logLevel: "success" | "info" | "fatal" | "silent" | "error" | "warn" | "debug" | "trace" | "all";
2002
+ logLevel: "success" | "info" | "fatal" | "error" | "silent" | "warn" | "debug" | "trace" | "all";
1979
2003
  registry: {
1980
2004
  github?: string | undefined;
1981
2005
  npm?: string | undefined;
@@ -2157,6 +2181,10 @@ export declare const StormConfigSchema: z.ZodObject<{
2157
2181
  slack?: string | undefined;
2158
2182
  medium?: string | undefined;
2159
2183
  };
2184
+ error: {
2185
+ codesFile?: string | undefined;
2186
+ url?: string | undefined;
2187
+ };
2160
2188
  directories: {
2161
2189
  cache?: string | undefined;
2162
2190
  data?: string | undefined;
@@ -2333,7 +2361,7 @@ export declare const StormConfigSchema: z.ZodObject<{
2333
2361
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
2334
2362
  timezone?: string | undefined;
2335
2363
  locale?: string | undefined;
2336
- logLevel?: "success" | "info" | "fatal" | "silent" | "error" | "warn" | "debug" | "trace" | "all" | undefined;
2364
+ logLevel?: "success" | "info" | "fatal" | "error" | "silent" | "warn" | "debug" | "trace" | "all" | undefined;
2337
2365
  skipConfigLogging?: boolean | undefined;
2338
2366
  registry?: {
2339
2367
  github?: string | undefined;
package/src/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type z from "zod";
2
- import type { ColorConfigMapSchema, ColorConfigSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, StormConfigSchema } from "./schema";
2
+ import type { ColorConfigMapSchema, ColorConfigSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, stormWorkspaceConfigSchema } from "./schema";
3
3
  export type DarkThemeColorConfig = z.infer<typeof DarkThemeColorConfigSchema>;
4
4
  export type DarkThemeColorConfigInput = z.input<typeof DarkThemeColorConfigSchema>;
5
5
  export type LightThemeColorConfig = z.infer<typeof LightThemeColorConfigSchema>;
@@ -12,12 +12,28 @@ export type ColorConfig = z.infer<typeof ColorConfigSchema>;
12
12
  export type ColorConfigInput = z.input<typeof ColorConfigSchema>;
13
13
  export type ColorConfigMap = z.infer<typeof ColorConfigMapSchema>;
14
14
  export type ColorConfigMapInput = z.input<typeof ColorConfigMapSchema>;
15
- type TStormConfig = z.infer<typeof StormConfigSchema>;
16
- export type StormConfigInput = z.input<typeof StormConfigSchema>;
17
- export type StormConfig<TExtensionName extends keyof TStormConfig["extensions"] = keyof TStormConfig["extensions"], TExtensionConfig extends TStormConfig["extensions"][TExtensionName] = TStormConfig["extensions"][TExtensionName]> = TStormConfig & {
18
- extensions: (TStormConfig["extensions"] & {
15
+ type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
16
+ export type StormWorkspaceConfigInput = z.input<typeof stormWorkspaceConfigSchema>;
17
+ /**
18
+ * The Storm workspace's configuration object
19
+ *
20
+ * @remarks
21
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
22
+ *
23
+ * @deprecated
24
+ * This type is deprecated and will be removed in the next major version. Use `StormWorkspaceConfig` instead.
25
+ */
26
+ export type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
27
+ extensions: (TStormWorkspaceConfig["extensions"] & {
19
28
  [extensionName in TExtensionName]: TExtensionConfig;
20
29
  }) | NonNullable<Record<string, any>>;
21
30
  };
31
+ /**
32
+ * The Storm workspace's configuration object
33
+ *
34
+ * @remarks
35
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
36
+ */
37
+ export type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
22
38
  export declare const COLOR_KEYS: string[];
23
39
  export {};