@storm-software/projen 0.15.27 → 0.15.29
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 +14 -0
- package/README.md +1 -1
- package/dist/{chunk-2F74L3HY.mjs → chunk-2ETJSHUA.mjs} +17 -9
- package/dist/{chunk-52KJUW7O.js → chunk-I5SSMFCF.js} +98 -90
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +1 -1
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Projen
|
|
4
4
|
|
|
5
|
+
## [0.15.28](https://github.com/storm-software/storm-ops/releases/tag/projen%400.15.28) (2025-06-20)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update README markdown files
|
|
10
|
+
([90a90bfac](https://github.com/storm-software/storm-ops/commit/90a90bfac))
|
|
11
|
+
|
|
12
|
+
## [0.15.27](https://github.com/storm-software/storm-ops/releases/tag/projen%400.15.27) (2025-06-20)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Regenerate README markdown files
|
|
17
|
+
([0bdc8a84e](https://github.com/storm-software/storm-ops/commit/0bdc8a84e))
|
|
18
|
+
|
|
5
19
|
## [0.15.26](https://github.com/storm-software/storm-ops/releases/tag/projen%400.15.26) (2025-06-18)
|
|
6
20
|
|
|
7
21
|
### 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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
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");
|
|
@@ -248,9 +248,9 @@ var organizationConfigSchema = z.object({
|
|
|
248
248
|
}).describe("The workspace's organization details");
|
|
249
249
|
var stormWorkspaceConfigSchema = z.object({
|
|
250
250
|
$schema: z.string().trim().default(
|
|
251
|
-
"https://
|
|
252
|
-
).
|
|
253
|
-
"The URL to the JSON schema file that describes the Storm configuration file"
|
|
251
|
+
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
252
|
+
).describe(
|
|
253
|
+
"The URL or file path to the JSON schema file that describes the Storm configuration file"
|
|
254
254
|
),
|
|
255
255
|
extends: ExtendsSchema.optional(),
|
|
256
256
|
name: z.string().trim().toLowerCase().optional().describe(
|
|
@@ -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
|
|
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,21 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
3537
3537
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
3538
3538
|
config
|
|
3539
3539
|
);
|
|
3540
|
-
const jsonSchema =
|
|
3541
|
-
|
|
3540
|
+
const jsonSchema = z2.toJSONSchema(stormWorkspaceConfigSchema, {
|
|
3541
|
+
target: "draft-7"
|
|
3542
3542
|
});
|
|
3543
|
+
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
3544
|
+
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
3545
|
+
jsonSchema.description ??= "This JSON Schema defines the structure of the Storm Workspace configuration file (`storm-workspace.json`). It is used to validate the configuration file and ensure that it adheres to the expected format.";
|
|
3543
3546
|
writeTrace(jsonSchema, config);
|
|
3547
|
+
if (!options.outputFile) {
|
|
3548
|
+
throw new Error(
|
|
3549
|
+
"The `outputFile` option is required. Please specify the output file path."
|
|
3550
|
+
);
|
|
3551
|
+
}
|
|
3544
3552
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
3545
3553
|
config?.workspaceRoot ?? findWorkspaceRoot(),
|
|
3546
|
-
options.outputFile
|
|
3554
|
+
options.outputFile.startsWith("./") ? "" : "./"
|
|
3547
3555
|
);
|
|
3548
3556
|
writeTrace(
|
|
3549
3557
|
`\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
|
|
99
|
-
var DarkColorSchema =
|
|
100
|
-
var LightColorSchema =
|
|
101
|
-
var BrandColorSchema =
|
|
102
|
-
var AlternateColorSchema =
|
|
103
|
-
var AccentColorSchema =
|
|
104
|
-
var LinkColorSchema =
|
|
105
|
-
var HelpColorSchema =
|
|
106
|
-
var SuccessColorSchema =
|
|
107
|
-
var InfoColorSchema =
|
|
108
|
-
var WarningColorSchema =
|
|
109
|
-
var DangerColorSchema =
|
|
110
|
-
var FatalColorSchema =
|
|
111
|
-
var PositiveColorSchema =
|
|
112
|
-
var NegativeColorSchema =
|
|
113
|
-
var DarkThemeColorConfigSchema =
|
|
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 =
|
|
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 =
|
|
145
|
+
var MultiThemeColorConfigSchema = z.object({
|
|
146
146
|
dark: DarkThemeColorConfigSchema,
|
|
147
147
|
light: LightThemeColorConfigSchema
|
|
148
148
|
});
|
|
149
|
-
var SingleThemeColorConfigSchema =
|
|
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 =
|
|
166
|
-
var RegistryConfigSchema =
|
|
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 =
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
var ColorConfigMapSchema = z.union([
|
|
177
|
+
z.object({ base: ColorConfigSchema }),
|
|
178
|
+
z.record(z.string(), ColorConfigSchema)
|
|
179
179
|
]);
|
|
180
|
-
var ExtendsItemSchema =
|
|
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
|
-
|
|
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 =
|
|
189
|
-
name:
|
|
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:
|
|
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 =
|
|
197
|
-
banner:
|
|
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:
|
|
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:
|
|
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 =
|
|
208
|
-
twitter:
|
|
209
|
-
discord:
|
|
210
|
-
telegram:
|
|
211
|
-
slack:
|
|
212
|
-
medium:
|
|
213
|
-
github:
|
|
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 =
|
|
218
|
-
cache:
|
|
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:
|
|
222
|
-
config:
|
|
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:
|
|
226
|
-
log:
|
|
227
|
-
build:
|
|
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 =
|
|
234
|
-
codesFile:
|
|
235
|
-
url:
|
|
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 =
|
|
240
|
-
name:
|
|
241
|
-
description:
|
|
242
|
-
logo:
|
|
243
|
-
icon:
|
|
244
|
-
url:
|
|
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 =
|
|
249
|
-
$schema:
|
|
250
|
-
"https://
|
|
251
|
-
).
|
|
252
|
-
"The URL to the JSON schema file that describes the Storm configuration file"
|
|
248
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
249
|
+
$schema: z.string().trim().default(
|
|
250
|
+
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
251
|
+
).describe(
|
|
252
|
+
"The URL or file path to the JSON schema file that describes the Storm configuration file"
|
|
253
253
|
),
|
|
254
254
|
extends: ExtendsSchema.optional(),
|
|
255
|
-
name:
|
|
255
|
+
name: z.string().trim().toLowerCase().optional().describe(
|
|
256
256
|
"The name of the service/package/scope using this configuration"
|
|
257
257
|
),
|
|
258
|
-
namespace:
|
|
259
|
-
organization: organizationConfigSchema.or(
|
|
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:
|
|
263
|
-
license:
|
|
264
|
-
homepage:
|
|
265
|
-
docs:
|
|
266
|
-
portal:
|
|
267
|
-
licensing:
|
|
268
|
-
contact:
|
|
269
|
-
support:
|
|
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:
|
|
273
|
-
preid:
|
|
274
|
-
owner:
|
|
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:
|
|
280
|
-
workspaceRoot:
|
|
281
|
-
externalPackagePatterns:
|
|
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:
|
|
284
|
+
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
285
285
|
directories: WorkspaceDirectoryConfigSchema,
|
|
286
|
-
packageManager:
|
|
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:
|
|
290
|
-
locale:
|
|
291
|
-
logLevel:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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,21 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
3536
3536
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
3537
3537
|
config
|
|
3538
3538
|
);
|
|
3539
|
-
const jsonSchema =
|
|
3540
|
-
|
|
3539
|
+
const jsonSchema = z2.toJSONSchema(stormWorkspaceConfigSchema, {
|
|
3540
|
+
target: "draft-7"
|
|
3541
3541
|
});
|
|
3542
|
+
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
3543
|
+
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
3544
|
+
jsonSchema.description ??= "This JSON Schema defines the structure of the Storm Workspace configuration file (`storm-workspace.json`). It is used to validate the configuration file and ensure that it adheres to the expected format.";
|
|
3542
3545
|
writeTrace(jsonSchema, config);
|
|
3546
|
+
if (!options.outputFile) {
|
|
3547
|
+
throw new Error(
|
|
3548
|
+
"The `outputFile` option is required. Please specify the output file path."
|
|
3549
|
+
);
|
|
3550
|
+
}
|
|
3543
3551
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
3544
3552
|
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _193 => _193.workspaceRoot]), () => ( findWorkspaceRoot())),
|
|
3545
|
-
|
|
3553
|
+
options.outputFile.startsWith("./") ? "" : "./"
|
|
3546
3554
|
);
|
|
3547
3555
|
writeTrace(
|
|
3548
3556
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
package/dist/generators.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-3MCIDYYV.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkI5SSMFCFjs = require('./chunk-I5SSMFCF.js');
|
|
5
5
|
require('./chunk-LP4I3FEY.js');
|
|
6
6
|
require('./chunk-MWIFWHR4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGeneratorFn =
|
|
9
|
+
exports.initGeneratorFn = _chunkI5SSMFCFjs.initGeneratorFn;
|
package/dist/generators.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkKFR27Y3Kjs = require('./chunk-KFR27Y3K.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkI5SSMFCFjs = require('./chunk-I5SSMFCF.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: () =>
|
|
19
|
+
initGeneratorFn: () => _chunkI5SSMFCFjs.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 =
|
|
25
|
+
exports.initGeneratorFn = _chunkI5SSMFCFjs.initGeneratorFn;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkI5SSMFCFjs = require('../../../chunk-I5SSMFCF.js');
|
|
5
5
|
require('../../../chunk-LP4I3FEY.js');
|
|
6
6
|
require('../../../chunk-MWIFWHR4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.default =
|
|
10
|
+
exports.default = _chunkI5SSMFCFjs.generator_default; exports.initGeneratorFn = _chunkI5SSMFCFjs.initGeneratorFn;
|