@storm-software/projen 0.15.27 → 0.15.28

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
@@ -2,6 +2,13 @@
2
2
 
3
3
  # Changelog for Storm Ops - Projen
4
4
 
5
+ ## [0.15.27](https://github.com/storm-software/storm-ops/releases/tag/projen%400.15.27) (2025-06-20)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+ ([0bdc8a84e](https://github.com/storm-software/storm-ops/commit/0bdc8a84e))
11
+
5
12
  ## [0.15.26](https://github.com/storm-software/storm-ops/releases/tag/projen%400.15.26) (2025-06-18)
6
13
 
7
14
  ### Miscellaneous
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-0.15.26-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-0.15.27-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 -->
@@ -96,7 +96,7 @@ init_esm_shims();
96
96
 
97
97
  // ../config/src/schema.ts
98
98
  init_esm_shims();
99
- import z from "zod";
99
+ import * as z from "zod/v4";
100
100
  var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
101
101
  var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
102
102
  var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
@@ -312,7 +312,7 @@ var stormWorkspaceConfigSchema = z.object({
312
312
  colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
313
313
  "Storm theme config values used for styling various package elements"
314
314
  ),
315
- extensions: z.record(z.any()).optional().default({}).describe("Configuration of each used extension")
315
+ extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
316
316
  }).describe(
317
317
  "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."
318
318
  );
@@ -3527,7 +3527,7 @@ var generator_default = withRunGenerator(
3527
3527
  // ../workspace-tools/src/generators/config-schema/generator.ts
3528
3528
  init_esm_shims();
3529
3529
  import { formatFiles as formatFiles3, writeJson as writeJson2 } from "@nx/devkit";
3530
- import { zodToJsonSchema } from "zod-to-json-schema";
3530
+ import * as z2 from "zod/v4";
3531
3531
  async function configSchemaGeneratorFn(tree, options, config) {
3532
3532
  writeInfo(
3533
3533
  "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
@@ -3537,13 +3537,16 @@ async function configSchemaGeneratorFn(tree, options, config) {
3537
3537
  `Determining the Storm Workspace Configuration JSON Schema...`,
3538
3538
  config
3539
3539
  );
3540
- const jsonSchema = zodToJsonSchema(stormWorkspaceConfigSchema, {
3541
- name: "StormWorkspaceConfiguration"
3542
- });
3540
+ const jsonSchema = z2.toJSONSchema(stormWorkspaceConfigSchema);
3543
3541
  writeTrace(jsonSchema, config);
3542
+ if (!options.outputFile) {
3543
+ throw new Error(
3544
+ "The `outputFile` option is required. Please specify the output file path."
3545
+ );
3546
+ }
3544
3547
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
3545
3548
  config?.workspaceRoot ?? findWorkspaceRoot(),
3546
- options.outputFile?.startsWith("./") ? "" : "./"
3549
+ options.outputFile.startsWith("./") ? "" : "./"
3547
3550
  );
3548
3551
  writeTrace(
3549
3552
  `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
@@ -95,22 +95,22 @@ _chunkMWIFWHR4js.init_cjs_shims.call(void 0, );
95
95
 
96
96
  // ../config/src/schema.ts
97
97
  _chunkMWIFWHR4js.init_cjs_shims.call(void 0, );
98
- var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
99
- var DarkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
100
- var LightColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
101
- var BrandColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
102
- var AlternateColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
103
- var AccentColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
104
- var LinkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
105
- var HelpColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
106
- var SuccessColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
107
- var InfoColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
108
- var WarningColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
109
- var DangerColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
110
- var FatalColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
111
- var PositiveColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
112
- var NegativeColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
113
- var DarkThemeColorConfigSchema = _zod2.default.object({
98
+ var _v4 = require('zod/v4'); var z = _interopRequireWildcard(_v4); var z2 = _interopRequireWildcard(_v4);
99
+ var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
100
+ var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
101
+ var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
102
+ var AlternateColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
103
+ var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
104
+ var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
105
+ var HelpColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
106
+ var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
107
+ var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
108
+ var WarningColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
109
+ var DangerColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
110
+ var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
111
+ var PositiveColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
112
+ var NegativeColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
113
+ var DarkThemeColorConfigSchema = z.object({
114
114
  foreground: LightColorSchema,
115
115
  background: DarkColorSchema,
116
116
  brand: BrandColorSchema,
@@ -126,7 +126,7 @@ var DarkThemeColorConfigSchema = _zod2.default.object({
126
126
  positive: PositiveColorSchema,
127
127
  negative: NegativeColorSchema
128
128
  });
129
- var LightThemeColorConfigSchema = _zod2.default.object({
129
+ var LightThemeColorConfigSchema = z.object({
130
130
  foreground: DarkColorSchema,
131
131
  background: LightColorSchema,
132
132
  brand: BrandColorSchema,
@@ -142,11 +142,11 @@ var LightThemeColorConfigSchema = _zod2.default.object({
142
142
  positive: PositiveColorSchema,
143
143
  negative: NegativeColorSchema
144
144
  });
145
- var MultiThemeColorConfigSchema = _zod2.default.object({
145
+ var MultiThemeColorConfigSchema = z.object({
146
146
  dark: DarkThemeColorConfigSchema,
147
147
  light: LightThemeColorConfigSchema
148
148
  });
149
- var SingleThemeColorConfigSchema = _zod2.default.object({
149
+ var SingleThemeColorConfigSchema = z.object({
150
150
  dark: DarkColorSchema,
151
151
  light: LightColorSchema,
152
152
  brand: BrandColorSchema,
@@ -162,8 +162,8 @@ var SingleThemeColorConfigSchema = _zod2.default.object({
162
162
  positive: PositiveColorSchema,
163
163
  negative: NegativeColorSchema
164
164
  });
165
- var RegistryUrlConfigSchema = _zod2.default.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
166
- var RegistryConfigSchema = _zod2.default.object({
165
+ var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
166
+ var RegistryConfigSchema = z.object({
167
167
  github: RegistryUrlConfigSchema,
168
168
  npm: RegistryUrlConfigSchema,
169
169
  cargo: RegistryUrlConfigSchema,
@@ -173,122 +173,122 @@ var RegistryConfigSchema = _zod2.default.object({
173
173
  var ColorConfigSchema = SingleThemeColorConfigSchema.or(
174
174
  MultiThemeColorConfigSchema
175
175
  ).describe("Colors used for various workspace elements");
176
- var ColorConfigMapSchema = _zod2.default.union([
177
- _zod2.default.object({ base: ColorConfigSchema }),
178
- _zod2.default.record(_zod2.default.string(), ColorConfigSchema)
176
+ var ColorConfigMapSchema = z.union([
177
+ z.object({ base: ColorConfigSchema }),
178
+ z.record(z.string(), ColorConfigSchema)
179
179
  ]);
180
- var ExtendsItemSchema = _zod2.default.string().trim().describe(
180
+ var ExtendsItemSchema = z.string().trim().describe(
181
181
  "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."
182
182
  );
183
183
  var ExtendsSchema = ExtendsItemSchema.or(
184
- _zod2.default.array(ExtendsItemSchema)
184
+ z.array(ExtendsItemSchema)
185
185
  ).describe(
186
186
  "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."
187
187
  );
188
- var WorkspaceBotConfigSchema = _zod2.default.object({
189
- name: _zod2.default.string().trim().default("stormie-bot").describe(
188
+ var WorkspaceBotConfigSchema = z.object({
189
+ name: z.string().trim().default("stormie-bot").describe(
190
190
  "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
191
191
  ),
192
- email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
192
+ email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
193
193
  }).describe(
194
194
  "The workspace's bot user's config used to automated various operations tasks"
195
195
  );
196
- var WorkspaceReleaseConfigSchema = _zod2.default.object({
197
- banner: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
196
+ var WorkspaceReleaseConfigSchema = z.object({
197
+ banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
198
198
  "A URL to a banner image used to display the workspace's release"
199
199
  ),
200
- header: _zod2.default.string().trim().optional().describe(
200
+ header: z.string().trim().optional().describe(
201
201
  "A header message appended to the start of the workspace's release notes"
202
202
  ),
203
- footer: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
203
+ footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
204
204
  "A footer message appended to the end of the workspace's release notes"
205
205
  )
206
206
  }).describe("The workspace's release config used during the release process");
207
- var WorkspaceAccountConfigSchema = _zod2.default.object({
208
- twitter: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
209
- discord: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
210
- telegram: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
211
- slack: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
212
- medium: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
213
- github: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
207
+ var WorkspaceAccountConfigSchema = z.object({
208
+ twitter: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
209
+ discord: z.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
210
+ telegram: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
211
+ slack: z.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
212
+ medium: z.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
213
+ github: z.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
214
214
  }).describe(
215
215
  "The workspace's account config used to store various social media links"
216
216
  );
217
- var WorkspaceDirectoryConfigSchema = _zod2.default.object({
218
- cache: _zod2.default.string().trim().optional().describe(
217
+ var WorkspaceDirectoryConfigSchema = z.object({
218
+ cache: z.string().trim().optional().describe(
219
219
  "The directory used to store the environment's cached file data"
220
220
  ),
221
- data: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
222
- config: _zod2.default.string().trim().optional().describe(
221
+ data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
222
+ config: z.string().trim().optional().describe(
223
223
  "The directory used to store the environment's configuration files"
224
224
  ),
225
- temp: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
226
- log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
227
- build: _zod2.default.string().trim().default("dist").describe(
225
+ temp: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
226
+ log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
227
+ build: z.string().trim().default("dist").describe(
228
228
  "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
229
229
  )
230
230
  }).describe(
231
231
  "Various directories used by the workspace to store data, cache, and configuration files"
232
232
  );
233
- var errorConfigSchema = _zod2.default.object({
234
- codesFile: _zod2.default.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
235
- url: _zod2.default.string().trim().url().optional().describe(
233
+ var errorConfigSchema = z.object({
234
+ codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
235
+ url: z.string().trim().url().optional().describe(
236
236
  "A URL to a page that looks up the workspace's error messages given a specific error code"
237
237
  )
238
238
  }).describe("The workspace's error config used during the error process");
239
- var organizationConfigSchema = _zod2.default.object({
240
- name: _zod2.default.string().trim().describe("The name of the organization"),
241
- description: _zod2.default.string().trim().optional().describe("A description of the organization"),
242
- logo: _zod2.default.string().trim().url().optional().describe("A URL to the organization's logo image"),
243
- icon: _zod2.default.string().trim().url().optional().describe("A URL to the organization's icon image"),
244
- url: _zod2.default.string().trim().url().optional().describe(
239
+ var organizationConfigSchema = z.object({
240
+ name: z.string().trim().describe("The name of the organization"),
241
+ description: z.string().trim().optional().describe("A description of the organization"),
242
+ logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
243
+ icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
244
+ url: z.string().trim().url().optional().describe(
245
245
  "A URL to a page that provides more information about the organization"
246
246
  )
247
247
  }).describe("The workspace's organization details");
248
- var stormWorkspaceConfigSchema = _zod2.default.object({
249
- $schema: _zod2.default.string().trim().default(
248
+ var stormWorkspaceConfigSchema = z.object({
249
+ $schema: z.string().trim().default(
250
250
  "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
251
251
  ).optional().nullish().describe(
252
252
  "The URL to the JSON schema file that describes the Storm configuration file"
253
253
  ),
254
254
  extends: ExtendsSchema.optional(),
255
- name: _zod2.default.string().trim().toLowerCase().optional().describe(
255
+ name: z.string().trim().toLowerCase().optional().describe(
256
256
  "The name of the service/package/scope using this configuration"
257
257
  ),
258
- namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
259
- organization: organizationConfigSchema.or(_zod2.default.string().trim().describe("The organization of the workspace")).optional().describe(
258
+ namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
259
+ organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
260
260
  "The organization of the workspace. This can be a string or an object containing the organization's details"
261
261
  ),
262
- repository: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
263
- license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
264
- homepage: _zod2.default.string().trim().url().optional().describe("The homepage of the workspace"),
265
- docs: _zod2.default.string().trim().url().optional().describe("The documentation site for the workspace"),
266
- portal: _zod2.default.string().trim().url().optional().describe("The development portal site for the workspace"),
267
- licensing: _zod2.default.string().trim().url().optional().describe("The licensing site for the workspace"),
268
- contact: _zod2.default.string().trim().url().optional().describe("The contact site for the workspace"),
269
- support: _zod2.default.string().trim().url().optional().describe(
262
+ repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
263
+ license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
264
+ homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
265
+ docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
266
+ portal: z.string().trim().url().optional().describe("The development portal site for the workspace"),
267
+ licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
268
+ contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
269
+ support: z.string().trim().url().optional().describe(
270
270
  "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
271
271
  ),
272
- branch: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
273
- preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
274
- owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
272
+ branch: z.string().trim().default("main").describe("The branch of the workspace"),
273
+ preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
274
+ owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
275
275
  bot: WorkspaceBotConfigSchema,
276
276
  release: WorkspaceReleaseConfigSchema,
277
277
  account: WorkspaceAccountConfigSchema,
278
278
  error: errorConfigSchema,
279
- mode: _zod2.default.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
280
- workspaceRoot: _zod2.default.string().trim().describe("The root directory of the workspace"),
281
- externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe(
279
+ mode: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
280
+ workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
281
+ externalPackagePatterns: z.array(z.string()).default([]).describe(
282
282
  "The build will use these package patterns to determine if they should be external to the bundle"
283
283
  ),
284
- skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
284
+ skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
285
285
  directories: WorkspaceDirectoryConfigSchema,
286
- packageManager: _zod2.default.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
286
+ packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
287
287
  "The JavaScript/TypeScript package manager used by the repository"
288
288
  ),
289
- timezone: _zod2.default.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
290
- locale: _zod2.default.string().trim().default("en-US").describe("The default locale of the workspace"),
291
- logLevel: _zod2.default.enum([
289
+ timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
290
+ locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
291
+ logLevel: z.enum([
292
292
  "silent",
293
293
  "fatal",
294
294
  "error",
@@ -301,17 +301,17 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
301
301
  ]).default("info").describe(
302
302
  "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`)."
303
303
  ),
304
- skipConfigLogging: _zod2.default.boolean().optional().describe(
304
+ skipConfigLogging: z.boolean().optional().describe(
305
305
  "Should the logging of the current Storm Workspace configuration be skipped?"
306
306
  ),
307
307
  registry: RegistryConfigSchema,
308
- configFile: _zod2.default.string().trim().nullable().default(null).describe(
308
+ configFile: z.string().trim().nullable().default(null).describe(
309
309
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
310
310
  ),
311
311
  colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
312
312
  "Storm theme config values used for styling various package elements"
313
313
  ),
314
- extensions: _zod2.default.record(_zod2.default.any()).optional().default({}).describe("Configuration of each used extension")
314
+ extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
315
315
  }).describe(
316
316
  "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."
317
317
  );
@@ -3526,7 +3526,7 @@ var generator_default = withRunGenerator(
3526
3526
  // ../workspace-tools/src/generators/config-schema/generator.ts
3527
3527
  _chunkMWIFWHR4js.init_cjs_shims.call(void 0, );
3528
3528
 
3529
- var _zodtojsonschema = require('zod-to-json-schema');
3529
+
3530
3530
  async function configSchemaGeneratorFn(tree, options, config) {
3531
3531
  writeInfo(
3532
3532
  "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
@@ -3536,13 +3536,16 @@ async function configSchemaGeneratorFn(tree, options, config) {
3536
3536
  `Determining the Storm Workspace Configuration JSON Schema...`,
3537
3537
  config
3538
3538
  );
3539
- const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, stormWorkspaceConfigSchema, {
3540
- name: "StormWorkspaceConfiguration"
3541
- });
3539
+ const jsonSchema = z2.toJSONSchema(stormWorkspaceConfigSchema);
3542
3540
  writeTrace(jsonSchema, config);
3541
+ if (!options.outputFile) {
3542
+ throw new Error(
3543
+ "The `outputFile` option is required. Please specify the output file path."
3544
+ );
3545
+ }
3543
3546
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
3544
3547
  _nullishCoalesce(_optionalChain([config, 'optionalAccess', _193 => _193.workspaceRoot]), () => ( findWorkspaceRoot())),
3545
- _optionalChain([options, 'access', _194 => _194.outputFile, 'optionalAccess', _195 => _195.startsWith, 'call', _196 => _196("./")]) ? "" : "./"
3548
+ options.outputFile.startsWith("./") ? "" : "./"
3546
3549
  );
3547
3550
  writeTrace(
3548
3551
  `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-3MCIDYYV.js');
2
2
 
3
3
 
4
- var _chunk52KJUW7Ojs = require('./chunk-52KJUW7O.js');
4
+ var _chunkLWINONZTjs = require('./chunk-LWINONZT.js');
5
5
  require('./chunk-LP4I3FEY.js');
6
6
  require('./chunk-MWIFWHR4.js');
7
7
 
8
8
 
9
- exports.initGeneratorFn = _chunk52KJUW7Ojs.initGeneratorFn;
9
+ exports.initGeneratorFn = _chunkLWINONZTjs.initGeneratorFn;
@@ -1,7 +1,7 @@
1
1
  import "./chunk-5UXDEQBC.mjs";
2
2
  import {
3
3
  initGeneratorFn
4
- } from "./chunk-2F74L3HY.mjs";
4
+ } from "./chunk-GPPLEZ5J.mjs";
5
5
  import "./chunk-IYQFGVQK.mjs";
6
6
  import "./chunk-ULH77QLV.mjs";
7
7
  export {
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  var _chunkKFR27Y3Kjs = require('./chunk-KFR27Y3K.js');
5
5
 
6
6
 
7
- var _chunk52KJUW7Ojs = require('./chunk-52KJUW7O.js');
7
+ var _chunkLWINONZTjs = require('./chunk-LWINONZT.js');
8
8
  require('./chunk-LP4I3FEY.js');
9
9
 
10
10
 
@@ -16,10 +16,10 @@ var _chunkMWIFWHR4js = require('./chunk-MWIFWHR4.js');
16
16
  // index.ts
17
17
  var index_exports = {};
18
18
  _chunkMWIFWHR4js.__export.call(void 0, index_exports, {
19
- initGeneratorFn: () => _chunk52KJUW7Ojs.initGeneratorFn
19
+ initGeneratorFn: () => _chunkLWINONZTjs.initGeneratorFn
20
20
  });
21
21
  _chunkMWIFWHR4js.init_cjs_shims.call(void 0, );
22
22
  _chunkMWIFWHR4js.__reExport.call(void 0, index_exports, _chunkMWIFWHR4js.__toESM.call(void 0, _chunkKFR27Y3Kjs.require_components.call(void 0, )));
23
23
 
24
24
 
25
- exports.initGeneratorFn = _chunk52KJUW7Ojs.initGeneratorFn;
25
+ exports.initGeneratorFn = _chunkLWINONZTjs.initGeneratorFn;
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-PQKN2KBC.mjs";
5
5
  import {
6
6
  initGeneratorFn
7
- } from "./chunk-2F74L3HY.mjs";
7
+ } from "./chunk-GPPLEZ5J.mjs";
8
8
  import "./chunk-IYQFGVQK.mjs";
9
9
  import {
10
10
  __export,
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk52KJUW7Ojs = require('../../../chunk-52KJUW7O.js');
4
+ var _chunkLWINONZTjs = require('../../../chunk-LWINONZT.js');
5
5
  require('../../../chunk-LP4I3FEY.js');
6
6
  require('../../../chunk-MWIFWHR4.js');
7
7
 
8
8
 
9
9
 
10
- exports.default = _chunk52KJUW7Ojs.generator_default; exports.initGeneratorFn = _chunk52KJUW7Ojs.initGeneratorFn;
10
+ exports.default = _chunkLWINONZTjs.generator_default; exports.initGeneratorFn = _chunkLWINONZTjs.initGeneratorFn;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generator_default,
3
3
  initGeneratorFn
4
- } from "../../../chunk-2F74L3HY.mjs";
4
+ } from "../../../chunk-GPPLEZ5J.mjs";
5
5
  import "../../../chunk-IYQFGVQK.mjs";
6
6
  import "../../../chunk-ULH77QLV.mjs";
7
7
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/projen",
3
- "version": "0.15.27",
3
+ "version": "0.15.28",
4
4
  "type": "commonjs",
5
5
  "description": "Tools for managing Projen configuration automation within a Nx workspace.",
6
6
  "repository": {