@storm-software/tsup 0.2.47 → 0.2.49

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.
@@ -1,14 +1,723 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS,
3
- getEnv
4
- } from "./chunk-ZJARWMGO.js";
3
+ DEFAULT_ENVIRONMENT,
4
+ DEFAULT_ORGANIZATION
5
+ } from "./chunk-HIRRMOUH.js";
5
6
  import {
6
7
  init_esm_shims
7
- } from "./chunk-G4WJGK23.js";
8
+ } from "./chunk-WGMAOE6K.js";
8
9
 
9
10
  // src/options.ts
10
11
  init_esm_shims();
11
12
 
13
+ // ../build-tools/dist/index.mjs
14
+ init_esm_shims();
15
+
16
+ // ../build-tools/dist/chunk-KVP3YMX6.mjs
17
+ init_esm_shims();
18
+
19
+ // ../build-tools/dist/chunk-BAGCAJFB.mjs
20
+ init_esm_shims();
21
+
22
+ // ../build-tools/dist/chunk-RPSH5IFV.mjs
23
+ init_esm_shims();
24
+
25
+ // ../build-tools/dist/chunk-VXUVNB76.mjs
26
+ init_esm_shims();
27
+
28
+ // ../build-tools/dist/chunk-RPSH5IFV.mjs
29
+ import { existsSync } from "node:fs";
30
+ import { join } from "node:path";
31
+
32
+ // ../build-tools/dist/chunk-J5M6XHOM.mjs
33
+ init_esm_shims();
34
+ import { formatDistanceToNow } from "date-fns/formatDistanceToNow";
35
+ import chalk from "chalk";
36
+ var LogLevelLabel = {
37
+ SILENT: "silent",
38
+ FATAL: "fatal",
39
+ ERROR: "error",
40
+ WARN: "warn",
41
+ SUCCESS: "success",
42
+ INFO: "info",
43
+ DEBUG: "debug",
44
+ TRACE: "trace",
45
+ ALL: "all"
46
+ };
47
+ function isUnicodeSupported() {
48
+ if (process.platform !== "win32") {
49
+ return process.env.TERM !== "linux";
50
+ }
51
+ return Boolean(process.env.WT_SESSION) || // Windows Terminal
52
+ Boolean(process.env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
53
+ process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
54
+ process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
55
+ }
56
+ var useIcon = (c3, fallback) => isUnicodeSupported() ? c3 : fallback;
57
+ var CONSOLE_ICONS = {
58
+ [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
59
+ [LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
60
+ [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
61
+ [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
62
+ [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
63
+ [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
64
+ [LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
65
+ [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
66
+ };
67
+
68
+ // ../build-tools/dist/chunk-BAGCAJFB.mjs
69
+ import { loadConfig } from "c12";
70
+ import defu from "defu";
71
+ import * as z from "zod/mini";
72
+ import { existsSync as existsSync2 } from "node:fs";
73
+ import { readFile } from "node:fs/promises";
74
+ import { join as join2 } from "node:path";
75
+ import defu2 from "defu";
76
+ import { existsSync as existsSync22 } from "node:fs";
77
+ import { existsSync as existsSync3 } from "node:fs";
78
+ import { readFile as readFile2 } from "node:fs/promises";
79
+ var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
80
+ var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
81
+ var STORM_DEFAULT_SOCIAL_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
82
+ var STORM_DEFAULT_RELEASE_FOOTER = `
83
+ Storm Software is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
84
+
85
+ Join us on [Discord](${STORM_DEFAULT_SOCIAL_DISCORD}) to chat with the team, receive release notifications, ask questions, and get involved.
86
+
87
+ If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_SOCIAL_SLACK}) channel!
88
+ `;
89
+ var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
90
+ var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
91
+ var schemaRegistry = z.registry();
92
+ var colorSchema = z.string().check(
93
+ z.length(7),
94
+ z.toLowerCase(),
95
+ z.regex(/^#([0-9a-f]{3}){1,2}$/i),
96
+ z.trim()
97
+ );
98
+ schemaRegistry.add(colorSchema, {
99
+ description: "A base schema for describing the format of colors"
100
+ });
101
+ var darkColorSchema = z._default(colorSchema, "#151718");
102
+ schemaRegistry.add(darkColorSchema, {
103
+ description: "The dark background color of the workspace"
104
+ });
105
+ var lightColorSchema = z._default(colorSchema, "#cbd5e1");
106
+ schemaRegistry.add(lightColorSchema, {
107
+ description: "The light background color of the workspace"
108
+ });
109
+ var brandColorSchema = z._default(colorSchema, "#1fb2a6");
110
+ schemaRegistry.add(brandColorSchema, {
111
+ description: "The primary brand specific color of the workspace"
112
+ });
113
+ var alternateColorSchema = z.optional(colorSchema);
114
+ schemaRegistry.add(alternateColorSchema, {
115
+ description: "The alternate brand specific color of the workspace"
116
+ });
117
+ var accentColorSchema = z.optional(colorSchema);
118
+ schemaRegistry.add(accentColorSchema, {
119
+ description: "The secondary brand specific color of the workspace"
120
+ });
121
+ var linkColorSchema = z._default(colorSchema, "#3fa6ff");
122
+ schemaRegistry.add(linkColorSchema, {
123
+ description: "The color used to display hyperlink text"
124
+ });
125
+ var helpColorSchema = z._default(colorSchema, "#818cf8");
126
+ schemaRegistry.add(helpColorSchema, {
127
+ description: "The second brand specific color of the workspace"
128
+ });
129
+ var successColorSchema = z._default(colorSchema, "#45b27e");
130
+ schemaRegistry.add(successColorSchema, {
131
+ description: "The success color of the workspace"
132
+ });
133
+ var infoColorSchema = z._default(colorSchema, "#38bdf8");
134
+ schemaRegistry.add(infoColorSchema, {
135
+ description: "The informational color of the workspace"
136
+ });
137
+ var warningColorSchema = z._default(colorSchema, "#f3d371");
138
+ schemaRegistry.add(warningColorSchema, {
139
+ description: "The warning color of the workspace"
140
+ });
141
+ var dangerColorSchema = z._default(colorSchema, "#d8314a");
142
+ schemaRegistry.add(dangerColorSchema, {
143
+ description: "The danger color of the workspace"
144
+ });
145
+ var fatalColorSchema = z.optional(colorSchema);
146
+ schemaRegistry.add(fatalColorSchema, {
147
+ description: "The fatal color of the workspace"
148
+ });
149
+ var positiveColorSchema = z._default(colorSchema, "#4ade80");
150
+ schemaRegistry.add(positiveColorSchema, {
151
+ description: "The positive number color of the workspace"
152
+ });
153
+ var negativeColorSchema = z._default(colorSchema, "#ef4444");
154
+ schemaRegistry.add(negativeColorSchema, {
155
+ description: "The negative number color of the workspace"
156
+ });
157
+ var gradientStopsSchema = z.optional(z.array(colorSchema));
158
+ schemaRegistry.add(gradientStopsSchema, {
159
+ description: "The color stops for the base gradient color pattern used in the workspace"
160
+ });
161
+ var darkColorsSchema = z.object({
162
+ foreground: lightColorSchema,
163
+ background: darkColorSchema,
164
+ brand: brandColorSchema,
165
+ alternate: alternateColorSchema,
166
+ accent: accentColorSchema,
167
+ link: linkColorSchema,
168
+ help: helpColorSchema,
169
+ success: successColorSchema,
170
+ info: infoColorSchema,
171
+ warning: warningColorSchema,
172
+ danger: dangerColorSchema,
173
+ fatal: fatalColorSchema,
174
+ positive: positiveColorSchema,
175
+ negative: negativeColorSchema,
176
+ gradient: gradientStopsSchema
177
+ });
178
+ var lightColorsSchema = z.object({
179
+ foreground: darkColorSchema,
180
+ background: lightColorSchema,
181
+ brand: brandColorSchema,
182
+ alternate: alternateColorSchema,
183
+ accent: accentColorSchema,
184
+ link: linkColorSchema,
185
+ help: helpColorSchema,
186
+ success: successColorSchema,
187
+ info: infoColorSchema,
188
+ warning: warningColorSchema,
189
+ danger: dangerColorSchema,
190
+ fatal: fatalColorSchema,
191
+ positive: positiveColorSchema,
192
+ negative: negativeColorSchema,
193
+ gradient: gradientStopsSchema
194
+ });
195
+ var multiColorsSchema = z.object({
196
+ dark: darkColorsSchema,
197
+ light: lightColorsSchema
198
+ });
199
+ var singleColorsSchema = z.object({
200
+ dark: darkColorSchema,
201
+ light: lightColorSchema,
202
+ brand: brandColorSchema,
203
+ alternate: alternateColorSchema,
204
+ accent: accentColorSchema,
205
+ link: linkColorSchema,
206
+ help: helpColorSchema,
207
+ success: successColorSchema,
208
+ info: infoColorSchema,
209
+ warning: warningColorSchema,
210
+ danger: dangerColorSchema,
211
+ fatal: fatalColorSchema,
212
+ positive: positiveColorSchema,
213
+ negative: negativeColorSchema,
214
+ gradient: gradientStopsSchema
215
+ });
216
+ var registryUrlConfigSchema = z.optional(z.url());
217
+ schemaRegistry.add(registryUrlConfigSchema, {
218
+ description: "A remote registry URL used to publish distributable packages"
219
+ });
220
+ var registrySchema = z._default(
221
+ z.object({
222
+ github: registryUrlConfigSchema,
223
+ npm: registryUrlConfigSchema,
224
+ cargo: registryUrlConfigSchema,
225
+ cyclone: registryUrlConfigSchema,
226
+ container: registryUrlConfigSchema
227
+ }),
228
+ {}
229
+ );
230
+ schemaRegistry.add(registrySchema, {
231
+ description: "A list of remote registry URLs used by Storm Software"
232
+ });
233
+ var colorsSchema = z.union([singleColorsSchema, multiColorsSchema]);
234
+ schemaRegistry.add(colorsSchema, {
235
+ description: "Colors used for various workspace elements"
236
+ });
237
+ var themeColorsSchema = z.record(
238
+ z.union([z.union([z.literal("base"), z.string()]), z.string()]),
239
+ colorsSchema
240
+ );
241
+ schemaRegistry.add(themeColorsSchema, {
242
+ description: "Storm theme config values used for styling various package elements"
243
+ });
244
+ var extendsSchema = z.optional(
245
+ z.union([z.string().check(z.trim()), z.array(z.string().check(z.trim()))])
246
+ );
247
+ schemaRegistry.add(extendsSchema, {
248
+ description: "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
249
+ });
250
+ var workspaceBotNameSchema = z.string().check(z.trim());
251
+ schemaRegistry.add(workspaceBotNameSchema, {
252
+ description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
253
+ });
254
+ var workspaceBotEmailSchema = z.string().check(z.trim());
255
+ schemaRegistry.add(workspaceBotEmailSchema, {
256
+ description: "The email of the workspace bot"
257
+ });
258
+ var workspaceBotSchema = z.object({
259
+ name: workspaceBotNameSchema,
260
+ email: workspaceBotEmailSchema
261
+ });
262
+ schemaRegistry.add(workspaceBotSchema, {
263
+ description: "The workspace's bot user's config used to automated various operations tasks"
264
+ });
265
+ var workspaceReleaseBannerUrlSchema = z.optional(
266
+ z.string().check(z.trim(), z.url())
267
+ );
268
+ schemaRegistry.add(workspaceReleaseBannerUrlSchema, {
269
+ description: "A URL to a banner image used to display the workspace's release"
270
+ });
271
+ var workspaceReleaseBannerAltSchema = z._default(
272
+ z.string().check(z.trim()),
273
+ STORM_DEFAULT_BANNER_ALT
274
+ );
275
+ schemaRegistry.add(workspaceReleaseBannerAltSchema, {
276
+ description: "The alt text for the workspace's release banner image"
277
+ });
278
+ var workspaceReleaseBannerSchema = z.object({
279
+ url: workspaceReleaseBannerUrlSchema,
280
+ alt: workspaceReleaseBannerAltSchema
281
+ });
282
+ schemaRegistry.add(workspaceReleaseBannerSchema, {
283
+ description: "The workspace's banner image used during the release process"
284
+ });
285
+ var workspaceReleaseHeaderSchema = z.optional(
286
+ z.string().check(z.trim())
287
+ );
288
+ schemaRegistry.add(workspaceReleaseHeaderSchema, {
289
+ description: "A header message appended to the start of the workspace's release notes"
290
+ });
291
+ var workspaceReleaseFooterSchema = z.optional(
292
+ z.string().check(z.trim())
293
+ );
294
+ schemaRegistry.add(workspaceReleaseFooterSchema, {
295
+ description: "A footer message appended to the end of the workspace's release notes"
296
+ });
297
+ var workspaceReleaseSchema = z.object({
298
+ banner: z.union([
299
+ workspaceReleaseBannerSchema,
300
+ z.string().check(z.trim(), z.url())
301
+ ]),
302
+ header: workspaceReleaseHeaderSchema,
303
+ footer: workspaceReleaseFooterSchema
304
+ });
305
+ schemaRegistry.add(workspaceReleaseSchema, {
306
+ description: "The workspace's release config used during the release process"
307
+ });
308
+ var workspaceSocialsTwitterSchema = z.optional(
309
+ z.string().check(z.trim())
310
+ );
311
+ schemaRegistry.add(workspaceSocialsTwitterSchema, {
312
+ description: "A Twitter/X account associated with the organization/project"
313
+ });
314
+ var workspaceSocialsDiscordSchema = z.optional(
315
+ z.string().check(z.trim())
316
+ );
317
+ schemaRegistry.add(workspaceSocialsDiscordSchema, {
318
+ description: "A Discord account associated with the organization/project"
319
+ });
320
+ var workspaceSocialsTelegramSchema = z.optional(
321
+ z.string().check(z.trim())
322
+ );
323
+ schemaRegistry.add(workspaceSocialsTelegramSchema, {
324
+ description: "A Telegram account associated with the organization/project"
325
+ });
326
+ var workspaceSocialsSlackSchema = z.optional(
327
+ z.string().check(z.trim())
328
+ );
329
+ schemaRegistry.add(workspaceSocialsSlackSchema, {
330
+ description: "A Slack account associated with the organization/project"
331
+ });
332
+ var workspaceSocialsMediumSchema = z.optional(
333
+ z.string().check(z.trim())
334
+ );
335
+ schemaRegistry.add(workspaceSocialsMediumSchema, {
336
+ description: "A Medium account associated with the organization/project"
337
+ });
338
+ var workspaceSocialsGithubSchema = z.optional(
339
+ z.string().check(z.trim())
340
+ );
341
+ schemaRegistry.add(workspaceSocialsGithubSchema, {
342
+ description: "A GitHub account associated with the organization/project"
343
+ });
344
+ var workspaceSocialsSchema = z.object({
345
+ twitter: workspaceSocialsTwitterSchema,
346
+ discord: workspaceSocialsDiscordSchema,
347
+ telegram: workspaceSocialsTelegramSchema,
348
+ slack: workspaceSocialsSlackSchema,
349
+ medium: workspaceSocialsMediumSchema,
350
+ github: workspaceSocialsGithubSchema
351
+ });
352
+ schemaRegistry.add(workspaceSocialsSchema, {
353
+ description: "The workspace's account config used to store various social media links"
354
+ });
355
+ var workspaceDirectoryCacheSchema = z.optional(
356
+ z.string().check(z.trim())
357
+ );
358
+ schemaRegistry.add(workspaceDirectoryCacheSchema, {
359
+ description: "The directory used to store the environment's cached file data"
360
+ });
361
+ var workspaceDirectoryDataSchema = z.optional(
362
+ z.string().check(z.trim())
363
+ );
364
+ schemaRegistry.add(workspaceDirectoryDataSchema, {
365
+ description: "The directory used to store the environment's data files"
366
+ });
367
+ var workspaceDirectoryConfigSchema = z.optional(
368
+ z.string().check(z.trim())
369
+ );
370
+ schemaRegistry.add(workspaceDirectoryConfigSchema, {
371
+ description: "The directory used to store the environment's configuration files"
372
+ });
373
+ var workspaceDirectoryTempSchema = z.optional(
374
+ z.string().check(z.trim())
375
+ );
376
+ schemaRegistry.add(workspaceDirectoryTempSchema, {
377
+ description: "The directory used to store the environment's temp files"
378
+ });
379
+ var workspaceDirectoryLogSchema = z.optional(
380
+ z.string().check(z.trim())
381
+ );
382
+ schemaRegistry.add(workspaceDirectoryLogSchema, {
383
+ description: "The directory used to store the environment's log files"
384
+ });
385
+ var workspaceDirectoryBuildSchema = z._default(
386
+ z.string().check(z.trim()),
387
+ "dist"
388
+ );
389
+ schemaRegistry.add(workspaceDirectoryBuildSchema, {
390
+ description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
391
+ });
392
+ var workspaceDirectorySchema = z.object({
393
+ cache: workspaceDirectoryCacheSchema,
394
+ data: workspaceDirectoryDataSchema,
395
+ config: workspaceDirectoryConfigSchema,
396
+ temp: workspaceDirectoryTempSchema,
397
+ log: workspaceDirectoryLogSchema,
398
+ build: workspaceDirectoryBuildSchema
399
+ });
400
+ schemaRegistry.add(workspaceDirectorySchema, {
401
+ description: "Various directories used by the workspace to store data, cache, and configuration files"
402
+ });
403
+ var variantSchema = z._default(
404
+ z.enum(["minimal", "monorepo"]),
405
+ "monorepo"
406
+ );
407
+ schemaRegistry.add(variantSchema, {
408
+ description: "The variant of the workspace. This can be used to enable or disable certain features or configurations."
409
+ });
410
+ var errorCodesFileSchema = z._default(
411
+ z.string().check(z.trim()),
412
+ STORM_DEFAULT_ERROR_CODES_FILE
413
+ );
414
+ schemaRegistry.add(errorCodesFileSchema, {
415
+ description: "The path to the workspace's error codes JSON file"
416
+ });
417
+ var errorUrlSchema = z.optional(z.url());
418
+ schemaRegistry.add(errorUrlSchema, {
419
+ description: "A URL to a page that looks up the workspace's error messages given a specific error code"
420
+ });
421
+ var errorSchema = z.object({
422
+ codesFile: errorCodesFileSchema,
423
+ url: errorUrlSchema
424
+ });
425
+ schemaRegistry.add(errorSchema, {
426
+ description: "The workspace's error config used when creating error details during a system error"
427
+ });
428
+ var organizationNameSchema = z.optional(
429
+ z.string().check(z.trim(), z.toLowerCase())
430
+ );
431
+ schemaRegistry.add(organizationNameSchema, {
432
+ description: "The name of the organization"
433
+ });
434
+ var organizationDescriptionSchema = z.optional(
435
+ z.string().check(z.trim())
436
+ );
437
+ schemaRegistry.add(organizationDescriptionSchema, {
438
+ description: "A description of the organization"
439
+ });
440
+ var organizationLogoSchema = z.optional(z.url());
441
+ schemaRegistry.add(organizationLogoSchema, {
442
+ description: "A URL to the organization's logo image"
443
+ });
444
+ var organizationIconSchema = z.optional(z.url());
445
+ schemaRegistry.add(organizationIconSchema, {
446
+ description: "A URL to the organization's icon image"
447
+ });
448
+ var organizationUrlSchema = z.optional(z.url());
449
+ schemaRegistry.add(organizationUrlSchema, {
450
+ description: "A URL to a page that provides more information about the organization"
451
+ });
452
+ var organizationSchema = z.object({
453
+ name: organizationNameSchema,
454
+ description: organizationDescriptionSchema,
455
+ logo: organizationLogoSchema,
456
+ icon: organizationIconSchema,
457
+ url: organizationUrlSchema
458
+ });
459
+ schemaRegistry.add(organizationSchema, {
460
+ description: "The workspace's organization details"
461
+ });
462
+ var schemaNameSchema = z._default(
463
+ z.string().check(z.trim(), z.toLowerCase()),
464
+ "https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
465
+ );
466
+ schemaRegistry.add(schemaNameSchema, {
467
+ description: "The URL or file path to the JSON schema file that describes the Storm configuration file"
468
+ });
469
+ var nameSchema = z.string().check(z.trim(), z.toLowerCase());
470
+ schemaRegistry.add(nameSchema, {
471
+ description: "The name of the workspace/project/service/package/scope using this configuration"
472
+ });
473
+ var namespaceSchema = z.string().check(z.trim(), z.toLowerCase());
474
+ schemaRegistry.add(namespaceSchema, {
475
+ description: "The namespace of the workspace/project/service/package/scope using this configuration"
476
+ });
477
+ var orgSchema = z.union([
478
+ organizationSchema,
479
+ z.string().check(z.trim(), z.toLowerCase())
480
+ ]);
481
+ schemaRegistry.add(orgSchema, {
482
+ description: "The organization of the workspace. This can be a string or an object containing the organization's details"
483
+ });
484
+ var repositorySchema = z.string().check(z.trim(), z.toLowerCase());
485
+ schemaRegistry.add(repositorySchema, {
486
+ description: "The repo URL of the workspace (i.e. the GitHub repository URL)"
487
+ });
488
+ var licenseSchema = z._default(
489
+ z.string().check(z.trim()),
490
+ "Apache-2.0"
491
+ );
492
+ schemaRegistry.add(licenseSchema, {
493
+ description: "The license type of the package"
494
+ });
495
+ var homepageSchema = z.optional(z.url());
496
+ schemaRegistry.add(homepageSchema, {
497
+ description: "The homepage of the workspace"
498
+ });
499
+ var docsSchema = z.optional(z.url());
500
+ schemaRegistry.add(docsSchema, {
501
+ description: "The documentation site for the workspace"
502
+ });
503
+ var portalSchema = z.optional(z.url());
504
+ schemaRegistry.add(portalSchema, {
505
+ description: "The development portal site for the workspace"
506
+ });
507
+ var licensingSchema = z.optional(z.url());
508
+ schemaRegistry.add(licensingSchema, {
509
+ description: "The licensing site for the workspace"
510
+ });
511
+ var contactSchema = z.optional(z.url());
512
+ schemaRegistry.add(contactSchema, {
513
+ description: "The contact site for the workspace"
514
+ });
515
+ var supportSchema = z.optional(z.url());
516
+ schemaRegistry.add(supportSchema, {
517
+ description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
518
+ });
519
+ var branchSchema = z._default(
520
+ z.string().check(z.trim(), z.toLowerCase()),
521
+ "main"
522
+ );
523
+ schemaRegistry.add(branchSchema, {
524
+ description: "The branch of the workspace"
525
+ });
526
+ var preidSchema = z.optional(
527
+ z.string().check(z.trim(), z.toLowerCase())
528
+ );
529
+ schemaRegistry.add(preidSchema, {
530
+ description: "A tag specifying the version pre-release identifier"
531
+ });
532
+ var ownerSchema = z.optional(
533
+ z.string().check(z.trim(), z.toLowerCase())
534
+ );
535
+ schemaRegistry.add(ownerSchema, {
536
+ description: "The owner of the package"
537
+ });
538
+ var modeSchema = z._default(
539
+ z.enum(["development", "test", "production"]).check(z.trim(), z.toLowerCase()),
540
+ "production"
541
+ );
542
+ schemaRegistry.add(modeSchema, {
543
+ description: "The current runtime environment mode for the package"
544
+ });
545
+ var workspaceRootSchema = z.string().check(z.trim(), z.toLowerCase());
546
+ schemaRegistry.add(workspaceRootSchema, {
547
+ description: "The root directory of the workspace"
548
+ });
549
+ var skipCacheSchema = z._default(z.boolean(), false);
550
+ schemaRegistry.add(skipCacheSchema, {
551
+ description: "Should all known types of workspace caching be skipped?"
552
+ });
553
+ var packageManagerSchema = z._default(
554
+ z.enum(["npm", "yarn", "pnpm", "bun"]),
555
+ "npm"
556
+ );
557
+ schemaRegistry.add(packageManagerSchema, {
558
+ description: "The JavaScript/TypeScript package manager used by the repository"
559
+ });
560
+ var timezoneSchema = z._default(
561
+ z.string().check(z.trim()),
562
+ "America/New_York"
563
+ );
564
+ schemaRegistry.add(timezoneSchema, {
565
+ description: "The default timezone of the workspace"
566
+ });
567
+ var localeSchema = z._default(z.string().check(z.trim()), "en-US");
568
+ schemaRegistry.add(localeSchema, {
569
+ description: "The default locale of the workspace"
570
+ });
571
+ var logLevelSchema = z._default(
572
+ z.enum([
573
+ "silent",
574
+ "fatal",
575
+ "error",
576
+ "warn",
577
+ "success",
578
+ "info",
579
+ "debug",
580
+ "trace",
581
+ "all"
582
+ ]),
583
+ "info"
584
+ );
585
+ schemaRegistry.add(logLevelSchema, {
586
+ description: "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`)."
587
+ });
588
+ var skipConfigLoggingSchema = z._default(z.boolean(), true);
589
+ schemaRegistry.add(skipConfigLoggingSchema, {
590
+ description: "Should the logging of the current Storm Workspace configuration be skipped?"
591
+ });
592
+ var configFileSchema = z._default(
593
+ z.nullable(z.string().check(z.trim())),
594
+ null
595
+ );
596
+ schemaRegistry.add(configFileSchema, {
597
+ description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
598
+ });
599
+ var extensionsSchema = z._default(z.record(z.string(), z.any()), {});
600
+ schemaRegistry.add(extensionsSchema, {
601
+ description: "Configuration of each used extension"
602
+ });
603
+ var workspaceConfigSchema = z.object({
604
+ $schema: schemaNameSchema,
605
+ extends: extendsSchema,
606
+ name: nameSchema,
607
+ variant: variantSchema,
608
+ namespace: namespaceSchema,
609
+ organization: orgSchema,
610
+ repository: repositorySchema,
611
+ license: licenseSchema,
612
+ homepage: homepageSchema,
613
+ docs: docsSchema,
614
+ portal: portalSchema,
615
+ licensing: licensingSchema,
616
+ contact: contactSchema,
617
+ support: supportSchema,
618
+ branch: branchSchema,
619
+ preid: preidSchema,
620
+ owner: ownerSchema,
621
+ bot: workspaceBotSchema,
622
+ release: workspaceReleaseSchema,
623
+ socials: workspaceSocialsSchema,
624
+ error: errorSchema,
625
+ mode: modeSchema,
626
+ workspaceRoot: workspaceRootSchema,
627
+ skipCache: skipCacheSchema,
628
+ directories: workspaceDirectorySchema,
629
+ packageManager: packageManagerSchema,
630
+ timezone: timezoneSchema,
631
+ locale: localeSchema,
632
+ logLevel: logLevelSchema,
633
+ skipConfigLogging: skipConfigLoggingSchema,
634
+ registry: registrySchema,
635
+ configFile: configFileSchema,
636
+ colors: z.union([colorsSchema, themeColorsSchema]),
637
+ extensions: extensionsSchema
638
+ });
639
+ schemaRegistry.add(extensionsSchema, {
640
+ description: "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
641
+ });
642
+
643
+ // ../build-tools/dist/chunk-JCFRYUYP.mjs
644
+ init_esm_shims();
645
+ import {
646
+ createTaskGraph,
647
+ mapTargetDefaultsToDependencies
648
+ } from "nx/src/tasks-runner/create-task-graph";
649
+
650
+ // ../build-tools/dist/chunk-UCEEEQVX.mjs
651
+ init_esm_shims();
652
+ import { CopyAssetsHandler } from "@nx/js/src/utils/assets/copy-assets-handler";
653
+ import { glob } from "glob";
654
+ import { readFile as readFile3, writeFile } from "node:fs/promises";
655
+
656
+ // ../build-tools/dist/chunk-RVBHYVMR.mjs
657
+ init_esm_shims();
658
+ import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
659
+ import { Glob } from "glob";
660
+ import { existsSync as existsSync4, readFileSync } from "node:fs";
661
+ import { readFile as readFile4 } from "node:fs/promises";
662
+ import {
663
+ createProjectGraphAsync,
664
+ readCachedProjectGraph,
665
+ readProjectsConfigurationFromProjectGraph
666
+ } from "nx/src/project-graph/project-graph";
667
+
668
+ // ../build-tools/dist/chunk-3E4JAUKE.mjs
669
+ init_esm_shims();
670
+ import { glob as glob2 } from "glob";
671
+
672
+ // ../build-tools/dist/chunk-J2T4DFJK.mjs
673
+ init_esm_shims();
674
+ var getEnv = (builder, options) => {
675
+ return {
676
+ STORM_BUILD: builder,
677
+ STORM_ORG: options.orgName || DEFAULT_ORGANIZATION,
678
+ STORM_NAME: options.name,
679
+ STORM_MODE: options.mode || DEFAULT_ENVIRONMENT,
680
+ STORM_PLATFORM: options.platform,
681
+ STORM_FORMAT: JSON.stringify(options.format),
682
+ STORM_TARGET: JSON.stringify(options.target),
683
+ ...options.env
684
+ };
685
+ };
686
+
687
+ // ../build-tools/dist/chunk-KUEYIH7W.mjs
688
+ init_esm_shims();
689
+
690
+ // ../build-tools/dist/chunk-3VZVP5XV.mjs
691
+ init_esm_shims();
692
+
693
+ // ../build-tools/dist/chunk-ODQKLK6L.mjs
694
+ init_esm_shims();
695
+
696
+ // ../build-tools/dist/chunk-WBQAMGXK.mjs
697
+ init_esm_shims();
698
+
699
+ // ../build-tools/dist/chunk-UN3B7LBV.mjs
700
+ init_esm_shims();
701
+
702
+ // ../build-tools/dist/chunk-XQQDAMER.mjs
703
+ init_esm_shims();
704
+
705
+ // ../build-tools/dist/chunk-7YKXR5JJ.mjs
706
+ init_esm_shims();
707
+ import { transform } from "@swc/core";
708
+
709
+ // ../build-tools/dist/chunk-JVUUAAFA.mjs
710
+ init_esm_shims();
711
+ import fs from "node:fs";
712
+ import { builtinModules } from "node:module";
713
+ import path from "node:path";
714
+ import _resolve from "resolve";
715
+
716
+ // ../build-tools/dist/chunk-VGLIZ2H3.mjs
717
+ init_esm_shims();
718
+ import { stripIndents } from "@nx/devkit";
719
+ import { relative } from "path";
720
+
12
721
  // ../config-tools/dist/get-config.js
13
722
  init_esm_shims();
14
723
 
@@ -26,24 +735,24 @@ init_esm_shims();
26
735
 
27
736
  // ../config-tools/dist/chunk-6JBGUE4A.js
28
737
  init_esm_shims();
29
- import { existsSync } from "node:fs";
30
- import { join } from "node:path";
738
+ import { existsSync as existsSync5 } from "node:fs";
739
+ import { join as join3 } from "node:path";
31
740
  var MAX_PATH_SEARCH_DEPTH = 30;
32
741
  var depth = 0;
33
742
  function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
34
743
  const _startPath = startPath ?? process.cwd();
35
744
  if (endDirectoryNames.some(
36
- (endDirName) => existsSync(join(_startPath, endDirName))
745
+ (endDirName) => existsSync5(join3(_startPath, endDirName))
37
746
  )) {
38
747
  return _startPath;
39
748
  }
40
749
  if (endFileNames.some(
41
- (endFileName) => existsSync(join(_startPath, endFileName))
750
+ (endFileName) => existsSync5(join3(_startPath, endFileName))
42
751
  )) {
43
752
  return _startPath;
44
753
  }
45
754
  if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
46
- const parent = join(_startPath, "..");
755
+ const parent = join3(_startPath, "..");
47
756
  return findFolderUp(parent, endFileNames, endDirectoryNames);
48
757
  }
49
758
  return void 0;
@@ -61,65 +770,65 @@ function normalizeWindowsPath(input = "") {
61
770
  var _UNC_REGEX = /^[/\\]{2}/;
62
771
  var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
63
772
  var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
64
- var correctPaths = function(path) {
65
- if (!path || path.length === 0) {
773
+ var correctPaths2 = function(path2) {
774
+ if (!path2 || path2.length === 0) {
66
775
  return ".";
67
776
  }
68
- path = normalizeWindowsPath(path);
69
- const isUNCPath = path?.match(_UNC_REGEX);
70
- const isPathAbsolute = isAbsolute(path);
71
- const trailingSeparator = path[path.length - 1] === "/";
72
- path = normalizeString(path, !isPathAbsolute);
73
- if (path.length === 0) {
777
+ path2 = normalizeWindowsPath(path2);
778
+ const isUNCPath = path2?.match(_UNC_REGEX);
779
+ const isPathAbsolute = isAbsolute(path2);
780
+ const trailingSeparator = path2[path2.length - 1] === "/";
781
+ path2 = normalizeString(path2, !isPathAbsolute);
782
+ if (path2.length === 0) {
74
783
  if (isPathAbsolute) {
75
784
  return "/";
76
785
  }
77
786
  return trailingSeparator ? "./" : ".";
78
787
  }
79
788
  if (trailingSeparator) {
80
- path += "/";
789
+ path2 += "/";
81
790
  }
82
- if (_DRIVE_LETTER_RE.test(path)) {
83
- path += "/";
791
+ if (_DRIVE_LETTER_RE.test(path2)) {
792
+ path2 += "/";
84
793
  }
85
794
  if (isUNCPath) {
86
795
  if (!isPathAbsolute) {
87
- return `//./${path}`;
796
+ return `//./${path2}`;
88
797
  }
89
- return `//${path}`;
798
+ return `//${path2}`;
90
799
  }
91
- return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
800
+ return isPathAbsolute && !isAbsolute(path2) ? `/${path2}` : path2;
92
801
  };
93
- var joinPaths = function(...segments) {
94
- let path = "";
802
+ var joinPaths2 = function(...segments) {
803
+ let path2 = "";
95
804
  for (const seg of segments) {
96
805
  if (!seg) {
97
806
  continue;
98
807
  }
99
- if (path.length > 0) {
100
- const pathTrailing = path[path.length - 1] === "/";
808
+ if (path2.length > 0) {
809
+ const pathTrailing = path2[path2.length - 1] === "/";
101
810
  const segLeading = seg[0] === "/";
102
811
  const both = pathTrailing && segLeading;
103
812
  if (both) {
104
- path += seg.slice(1);
813
+ path2 += seg.slice(1);
105
814
  } else {
106
- path += pathTrailing || segLeading ? seg : `/${seg}`;
815
+ path2 += pathTrailing || segLeading ? seg : `/${seg}`;
107
816
  }
108
817
  } else {
109
- path += seg;
818
+ path2 += seg;
110
819
  }
111
820
  }
112
- return correctPaths(path);
821
+ return correctPaths2(path2);
113
822
  };
114
- function normalizeString(path, allowAboveRoot) {
823
+ function normalizeString(path2, allowAboveRoot) {
115
824
  let res = "";
116
825
  let lastSegmentLength = 0;
117
826
  let lastSlash = -1;
118
827
  let dots = 0;
119
828
  let char = null;
120
- for (let index = 0; index <= path.length; ++index) {
121
- if (index < path.length) {
122
- char = path[index];
829
+ for (let index = 0; index <= path2.length; ++index) {
830
+ if (index < path2.length) {
831
+ char = path2[index];
123
832
  } else if (char === "/") {
124
833
  break;
125
834
  } else {
@@ -155,9 +864,9 @@ function normalizeString(path, allowAboveRoot) {
155
864
  }
156
865
  } else {
157
866
  if (res.length > 0) {
158
- res += `/${path.slice(lastSlash + 1, index)}`;
867
+ res += `/${path2.slice(lastSlash + 1, index)}`;
159
868
  } else {
160
- res = path.slice(lastSlash + 1, index);
869
+ res = path2.slice(lastSlash + 1, index);
161
870
  }
162
871
  lastSegmentLength = index - lastSlash - 1;
163
872
  }
@@ -220,11 +929,11 @@ var rootDirectories = [
220
929
  ];
221
930
  function findWorkspaceRootSafe(pathInsideMonorepo) {
222
931
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
223
- return correctPaths(
932
+ return correctPaths2(
224
933
  process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
225
934
  );
226
935
  }
227
- return correctPaths(
936
+ return correctPaths2(
228
937
  findFolderUp(
229
938
  pathInsideMonorepo ?? process.cwd(),
230
939
  rootFiles,
@@ -232,7 +941,7 @@ function findWorkspaceRootSafe(pathInsideMonorepo) {
232
941
  )
233
942
  );
234
943
  }
235
- function findWorkspaceRoot(pathInsideMonorepo) {
944
+ function findWorkspaceRoot2(pathInsideMonorepo) {
236
945
  const result = findWorkspaceRootSafe(pathInsideMonorepo);
237
946
  if (!result) {
238
947
  throw new Error(
@@ -288,7 +997,7 @@ var DEFAULT_COLOR_CONFIG = {
288
997
 
289
998
  // ../config-tools/dist/chunk-HVVJHTFS.js
290
999
  init_esm_shims();
291
- import chalk from "chalk";
1000
+ import chalk2 from "chalk";
292
1001
  var chalkDefault = {
293
1002
  hex: (_3) => (message) => message,
294
1003
  bgHex: (_3) => ({
@@ -313,7 +1022,7 @@ var chalkDefault = {
313
1022
  }
314
1023
  };
315
1024
  var getChalk = () => {
316
- let _chalk = chalk;
1025
+ let _chalk = chalk2;
317
1026
  if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) {
318
1027
  _chalk = chalkDefault;
319
1028
  }
@@ -325,7 +1034,7 @@ init_esm_shims();
325
1034
 
326
1035
  // ../config-tools/dist/chunk-G2MK47WL.js
327
1036
  init_esm_shims();
328
- function isUnicodeSupported() {
1037
+ function isUnicodeSupported2() {
329
1038
  if (process.platform !== "win32") {
330
1039
  return process.env.TERM !== "linux";
331
1040
  }
@@ -337,7 +1046,7 @@ function isUnicodeSupported() {
337
1046
 
338
1047
  // ../config-tools/dist/chunk-POXTJ6GF.js
339
1048
  init_esm_shims();
340
- var LogLevel = {
1049
+ var LogLevel2 = {
341
1050
  SILENT: 0,
342
1051
  FATAL: 10,
343
1052
  ERROR: 20,
@@ -348,7 +1057,7 @@ var LogLevel = {
348
1057
  TRACE: 70,
349
1058
  ALL: 100
350
1059
  };
351
- var LogLevelLabel = {
1060
+ var LogLevelLabel2 = {
352
1061
  SILENT: "silent",
353
1062
  FATAL: "fatal",
354
1063
  ERROR: "error",
@@ -361,16 +1070,16 @@ var LogLevelLabel = {
361
1070
  };
362
1071
 
363
1072
  // ../config-tools/dist/chunk-LM2UMGYA.js
364
- var useIcon = (c3, fallback) => isUnicodeSupported() ? c3 : fallback;
365
- var CONSOLE_ICONS = {
366
- [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
367
- [LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
368
- [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
369
- [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
370
- [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
371
- [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
372
- [LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
373
- [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
1073
+ var useIcon2 = (c3, fallback) => isUnicodeSupported2() ? c3 : fallback;
1074
+ var CONSOLE_ICONS2 = {
1075
+ [LogLevelLabel2.ERROR]: useIcon2("\u2718", "\xD7"),
1076
+ [LogLevelLabel2.FATAL]: useIcon2("\u{1F480}", "\xD7"),
1077
+ [LogLevelLabel2.WARN]: useIcon2("\u26A0", "\u203C"),
1078
+ [LogLevelLabel2.INFO]: useIcon2("\u2139", "i"),
1079
+ [LogLevelLabel2.SUCCESS]: useIcon2("\u2714", "\u221A"),
1080
+ [LogLevelLabel2.DEBUG]: useIcon2("\u{1F6E0}", "D"),
1081
+ [LogLevelLabel2.TRACE]: useIcon2("\u{1F6E0}", "T"),
1082
+ [LogLevelLabel2.ALL]: useIcon2("\u2709", "\u2192")
374
1083
  };
375
1084
 
376
1085
  // ../config-tools/dist/chunk-CZ4IE2QN.js
@@ -381,124 +1090,124 @@ var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
381
1090
 
382
1091
  // ../config-tools/dist/chunk-K4CDYUQR.js
383
1092
  init_esm_shims();
384
- var getLogLevel = (label) => {
1093
+ var getLogLevel2 = (label) => {
385
1094
  switch (label) {
386
1095
  case "all":
387
- return LogLevel.ALL;
1096
+ return LogLevel2.ALL;
388
1097
  case "trace":
389
- return LogLevel.TRACE;
1098
+ return LogLevel2.TRACE;
390
1099
  case "debug":
391
- return LogLevel.DEBUG;
1100
+ return LogLevel2.DEBUG;
392
1101
  case "info":
393
- return LogLevel.INFO;
1102
+ return LogLevel2.INFO;
394
1103
  case "warn":
395
- return LogLevel.WARN;
1104
+ return LogLevel2.WARN;
396
1105
  case "error":
397
- return LogLevel.ERROR;
1106
+ return LogLevel2.ERROR;
398
1107
  case "fatal":
399
- return LogLevel.FATAL;
1108
+ return LogLevel2.FATAL;
400
1109
  case "silent":
401
- return LogLevel.SILENT;
1110
+ return LogLevel2.SILENT;
402
1111
  default:
403
- return LogLevel.INFO;
1112
+ return LogLevel2.INFO;
404
1113
  }
405
1114
  };
406
- var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
407
- if (logLevel >= LogLevel.ALL) {
408
- return LogLevelLabel.ALL;
1115
+ var getLogLevelLabel2 = (logLevel = LogLevel2.INFO) => {
1116
+ if (logLevel >= LogLevel2.ALL) {
1117
+ return LogLevelLabel2.ALL;
409
1118
  }
410
- if (logLevel >= LogLevel.TRACE) {
411
- return LogLevelLabel.TRACE;
1119
+ if (logLevel >= LogLevel2.TRACE) {
1120
+ return LogLevelLabel2.TRACE;
412
1121
  }
413
- if (logLevel >= LogLevel.DEBUG) {
414
- return LogLevelLabel.DEBUG;
1122
+ if (logLevel >= LogLevel2.DEBUG) {
1123
+ return LogLevelLabel2.DEBUG;
415
1124
  }
416
- if (logLevel >= LogLevel.INFO) {
417
- return LogLevelLabel.INFO;
1125
+ if (logLevel >= LogLevel2.INFO) {
1126
+ return LogLevelLabel2.INFO;
418
1127
  }
419
- if (logLevel >= LogLevel.WARN) {
420
- return LogLevelLabel.WARN;
1128
+ if (logLevel >= LogLevel2.WARN) {
1129
+ return LogLevelLabel2.WARN;
421
1130
  }
422
- if (logLevel >= LogLevel.ERROR) {
423
- return LogLevelLabel.ERROR;
1131
+ if (logLevel >= LogLevel2.ERROR) {
1132
+ return LogLevelLabel2.ERROR;
424
1133
  }
425
- if (logLevel >= LogLevel.FATAL) {
426
- return LogLevelLabel.FATAL;
1134
+ if (logLevel >= LogLevel2.FATAL) {
1135
+ return LogLevelLabel2.FATAL;
427
1136
  }
428
- if (logLevel <= LogLevel.SILENT) {
429
- return LogLevelLabel.SILENT;
1137
+ if (logLevel <= LogLevel2.SILENT) {
1138
+ return LogLevelLabel2.SILENT;
430
1139
  }
431
- return LogLevelLabel.INFO;
1140
+ return LogLevelLabel2.INFO;
432
1141
  };
433
1142
 
434
1143
  // ../config-tools/dist/chunk-UU2P3WKA.js
435
- import { formatDistanceToNow } from "date-fns/formatDistanceToNow";
436
- var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
1144
+ import { formatDistanceToNow as formatDistanceToNow2 } from "date-fns/formatDistanceToNow";
1145
+ var getLogFn = (logLevel = LogLevel2.INFO, config = {}, _chalk = getChalk()) => {
437
1146
  const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
438
- const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
439
- if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
1147
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel2.INFO;
1148
+ if (logLevel > getLogLevel2(configLogLevel) || logLevel <= LogLevel2.SILENT || getLogLevel2(configLogLevel) <= LogLevel2.SILENT) {
440
1149
  return (_3) => {
441
1150
  };
442
1151
  }
443
- if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
1152
+ if (typeof logLevel === "number" && LogLevel2.FATAL >= logLevel) {
444
1153
  return (message) => {
445
1154
  console.error(
446
1155
  `
447
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal)(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
1156
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal)(`[${CONSOLE_ICONS2[LogLevelLabel2.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage2(message))}
448
1157
  `
449
1158
  );
450
1159
  };
451
1160
  }
452
- if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
1161
+ if (typeof logLevel === "number" && LogLevel2.ERROR >= logLevel) {
453
1162
  return (message) => {
454
1163
  console.error(
455
1164
  `
456
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger)(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
1165
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger)(`[${CONSOLE_ICONS2[LogLevelLabel2.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage2(message))}
457
1166
  `
458
1167
  );
459
1168
  };
460
1169
  }
461
- if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
1170
+ if (typeof logLevel === "number" && LogLevel2.WARN >= logLevel) {
462
1171
  return (message) => {
463
1172
  console.warn(
464
1173
  `
465
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning)(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
1174
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning)(`[${CONSOLE_ICONS2[LogLevelLabel2.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage2(message))}
466
1175
  `
467
1176
  );
468
1177
  };
469
1178
  }
470
- if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
1179
+ if (typeof logLevel === "number" && LogLevel2.SUCCESS >= logLevel) {
471
1180
  return (message) => {
472
1181
  console.info(
473
1182
  `
474
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? DEFAULT_COLOR_CONFIG.dark.success)(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
1183
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? DEFAULT_COLOR_CONFIG.dark.success)(`[${CONSOLE_ICONS2[LogLevelLabel2.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage2(message))}
475
1184
  `
476
1185
  );
477
1186
  };
478
1187
  }
479
- if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
1188
+ if (typeof logLevel === "number" && LogLevel2.INFO >= logLevel) {
480
1189
  return (message) => {
481
1190
  console.info(
482
1191
  `
483
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
1192
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS2[LogLevelLabel2.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage2(message))}
484
1193
  `
485
1194
  );
486
1195
  };
487
1196
  }
488
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
1197
+ if (typeof logLevel === "number" && LogLevel2.DEBUG >= logLevel) {
489
1198
  return (message) => {
490
1199
  console.debug(
491
1200
  `
492
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
1201
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS2[LogLevelLabel2.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage2(message))}
493
1202
  `
494
1203
  );
495
1204
  };
496
1205
  }
497
- if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
1206
+ if (typeof logLevel === "number" && LogLevel2.TRACE >= logLevel) {
498
1207
  return (message) => {
499
1208
  console.debug(
500
1209
  `
501
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
1210
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS2[LogLevelLabel2.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage2(message))}
502
1211
  `
503
1212
  );
504
1213
  };
@@ -506,20 +1215,20 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
506
1215
  return (message) => {
507
1216
  console.log(
508
1217
  `
509
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand)(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
1218
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand)(`[${CONSOLE_ICONS2[LogLevelLabel2.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage2(message))}
510
1219
  `
511
1220
  );
512
1221
  };
513
1222
  };
514
- var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
515
- var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
516
- var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
1223
+ var writeWarning2 = (message, config) => getLogFn(LogLevel2.WARN, config)(message);
1224
+ var writeDebug2 = (message, config) => getLogFn(LogLevel2.DEBUG, config)(message);
1225
+ var writeTrace2 = (message, config) => getLogFn(LogLevel2.TRACE, config)(message);
517
1226
  var getStopwatch = (name) => {
518
1227
  const start = /* @__PURE__ */ new Date();
519
1228
  return () => {
520
1229
  console.info(
521
1230
  `
522
- > \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(start, {
1231
+ > \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${formatDistanceToNow2(start, {
523
1232
  includeSeconds: true
524
1233
  })} to complete
525
1234
  `
@@ -527,16 +1236,16 @@ var getStopwatch = (name) => {
527
1236
  };
528
1237
  };
529
1238
  var MAX_DEPTH = 4;
530
- var formatLogMessage = (message, options = {}, depth2 = 0) => {
1239
+ var formatLogMessage2 = (message, options = {}, depth2 = 0) => {
531
1240
  if (depth2 > MAX_DEPTH) {
532
1241
  return "<max depth>";
533
1242
  }
534
1243
  const prefix = options.prefix ?? "-";
535
1244
  const skip = options.skip ?? [];
536
1245
  return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
537
- ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, { prefix: `${prefix}-`, skip }, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
1246
+ ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage2(item, { prefix: `${prefix}-`, skip }, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
538
1247
  ${Object.keys(message).filter((key) => !skip.includes(key)).map(
539
- (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
1248
+ (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage2(
540
1249
  message[key],
541
1250
  { prefix: `${prefix}-`, skip },
542
1251
  depth2 + 1
@@ -552,33 +1261,33 @@ var _isFunction = (value) => {
552
1261
  };
553
1262
 
554
1263
  // ../config-tools/dist/chunk-QQ7JNIOJ.js
555
- import { loadConfig } from "c12";
556
- import defu from "defu";
1264
+ import { loadConfig as loadConfig2 } from "c12";
1265
+ import defu3 from "defu";
557
1266
  var getConfigFileByName = async (fileName, filePath, options = {}) => {
558
- const workspacePath = filePath || findWorkspaceRoot(filePath);
1267
+ const workspacePath = filePath || findWorkspaceRoot2(filePath);
559
1268
  const configs = await Promise.all([
560
- loadConfig({
1269
+ loadConfig2({
561
1270
  cwd: workspacePath,
562
1271
  packageJson: true,
563
1272
  name: fileName,
564
1273
  envName: fileName?.toUpperCase(),
565
1274
  jitiOptions: {
566
1275
  debug: false,
567
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
1276
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths2(
568
1277
  process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
569
1278
  "jiti"
570
1279
  )
571
1280
  },
572
1281
  ...options
573
1282
  }),
574
- loadConfig({
1283
+ loadConfig2({
575
1284
  cwd: workspacePath,
576
1285
  packageJson: true,
577
1286
  name: fileName,
578
1287
  envName: fileName?.toUpperCase(),
579
1288
  jitiOptions: {
580
1289
  debug: false,
581
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
1290
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths2(
582
1291
  process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
583
1292
  "jiti"
584
1293
  )
@@ -587,15 +1296,15 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
587
1296
  ...options
588
1297
  })
589
1298
  ]);
590
- return defu(configs[0] ?? {}, configs[1] ?? {});
1299
+ return defu3(configs[0] ?? {}, configs[1] ?? {});
591
1300
  };
592
1301
  var getConfigFile = async (filePath, additionalFileNames = []) => {
593
- const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
1302
+ const workspacePath = filePath ? filePath : findWorkspaceRoot2(filePath);
594
1303
  const result = await getConfigFileByName("storm-workspace", workspacePath);
595
1304
  let config = result.config;
596
1305
  const configFile = result.configFile;
597
1306
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
598
- writeTrace(
1307
+ writeTrace2(
599
1308
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
600
1309
  {
601
1310
  logLevel: "all"
@@ -611,14 +1320,14 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
611
1320
  for (const result2 of results) {
612
1321
  if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
613
1322
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
614
- writeTrace(
1323
+ writeTrace2(
615
1324
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
616
1325
  {
617
1326
  logLevel: "all"
618
1327
  }
619
1328
  );
620
1329
  }
621
- config = defu(result2.config ?? {}, config ?? {});
1330
+ config = defu3(result2.config ?? {}, config ?? {});
622
1331
  }
623
1332
  }
624
1333
  }
@@ -685,8 +1394,8 @@ var l = e2._default(t2, "#38bdf8");
685
1394
  o2.add(l, { description: "The informational color of the workspace" });
686
1395
  var m = e2._default(t2, "#f3d371");
687
1396
  o2.add(m, { description: "The warning color of the workspace" });
688
- var z = e2._default(t2, "#d8314a");
689
- o2.add(z, { description: "The danger color of the workspace" });
1397
+ var z2 = e2._default(t2, "#d8314a");
1398
+ o2.add(z2, { description: "The danger color of the workspace" });
690
1399
  var g = e2.optional(t2);
691
1400
  o2.add(g, { description: "The fatal color of the workspace" });
692
1401
  var u = e2._default(t2, "#4ade80");
@@ -695,10 +1404,10 @@ var f = e2._default(t2, "#ef4444");
695
1404
  o2.add(f, { description: "The negative number color of the workspace" });
696
1405
  var k = e2.optional(e2.array(t2));
697
1406
  o2.add(k, { description: "The color stops for the base gradient color pattern used in the workspace" });
698
- var je = e2.object({ foreground: i2, background: a2, brand: c, alternate: s2, accent: n, link: d, help: p, success: h, info: l, warning: m, danger: z, fatal: g, positive: u, negative: f, gradient: k });
699
- var Ae = e2.object({ foreground: a2, background: i2, brand: c, alternate: s2, accent: n, link: d, help: p, success: h, info: l, warning: m, danger: z, fatal: g, positive: u, negative: f, gradient: k });
1407
+ var je = e2.object({ foreground: i2, background: a2, brand: c, alternate: s2, accent: n, link: d, help: p, success: h, info: l, warning: m, danger: z2, fatal: g, positive: u, negative: f, gradient: k });
1408
+ var Ae = e2.object({ foreground: a2, background: i2, brand: c, alternate: s2, accent: n, link: d, help: p, success: h, info: l, warning: m, danger: z2, fatal: g, positive: u, negative: f, gradient: k });
700
1409
  var Re = e2.object({ dark: je, light: Ae });
701
- var Ue = e2.object({ dark: a2, light: i2, brand: c, alternate: s2, accent: n, link: d, help: p, success: h, info: l, warning: m, danger: z, fatal: g, positive: u, negative: f, gradient: k });
1410
+ var Ue = e2.object({ dark: a2, light: i2, brand: c, alternate: s2, accent: n, link: d, help: p, success: h, info: l, warning: m, danger: z2, fatal: g, positive: u, negative: f, gradient: k });
702
1411
  var r2 = e2.optional(e2.url());
703
1412
  o2.add(r2, { description: "A remote registry URL used to publish distributable packages" });
704
1413
  var T = e2._default(e2.object({ github: r2, npm: r2, cargo: r2, cyclone: r2, container: r2 }), {});
@@ -833,9 +1542,9 @@ init_esm_shims();
833
1542
  var e3 = ["dark", "light", "base", "brand", "alternate", "accent", "link", "success", "help", "info", "warning", "danger", "fatal", "positive", "negative"];
834
1543
 
835
1544
  // ../config-tools/dist/chunk-OEBHWAYK.js
836
- import { existsSync as existsSync2 } from "node:fs";
837
- import { readFile } from "node:fs/promises";
838
- import { join as join2 } from "node:path";
1545
+ import { existsSync as existsSync6 } from "node:fs";
1546
+ import { readFile as readFile5 } from "node:fs/promises";
1547
+ import { join as join4 } from "node:path";
839
1548
  async function getPackageJsonConfig(root) {
840
1549
  let license = i;
841
1550
  let homepage = void 0;
@@ -843,10 +1552,10 @@ async function getPackageJsonConfig(root) {
843
1552
  let name = void 0;
844
1553
  let namespace = void 0;
845
1554
  let repository = void 0;
846
- const workspaceRoot = findWorkspaceRoot(root);
847
- if (existsSync2(join2(workspaceRoot, "package.json"))) {
848
- const file = await readFile(
849
- joinPaths(workspaceRoot, "package.json"),
1555
+ const workspaceRoot = findWorkspaceRoot2(root);
1556
+ if (existsSync6(join4(workspaceRoot, "package.json"))) {
1557
+ const file = await readFile5(
1558
+ joinPaths2(workspaceRoot, "package.json"),
850
1559
  "utf8"
851
1560
  );
852
1561
  if (file) {
@@ -1068,42 +1777,42 @@ var setConfigEnv = (config) => {
1068
1777
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
1069
1778
  }
1070
1779
  if (config.configFile) {
1071
- process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = correctPaths(
1780
+ process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = correctPaths2(
1072
1781
  config.configFile
1073
1782
  );
1074
1783
  }
1075
1784
  if (config.workspaceRoot) {
1076
- process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config.workspaceRoot);
1077
- process.env.NX_WORKSPACE_ROOT = correctPaths(config.workspaceRoot);
1078
- process.env.NX_WORKSPACE_ROOT_PATH = correctPaths(config.workspaceRoot);
1785
+ process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths2(config.workspaceRoot);
1786
+ process.env.NX_WORKSPACE_ROOT = correctPaths2(config.workspaceRoot);
1787
+ process.env.NX_WORKSPACE_ROOT_PATH = correctPaths2(config.workspaceRoot);
1079
1788
  }
1080
1789
  if (config.directories) {
1081
1790
  if (!config.skipCache && config.directories.cache) {
1082
- process.env[`${prefix}CACHE_DIR`] = correctPaths(
1791
+ process.env[`${prefix}CACHE_DIR`] = correctPaths2(
1083
1792
  config.directories.cache
1084
1793
  );
1085
1794
  process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
1086
1795
  }
1087
1796
  if (config.directories.data) {
1088
- process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
1797
+ process.env[`${prefix}DATA_DIR`] = correctPaths2(config.directories.data);
1089
1798
  process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
1090
1799
  }
1091
1800
  if (config.directories.config) {
1092
- process.env[`${prefix}CONFIG_DIR`] = correctPaths(
1801
+ process.env[`${prefix}CONFIG_DIR`] = correctPaths2(
1093
1802
  config.directories.config
1094
1803
  );
1095
1804
  process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
1096
1805
  }
1097
1806
  if (config.directories.temp) {
1098
- process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
1807
+ process.env[`${prefix}TEMP_DIR`] = correctPaths2(config.directories.temp);
1099
1808
  process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
1100
1809
  }
1101
1810
  if (config.directories.log) {
1102
- process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
1811
+ process.env[`${prefix}LOG_DIR`] = correctPaths2(config.directories.log);
1103
1812
  process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
1104
1813
  }
1105
1814
  if (config.directories.build) {
1106
- process.env[`${prefix}BUILD_DIR`] = correctPaths(
1815
+ process.env[`${prefix}BUILD_DIR`] = correctPaths2(
1107
1816
  config.directories.build
1108
1817
  );
1109
1818
  process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
@@ -1165,9 +1874,9 @@ var setConfigEnv = (config) => {
1165
1874
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
1166
1875
  process.env.LOG_LEVEL = String(config.logLevel);
1167
1876
  process.env.NX_VERBOSE_LOGGING = String(
1168
- getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
1877
+ getLogLevel2(config.logLevel) >= LogLevel2.DEBUG ? true : false
1169
1878
  );
1170
- process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
1879
+ process.env.RUST_BACKTRACE = getLogLevel2(config.logLevel) >= LogLevel2.DEBUG ? "full" : "none";
1171
1880
  }
1172
1881
  if (config.skipConfigLogging !== void 0) {
1173
1882
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
@@ -1352,15 +2061,15 @@ var getConfigEnv = () => {
1352
2061
  support: process.env[`${prefix}SUPPORT`] || void 0,
1353
2062
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
1354
2063
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
1355
- configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? correctPaths(process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
1356
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
2064
+ configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? correctPaths2(process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
2065
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths2(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
1357
2066
  directories: {
1358
- cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
1359
- data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
1360
- config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
1361
- temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
1362
- log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
1363
- build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths(process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
2067
+ cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths2(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths2(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
2068
+ data: process.env[`${prefix}DATA_DIR`] ? correctPaths2(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths2(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
2069
+ config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths2(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths2(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
2070
+ temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths2(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths2(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
2071
+ log: process.env[`${prefix}LOG_DIR`] ? correctPaths2(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths2(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
2072
+ build: process.env[`${prefix}BUILD_DIR`] ? correctPaths2(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths2(process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
1364
2073
  },
1365
2074
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
1366
2075
  mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
@@ -1384,7 +2093,7 @@ var getConfigEnv = () => {
1384
2093
  },
1385
2094
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
1386
2095
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
1387
- ) ? getLogLevelLabel(
2096
+ ) ? getLogLevelLabel2(
1388
2097
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
1389
2098
  ) : process.env[`${prefix}LOG_LEVEL`] : void 0,
1390
2099
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
@@ -1506,8 +2215,8 @@ var getBaseThemeColorsEnv = (prefix) => {
1506
2215
  init_esm_shims();
1507
2216
 
1508
2217
  // ../config-tools/dist/chunk-M4FSRBO7.js
1509
- import defu2 from "defu";
1510
- import { existsSync as existsSync3 } from "node:fs";
2218
+ import defu4 from "defu";
2219
+ import { existsSync as existsSync7 } from "node:fs";
1511
2220
  var _extension_cache = /* @__PURE__ */ new WeakMap();
1512
2221
  var _static_cache = void 0;
1513
2222
  var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
@@ -1515,13 +2224,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1515
2224
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
1516
2225
  let _workspaceRoot = workspaceRoot;
1517
2226
  if (!_workspaceRoot) {
1518
- _workspaceRoot = findWorkspaceRoot();
2227
+ _workspaceRoot = findWorkspaceRoot2();
1519
2228
  }
1520
2229
  const configEnv = getConfigEnv();
1521
2230
  const configFile = await getConfigFile(_workspaceRoot);
1522
2231
  if (!configFile) {
1523
2232
  if (!skipLogs) {
1524
- writeWarning(
2233
+ writeWarning2(
1525
2234
  "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
1526
2235
  { logLevel: "all" }
1527
2236
  );
@@ -1531,13 +2240,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1531
2240
  }
1532
2241
  }
1533
2242
  const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
1534
- const configInput = defu2(
2243
+ const configInput = defu4(
1535
2244
  configEnv,
1536
2245
  configFile,
1537
2246
  defaultConfig
1538
2247
  );
1539
2248
  if (!configInput.variant) {
1540
- configInput.variant = existsSync3(joinPaths(_workspaceRoot, "nx.json")) || existsSync3(joinPaths(_workspaceRoot, ".nx")) || existsSync3(joinPaths(_workspaceRoot, "lerna.json")) || existsSync3(joinPaths(_workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
2249
+ configInput.variant = existsSync7(joinPaths2(_workspaceRoot, "nx.json")) || existsSync7(joinPaths2(_workspaceRoot, ".nx")) || existsSync7(joinPaths2(_workspaceRoot, "lerna.json")) || existsSync7(joinPaths2(_workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
1541
2250
  }
1542
2251
  try {
1543
2252
  result = applyDefaultConfig(
@@ -1548,7 +2257,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1548
2257
  throw new Error(
1549
2258
  `Failed to parse Storm Workspace configuration${error?.message ? `: ${error.message}` : ""}
1550
2259
 
1551
- Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
2260
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage2(
1552
2261
  configInput
1553
2262
  )}`,
1554
2263
  {
@@ -1593,9 +2302,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
1593
2302
  );
1594
2303
  setConfigEnv(config);
1595
2304
  if (!skipLogs && !config.skipConfigLogging) {
1596
- writeTrace(
2305
+ writeTrace2(
1597
2306
  `\u2699\uFE0F Using Storm Workspace configuration:
1598
- ${formatLogMessage(config)}`,
2307
+ ${formatLogMessage2(config)}`,
1599
2308
  config
1600
2309
  );
1601
2310
  }
@@ -1609,7 +2318,7 @@ function getConfig(workspaceRoot, skipLogs = false) {
1609
2318
  function getWorkspaceConfig(skipLogs = true, options = {}) {
1610
2319
  let workspaceRoot = options.workspaceRoot;
1611
2320
  if (!workspaceRoot) {
1612
- workspaceRoot = findWorkspaceRoot(options.cwd);
2321
+ workspaceRoot = findWorkspaceRoot2(options.cwd);
1613
2322
  }
1614
2323
  return getConfig(workspaceRoot, skipLogs);
1615
2324
  }
@@ -1621,13 +2330,13 @@ init_esm_shims();
1621
2330
  init_esm_shims();
1622
2331
 
1623
2332
  // src/options.ts
1624
- import defu3 from "defu";
1625
- import { existsSync as existsSync4 } from "node:fs";
2333
+ import defu5 from "defu";
2334
+ import { existsSync as existsSync8 } from "node:fs";
1626
2335
  import hf from "node:fs/promises";
1627
- import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
2336
+ import { findWorkspaceRoot as findWorkspaceRoot3 } from "nx/src/utils/find-workspace-root";
1628
2337
  async function resolveOptions(userOptions) {
1629
2338
  const projectRoot = userOptions.projectRoot;
1630
- const workspaceRoot = findWorkspaceRoot2(projectRoot);
2339
+ const workspaceRoot = findWorkspaceRoot3(projectRoot);
1631
2340
  if (!workspaceRoot) {
1632
2341
  throw new Error("Cannot find Nx workspace root");
1633
2342
  }
@@ -1635,38 +2344,39 @@ async function resolveOptions(userOptions) {
1635
2344
  workspaceRoot: workspaceRoot.dir
1636
2345
  });
1637
2346
  if (!userOptions.silent) {
1638
- writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
2347
+ writeDebug2(" \u2699\uFE0F Resolving build options", workspaceConfig);
1639
2348
  }
1640
2349
  const stopwatch = getStopwatch("Build options resolution");
1641
- const projectJsonPath = joinPaths(
2350
+ const projectJsonPath = joinPaths2(
1642
2351
  workspaceRoot.dir,
1643
2352
  projectRoot,
1644
2353
  "project.json"
1645
2354
  );
1646
- if (!existsSync4(projectJsonPath)) {
2355
+ if (!existsSync8(projectJsonPath)) {
1647
2356
  throw new Error("Cannot find project.json configuration");
1648
2357
  }
1649
2358
  const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
1650
2359
  const projectJson = JSON.parse(projectJsonFile);
1651
2360
  const projectName = projectJson.name || userOptions.name;
1652
- const options = defu3(userOptions, DEFAULT_BUILD_OPTIONS);
2361
+ const options = defu5(userOptions, DEFAULT_BUILD_OPTIONS);
1653
2362
  options.name ??= projectName;
1654
- const packageJsonPath = joinPaths(
2363
+ const packageJsonPath = joinPaths2(
1655
2364
  workspaceRoot.dir,
1656
2365
  options.projectRoot,
1657
2366
  "package.json"
1658
2367
  );
1659
- if (!existsSync4(packageJsonPath)) {
2368
+ if (!existsSync8(packageJsonPath)) {
1660
2369
  throw new Error("Cannot find package.json configuration");
1661
2370
  }
1662
2371
  const env = getEnv("esbuild", options);
1663
2372
  const resolvedOptions = {
1664
2373
  name: projectName,
1665
- entry: [joinPaths(workspaceRoot.dir, projectRoot, "src/index.ts")],
2374
+ entry: [joinPaths2(workspaceRoot.dir, projectRoot, "src/index.ts")],
1666
2375
  clean: true,
2376
+ workspaceConfig,
1667
2377
  ...options,
1668
- outDir: options.outputPath || joinPaths(workspaceConfig.workspaceRoot, "dist", options.projectRoot),
1669
- tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths(workspaceRoot.dir, projectRoot, "tsconfig.json"),
2378
+ outDir: options.outputPath || joinPaths2(workspaceConfig.workspaceRoot, "dist", options.projectRoot),
2379
+ tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths2(workspaceRoot.dir, projectRoot, "tsconfig.json"),
1670
2380
  env: Object.keys(env).filter((key) => env[key] !== void 0).reduce((ret, key) => {
1671
2381
  const value = JSON.stringify(env[key]);
1672
2382
  const safeKey = key.replaceAll("(", "").replaceAll(")", "");
@@ -1680,10 +2390,10 @@ async function resolveOptions(userOptions) {
1680
2390
  if (!resolvedOptions.silent) {
1681
2391
  stopwatch();
1682
2392
  if (resolvedOptions.verbose) {
1683
- writeDebug(
2393
+ writeDebug2(
1684
2394
  ` \u2699\uFE0F Build options resolved:
1685
2395
 
1686
- ${formatLogMessage(resolvedOptions)}`,
2396
+ ${formatLogMessage2(resolvedOptions)}`,
1687
2397
  { ...workspaceConfig, logLevel: "all" }
1688
2398
  );
1689
2399
  }
@@ -1692,7 +2402,7 @@ ${formatLogMessage(resolvedOptions)}`,
1692
2402
  }
1693
2403
 
1694
2404
  export {
1695
- writeDebug,
2405
+ writeDebug2 as writeDebug,
1696
2406
  getStopwatch,
1697
2407
  resolveOptions
1698
2408
  };