@storm-software/config 1.98.2 → 1.99.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,19 @@
1
+ ## 1.99.0 (2025-01-23)
2
+
3
+ ### Features
4
+
5
+ - **config-tools:** Added the `storm-config` CLI to view current workspace configuration ([4241a6ae](https://github.com/storm-software/storm-ops/commit/4241a6ae))
6
+
7
+ ### Miscellaneous
8
+
9
+ - **config:** Regenerated the Storm Configuration JSON schema ([6301f75a](https://github.com/storm-software/storm-ops/commit/6301f75a))
10
+
11
+ ## 1.98.3 (2025-01-22)
12
+
13
+ ### Miscellaneous
14
+
15
+ - **monorepo:** Update the workspace's `storm.json` config to use the new preset repository ([95067c70](https://github.com/storm-software/storm-ops/commit/95067c70))
16
+
1
17
  ## 1.98.2 (2025-01-22)
2
18
 
3
19
  ### Bug Fixes
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-1.98.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.98.3-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/index.cjs CHANGED
@@ -23,6 +23,7 @@ __export(index_exports, {
23
23
  ColorConfigMapSchema: () => ColorConfigMapSchema,
24
24
  ColorConfigSchema: () => ColorConfigSchema,
25
25
  DarkThemeColorConfigSchema: () => DarkThemeColorConfigSchema,
26
+ ExtendsSchema: () => ExtendsSchema,
26
27
  LightThemeColorConfigSchema: () => LightThemeColorConfigSchema,
27
28
  MultiThemeColorConfigSchema: () => MultiThemeColorConfigSchema,
28
29
  RegistryConfigSchema: () => RegistryConfigSchema,
@@ -4174,6 +4175,14 @@ var ColorConfigMapSchema = z.union([
4174
4175
  z.object({ "base": ColorConfigSchema }),
4175
4176
  z.record(z.string(), ColorConfigSchema)
4176
4177
  ]);
4178
+ var ExtendsItemSchema = z.string().trim().describe(
4179
+ "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
4180
+ );
4181
+ var ExtendsSchema = ExtendsItemSchema.or(
4182
+ z.array(ExtendsItemSchema)
4183
+ ).describe(
4184
+ "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
4185
+ );
4177
4186
  var WorkspaceBotConfigSchema = z.object({
4178
4187
  name: z.string().trim().default("Stormie-Bot").describe(
4179
4188
  "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
@@ -4204,15 +4213,13 @@ var StormConfigSchema = z.object({
4204
4213
  ).optional().nullish().describe(
4205
4214
  "The URL to the JSON schema file that describes the Storm configuration file"
4206
4215
  ),
4207
- extends: z.string().trim().optional().describe(
4208
- "The path to a base JSON file to use as a configuration preset file"
4209
- ),
4216
+ extends: ExtendsSchema.optional(),
4210
4217
  name: z.string().trim().toLowerCase().optional().describe(
4211
4218
  "The name of the service/package/scope using this configuration"
4212
4219
  ),
4213
4220
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
4214
4221
  organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
4215
- repository: z.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
4222
+ repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
4216
4223
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
4217
4224
  homepage: z.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
4218
4225
  docs: z.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
package/index.js CHANGED
@@ -4133,6 +4133,14 @@ var ColorConfigMapSchema = z.union([
4133
4133
  z.object({ "base": ColorConfigSchema }),
4134
4134
  z.record(z.string(), ColorConfigSchema)
4135
4135
  ]);
4136
+ var ExtendsItemSchema = z.string().trim().describe(
4137
+ "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
4138
+ );
4139
+ var ExtendsSchema = ExtendsItemSchema.or(
4140
+ z.array(ExtendsItemSchema)
4141
+ ).describe(
4142
+ "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
4143
+ );
4136
4144
  var WorkspaceBotConfigSchema = z.object({
4137
4145
  name: z.string().trim().default("Stormie-Bot").describe(
4138
4146
  "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
@@ -4163,15 +4171,13 @@ var StormConfigSchema = z.object({
4163
4171
  ).optional().nullish().describe(
4164
4172
  "The URL to the JSON schema file that describes the Storm configuration file"
4165
4173
  ),
4166
- extends: z.string().trim().optional().describe(
4167
- "The path to a base JSON file to use as a configuration preset file"
4168
- ),
4174
+ extends: ExtendsSchema.optional(),
4169
4175
  name: z.string().trim().toLowerCase().optional().describe(
4170
4176
  "The name of the service/package/scope using this configuration"
4171
4177
  ),
4172
4178
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
4173
4179
  organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
4174
- repository: z.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
4180
+ repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
4175
4181
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
4176
4182
  homepage: z.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
4177
4183
  docs: z.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
@@ -4240,6 +4246,7 @@ export {
4240
4246
  ColorConfigMapSchema,
4241
4247
  ColorConfigSchema,
4242
4248
  DarkThemeColorConfigSchema,
4249
+ ExtendsSchema,
4243
4250
  LightThemeColorConfigSchema,
4244
4251
  MultiThemeColorConfigSchema,
4245
4252
  RegistryConfigSchema,
package/meta.cjs.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "format": "esm"
17
17
  },
18
18
  "packages/config/src/schema.ts": {
19
- "bytes": 11494,
19
+ "bytes": 11835,
20
20
  "imports": [
21
21
  {
22
22
  "path": "node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/index.mjs",
@@ -70,7 +70,7 @@
70
70
  "entryPoint": "packages/config/src/index.ts",
71
71
  "inputs": {
72
72
  "packages/config/src/index.ts": {
73
- "bytesInOutput": 1033
73
+ "bytesInOutput": 1071
74
74
  },
75
75
  "packages/config/src/constants.ts": {
76
76
  "bytesInOutput": 226
@@ -82,13 +82,13 @@
82
82
  "bytesInOutput": 121995
83
83
  },
84
84
  "packages/config/src/schema.ts": {
85
- "bytesInOutput": 9538
85
+ "bytesInOutput": 9896
86
86
  },
87
87
  "packages/config/src/types.ts": {
88
88
  "bytesInOutput": 197
89
89
  }
90
90
  },
91
- "bytes": 134054
91
+ "bytes": 134450
92
92
  }
93
93
  }
94
94
  }
package/meta.esm.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "format": "esm"
17
17
  },
18
18
  "packages/config/src/schema.ts": {
19
- "bytes": 11494,
19
+ "bytes": 11835,
20
20
  "imports": [
21
21
  {
22
22
  "path": "node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/index.mjs",
@@ -71,6 +71,7 @@
71
71
  "ColorConfigMapSchema",
72
72
  "ColorConfigSchema",
73
73
  "DarkThemeColorConfigSchema",
74
+ "ExtendsSchema",
74
75
  "LightThemeColorConfigSchema",
75
76
  "MultiThemeColorConfigSchema",
76
77
  "RegistryConfigSchema",
@@ -100,13 +101,13 @@
100
101
  "bytesInOutput": 121995
101
102
  },
102
103
  "packages/config/src/schema.ts": {
103
- "bytesInOutput": 9538
104
+ "bytesInOutput": 9896
104
105
  },
105
106
  "packages/config/src/types.ts": {
106
107
  "bytesInOutput": 197
107
108
  }
108
109
  },
109
- "bytes": 132646
110
+ "bytes": 133021
110
111
  }
111
112
  }
112
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/config",
3
- "version": "1.98.2",
3
+ "version": "1.99.0",
4
4
  "description": "Configuration management tools and schemas for Storm Software projects, providing a standardized approach to handle project settings and presets.",
5
5
  "repository": {
6
6
  "type": "github",
@@ -24,8 +24,19 @@
24
24
  "description": "The URL to the JSON schema file that describes the Storm configuration file"
25
25
  },
26
26
  "extends": {
27
- "type": "string",
28
- "description": "The path to a base JSON file to use as a configuration preset file"
27
+ "anyOf": [
28
+ {
29
+ "type": "string",
30
+ "description": "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
31
+ },
32
+ {
33
+ "type": "array",
34
+ "items": {
35
+ "$ref": "#/definitions/StormWorkspaceConfiguration/properties/extends/anyOf/0"
36
+ }
37
+ }
38
+ ],
39
+ "description": "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
29
40
  },
30
41
  "name": {
31
42
  "type": "string",
@@ -42,7 +53,6 @@
42
53
  },
43
54
  "repository": {
44
55
  "type": "string",
45
- "format": "uri",
46
56
  "description": "The repo URL of the workspace (i.e. GitHub)"
47
57
  },
48
58
  "license": {
@@ -167,7 +167,7 @@ export declare const defineConfig: (input: StormConfigInput) => {
167
167
  }>;
168
168
  name?: string | undefined;
169
169
  $schema?: string | null | undefined;
170
- extends?: string | undefined;
170
+ extends?: string | string[] | undefined;
171
171
  namespace?: string | undefined;
172
172
  organization?: string | undefined;
173
173
  repository?: string | undefined;
package/src/schema.d.ts CHANGED
@@ -1036,6 +1036,7 @@ export declare const ColorConfigMapSchema: z.ZodUnion<[z.ZodObject<{
1036
1036
  negative?: string | undefined;
1037
1037
  };
1038
1038
  }>]>>]>;
1039
+ export declare const ExtendsSchema: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1039
1040
  export declare const WorkspaceBotConfigSchema: z.ZodObject<{
1040
1041
  name: z.ZodDefault<z.ZodString>;
1041
1042
  email: z.ZodDefault<z.ZodString>;
@@ -1073,7 +1074,7 @@ export declare const WorkspaceDirectoryConfigSchema: z.ZodObject<{
1073
1074
  */
1074
1075
  export declare const StormConfigSchema: z.ZodObject<{
1075
1076
  $schema: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodString>>>>;
1076
- extends: z.ZodOptional<z.ZodString>;
1077
+ extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1077
1078
  name: z.ZodOptional<z.ZodString>;
1078
1079
  namespace: z.ZodOptional<z.ZodString>;
1079
1080
  organization: z.ZodDefault<z.ZodString>;
@@ -2047,7 +2048,7 @@ export declare const StormConfigSchema: z.ZodObject<{
2047
2048
  extensions: Record<string, any>;
2048
2049
  name?: string | undefined;
2049
2050
  $schema?: string | null | undefined;
2050
- extends?: string | undefined;
2051
+ extends?: string | string[] | undefined;
2051
2052
  namespace?: string | undefined;
2052
2053
  repository?: string | undefined;
2053
2054
  preid?: string | undefined;
@@ -2213,7 +2214,7 @@ export declare const StormConfigSchema: z.ZodObject<{
2213
2214
  }>;
2214
2215
  name?: string | undefined;
2215
2216
  $schema?: string | null | undefined;
2216
- extends?: string | undefined;
2217
+ extends?: string | string[] | undefined;
2217
2218
  namespace?: string | undefined;
2218
2219
  organization?: string | undefined;
2219
2220
  repository?: string | undefined;