@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,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
 
30
20
  // src/constants.ts
@@ -34,659 +24,18 @@ __export(constants_exports, {
34
24
  });
35
25
  module.exports = __toCommonJS(constants_exports);
36
26
 
37
- // ../build-tools/dist/chunk-RPSH5IFV.mjs
38
- var import_node_fs = require("fs");
39
- var import_node_path = require("path");
40
-
41
- // ../build-tools/dist/chunk-J5M6XHOM.mjs
42
- var import_formatDistanceToNow = require("date-fns/formatDistanceToNow");
43
- var import_chalk = __toESM(require("chalk"), 1);
44
- var LogLevelLabel = {
45
- SILENT: "silent",
46
- FATAL: "fatal",
47
- ERROR: "error",
48
- WARN: "warn",
49
- SUCCESS: "success",
50
- INFO: "info",
51
- DEBUG: "debug",
52
- TRACE: "trace",
53
- ALL: "all"
54
- };
55
- function isUnicodeSupported() {
56
- if (process.platform !== "win32") {
57
- return process.env.TERM !== "linux";
58
- }
59
- return Boolean(process.env.WT_SESSION) || // Windows Terminal
60
- Boolean(process.env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
61
- process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
62
- 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";
63
- }
64
- var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
65
- var CONSOLE_ICONS = {
66
- [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
67
- [LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
68
- [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
69
- [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
70
- [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
71
- [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
72
- [LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
73
- [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
74
- };
75
-
76
- // ../build-tools/dist/chunk-BAGCAJFB.mjs
77
- var import_c12 = require("c12");
78
- var import_defu = __toESM(require("defu"), 1);
79
- var z = __toESM(require("zod/mini"), 1);
80
- var import_node_fs2 = require("fs");
81
- var import_promises = require("fs/promises");
82
- var import_node_path2 = require("path");
83
- var import_defu2 = __toESM(require("defu"), 1);
84
- var import_node_fs3 = require("fs");
85
- var import_node_fs4 = require("fs");
86
- var import_promises2 = require("fs/promises");
87
- var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
88
- var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
89
- var STORM_DEFAULT_SOCIAL_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
90
- var STORM_DEFAULT_RELEASE_FOOTER = `
91
- 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.
92
-
93
- Join us on [Discord](${STORM_DEFAULT_SOCIAL_DISCORD}) to chat with the team, receive release notifications, ask questions, and get involved.
94
-
95
- 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!
27
+ // ../build-tools/dist/chunk-5M6M27NH.mjs
28
+ var DEFAULT_JS_BANNER = `
29
+ // ---------------------------------------
30
+ // \u26A1 Built by Storm Software
31
+ // ---------------------------------------
96
32
  `;
97
- var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
98
- var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
99
- var schemaRegistry = z.registry();
100
- var colorSchema = z.string().check(
101
- z.length(7),
102
- z.toLowerCase(),
103
- z.regex(/^#([0-9a-f]{3}){1,2}$/i),
104
- z.trim()
105
- );
106
- schemaRegistry.add(colorSchema, {
107
- description: "A base schema for describing the format of colors"
108
- });
109
- var darkColorSchema = z._default(colorSchema, "#151718");
110
- schemaRegistry.add(darkColorSchema, {
111
- description: "The dark background color of the workspace"
112
- });
113
- var lightColorSchema = z._default(colorSchema, "#cbd5e1");
114
- schemaRegistry.add(lightColorSchema, {
115
- description: "The light background color of the workspace"
116
- });
117
- var brandColorSchema = z._default(colorSchema, "#1fb2a6");
118
- schemaRegistry.add(brandColorSchema, {
119
- description: "The primary brand specific color of the workspace"
120
- });
121
- var alternateColorSchema = z.optional(colorSchema);
122
- schemaRegistry.add(alternateColorSchema, {
123
- description: "The alternate brand specific color of the workspace"
124
- });
125
- var accentColorSchema = z.optional(colorSchema);
126
- schemaRegistry.add(accentColorSchema, {
127
- description: "The secondary brand specific color of the workspace"
128
- });
129
- var linkColorSchema = z._default(colorSchema, "#3fa6ff");
130
- schemaRegistry.add(linkColorSchema, {
131
- description: "The color used to display hyperlink text"
132
- });
133
- var helpColorSchema = z._default(colorSchema, "#818cf8");
134
- schemaRegistry.add(helpColorSchema, {
135
- description: "The second brand specific color of the workspace"
136
- });
137
- var successColorSchema = z._default(colorSchema, "#45b27e");
138
- schemaRegistry.add(successColorSchema, {
139
- description: "The success color of the workspace"
140
- });
141
- var infoColorSchema = z._default(colorSchema, "#38bdf8");
142
- schemaRegistry.add(infoColorSchema, {
143
- description: "The informational color of the workspace"
144
- });
145
- var warningColorSchema = z._default(colorSchema, "#f3d371");
146
- schemaRegistry.add(warningColorSchema, {
147
- description: "The warning color of the workspace"
148
- });
149
- var dangerColorSchema = z._default(colorSchema, "#d8314a");
150
- schemaRegistry.add(dangerColorSchema, {
151
- description: "The danger color of the workspace"
152
- });
153
- var fatalColorSchema = z.optional(colorSchema);
154
- schemaRegistry.add(fatalColorSchema, {
155
- description: "The fatal color of the workspace"
156
- });
157
- var positiveColorSchema = z._default(colorSchema, "#4ade80");
158
- schemaRegistry.add(positiveColorSchema, {
159
- description: "The positive number color of the workspace"
160
- });
161
- var negativeColorSchema = z._default(colorSchema, "#ef4444");
162
- schemaRegistry.add(negativeColorSchema, {
163
- description: "The negative number color of the workspace"
164
- });
165
- var gradientStopsSchema = z.optional(z.array(colorSchema));
166
- schemaRegistry.add(gradientStopsSchema, {
167
- description: "The color stops for the base gradient color pattern used in the workspace"
168
- });
169
- var darkColorsSchema = z.object({
170
- foreground: lightColorSchema,
171
- background: darkColorSchema,
172
- brand: brandColorSchema,
173
- alternate: alternateColorSchema,
174
- accent: accentColorSchema,
175
- link: linkColorSchema,
176
- help: helpColorSchema,
177
- success: successColorSchema,
178
- info: infoColorSchema,
179
- warning: warningColorSchema,
180
- danger: dangerColorSchema,
181
- fatal: fatalColorSchema,
182
- positive: positiveColorSchema,
183
- negative: negativeColorSchema,
184
- gradient: gradientStopsSchema
185
- });
186
- var lightColorsSchema = z.object({
187
- foreground: darkColorSchema,
188
- background: lightColorSchema,
189
- brand: brandColorSchema,
190
- alternate: alternateColorSchema,
191
- accent: accentColorSchema,
192
- link: linkColorSchema,
193
- help: helpColorSchema,
194
- success: successColorSchema,
195
- info: infoColorSchema,
196
- warning: warningColorSchema,
197
- danger: dangerColorSchema,
198
- fatal: fatalColorSchema,
199
- positive: positiveColorSchema,
200
- negative: negativeColorSchema,
201
- gradient: gradientStopsSchema
202
- });
203
- var multiColorsSchema = z.object({
204
- dark: darkColorsSchema,
205
- light: lightColorsSchema
206
- });
207
- var singleColorsSchema = z.object({
208
- dark: darkColorSchema,
209
- light: lightColorSchema,
210
- brand: brandColorSchema,
211
- alternate: alternateColorSchema,
212
- accent: accentColorSchema,
213
- link: linkColorSchema,
214
- help: helpColorSchema,
215
- success: successColorSchema,
216
- info: infoColorSchema,
217
- warning: warningColorSchema,
218
- danger: dangerColorSchema,
219
- fatal: fatalColorSchema,
220
- positive: positiveColorSchema,
221
- negative: negativeColorSchema,
222
- gradient: gradientStopsSchema
223
- });
224
- var registryUrlConfigSchema = z.optional(z.url());
225
- schemaRegistry.add(registryUrlConfigSchema, {
226
- description: "A remote registry URL used to publish distributable packages"
227
- });
228
- var registrySchema = z._default(
229
- z.object({
230
- github: registryUrlConfigSchema,
231
- npm: registryUrlConfigSchema,
232
- cargo: registryUrlConfigSchema,
233
- cyclone: registryUrlConfigSchema,
234
- container: registryUrlConfigSchema
235
- }),
236
- {}
237
- );
238
- schemaRegistry.add(registrySchema, {
239
- description: "A list of remote registry URLs used by Storm Software"
240
- });
241
- var colorsSchema = z.union([singleColorsSchema, multiColorsSchema]);
242
- schemaRegistry.add(colorsSchema, {
243
- description: "Colors used for various workspace elements"
244
- });
245
- var themeColorsSchema = z.record(
246
- z.union([z.union([z.literal("base"), z.string()]), z.string()]),
247
- colorsSchema
248
- );
249
- schemaRegistry.add(themeColorsSchema, {
250
- description: "Storm theme config values used for styling various package elements"
251
- });
252
- var extendsSchema = z.optional(
253
- z.union([z.string().check(z.trim()), z.array(z.string().check(z.trim()))])
254
- );
255
- schemaRegistry.add(extendsSchema, {
256
- 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."
257
- });
258
- var workspaceBotNameSchema = z.string().check(z.trim());
259
- schemaRegistry.add(workspaceBotNameSchema, {
260
- description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
261
- });
262
- var workspaceBotEmailSchema = z.string().check(z.trim());
263
- schemaRegistry.add(workspaceBotEmailSchema, {
264
- description: "The email of the workspace bot"
265
- });
266
- var workspaceBotSchema = z.object({
267
- name: workspaceBotNameSchema,
268
- email: workspaceBotEmailSchema
269
- });
270
- schemaRegistry.add(workspaceBotSchema, {
271
- description: "The workspace's bot user's config used to automated various operations tasks"
272
- });
273
- var workspaceReleaseBannerUrlSchema = z.optional(
274
- z.string().check(z.trim(), z.url())
275
- );
276
- schemaRegistry.add(workspaceReleaseBannerUrlSchema, {
277
- description: "A URL to a banner image used to display the workspace's release"
278
- });
279
- var workspaceReleaseBannerAltSchema = z._default(
280
- z.string().check(z.trim()),
281
- STORM_DEFAULT_BANNER_ALT
282
- );
283
- schemaRegistry.add(workspaceReleaseBannerAltSchema, {
284
- description: "The alt text for the workspace's release banner image"
285
- });
286
- var workspaceReleaseBannerSchema = z.object({
287
- url: workspaceReleaseBannerUrlSchema,
288
- alt: workspaceReleaseBannerAltSchema
289
- });
290
- schemaRegistry.add(workspaceReleaseBannerSchema, {
291
- description: "The workspace's banner image used during the release process"
292
- });
293
- var workspaceReleaseHeaderSchema = z.optional(
294
- z.string().check(z.trim())
295
- );
296
- schemaRegistry.add(workspaceReleaseHeaderSchema, {
297
- description: "A header message appended to the start of the workspace's release notes"
298
- });
299
- var workspaceReleaseFooterSchema = z.optional(
300
- z.string().check(z.trim())
301
- );
302
- schemaRegistry.add(workspaceReleaseFooterSchema, {
303
- description: "A footer message appended to the end of the workspace's release notes"
304
- });
305
- var workspaceReleaseSchema = z.object({
306
- banner: z.union([
307
- workspaceReleaseBannerSchema,
308
- z.string().check(z.trim(), z.url())
309
- ]),
310
- header: workspaceReleaseHeaderSchema,
311
- footer: workspaceReleaseFooterSchema
312
- });
313
- schemaRegistry.add(workspaceReleaseSchema, {
314
- description: "The workspace's release config used during the release process"
315
- });
316
- var workspaceSocialsTwitterSchema = z.optional(
317
- z.string().check(z.trim())
318
- );
319
- schemaRegistry.add(workspaceSocialsTwitterSchema, {
320
- description: "A Twitter/X account associated with the organization/project"
321
- });
322
- var workspaceSocialsDiscordSchema = z.optional(
323
- z.string().check(z.trim())
324
- );
325
- schemaRegistry.add(workspaceSocialsDiscordSchema, {
326
- description: "A Discord account associated with the organization/project"
327
- });
328
- var workspaceSocialsTelegramSchema = z.optional(
329
- z.string().check(z.trim())
330
- );
331
- schemaRegistry.add(workspaceSocialsTelegramSchema, {
332
- description: "A Telegram account associated with the organization/project"
333
- });
334
- var workspaceSocialsSlackSchema = z.optional(
335
- z.string().check(z.trim())
336
- );
337
- schemaRegistry.add(workspaceSocialsSlackSchema, {
338
- description: "A Slack account associated with the organization/project"
339
- });
340
- var workspaceSocialsMediumSchema = z.optional(
341
- z.string().check(z.trim())
342
- );
343
- schemaRegistry.add(workspaceSocialsMediumSchema, {
344
- description: "A Medium account associated with the organization/project"
345
- });
346
- var workspaceSocialsGithubSchema = z.optional(
347
- z.string().check(z.trim())
348
- );
349
- schemaRegistry.add(workspaceSocialsGithubSchema, {
350
- description: "A GitHub account associated with the organization/project"
351
- });
352
- var workspaceSocialsSchema = z.object({
353
- twitter: workspaceSocialsTwitterSchema,
354
- discord: workspaceSocialsDiscordSchema,
355
- telegram: workspaceSocialsTelegramSchema,
356
- slack: workspaceSocialsSlackSchema,
357
- medium: workspaceSocialsMediumSchema,
358
- github: workspaceSocialsGithubSchema
359
- });
360
- schemaRegistry.add(workspaceSocialsSchema, {
361
- description: "The workspace's account config used to store various social media links"
362
- });
363
- var workspaceDirectoryCacheSchema = z.optional(
364
- z.string().check(z.trim())
365
- );
366
- schemaRegistry.add(workspaceDirectoryCacheSchema, {
367
- description: "The directory used to store the environment's cached file data"
368
- });
369
- var workspaceDirectoryDataSchema = z.optional(
370
- z.string().check(z.trim())
371
- );
372
- schemaRegistry.add(workspaceDirectoryDataSchema, {
373
- description: "The directory used to store the environment's data files"
374
- });
375
- var workspaceDirectoryConfigSchema = z.optional(
376
- z.string().check(z.trim())
377
- );
378
- schemaRegistry.add(workspaceDirectoryConfigSchema, {
379
- description: "The directory used to store the environment's configuration files"
380
- });
381
- var workspaceDirectoryTempSchema = z.optional(
382
- z.string().check(z.trim())
383
- );
384
- schemaRegistry.add(workspaceDirectoryTempSchema, {
385
- description: "The directory used to store the environment's temp files"
386
- });
387
- var workspaceDirectoryLogSchema = z.optional(
388
- z.string().check(z.trim())
389
- );
390
- schemaRegistry.add(workspaceDirectoryLogSchema, {
391
- description: "The directory used to store the environment's log files"
392
- });
393
- var workspaceDirectoryBuildSchema = z._default(
394
- z.string().check(z.trim()),
395
- "dist"
396
- );
397
- schemaRegistry.add(workspaceDirectoryBuildSchema, {
398
- description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
399
- });
400
- var workspaceDirectorySchema = z.object({
401
- cache: workspaceDirectoryCacheSchema,
402
- data: workspaceDirectoryDataSchema,
403
- config: workspaceDirectoryConfigSchema,
404
- temp: workspaceDirectoryTempSchema,
405
- log: workspaceDirectoryLogSchema,
406
- build: workspaceDirectoryBuildSchema
407
- });
408
- schemaRegistry.add(workspaceDirectorySchema, {
409
- description: "Various directories used by the workspace to store data, cache, and configuration files"
410
- });
411
- var variantSchema = z._default(
412
- z.enum(["minimal", "monorepo"]),
413
- "monorepo"
414
- );
415
- schemaRegistry.add(variantSchema, {
416
- description: "The variant of the workspace. This can be used to enable or disable certain features or configurations."
417
- });
418
- var errorCodesFileSchema = z._default(
419
- z.string().check(z.trim()),
420
- STORM_DEFAULT_ERROR_CODES_FILE
421
- );
422
- schemaRegistry.add(errorCodesFileSchema, {
423
- description: "The path to the workspace's error codes JSON file"
424
- });
425
- var errorUrlSchema = z.optional(z.url());
426
- schemaRegistry.add(errorUrlSchema, {
427
- description: "A URL to a page that looks up the workspace's error messages given a specific error code"
428
- });
429
- var errorSchema = z.object({
430
- codesFile: errorCodesFileSchema,
431
- url: errorUrlSchema
432
- });
433
- schemaRegistry.add(errorSchema, {
434
- description: "The workspace's error config used when creating error details during a system error"
435
- });
436
- var organizationNameSchema = z.optional(
437
- z.string().check(z.trim(), z.toLowerCase())
438
- );
439
- schemaRegistry.add(organizationNameSchema, {
440
- description: "The name of the organization"
441
- });
442
- var organizationDescriptionSchema = z.optional(
443
- z.string().check(z.trim())
444
- );
445
- schemaRegistry.add(organizationDescriptionSchema, {
446
- description: "A description of the organization"
447
- });
448
- var organizationLogoSchema = z.optional(z.url());
449
- schemaRegistry.add(organizationLogoSchema, {
450
- description: "A URL to the organization's logo image"
451
- });
452
- var organizationIconSchema = z.optional(z.url());
453
- schemaRegistry.add(organizationIconSchema, {
454
- description: "A URL to the organization's icon image"
455
- });
456
- var organizationUrlSchema = z.optional(z.url());
457
- schemaRegistry.add(organizationUrlSchema, {
458
- description: "A URL to a page that provides more information about the organization"
459
- });
460
- var organizationSchema = z.object({
461
- name: organizationNameSchema,
462
- description: organizationDescriptionSchema,
463
- logo: organizationLogoSchema,
464
- icon: organizationIconSchema,
465
- url: organizationUrlSchema
466
- });
467
- schemaRegistry.add(organizationSchema, {
468
- description: "The workspace's organization details"
469
- });
470
- var schemaNameSchema = z._default(
471
- z.string().check(z.trim(), z.toLowerCase()),
472
- "https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
473
- );
474
- schemaRegistry.add(schemaNameSchema, {
475
- description: "The URL or file path to the JSON schema file that describes the Storm configuration file"
476
- });
477
- var nameSchema = z.string().check(z.trim(), z.toLowerCase());
478
- schemaRegistry.add(nameSchema, {
479
- description: "The name of the workspace/project/service/package/scope using this configuration"
480
- });
481
- var namespaceSchema = z.string().check(z.trim(), z.toLowerCase());
482
- schemaRegistry.add(namespaceSchema, {
483
- description: "The namespace of the workspace/project/service/package/scope using this configuration"
484
- });
485
- var orgSchema = z.union([
486
- organizationSchema,
487
- z.string().check(z.trim(), z.toLowerCase())
488
- ]);
489
- schemaRegistry.add(orgSchema, {
490
- description: "The organization of the workspace. This can be a string or an object containing the organization's details"
491
- });
492
- var repositorySchema = z.string().check(z.trim(), z.toLowerCase());
493
- schemaRegistry.add(repositorySchema, {
494
- description: "The repo URL of the workspace (i.e. the GitHub repository URL)"
495
- });
496
- var licenseSchema = z._default(
497
- z.string().check(z.trim()),
498
- "Apache-2.0"
499
- );
500
- schemaRegistry.add(licenseSchema, {
501
- description: "The license type of the package"
502
- });
503
- var homepageSchema = z.optional(z.url());
504
- schemaRegistry.add(homepageSchema, {
505
- description: "The homepage of the workspace"
506
- });
507
- var docsSchema = z.optional(z.url());
508
- schemaRegistry.add(docsSchema, {
509
- description: "The documentation site for the workspace"
510
- });
511
- var portalSchema = z.optional(z.url());
512
- schemaRegistry.add(portalSchema, {
513
- description: "The development portal site for the workspace"
514
- });
515
- var licensingSchema = z.optional(z.url());
516
- schemaRegistry.add(licensingSchema, {
517
- description: "The licensing site for the workspace"
518
- });
519
- var contactSchema = z.optional(z.url());
520
- schemaRegistry.add(contactSchema, {
521
- description: "The contact site for the workspace"
522
- });
523
- var supportSchema = z.optional(z.url());
524
- schemaRegistry.add(supportSchema, {
525
- description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
526
- });
527
- var branchSchema = z._default(
528
- z.string().check(z.trim(), z.toLowerCase()),
529
- "main"
530
- );
531
- schemaRegistry.add(branchSchema, {
532
- description: "The branch of the workspace"
533
- });
534
- var preidSchema = z.optional(
535
- z.string().check(z.trim(), z.toLowerCase())
536
- );
537
- schemaRegistry.add(preidSchema, {
538
- description: "A tag specifying the version pre-release identifier"
539
- });
540
- var ownerSchema = z.optional(
541
- z.string().check(z.trim(), z.toLowerCase())
542
- );
543
- schemaRegistry.add(ownerSchema, {
544
- description: "The owner of the package"
545
- });
546
- var modeSchema = z._default(
547
- z.enum(["development", "test", "production"]).check(z.trim(), z.toLowerCase()),
548
- "production"
549
- );
550
- schemaRegistry.add(modeSchema, {
551
- description: "The current runtime environment mode for the package"
552
- });
553
- var workspaceRootSchema = z.string().check(z.trim(), z.toLowerCase());
554
- schemaRegistry.add(workspaceRootSchema, {
555
- description: "The root directory of the workspace"
556
- });
557
- var skipCacheSchema = z._default(z.boolean(), false);
558
- schemaRegistry.add(skipCacheSchema, {
559
- description: "Should all known types of workspace caching be skipped?"
560
- });
561
- var packageManagerSchema = z._default(
562
- z.enum(["npm", "yarn", "pnpm", "bun"]),
563
- "npm"
564
- );
565
- schemaRegistry.add(packageManagerSchema, {
566
- description: "The JavaScript/TypeScript package manager used by the repository"
567
- });
568
- var timezoneSchema = z._default(
569
- z.string().check(z.trim()),
570
- "America/New_York"
571
- );
572
- schemaRegistry.add(timezoneSchema, {
573
- description: "The default timezone of the workspace"
574
- });
575
- var localeSchema = z._default(z.string().check(z.trim()), "en-US");
576
- schemaRegistry.add(localeSchema, {
577
- description: "The default locale of the workspace"
578
- });
579
- var logLevelSchema = z._default(
580
- z.enum([
581
- "silent",
582
- "fatal",
583
- "error",
584
- "warn",
585
- "success",
586
- "info",
587
- "debug",
588
- "trace",
589
- "all"
590
- ]),
591
- "info"
592
- );
593
- schemaRegistry.add(logLevelSchema, {
594
- 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`)."
595
- });
596
- var skipConfigLoggingSchema = z._default(z.boolean(), true);
597
- schemaRegistry.add(skipConfigLoggingSchema, {
598
- description: "Should the logging of the current Storm Workspace configuration be skipped?"
599
- });
600
- var configFileSchema = z._default(
601
- z.nullable(z.string().check(z.trim())),
602
- null
603
- );
604
- schemaRegistry.add(configFileSchema, {
605
- description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
606
- });
607
- var extensionsSchema = z._default(z.record(z.string(), z.any()), {});
608
- schemaRegistry.add(extensionsSchema, {
609
- description: "Configuration of each used extension"
610
- });
611
- var workspaceConfigSchema = z.object({
612
- $schema: schemaNameSchema,
613
- extends: extendsSchema,
614
- name: nameSchema,
615
- variant: variantSchema,
616
- namespace: namespaceSchema,
617
- organization: orgSchema,
618
- repository: repositorySchema,
619
- license: licenseSchema,
620
- homepage: homepageSchema,
621
- docs: docsSchema,
622
- portal: portalSchema,
623
- licensing: licensingSchema,
624
- contact: contactSchema,
625
- support: supportSchema,
626
- branch: branchSchema,
627
- preid: preidSchema,
628
- owner: ownerSchema,
629
- bot: workspaceBotSchema,
630
- release: workspaceReleaseSchema,
631
- socials: workspaceSocialsSchema,
632
- error: errorSchema,
633
- mode: modeSchema,
634
- workspaceRoot: workspaceRootSchema,
635
- skipCache: skipCacheSchema,
636
- directories: workspaceDirectorySchema,
637
- packageManager: packageManagerSchema,
638
- timezone: timezoneSchema,
639
- locale: localeSchema,
640
- logLevel: logLevelSchema,
641
- skipConfigLogging: skipConfigLoggingSchema,
642
- registry: registrySchema,
643
- configFile: configFileSchema,
644
- colors: z.union([colorsSchema, themeColorsSchema]),
645
- extensions: extensionsSchema
646
- });
647
- schemaRegistry.add(extensionsSchema, {
648
- 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."
649
- });
650
-
651
- // ../build-tools/dist/chunk-JCFRYUYP.mjs
652
- var import_create_task_graph = require("nx/src/tasks-runner/create-task-graph");
653
-
654
- // ../build-tools/dist/chunk-UCEEEQVX.mjs
655
- var import_copy_assets_handler = require("@nx/js/src/utils/assets/copy-assets-handler");
656
- var import_glob = require("glob");
657
- var import_promises3 = require("fs/promises");
658
-
659
- // ../build-tools/dist/chunk-RVBHYVMR.mjs
660
- var import_buildable_libs_utils = require("@nx/js/src/utils/buildable-libs-utils");
661
- var import_glob2 = require("glob");
662
- var import_node_fs5 = require("fs");
663
- var import_promises4 = require("fs/promises");
664
- var import_project_graph = require("nx/src/project-graph/project-graph");
665
-
666
- // ../build-tools/dist/chunk-3E4JAUKE.mjs
667
- var import_glob3 = require("glob");
668
-
669
- // ../build-tools/dist/chunk-BEMVEXMQ.mjs
670
- var DEFAULT_COMPILED_BANNER = `/*****************************************
671
- *
672
- * \u26A1 Built by Storm Software
673
- *
674
- *****************************************/
33
+ var DEFAULT_CSS_BANNER = `
34
+ /* ---------------------------------------
35
+ \u26A1 Built by Storm Software
36
+ --------------------------------------- */
675
37
  `;
676
38
 
677
- // ../build-tools/dist/chunk-7YKXR5JJ.mjs
678
- var import_core = require("@swc/core");
679
-
680
- // ../build-tools/dist/chunk-JVUUAAFA.mjs
681
- var import_node_fs6 = __toESM(require("fs"), 1);
682
- var import_node_module = require("module");
683
- var import_node_path3 = __toESM(require("path"), 1);
684
- var import_resolve = __toESM(require("resolve"), 1);
685
-
686
- // ../build-tools/dist/chunk-VGLIZ2H3.mjs
687
- var import_devkit = require("@nx/devkit");
688
- var import_path = require("path");
689
-
690
39
  // src/constants.ts
691
40
  var DEFAULT_BUILD_OPTIONS = {
692
41
  platform: "node",
@@ -724,8 +73,8 @@ var DEFAULT_BUILD_OPTIONS = {
724
73
  ".woff2": "file"
725
74
  },
726
75
  banner: {
727
- js: DEFAULT_COMPILED_BANNER,
728
- css: DEFAULT_COMPILED_BANNER
76
+ js: DEFAULT_JS_BANNER,
77
+ css: DEFAULT_CSS_BANNER
729
78
  }
730
79
  };
731
80
  // Annotate the CommonJS export names for ESM import in node: