@storm-software/unbuild 0.49.19 → 0.49.21

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/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.49.18-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.49.20-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/bin/unbuild.cjs CHANGED
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
23
  ));
24
24
 
25
25
  // ../config/src/schema.ts
26
- var import_zod = __toESM(require("zod"), 1);
26
+ var z = __toESM(require("zod/v4"), 1);
27
27
 
28
28
  // ../config/src/constants.ts
29
29
  var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
@@ -48,21 +48,21 @@ If this sounds interesting, and you would like to help us in creating the next g
48
48
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
49
49
 
50
50
  // ../config/src/schema.ts
51
- var DarkColorSchema = import_zod.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
52
- var LightColorSchema = import_zod.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
53
- var BrandColorSchema = import_zod.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");
54
- var AlternateColorSchema = import_zod.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
55
- var AccentColorSchema = import_zod.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
56
- var LinkColorSchema = import_zod.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
57
- var HelpColorSchema = import_zod.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");
58
- var SuccessColorSchema = import_zod.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
59
- var InfoColorSchema = import_zod.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
60
- var WarningColorSchema = import_zod.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
61
- var DangerColorSchema = import_zod.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
62
- var FatalColorSchema = import_zod.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
63
- var PositiveColorSchema = import_zod.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
64
- var NegativeColorSchema = import_zod.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
65
- var DarkThemeColorConfigSchema = import_zod.default.object({
51
+ 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");
52
+ 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");
53
+ 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");
54
+ 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");
55
+ 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");
56
+ 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");
57
+ 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");
58
+ 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");
59
+ 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");
60
+ 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");
61
+ 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");
62
+ var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
63
+ 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");
64
+ 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");
65
+ var DarkThemeColorConfigSchema = z.object({
66
66
  foreground: LightColorSchema,
67
67
  background: DarkColorSchema,
68
68
  brand: BrandColorSchema,
@@ -78,7 +78,7 @@ var DarkThemeColorConfigSchema = import_zod.default.object({
78
78
  positive: PositiveColorSchema,
79
79
  negative: NegativeColorSchema
80
80
  });
81
- var LightThemeColorConfigSchema = import_zod.default.object({
81
+ var LightThemeColorConfigSchema = z.object({
82
82
  foreground: DarkColorSchema,
83
83
  background: LightColorSchema,
84
84
  brand: BrandColorSchema,
@@ -94,11 +94,11 @@ var LightThemeColorConfigSchema = import_zod.default.object({
94
94
  positive: PositiveColorSchema,
95
95
  negative: NegativeColorSchema
96
96
  });
97
- var MultiThemeColorConfigSchema = import_zod.default.object({
97
+ var MultiThemeColorConfigSchema = z.object({
98
98
  dark: DarkThemeColorConfigSchema,
99
99
  light: LightThemeColorConfigSchema
100
100
  });
101
- var SingleThemeColorConfigSchema = import_zod.default.object({
101
+ var SingleThemeColorConfigSchema = z.object({
102
102
  dark: DarkColorSchema,
103
103
  light: LightColorSchema,
104
104
  brand: BrandColorSchema,
@@ -114,8 +114,8 @@ var SingleThemeColorConfigSchema = import_zod.default.object({
114
114
  positive: PositiveColorSchema,
115
115
  negative: NegativeColorSchema
116
116
  });
117
- var RegistryUrlConfigSchema = import_zod.default.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
118
- var RegistryConfigSchema = import_zod.default.object({
117
+ var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
118
+ var RegistryConfigSchema = z.object({
119
119
  github: RegistryUrlConfigSchema,
120
120
  npm: RegistryUrlConfigSchema,
121
121
  cargo: RegistryUrlConfigSchema,
@@ -125,111 +125,122 @@ var RegistryConfigSchema = import_zod.default.object({
125
125
  var ColorConfigSchema = SingleThemeColorConfigSchema.or(
126
126
  MultiThemeColorConfigSchema
127
127
  ).describe("Colors used for various workspace elements");
128
- var ColorConfigMapSchema = import_zod.default.union([
129
- import_zod.default.object({ base: ColorConfigSchema }),
130
- import_zod.default.record(import_zod.default.string(), ColorConfigSchema)
128
+ var ColorConfigMapSchema = z.union([
129
+ z.object({ base: ColorConfigSchema }),
130
+ z.record(z.string(), ColorConfigSchema)
131
131
  ]);
132
- var ExtendsItemSchema = import_zod.default.string().trim().describe(
132
+ var ExtendsItemSchema = z.string().trim().describe(
133
133
  "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."
134
134
  );
135
135
  var ExtendsSchema = ExtendsItemSchema.or(
136
- import_zod.default.array(ExtendsItemSchema)
136
+ z.array(ExtendsItemSchema)
137
137
  ).describe(
138
138
  "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."
139
139
  );
140
- var WorkspaceBotConfigSchema = import_zod.default.object({
141
- name: import_zod.default.string().trim().default("stormie-bot").describe(
140
+ var WorkspaceBotConfigSchema = z.object({
141
+ name: z.string().trim().default("stormie-bot").describe(
142
142
  "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
143
143
  ),
144
- email: import_zod.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
144
+ email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
145
145
  }).describe(
146
146
  "The workspace's bot user's config used to automated various operations tasks"
147
147
  );
148
- var WorkspaceReleaseConfigSchema = import_zod.default.object({
149
- banner: import_zod.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
148
+ var WorkspaceReleaseConfigSchema = z.object({
149
+ banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
150
150
  "A URL to a banner image used to display the workspace's release"
151
151
  ),
152
- header: import_zod.default.string().trim().optional().describe(
152
+ header: z.string().trim().optional().describe(
153
153
  "A header message appended to the start of the workspace's release notes"
154
154
  ),
155
- footer: import_zod.default.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
155
+ footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
156
156
  "A footer message appended to the end of the workspace's release notes"
157
157
  )
158
158
  }).describe("The workspace's release config used during the release process");
159
- var WorkspaceAccountConfigSchema = import_zod.default.object({
160
- twitter: import_zod.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
161
- discord: import_zod.default.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
162
- telegram: import_zod.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
163
- slack: import_zod.default.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
164
- medium: import_zod.default.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
165
- github: import_zod.default.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
159
+ var WorkspaceAccountConfigSchema = z.object({
160
+ twitter: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
161
+ discord: z.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
162
+ telegram: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
163
+ slack: z.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
164
+ medium: z.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
165
+ github: z.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
166
166
  }).describe(
167
167
  "The workspace's account config used to store various social media links"
168
168
  );
169
- var WorkspaceDirectoryConfigSchema = import_zod.default.object({
170
- cache: import_zod.default.string().trim().optional().describe(
169
+ var WorkspaceDirectoryConfigSchema = z.object({
170
+ cache: z.string().trim().optional().describe(
171
171
  "The directory used to store the environment's cached file data"
172
172
  ),
173
- data: import_zod.default.string().trim().optional().describe("The directory used to store the environment's data files"),
174
- config: import_zod.default.string().trim().optional().describe(
173
+ data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
174
+ config: z.string().trim().optional().describe(
175
175
  "The directory used to store the environment's configuration files"
176
176
  ),
177
- temp: import_zod.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
178
- log: import_zod.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
179
- build: import_zod.default.string().trim().default("dist").describe(
177
+ temp: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
178
+ log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
179
+ build: z.string().trim().default("dist").describe(
180
180
  "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
181
181
  )
182
182
  }).describe(
183
183
  "Various directories used by the workspace to store data, cache, and configuration files"
184
184
  );
185
- var errorConfigSchema = import_zod.default.object({
186
- codesFile: import_zod.default.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
187
- url: import_zod.default.string().trim().url().optional().describe(
185
+ var errorConfigSchema = z.object({
186
+ codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
187
+ url: z.string().trim().url().optional().describe(
188
188
  "A URL to a page that looks up the workspace's error messages given a specific error code"
189
189
  )
190
190
  }).describe("The workspace's error config used during the error process");
191
- var stormWorkspaceConfigSchema = import_zod.default.object({
192
- $schema: import_zod.default.string().trim().default(
191
+ var organizationConfigSchema = z.object({
192
+ name: z.string().trim().describe("The name of the organization"),
193
+ description: z.string().trim().optional().describe("A description of the organization"),
194
+ logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
195
+ icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
196
+ url: z.string().trim().url().optional().describe(
197
+ "A URL to a page that provides more information about the organization"
198
+ )
199
+ }).describe("The workspace's organization details");
200
+ var stormWorkspaceConfigSchema = z.object({
201
+ $schema: z.string().trim().default(
193
202
  "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
194
203
  ).optional().nullish().describe(
195
204
  "The URL to the JSON schema file that describes the Storm configuration file"
196
205
  ),
197
206
  extends: ExtendsSchema.optional(),
198
- name: import_zod.default.string().trim().toLowerCase().optional().describe(
207
+ name: z.string().trim().toLowerCase().optional().describe(
199
208
  "The name of the service/package/scope using this configuration"
200
209
  ),
201
- namespace: import_zod.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
202
- organization: import_zod.default.string().trim().default("storm-software").describe("The organization of the workspace"),
203
- repository: import_zod.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
204
- license: import_zod.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
205
- homepage: import_zod.default.string().trim().url().optional().describe("The homepage of the workspace"),
206
- docs: import_zod.default.string().trim().url().optional().describe("The documentation site for the workspace"),
207
- portal: import_zod.default.string().trim().url().optional().describe("The development portal site for the workspace"),
208
- licensing: import_zod.default.string().trim().url().optional().describe("The licensing site for the workspace"),
209
- contact: import_zod.default.string().trim().url().optional().describe("The contact site for the workspace"),
210
- support: import_zod.default.string().trim().url().optional().describe(
210
+ namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
211
+ organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
212
+ "The organization of the workspace. This can be a string or an object containing the organization's details"
213
+ ),
214
+ repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
215
+ license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
216
+ homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
217
+ docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
218
+ portal: z.string().trim().url().optional().describe("The development portal site for the workspace"),
219
+ licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
220
+ contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
221
+ support: z.string().trim().url().optional().describe(
211
222
  "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
212
223
  ),
213
- branch: import_zod.default.string().trim().default("main").describe("The branch of the workspace"),
214
- preid: import_zod.default.string().optional().describe("A tag specifying the version pre-release identifier"),
215
- owner: import_zod.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
224
+ branch: z.string().trim().default("main").describe("The branch of the workspace"),
225
+ preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
226
+ owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
216
227
  bot: WorkspaceBotConfigSchema,
217
228
  release: WorkspaceReleaseConfigSchema,
218
229
  account: WorkspaceAccountConfigSchema,
219
230
  error: errorConfigSchema,
220
- mode: import_zod.default.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
221
- workspaceRoot: import_zod.default.string().trim().describe("The root directory of the workspace"),
222
- externalPackagePatterns: import_zod.default.array(import_zod.default.string()).default([]).describe(
231
+ mode: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
232
+ workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
233
+ externalPackagePatterns: z.array(z.string()).default([]).describe(
223
234
  "The build will use these package patterns to determine if they should be external to the bundle"
224
235
  ),
225
- skipCache: import_zod.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
236
+ skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
226
237
  directories: WorkspaceDirectoryConfigSchema,
227
- packageManager: import_zod.default.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
238
+ packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
228
239
  "The JavaScript/TypeScript package manager used by the repository"
229
240
  ),
230
- timezone: import_zod.default.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
231
- locale: import_zod.default.string().trim().default("en-US").describe("The default locale of the workspace"),
232
- logLevel: import_zod.default.enum([
241
+ timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
242
+ locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
243
+ logLevel: z.enum([
233
244
  "silent",
234
245
  "fatal",
235
246
  "error",
@@ -242,17 +253,17 @@ var stormWorkspaceConfigSchema = import_zod.default.object({
242
253
  ]).default("info").describe(
243
254
  "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`)."
244
255
  ),
245
- skipConfigLogging: import_zod.default.boolean().optional().describe(
256
+ skipConfigLogging: z.boolean().optional().describe(
246
257
  "Should the logging of the current Storm Workspace configuration be skipped?"
247
258
  ),
248
259
  registry: RegistryConfigSchema,
249
- configFile: import_zod.default.string().trim().nullable().default(null).describe(
260
+ configFile: z.string().trim().nullable().default(null).describe(
250
261
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
251
262
  ),
252
263
  colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
253
264
  "Storm theme config values used for styling various package elements"
254
265
  ),
255
- extensions: import_zod.default.record(import_zod.default.any()).optional().default({}).describe("Configuration of each used extension")
266
+ extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
256
267
  }).describe(
257
268
  "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."
258
269
  );
@@ -1041,7 +1052,13 @@ var getConfigEnv = () => {
1041
1052
  medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
1042
1053
  github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
1043
1054
  },
1044
- organization: process.env[`${prefix}ORGANIZATION`] || void 0,
1055
+ organization: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] ? process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] ? {
1056
+ name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
1057
+ description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
1058
+ url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
1059
+ logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
1060
+ icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
1061
+ } : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
1045
1062
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
1046
1063
  license: process.env[`${prefix}LICENSE`] || void 0,
1047
1064
  homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
@@ -1248,7 +1265,33 @@ var setConfigEnv = (config) => {
1248
1265
  }
1249
1266
  }
1250
1267
  if (config.organization) {
1251
- process.env[`${prefix}ORGANIZATION`] = config.organization;
1268
+ if (typeof config.organization === "string") {
1269
+ process.env[`${prefix}ORG`] = config.organization;
1270
+ process.env[`${prefix}ORG_NAME`] = config.organization;
1271
+ process.env[`${prefix}ORGANIZATION`] = config.organization;
1272
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
1273
+ } else {
1274
+ process.env[`${prefix}ORG`] = config.organization.name;
1275
+ process.env[`${prefix}ORG_NAME`] = config.organization.name;
1276
+ process.env[`${prefix}ORGANIZATION`] = config.organization.name;
1277
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
1278
+ if (config.organization.url) {
1279
+ process.env[`${prefix}ORG_URL`] = config.organization.url;
1280
+ process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
1281
+ }
1282
+ if (config.organization.description) {
1283
+ process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
1284
+ process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
1285
+ }
1286
+ if (config.organization.logo) {
1287
+ process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
1288
+ process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
1289
+ }
1290
+ if (config.organization.icon) {
1291
+ process.env[`${prefix}ORG_ICON`] = config.organization.icon;
1292
+ process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
1293
+ }
1294
+ }
1252
1295
  }
1253
1296
  if (config.packageManager) {
1254
1297
  process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
package/bin/unbuild.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // ../config/src/schema.ts
4
- import z from "zod";
4
+ import * as z from "zod/v4";
5
5
 
6
6
  // ../config/src/constants.ts
7
7
  var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
@@ -166,6 +166,15 @@ var errorConfigSchema = z.object({
166
166
  "A URL to a page that looks up the workspace's error messages given a specific error code"
167
167
  )
168
168
  }).describe("The workspace's error config used during the error process");
169
+ var organizationConfigSchema = z.object({
170
+ name: z.string().trim().describe("The name of the organization"),
171
+ description: z.string().trim().optional().describe("A description of the organization"),
172
+ logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
173
+ icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
174
+ url: z.string().trim().url().optional().describe(
175
+ "A URL to a page that provides more information about the organization"
176
+ )
177
+ }).describe("The workspace's organization details");
169
178
  var stormWorkspaceConfigSchema = z.object({
170
179
  $schema: z.string().trim().default(
171
180
  "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
@@ -177,7 +186,9 @@ var stormWorkspaceConfigSchema = z.object({
177
186
  "The name of the service/package/scope using this configuration"
178
187
  ),
179
188
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
180
- organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
189
+ organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
190
+ "The organization of the workspace. This can be a string or an object containing the organization's details"
191
+ ),
181
192
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
182
193
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
183
194
  homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
@@ -230,7 +241,7 @@ var stormWorkspaceConfigSchema = z.object({
230
241
  colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
231
242
  "Storm theme config values used for styling various package elements"
232
243
  ),
233
- extensions: z.record(z.any()).optional().default({}).describe("Configuration of each used extension")
244
+ extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
234
245
  }).describe(
235
246
  "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."
236
247
  );
@@ -1019,7 +1030,13 @@ var getConfigEnv = () => {
1019
1030
  medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
1020
1031
  github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
1021
1032
  },
1022
- organization: process.env[`${prefix}ORGANIZATION`] || void 0,
1033
+ organization: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] ? process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] ? {
1034
+ name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
1035
+ description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
1036
+ url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
1037
+ logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
1038
+ icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
1039
+ } : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
1023
1040
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
1024
1041
  license: process.env[`${prefix}LICENSE`] || void 0,
1025
1042
  homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
@@ -1226,7 +1243,33 @@ var setConfigEnv = (config) => {
1226
1243
  }
1227
1244
  }
1228
1245
  if (config.organization) {
1229
- process.env[`${prefix}ORGANIZATION`] = config.organization;
1246
+ if (typeof config.organization === "string") {
1247
+ process.env[`${prefix}ORG`] = config.organization;
1248
+ process.env[`${prefix}ORG_NAME`] = config.organization;
1249
+ process.env[`${prefix}ORGANIZATION`] = config.organization;
1250
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
1251
+ } else {
1252
+ process.env[`${prefix}ORG`] = config.organization.name;
1253
+ process.env[`${prefix}ORG_NAME`] = config.organization.name;
1254
+ process.env[`${prefix}ORGANIZATION`] = config.organization.name;
1255
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
1256
+ if (config.organization.url) {
1257
+ process.env[`${prefix}ORG_URL`] = config.organization.url;
1258
+ process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
1259
+ }
1260
+ if (config.organization.description) {
1261
+ process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
1262
+ process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
1263
+ }
1264
+ if (config.organization.logo) {
1265
+ process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
1266
+ process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
1267
+ }
1268
+ if (config.organization.icon) {
1269
+ process.env[`${prefix}ORG_ICON`] = config.organization.icon;
1270
+ process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
1271
+ }
1272
+ }
1230
1273
  }
1231
1274
  if (config.packageManager) {
1232
1275
  process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
package/dist/build.cjs CHANGED
@@ -5,12 +5,12 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkBEYMFCM7cjs = require('./chunk-BEYMFCM7.cjs');
9
- require('./chunk-RDXDA3GH.cjs');
10
- require('./chunk-ZFT5WRRG.cjs');
11
- require('./chunk-6XVL7IQT.cjs');
12
- require('./chunk-SE3LAWDV.cjs');
13
- require('./chunk-OUDGDVMG.cjs');
8
+ var _chunk32TZN7CEcjs = require('./chunk-32TZN7CE.cjs');
9
+ require('./chunk-DAT6NHMF.cjs');
10
+ require('./chunk-67LS6ZEK.cjs');
11
+ require('./chunk-F53U4QNB.cjs');
12
+ require('./chunk-FPQJTGP3.cjs');
13
+ require('./chunk-VHYQF3I6.cjs');
14
14
  require('./chunk-OBGZSXTJ.cjs');
15
15
 
16
16
 
@@ -19,4 +19,4 @@ require('./chunk-OBGZSXTJ.cjs');
19
19
 
20
20
 
21
21
 
22
- exports.build = _chunkBEYMFCM7cjs.build; exports.cleanOutputPath = _chunkBEYMFCM7cjs.cleanOutputPath; exports.copyBuildAssets = _chunkBEYMFCM7cjs.copyBuildAssets; exports.executeUnbuild = _chunkBEYMFCM7cjs.executeUnbuild; exports.generatePackageJson = _chunkBEYMFCM7cjs.generatePackageJson; exports.resolveOptions = _chunkBEYMFCM7cjs.resolveOptions;
22
+ exports.build = _chunk32TZN7CEcjs.build; exports.cleanOutputPath = _chunk32TZN7CEcjs.cleanOutputPath; exports.copyBuildAssets = _chunk32TZN7CEcjs.copyBuildAssets; exports.executeUnbuild = _chunk32TZN7CEcjs.executeUnbuild; exports.generatePackageJson = _chunk32TZN7CEcjs.generatePackageJson; exports.resolveOptions = _chunk32TZN7CEcjs.resolveOptions;
package/dist/build.js CHANGED
@@ -5,12 +5,12 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-ZUJYZNHE.js";
9
- import "./chunk-WK7EB7IK.js";
10
- import "./chunk-YXBJUQUO.js";
11
- import "./chunk-I6UPBZJN.js";
12
- import "./chunk-STWBC7PN.js";
13
- import "./chunk-KQH54774.js";
8
+ } from "./chunk-XYNUJ3M6.js";
9
+ import "./chunk-4FBSNAJ3.js";
10
+ import "./chunk-P463HKRZ.js";
11
+ import "./chunk-SNFLBCOO.js";
12
+ import "./chunk-KVRCVCLC.js";
13
+ import "./chunk-2JQ6EMAG.js";
14
14
  import "./chunk-3RG5ZIWI.js";
15
15
  export {
16
16
  build,
@@ -225,7 +225,7 @@ If this sounds interesting, and you would like to help us in creating the next g
225
225
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
226
226
 
227
227
  // ../config/src/schema.ts
228
- import z from "zod";
228
+ import * as z from "zod/v4";
229
229
  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");
230
230
  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");
231
231
  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");
@@ -366,6 +366,15 @@ var errorConfigSchema = z.object({
366
366
  "A URL to a page that looks up the workspace's error messages given a specific error code"
367
367
  )
368
368
  }).describe("The workspace's error config used during the error process");
369
+ var organizationConfigSchema = z.object({
370
+ name: z.string().trim().describe("The name of the organization"),
371
+ description: z.string().trim().optional().describe("A description of the organization"),
372
+ logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
373
+ icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
374
+ url: z.string().trim().url().optional().describe(
375
+ "A URL to a page that provides more information about the organization"
376
+ )
377
+ }).describe("The workspace's organization details");
369
378
  var stormWorkspaceConfigSchema = z.object({
370
379
  $schema: z.string().trim().default(
371
380
  "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
@@ -377,7 +386,9 @@ var stormWorkspaceConfigSchema = z.object({
377
386
  "The name of the service/package/scope using this configuration"
378
387
  ),
379
388
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
380
- organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
389
+ organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
390
+ "The organization of the workspace. This can be a string or an object containing the organization's details"
391
+ ),
381
392
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
382
393
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
383
394
  homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
@@ -430,7 +441,7 @@ var stormWorkspaceConfigSchema = z.object({
430
441
  colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
431
442
  "Storm theme config values used for styling various package elements"
432
443
  ),
433
- extensions: z.record(z.any()).optional().default({}).describe("Configuration of each used extension")
444
+ extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
434
445
  }).describe(
435
446
  "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."
436
447
  );