@storm-software/unbuild 0.50.1 → 0.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/bin/unbuild.cjs +550 -248
- package/bin/unbuild.js +550 -248
- package/dist/build.cjs +2 -2
- package/dist/build.js +1 -1
- package/dist/{chunk-5MW4VNSZ.js → chunk-HIH6JOQR.js} +550 -248
- package/dist/{chunk-UM5MAKNS.cjs → chunk-ZP7VG4UX.cjs} +550 -248
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +5 -5
|
@@ -504,12 +504,8 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
|
504
504
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
505
505
|
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
506
506
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
507
|
-
var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
|
|
508
507
|
var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
509
|
-
var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
|
|
510
508
|
var STORM_DEFAULT_SOCIAL_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
|
|
511
|
-
var STORM_DEFAULT_SOCIAL_MEDIUM = "https://medium.com/storm-software";
|
|
512
|
-
var STORM_DEFAULT_SOCIAL_GITHUB = "https://github.com/storm-software";
|
|
513
509
|
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
514
510
|
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.
|
|
515
511
|
|
|
@@ -518,234 +514,488 @@ Join us on [Discord](${STORM_DEFAULT_SOCIAL_DISCORD}) to chat with the team, rec
|
|
|
518
514
|
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!
|
|
519
515
|
`;
|
|
520
516
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
517
|
+
var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
|
|
521
518
|
|
|
522
519
|
// ../config/src/schema.ts
|
|
523
|
-
var
|
|
524
|
-
var
|
|
525
|
-
var
|
|
526
|
-
|
|
520
|
+
var _mini = require('zod/mini'); var z = _interopRequireWildcard(_mini);
|
|
521
|
+
var schemaRegistry = z.registry();
|
|
522
|
+
var colorSchema = z.string().check(
|
|
523
|
+
z.length(7),
|
|
524
|
+
z.toLowerCase(),
|
|
525
|
+
z.regex(/^#([0-9a-f]{3}){1,2}$/i),
|
|
526
|
+
z.trim()
|
|
527
527
|
);
|
|
528
|
-
|
|
529
|
-
"
|
|
528
|
+
schemaRegistry.add(colorSchema, {
|
|
529
|
+
description: "A base schema for describing the format of colors"
|
|
530
|
+
});
|
|
531
|
+
var darkColorSchema = z._default(colorSchema, "#151718");
|
|
532
|
+
schemaRegistry.add(darkColorSchema, {
|
|
533
|
+
description: "The dark background color of the workspace"
|
|
534
|
+
});
|
|
535
|
+
var lightColorSchema = z._default(colorSchema, "#cbd5e1");
|
|
536
|
+
schemaRegistry.add(lightColorSchema, {
|
|
537
|
+
description: "The light background color of the workspace"
|
|
538
|
+
});
|
|
539
|
+
var brandColorSchema = z._default(colorSchema, "#1fb2a6");
|
|
540
|
+
schemaRegistry.add(brandColorSchema, {
|
|
541
|
+
description: "The primary brand specific color of the workspace"
|
|
542
|
+
});
|
|
543
|
+
var alternateColorSchema = z.optional(colorSchema);
|
|
544
|
+
schemaRegistry.add(alternateColorSchema, {
|
|
545
|
+
description: "The alternate brand specific color of the workspace"
|
|
546
|
+
});
|
|
547
|
+
var accentColorSchema = z.optional(colorSchema);
|
|
548
|
+
schemaRegistry.add(accentColorSchema, {
|
|
549
|
+
description: "The secondary brand specific color of the workspace"
|
|
550
|
+
});
|
|
551
|
+
var linkColorSchema = z._default(colorSchema, "#3fa6ff");
|
|
552
|
+
schemaRegistry.add(linkColorSchema, {
|
|
553
|
+
description: "The color used to display hyperlink text"
|
|
554
|
+
});
|
|
555
|
+
var helpColorSchema = z._default(colorSchema, "#818cf8");
|
|
556
|
+
schemaRegistry.add(helpColorSchema, {
|
|
557
|
+
description: "The second brand specific color of the workspace"
|
|
558
|
+
});
|
|
559
|
+
var successColorSchema = z._default(colorSchema, "#45b27e");
|
|
560
|
+
schemaRegistry.add(successColorSchema, {
|
|
561
|
+
description: "The success color of the workspace"
|
|
562
|
+
});
|
|
563
|
+
var infoColorSchema = z._default(colorSchema, "#38bdf8");
|
|
564
|
+
schemaRegistry.add(infoColorSchema, {
|
|
565
|
+
description: "The informational color of the workspace"
|
|
566
|
+
});
|
|
567
|
+
var warningColorSchema = z._default(colorSchema, "#f3d371");
|
|
568
|
+
schemaRegistry.add(warningColorSchema, {
|
|
569
|
+
description: "The warning color of the workspace"
|
|
570
|
+
});
|
|
571
|
+
var dangerColorSchema = z._default(colorSchema, "#d8314a");
|
|
572
|
+
schemaRegistry.add(dangerColorSchema, {
|
|
573
|
+
description: "The danger color of the workspace"
|
|
574
|
+
});
|
|
575
|
+
var fatalColorSchema = z.optional(colorSchema);
|
|
576
|
+
schemaRegistry.add(fatalColorSchema, {
|
|
577
|
+
description: "The fatal color of the workspace"
|
|
578
|
+
});
|
|
579
|
+
var positiveColorSchema = z._default(colorSchema, "#4ade80");
|
|
580
|
+
schemaRegistry.add(positiveColorSchema, {
|
|
581
|
+
description: "The positive number color of the workspace"
|
|
582
|
+
});
|
|
583
|
+
var negativeColorSchema = z._default(colorSchema, "#ef4444");
|
|
584
|
+
schemaRegistry.add(negativeColorSchema, {
|
|
585
|
+
description: "The negative number color of the workspace"
|
|
586
|
+
});
|
|
587
|
+
var gradientStopsSchema = z.optional(z.array(colorSchema));
|
|
588
|
+
schemaRegistry.add(gradientStopsSchema, {
|
|
589
|
+
description: "The color stops for the base gradient color pattern used in the workspace"
|
|
590
|
+
});
|
|
591
|
+
var darkColorsSchema = z.object({
|
|
592
|
+
foreground: lightColorSchema,
|
|
593
|
+
background: darkColorSchema,
|
|
594
|
+
brand: brandColorSchema,
|
|
595
|
+
alternate: alternateColorSchema,
|
|
596
|
+
accent: accentColorSchema,
|
|
597
|
+
link: linkColorSchema,
|
|
598
|
+
help: helpColorSchema,
|
|
599
|
+
success: successColorSchema,
|
|
600
|
+
info: infoColorSchema,
|
|
601
|
+
warning: warningColorSchema,
|
|
602
|
+
danger: dangerColorSchema,
|
|
603
|
+
fatal: fatalColorSchema,
|
|
604
|
+
positive: positiveColorSchema,
|
|
605
|
+
negative: negativeColorSchema,
|
|
606
|
+
gradient: gradientStopsSchema
|
|
607
|
+
});
|
|
608
|
+
var lightColorsSchema = z.object({
|
|
609
|
+
foreground: darkColorSchema,
|
|
610
|
+
background: lightColorSchema,
|
|
611
|
+
brand: brandColorSchema,
|
|
612
|
+
alternate: alternateColorSchema,
|
|
613
|
+
accent: accentColorSchema,
|
|
614
|
+
link: linkColorSchema,
|
|
615
|
+
help: helpColorSchema,
|
|
616
|
+
success: successColorSchema,
|
|
617
|
+
info: infoColorSchema,
|
|
618
|
+
warning: warningColorSchema,
|
|
619
|
+
danger: dangerColorSchema,
|
|
620
|
+
fatal: fatalColorSchema,
|
|
621
|
+
positive: positiveColorSchema,
|
|
622
|
+
negative: negativeColorSchema,
|
|
623
|
+
gradient: gradientStopsSchema
|
|
624
|
+
});
|
|
625
|
+
var multiColorsSchema = z.object({
|
|
626
|
+
dark: darkColorsSchema,
|
|
627
|
+
light: lightColorsSchema
|
|
628
|
+
});
|
|
629
|
+
var singleColorsSchema = z.object({
|
|
630
|
+
dark: darkColorSchema,
|
|
631
|
+
light: lightColorSchema,
|
|
632
|
+
brand: brandColorSchema,
|
|
633
|
+
alternate: alternateColorSchema,
|
|
634
|
+
accent: accentColorSchema,
|
|
635
|
+
link: linkColorSchema,
|
|
636
|
+
help: helpColorSchema,
|
|
637
|
+
success: successColorSchema,
|
|
638
|
+
info: infoColorSchema,
|
|
639
|
+
warning: warningColorSchema,
|
|
640
|
+
danger: dangerColorSchema,
|
|
641
|
+
fatal: fatalColorSchema,
|
|
642
|
+
positive: positiveColorSchema,
|
|
643
|
+
negative: negativeColorSchema,
|
|
644
|
+
gradient: gradientStopsSchema
|
|
645
|
+
});
|
|
646
|
+
var registryUrlConfigSchema = z.optional(z.url());
|
|
647
|
+
schemaRegistry.add(registryUrlConfigSchema, {
|
|
648
|
+
description: "A remote registry URL used to publish distributable packages"
|
|
649
|
+
});
|
|
650
|
+
var registrySchema = z._default(
|
|
651
|
+
z.object({
|
|
652
|
+
github: registryUrlConfigSchema,
|
|
653
|
+
npm: registryUrlConfigSchema,
|
|
654
|
+
cargo: registryUrlConfigSchema,
|
|
655
|
+
cyclone: registryUrlConfigSchema,
|
|
656
|
+
container: registryUrlConfigSchema
|
|
657
|
+
}),
|
|
658
|
+
{}
|
|
530
659
|
);
|
|
531
|
-
|
|
532
|
-
"
|
|
660
|
+
schemaRegistry.add(registrySchema, {
|
|
661
|
+
description: "A list of remote registry URLs used by Storm Software"
|
|
662
|
+
});
|
|
663
|
+
var colorsSchema = z.union([singleColorsSchema, multiColorsSchema]);
|
|
664
|
+
schemaRegistry.add(colorsSchema, {
|
|
665
|
+
description: "Colors used for various workspace elements"
|
|
666
|
+
});
|
|
667
|
+
var themeColorsSchema = z.record(
|
|
668
|
+
z.union([z.union([z.literal("base"), z.string()]), z.string()]),
|
|
669
|
+
colorsSchema
|
|
533
670
|
);
|
|
534
|
-
|
|
535
|
-
"
|
|
671
|
+
schemaRegistry.add(themeColorsSchema, {
|
|
672
|
+
description: "Storm theme config values used for styling various package elements"
|
|
673
|
+
});
|
|
674
|
+
var extendsSchema = z.optional(
|
|
675
|
+
z.union([z.string().check(z.trim()), z.array(z.string().check(z.trim()))])
|
|
536
676
|
);
|
|
537
|
-
|
|
538
|
-
"The
|
|
677
|
+
schemaRegistry.add(extendsSchema, {
|
|
678
|
+
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."
|
|
679
|
+
});
|
|
680
|
+
var workspaceBotNameSchema = z.string().check(z.trim());
|
|
681
|
+
schemaRegistry.add(workspaceBotNameSchema, {
|
|
682
|
+
description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
683
|
+
});
|
|
684
|
+
var workspaceBotEmailSchema = z.string().check(z.trim());
|
|
685
|
+
schemaRegistry.add(workspaceBotEmailSchema, {
|
|
686
|
+
description: "The email of the workspace bot"
|
|
687
|
+
});
|
|
688
|
+
var workspaceBotSchema = z.object({
|
|
689
|
+
name: workspaceBotNameSchema,
|
|
690
|
+
email: workspaceBotEmailSchema
|
|
691
|
+
});
|
|
692
|
+
schemaRegistry.add(workspaceBotSchema, {
|
|
693
|
+
description: "The workspace's bot user's config used to automated various operations tasks"
|
|
694
|
+
});
|
|
695
|
+
var workspaceReleaseBannerUrlSchema = z.optional(
|
|
696
|
+
z.string().check(z.trim(), z.url())
|
|
539
697
|
);
|
|
540
|
-
|
|
541
|
-
"
|
|
698
|
+
schemaRegistry.add(workspaceReleaseBannerUrlSchema, {
|
|
699
|
+
description: "A URL to a banner image used to display the workspace's release"
|
|
700
|
+
});
|
|
701
|
+
var workspaceReleaseBannerAltSchema = z._default(
|
|
702
|
+
z.string().check(z.trim()),
|
|
703
|
+
STORM_DEFAULT_BANNER_ALT
|
|
542
704
|
);
|
|
543
|
-
|
|
544
|
-
"The
|
|
705
|
+
schemaRegistry.add(workspaceReleaseBannerAltSchema, {
|
|
706
|
+
description: "The alt text for the workspace's release banner image"
|
|
707
|
+
});
|
|
708
|
+
var workspaceReleaseBannerSchema = z.object({
|
|
709
|
+
url: workspaceReleaseBannerUrlSchema,
|
|
710
|
+
alt: workspaceReleaseBannerAltSchema
|
|
711
|
+
});
|
|
712
|
+
schemaRegistry.add(workspaceReleaseBannerSchema, {
|
|
713
|
+
description: "The workspace's banner image used during the release process"
|
|
714
|
+
});
|
|
715
|
+
var workspaceReleaseHeaderSchema = z.optional(
|
|
716
|
+
z.string().check(z.trim())
|
|
545
717
|
);
|
|
546
|
-
|
|
547
|
-
"
|
|
718
|
+
schemaRegistry.add(workspaceReleaseHeaderSchema, {
|
|
719
|
+
description: "A header message appended to the start of the workspace's release notes"
|
|
720
|
+
});
|
|
721
|
+
var workspaceReleaseFooterSchema = z.optional(
|
|
722
|
+
z.string().check(z.trim())
|
|
548
723
|
);
|
|
549
|
-
|
|
550
|
-
"
|
|
724
|
+
schemaRegistry.add(workspaceReleaseFooterSchema, {
|
|
725
|
+
description: "A footer message appended to the end of the workspace's release notes"
|
|
726
|
+
});
|
|
727
|
+
var workspaceReleaseSchema = z.object({
|
|
728
|
+
banner: z.union([
|
|
729
|
+
workspaceReleaseBannerSchema,
|
|
730
|
+
z.string().check(z.trim(), z.url())
|
|
731
|
+
]),
|
|
732
|
+
header: workspaceReleaseHeaderSchema,
|
|
733
|
+
footer: workspaceReleaseFooterSchema
|
|
734
|
+
});
|
|
735
|
+
schemaRegistry.add(workspaceReleaseSchema, {
|
|
736
|
+
description: "The workspace's release config used during the release process"
|
|
737
|
+
});
|
|
738
|
+
var workspaceSocialsTwitterSchema = z.optional(
|
|
739
|
+
z.string().check(z.trim())
|
|
551
740
|
);
|
|
552
|
-
|
|
553
|
-
"
|
|
741
|
+
schemaRegistry.add(workspaceSocialsTwitterSchema, {
|
|
742
|
+
description: "A Twitter/X account associated with the organization/project"
|
|
743
|
+
});
|
|
744
|
+
var workspaceSocialsDiscordSchema = z.optional(
|
|
745
|
+
z.string().check(z.trim())
|
|
554
746
|
);
|
|
555
|
-
|
|
556
|
-
"
|
|
747
|
+
schemaRegistry.add(workspaceSocialsDiscordSchema, {
|
|
748
|
+
description: "A Discord account associated with the organization/project"
|
|
749
|
+
});
|
|
750
|
+
var workspaceSocialsTelegramSchema = z.optional(
|
|
751
|
+
z.string().check(z.trim())
|
|
557
752
|
);
|
|
558
|
-
|
|
559
|
-
"
|
|
753
|
+
schemaRegistry.add(workspaceSocialsTelegramSchema, {
|
|
754
|
+
description: "A Telegram account associated with the organization/project"
|
|
755
|
+
});
|
|
756
|
+
var workspaceSocialsSlackSchema = z.optional(
|
|
757
|
+
z.string().check(z.trim())
|
|
560
758
|
);
|
|
561
|
-
|
|
562
|
-
"
|
|
759
|
+
schemaRegistry.add(workspaceSocialsSlackSchema, {
|
|
760
|
+
description: "A Slack account associated with the organization/project"
|
|
761
|
+
});
|
|
762
|
+
var workspaceSocialsMediumSchema = z.optional(
|
|
763
|
+
z.string().check(z.trim())
|
|
563
764
|
);
|
|
564
|
-
|
|
565
|
-
"
|
|
765
|
+
schemaRegistry.add(workspaceSocialsMediumSchema, {
|
|
766
|
+
description: "A Medium account associated with the organization/project"
|
|
767
|
+
});
|
|
768
|
+
var workspaceSocialsGithubSchema = z.optional(
|
|
769
|
+
z.string().check(z.trim())
|
|
566
770
|
);
|
|
567
|
-
|
|
568
|
-
"
|
|
771
|
+
schemaRegistry.add(workspaceSocialsGithubSchema, {
|
|
772
|
+
description: "A GitHub account associated with the organization/project"
|
|
773
|
+
});
|
|
774
|
+
var workspaceSocialsSchema = z.object({
|
|
775
|
+
twitter: workspaceSocialsTwitterSchema,
|
|
776
|
+
discord: workspaceSocialsDiscordSchema,
|
|
777
|
+
telegram: workspaceSocialsTelegramSchema,
|
|
778
|
+
slack: workspaceSocialsSlackSchema,
|
|
779
|
+
medium: workspaceSocialsMediumSchema,
|
|
780
|
+
github: workspaceSocialsGithubSchema
|
|
781
|
+
});
|
|
782
|
+
schemaRegistry.add(workspaceSocialsSchema, {
|
|
783
|
+
description: "The workspace's account config used to store various social media links"
|
|
784
|
+
});
|
|
785
|
+
var workspaceDirectoryCacheSchema = z.optional(
|
|
786
|
+
z.string().check(z.trim())
|
|
569
787
|
);
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
accent: AccentColorSchema,
|
|
576
|
-
link: LinkColorSchema,
|
|
577
|
-
help: HelpColorSchema,
|
|
578
|
-
success: SuccessColorSchema,
|
|
579
|
-
info: InfoColorSchema,
|
|
580
|
-
warning: WarningColorSchema,
|
|
581
|
-
danger: DangerColorSchema,
|
|
582
|
-
fatal: FatalColorSchema,
|
|
583
|
-
positive: PositiveColorSchema,
|
|
584
|
-
negative: NegativeColorSchema,
|
|
585
|
-
gradient: GradientStopsSchema
|
|
586
|
-
});
|
|
587
|
-
var LightThemeColorConfigSchema = z.object({
|
|
588
|
-
foreground: DarkColorSchema,
|
|
589
|
-
background: LightColorSchema,
|
|
590
|
-
brand: BrandColorSchema,
|
|
591
|
-
alternate: AlternateColorSchema,
|
|
592
|
-
accent: AccentColorSchema,
|
|
593
|
-
link: LinkColorSchema,
|
|
594
|
-
help: HelpColorSchema,
|
|
595
|
-
success: SuccessColorSchema,
|
|
596
|
-
info: InfoColorSchema,
|
|
597
|
-
warning: WarningColorSchema,
|
|
598
|
-
danger: DangerColorSchema,
|
|
599
|
-
fatal: FatalColorSchema,
|
|
600
|
-
positive: PositiveColorSchema,
|
|
601
|
-
negative: NegativeColorSchema,
|
|
602
|
-
gradient: GradientStopsSchema
|
|
603
|
-
});
|
|
604
|
-
var MultiThemeColorConfigSchema = z.object({
|
|
605
|
-
dark: DarkThemeColorConfigSchema,
|
|
606
|
-
light: LightThemeColorConfigSchema
|
|
607
|
-
});
|
|
608
|
-
var SingleThemeColorConfigSchema = z.object({
|
|
609
|
-
dark: DarkColorSchema,
|
|
610
|
-
light: LightColorSchema,
|
|
611
|
-
brand: BrandColorSchema,
|
|
612
|
-
alternate: AlternateColorSchema,
|
|
613
|
-
accent: AccentColorSchema,
|
|
614
|
-
link: LinkColorSchema,
|
|
615
|
-
help: HelpColorSchema,
|
|
616
|
-
success: SuccessColorSchema,
|
|
617
|
-
info: InfoColorSchema,
|
|
618
|
-
warning: WarningColorSchema,
|
|
619
|
-
danger: DangerColorSchema,
|
|
620
|
-
fatal: FatalColorSchema,
|
|
621
|
-
positive: PositiveColorSchema,
|
|
622
|
-
negative: NegativeColorSchema,
|
|
623
|
-
gradient: GradientStopsSchema
|
|
624
|
-
});
|
|
625
|
-
var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
626
|
-
var RegistryConfigSchema = z.object({
|
|
627
|
-
github: RegistryUrlConfigSchema,
|
|
628
|
-
npm: RegistryUrlConfigSchema,
|
|
629
|
-
cargo: RegistryUrlConfigSchema,
|
|
630
|
-
cyclone: RegistryUrlConfigSchema,
|
|
631
|
-
container: RegistryUrlConfigSchema
|
|
632
|
-
}).default({}).describe("A list of remote registry URLs used by Storm Software");
|
|
633
|
-
var ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
634
|
-
MultiThemeColorConfigSchema
|
|
635
|
-
).describe("Colors used for various workspace elements");
|
|
636
|
-
var ColorConfigMapSchema = z.record(
|
|
637
|
-
z.union([z.literal("base"), z.string()]),
|
|
638
|
-
ColorConfigSchema
|
|
788
|
+
schemaRegistry.add(workspaceDirectoryCacheSchema, {
|
|
789
|
+
description: "The directory used to store the environment's cached file data"
|
|
790
|
+
});
|
|
791
|
+
var workspaceDirectoryDataSchema = z.optional(
|
|
792
|
+
z.string().check(z.trim())
|
|
639
793
|
);
|
|
640
|
-
|
|
641
|
-
"The
|
|
794
|
+
schemaRegistry.add(workspaceDirectoryDataSchema, {
|
|
795
|
+
description: "The directory used to store the environment's data files"
|
|
796
|
+
});
|
|
797
|
+
var workspaceDirectoryConfigSchema = z.optional(
|
|
798
|
+
z.string().check(z.trim())
|
|
642
799
|
);
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
)
|
|
646
|
-
|
|
800
|
+
schemaRegistry.add(workspaceDirectoryConfigSchema, {
|
|
801
|
+
description: "The directory used to store the environment's configuration files"
|
|
802
|
+
});
|
|
803
|
+
var workspaceDirectoryTempSchema = z.optional(
|
|
804
|
+
z.string().check(z.trim())
|
|
647
805
|
);
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
}).describe(
|
|
654
|
-
"The workspace's bot user's config used to automated various operations tasks"
|
|
806
|
+
schemaRegistry.add(workspaceDirectoryTempSchema, {
|
|
807
|
+
description: "The directory used to store the environment's temp files"
|
|
808
|
+
});
|
|
809
|
+
var workspaceDirectoryLogSchema = z.optional(
|
|
810
|
+
z.string().check(z.trim())
|
|
655
811
|
);
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
),
|
|
663
|
-
footer: z.string().trim().optional().describe(
|
|
664
|
-
"A footer message appended to the end of the workspace's release notes"
|
|
665
|
-
)
|
|
666
|
-
}).describe("The workspace's release config used during the release process");
|
|
667
|
-
var WorkspaceSocialsConfigSchema = z.object({
|
|
668
|
-
twitter: z.string().trim().default(STORM_DEFAULT_SOCIAL_TWITTER).describe("A Twitter/X account associated with the organization/project"),
|
|
669
|
-
discord: z.string().trim().default(STORM_DEFAULT_SOCIAL_DISCORD).describe("A Discord account associated with the organization/project"),
|
|
670
|
-
telegram: z.string().trim().default(STORM_DEFAULT_SOCIAL_TELEGRAM).describe("A Telegram account associated with the organization/project"),
|
|
671
|
-
slack: z.string().trim().default(STORM_DEFAULT_SOCIAL_SLACK).describe("A Slack account associated with the organization/project"),
|
|
672
|
-
medium: z.string().trim().default(STORM_DEFAULT_SOCIAL_MEDIUM).describe("A Medium account associated with the organization/project"),
|
|
673
|
-
github: z.string().trim().default(STORM_DEFAULT_SOCIAL_GITHUB).describe("A GitHub account associated with the organization/project")
|
|
674
|
-
}).describe(
|
|
675
|
-
"The workspace's account config used to store various social media links"
|
|
812
|
+
schemaRegistry.add(workspaceDirectoryLogSchema, {
|
|
813
|
+
description: "The directory used to store the environment's log files"
|
|
814
|
+
});
|
|
815
|
+
var workspaceDirectoryBuildSchema = z._default(
|
|
816
|
+
z.string().check(z.trim()),
|
|
817
|
+
"dist"
|
|
676
818
|
);
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
})
|
|
691
|
-
|
|
819
|
+
schemaRegistry.add(workspaceDirectoryBuildSchema, {
|
|
820
|
+
description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
|
|
821
|
+
});
|
|
822
|
+
var workspaceDirectorySchema = z.object({
|
|
823
|
+
cache: workspaceDirectoryCacheSchema,
|
|
824
|
+
data: workspaceDirectoryDataSchema,
|
|
825
|
+
config: workspaceDirectoryConfigSchema,
|
|
826
|
+
temp: workspaceDirectoryTempSchema,
|
|
827
|
+
log: workspaceDirectoryLogSchema,
|
|
828
|
+
build: workspaceDirectoryBuildSchema
|
|
829
|
+
});
|
|
830
|
+
schemaRegistry.add(workspaceDirectorySchema, {
|
|
831
|
+
description: "Various directories used by the workspace to store data, cache, and configuration files"
|
|
832
|
+
});
|
|
833
|
+
var errorCodesFileSchema = z._default(
|
|
834
|
+
z.string().check(z.trim()),
|
|
835
|
+
STORM_DEFAULT_ERROR_CODES_FILE
|
|
692
836
|
);
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
837
|
+
schemaRegistry.add(errorCodesFileSchema, {
|
|
838
|
+
description: "The path to the workspace's error codes JSON file"
|
|
839
|
+
});
|
|
840
|
+
var errorUrlSchema = z.optional(z.url());
|
|
841
|
+
schemaRegistry.add(errorUrlSchema, {
|
|
842
|
+
description: "A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
843
|
+
});
|
|
844
|
+
var errorSchema = z.object({
|
|
845
|
+
codesFile: errorCodesFileSchema,
|
|
846
|
+
url: errorUrlSchema
|
|
847
|
+
});
|
|
848
|
+
schemaRegistry.add(errorSchema, {
|
|
849
|
+
description: "The workspace's error config used when creating error details during a system error"
|
|
850
|
+
});
|
|
851
|
+
var organizationNameSchema = z.optional(
|
|
852
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
853
|
+
);
|
|
854
|
+
schemaRegistry.add(organizationNameSchema, {
|
|
855
|
+
description: "The name of the organization"
|
|
856
|
+
});
|
|
857
|
+
var organizationDescriptionSchema = z.optional(
|
|
858
|
+
z.string().check(z.trim())
|
|
859
|
+
);
|
|
860
|
+
schemaRegistry.add(organizationDescriptionSchema, {
|
|
861
|
+
description: "A description of the organization"
|
|
862
|
+
});
|
|
863
|
+
var organizationLogoSchema = z.optional(z.url());
|
|
864
|
+
schemaRegistry.add(organizationLogoSchema, {
|
|
865
|
+
description: "A URL to the organization's logo image"
|
|
866
|
+
});
|
|
867
|
+
var organizationIconSchema = z.optional(z.url());
|
|
868
|
+
schemaRegistry.add(organizationIconSchema, {
|
|
869
|
+
description: "A URL to the organization's icon image"
|
|
870
|
+
});
|
|
871
|
+
var organizationUrlSchema = z.optional(z.url());
|
|
872
|
+
schemaRegistry.add(organizationUrlSchema, {
|
|
873
|
+
description: "A URL to a page that provides more information about the organization"
|
|
874
|
+
});
|
|
875
|
+
var organizationSchema = z.object({
|
|
876
|
+
name: organizationNameSchema,
|
|
877
|
+
description: organizationDescriptionSchema,
|
|
878
|
+
logo: organizationLogoSchema,
|
|
879
|
+
icon: organizationIconSchema,
|
|
880
|
+
url: organizationUrlSchema
|
|
881
|
+
});
|
|
882
|
+
schemaRegistry.add(organizationSchema, {
|
|
883
|
+
description: "The workspace's organization details"
|
|
884
|
+
});
|
|
885
|
+
var schemaNameSchema = z._default(
|
|
886
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
887
|
+
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
888
|
+
);
|
|
889
|
+
schemaRegistry.add(schemaNameSchema, {
|
|
890
|
+
description: "The URL or file path to the JSON schema file that describes the Storm configuration file"
|
|
891
|
+
});
|
|
892
|
+
var nameSchema = z.string().check(z.trim(), z.toLowerCase());
|
|
893
|
+
schemaRegistry.add(nameSchema, {
|
|
894
|
+
description: "The name of the workspace/project/service/package/scope using this configuration"
|
|
895
|
+
});
|
|
896
|
+
var namespaceSchema = z.string().check(z.trim(), z.toLowerCase());
|
|
897
|
+
schemaRegistry.add(namespaceSchema, {
|
|
898
|
+
description: "The namespace of the workspace/project/service/package/scope using this configuration"
|
|
899
|
+
});
|
|
900
|
+
var orgSchema = z.union([
|
|
901
|
+
organizationSchema,
|
|
902
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
903
|
+
]);
|
|
904
|
+
schemaRegistry.add(orgSchema, {
|
|
905
|
+
description: "The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
906
|
+
});
|
|
907
|
+
var repositorySchema = z.string().check(z.trim(), z.toLowerCase());
|
|
908
|
+
schemaRegistry.add(repositorySchema, {
|
|
909
|
+
description: "The repo URL of the workspace (i.e. the GitHub repository URL)"
|
|
910
|
+
});
|
|
911
|
+
var licenseSchema = z._default(
|
|
912
|
+
z.string().check(z.trim()),
|
|
913
|
+
"Apache-2.0"
|
|
914
|
+
);
|
|
915
|
+
schemaRegistry.add(licenseSchema, {
|
|
916
|
+
description: "The license type of the package"
|
|
917
|
+
});
|
|
918
|
+
var homepageSchema = z.optional(z.url());
|
|
919
|
+
schemaRegistry.add(homepageSchema, {
|
|
920
|
+
description: "The homepage of the workspace"
|
|
921
|
+
});
|
|
922
|
+
var docsSchema = z.optional(z.url());
|
|
923
|
+
schemaRegistry.add(docsSchema, {
|
|
924
|
+
description: "The documentation site for the workspace"
|
|
925
|
+
});
|
|
926
|
+
var portalSchema = z.optional(z.url());
|
|
927
|
+
schemaRegistry.add(portalSchema, {
|
|
928
|
+
description: "The development portal site for the workspace"
|
|
929
|
+
});
|
|
930
|
+
var licensingSchema = z.optional(z.url());
|
|
931
|
+
schemaRegistry.add(licensingSchema, {
|
|
932
|
+
description: "The licensing site for the workspace"
|
|
933
|
+
});
|
|
934
|
+
var contactSchema = z.optional(z.url());
|
|
935
|
+
schemaRegistry.add(contactSchema, {
|
|
936
|
+
description: "The contact site for the workspace"
|
|
937
|
+
});
|
|
938
|
+
var supportSchema = z.optional(z.url());
|
|
939
|
+
schemaRegistry.add(supportSchema, {
|
|
940
|
+
description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
941
|
+
});
|
|
942
|
+
var branchSchema = z._default(
|
|
943
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
944
|
+
"main"
|
|
945
|
+
);
|
|
946
|
+
schemaRegistry.add(branchSchema, {
|
|
947
|
+
description: "The branch of the workspace"
|
|
948
|
+
});
|
|
949
|
+
var preidSchema = z.optional(
|
|
950
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
951
|
+
);
|
|
952
|
+
schemaRegistry.add(preidSchema, {
|
|
953
|
+
description: "A tag specifying the version pre-release identifier"
|
|
954
|
+
});
|
|
955
|
+
var ownerSchema = z.optional(
|
|
956
|
+
z.string().check(z.trim(), z.toLowerCase())
|
|
957
|
+
);
|
|
958
|
+
schemaRegistry.add(ownerSchema, {
|
|
959
|
+
description: "The owner of the package"
|
|
960
|
+
});
|
|
961
|
+
var modeSchema = z._default(
|
|
962
|
+
z.enum(["development", "staging", "production"]).check(z.trim(), z.toLowerCase()),
|
|
963
|
+
"production"
|
|
964
|
+
);
|
|
965
|
+
schemaRegistry.add(modeSchema, {
|
|
966
|
+
description: "The current runtime environment mode for the package"
|
|
967
|
+
});
|
|
968
|
+
var workspaceRootSchema = z.string().check(z.trim(), z.toLowerCase());
|
|
969
|
+
schemaRegistry.add(workspaceRootSchema, {
|
|
970
|
+
description: "The root directory of the workspace"
|
|
971
|
+
});
|
|
972
|
+
var skipCacheSchema = z._default(z.boolean(), false);
|
|
973
|
+
schemaRegistry.add(skipCacheSchema, {
|
|
974
|
+
description: "Should all known types of workspace caching be skipped?"
|
|
975
|
+
});
|
|
976
|
+
var packageManagerSchema = z._default(
|
|
977
|
+
z.enum(["npm", "yarn", "pnpm", "bun"]),
|
|
978
|
+
"npm"
|
|
979
|
+
);
|
|
980
|
+
schemaRegistry.add(packageManagerSchema, {
|
|
981
|
+
description: "The JavaScript/TypeScript package manager used by the repository"
|
|
982
|
+
});
|
|
983
|
+
var timezoneSchema = z._default(
|
|
984
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
985
|
+
"America/New_York"
|
|
986
|
+
);
|
|
987
|
+
schemaRegistry.add(timezoneSchema, {
|
|
988
|
+
description: "The default timezone of the workspace"
|
|
989
|
+
});
|
|
990
|
+
var localeSchema = z._default(
|
|
991
|
+
z.string().check(z.trim(), z.toLowerCase()),
|
|
992
|
+
"en-US"
|
|
993
|
+
);
|
|
994
|
+
schemaRegistry.add(localeSchema, {
|
|
995
|
+
description: "The default locale of the workspace"
|
|
996
|
+
});
|
|
997
|
+
var logLevelSchema = z._default(
|
|
998
|
+
z.enum([
|
|
749
999
|
"silent",
|
|
750
1000
|
"fatal",
|
|
751
1001
|
"error",
|
|
@@ -755,23 +1005,65 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
755
1005
|
"debug",
|
|
756
1006
|
"trace",
|
|
757
1007
|
"all"
|
|
758
|
-
])
|
|
759
|
-
|
|
760
|
-
),
|
|
761
|
-
skipConfigLogging: z.boolean().optional().describe(
|
|
762
|
-
"Should the logging of the current Storm Workspace configuration be skipped?"
|
|
763
|
-
),
|
|
764
|
-
registry: RegistryConfigSchema,
|
|
765
|
-
configFile: z.string().trim().nullable().default(null).describe(
|
|
766
|
-
"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
767
|
-
),
|
|
768
|
-
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
769
|
-
"Storm theme config values used for styling various package elements"
|
|
770
|
-
),
|
|
771
|
-
extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
772
|
-
}).describe(
|
|
773
|
-
"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."
|
|
1008
|
+
]),
|
|
1009
|
+
"info"
|
|
774
1010
|
);
|
|
1011
|
+
schemaRegistry.add(logLevelSchema, {
|
|
1012
|
+
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`)."
|
|
1013
|
+
});
|
|
1014
|
+
var skipConfigLoggingSchema = z._default(z.boolean(), true);
|
|
1015
|
+
schemaRegistry.add(skipConfigLoggingSchema, {
|
|
1016
|
+
description: "Should the logging of the current Storm Workspace configuration be skipped?"
|
|
1017
|
+
});
|
|
1018
|
+
var configFileSchema = z._default(
|
|
1019
|
+
z.nullable(z.string().check(z.trim())),
|
|
1020
|
+
null
|
|
1021
|
+
);
|
|
1022
|
+
schemaRegistry.add(configFileSchema, {
|
|
1023
|
+
description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
1024
|
+
});
|
|
1025
|
+
var extensionsSchema = z._default(z.record(z.string(), z.any()), {});
|
|
1026
|
+
schemaRegistry.add(extensionsSchema, {
|
|
1027
|
+
description: "Configuration of each used extension"
|
|
1028
|
+
});
|
|
1029
|
+
var workspaceConfigSchema = z.object({
|
|
1030
|
+
$schema: schemaNameSchema,
|
|
1031
|
+
extends: extendsSchema,
|
|
1032
|
+
name: nameSchema,
|
|
1033
|
+
namespace: namespaceSchema,
|
|
1034
|
+
organization: orgSchema,
|
|
1035
|
+
repository: repositorySchema,
|
|
1036
|
+
license: licenseSchema,
|
|
1037
|
+
homepage: homepageSchema,
|
|
1038
|
+
docs: docsSchema,
|
|
1039
|
+
portal: portalSchema,
|
|
1040
|
+
licensing: licensingSchema,
|
|
1041
|
+
contact: contactSchema,
|
|
1042
|
+
support: supportSchema,
|
|
1043
|
+
branch: branchSchema,
|
|
1044
|
+
preid: preidSchema,
|
|
1045
|
+
owner: ownerSchema,
|
|
1046
|
+
bot: workspaceBotSchema,
|
|
1047
|
+
release: workspaceReleaseSchema,
|
|
1048
|
+
socials: workspaceSocialsSchema,
|
|
1049
|
+
error: errorSchema,
|
|
1050
|
+
mode: modeSchema,
|
|
1051
|
+
workspaceRoot: workspaceRootSchema,
|
|
1052
|
+
skipCache: skipCacheSchema,
|
|
1053
|
+
directories: workspaceDirectorySchema,
|
|
1054
|
+
packageManager: packageManagerSchema,
|
|
1055
|
+
timezone: timezoneSchema,
|
|
1056
|
+
locale: localeSchema,
|
|
1057
|
+
logLevel: logLevelSchema,
|
|
1058
|
+
skipConfigLogging: skipConfigLoggingSchema,
|
|
1059
|
+
registry: registrySchema,
|
|
1060
|
+
configFile: configFileSchema,
|
|
1061
|
+
colors: z.union([colorsSchema, themeColorsSchema]),
|
|
1062
|
+
extensions: extensionsSchema
|
|
1063
|
+
});
|
|
1064
|
+
schemaRegistry.add(extensionsSchema, {
|
|
1065
|
+
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."
|
|
1066
|
+
});
|
|
775
1067
|
|
|
776
1068
|
// ../config/src/types.ts
|
|
777
1069
|
var COLOR_KEYS = [
|
|
@@ -983,7 +1275,10 @@ var getConfigEnv = () => {
|
|
|
983
1275
|
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
984
1276
|
},
|
|
985
1277
|
release: {
|
|
986
|
-
banner:
|
|
1278
|
+
banner: {
|
|
1279
|
+
url: process.env[`${prefix}RELEASE_BANNER_URL`] || void 0,
|
|
1280
|
+
alt: process.env[`${prefix}RELEASE_BANNER_ALT`] || void 0
|
|
1281
|
+
},
|
|
987
1282
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
988
1283
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
989
1284
|
},
|
|
@@ -1060,11 +1355,11 @@ var getConfigEnv = () => {
|
|
|
1060
1355
|
);
|
|
1061
1356
|
config.colors = themeNames.length > 0 ? themeNames.reduce(
|
|
1062
1357
|
(ret, themeName) => {
|
|
1063
|
-
ret[themeName] =
|
|
1358
|
+
ret[themeName] = getThemeColorsEnv(prefix, themeName);
|
|
1064
1359
|
return ret;
|
|
1065
1360
|
},
|
|
1066
1361
|
{}
|
|
1067
|
-
) :
|
|
1362
|
+
) : getThemeColorsEnv(prefix);
|
|
1068
1363
|
if (config.docs === STORM_DEFAULT_DOCS) {
|
|
1069
1364
|
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
1070
1365
|
config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
@@ -1091,11 +1386,11 @@ var getConfigEnv = () => {
|
|
|
1091
1386
|
}
|
|
1092
1387
|
return config;
|
|
1093
1388
|
};
|
|
1094
|
-
var
|
|
1389
|
+
var getThemeColorsEnv = (prefix, theme) => {
|
|
1095
1390
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
1096
|
-
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ?
|
|
1391
|
+
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorsEnv(prefix + themeName) : getSingleThemeColorsEnv(prefix + themeName);
|
|
1097
1392
|
};
|
|
1098
|
-
var
|
|
1393
|
+
var getSingleThemeColorsEnv = (prefix) => {
|
|
1099
1394
|
const gradient = [];
|
|
1100
1395
|
if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
|
|
1101
1396
|
gradient.push(
|
|
@@ -1127,15 +1422,13 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
1127
1422
|
gradient
|
|
1128
1423
|
};
|
|
1129
1424
|
};
|
|
1130
|
-
var
|
|
1425
|
+
var getMultiThemeColorsEnv = (prefix) => {
|
|
1131
1426
|
return {
|
|
1132
|
-
light:
|
|
1133
|
-
|
|
1134
|
-
),
|
|
1135
|
-
dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
|
|
1427
|
+
light: getBaseThemeColorsEnv(`${prefix}_LIGHT_`),
|
|
1428
|
+
dark: getBaseThemeColorsEnv(`${prefix}_DARK_`)
|
|
1136
1429
|
};
|
|
1137
1430
|
};
|
|
1138
|
-
var
|
|
1431
|
+
var getBaseThemeColorsEnv = (prefix) => {
|
|
1139
1432
|
const gradient = [];
|
|
1140
1433
|
if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
|
|
1141
1434
|
gradient.push(
|
|
@@ -1214,7 +1507,16 @@ var setConfigEnv = (config) => {
|
|
|
1214
1507
|
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
1215
1508
|
}
|
|
1216
1509
|
if (config.release) {
|
|
1217
|
-
|
|
1510
|
+
if (config.release.banner) {
|
|
1511
|
+
if (typeof config.release.banner === "string") {
|
|
1512
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
1513
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner;
|
|
1514
|
+
} else {
|
|
1515
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner.url;
|
|
1516
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner.url;
|
|
1517
|
+
process.env[`${prefix}RELEASE_BANNER_ALT`] = config.release.banner.alt;
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1218
1520
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
1219
1521
|
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
1220
1522
|
}
|
|
@@ -1357,10 +1659,10 @@ var setConfigEnv = (config) => {
|
|
|
1357
1659
|
}
|
|
1358
1660
|
if (_optionalChain([config, 'access', _46 => _46.colors, 'optionalAccess', _47 => _47.base, 'optionalAccess', _48 => _48.light]) || _optionalChain([config, 'access', _49 => _49.colors, 'optionalAccess', _50 => _50.base, 'optionalAccess', _51 => _51.dark])) {
|
|
1359
1661
|
for (const key of Object.keys(config.colors)) {
|
|
1360
|
-
|
|
1662
|
+
setThemeColorsEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
1361
1663
|
}
|
|
1362
1664
|
} else {
|
|
1363
|
-
|
|
1665
|
+
setThemeColorsEnv(
|
|
1364
1666
|
`${prefix}COLOR_`,
|
|
1365
1667
|
config.colors
|
|
1366
1668
|
);
|
|
@@ -1415,10 +1717,10 @@ var setConfigEnv = (config) => {
|
|
|
1415
1717
|
}
|
|
1416
1718
|
}
|
|
1417
1719
|
};
|
|
1418
|
-
var
|
|
1419
|
-
return _optionalChain([config, 'optionalAccess', _52 => _52.light, 'optionalAccess', _53 => _53.brand]) || _optionalChain([config, 'optionalAccess', _54 => _54.dark, 'optionalAccess', _55 => _55.brand]) ?
|
|
1720
|
+
var setThemeColorsEnv = (prefix, config) => {
|
|
1721
|
+
return _optionalChain([config, 'optionalAccess', _52 => _52.light, 'optionalAccess', _53 => _53.brand]) || _optionalChain([config, 'optionalAccess', _54 => _54.dark, 'optionalAccess', _55 => _55.brand]) ? setMultiThemeColorsEnv(prefix, config) : setSingleThemeColorsEnv(prefix, config);
|
|
1420
1722
|
};
|
|
1421
|
-
var
|
|
1723
|
+
var setSingleThemeColorsEnv = (prefix, config) => {
|
|
1422
1724
|
if (config.dark) {
|
|
1423
1725
|
process.env[`${prefix}DARK`] = config.dark;
|
|
1424
1726
|
}
|
|
@@ -1467,13 +1769,13 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
1467
1769
|
}
|
|
1468
1770
|
}
|
|
1469
1771
|
};
|
|
1470
|
-
var
|
|
1772
|
+
var setMultiThemeColorsEnv = (prefix, config) => {
|
|
1471
1773
|
return {
|
|
1472
|
-
light:
|
|
1473
|
-
dark:
|
|
1774
|
+
light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config.light),
|
|
1775
|
+
dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config.dark)
|
|
1474
1776
|
};
|
|
1475
1777
|
};
|
|
1476
|
-
var
|
|
1778
|
+
var setBaseThemeColorsEnv = (prefix, config) => {
|
|
1477
1779
|
if (config.foreground) {
|
|
1478
1780
|
process.env[`${prefix}FOREGROUND`] = config.foreground;
|
|
1479
1781
|
}
|
|
@@ -1554,7 +1856,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1554
1856
|
);
|
|
1555
1857
|
try {
|
|
1556
1858
|
result = applyDefaultConfig(
|
|
1557
|
-
await
|
|
1859
|
+
await workspaceConfigSchema.parseAsync(configInput)
|
|
1558
1860
|
);
|
|
1559
1861
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1560
1862
|
} catch (error) {
|