@storm-software/eslint 0.161.1 → 0.162.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.160.52-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.161.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -28,7 +28,7 @@ var getFileBanner = (name = "", workspaceConfig) => {
28
28
  }).join(" ");
29
29
  }
30
30
  const license = (process.env.STORM_LICENSE || workspaceConfig?.license || "Apache-2.0").split(" ").filter((word) => word && word.toLowerCase() !== "license").join(" ");
31
- const organization = process.env.STORM_ORG_NAME || process.env.STORM_ORGANIZATION_NAME || process.env.STORM_ORG || process.env.STORM_ORGANIZATION || (workspaceConfig?.organization && (typeof workspaceConfig.organization === "string" || typeof workspaceConfig.organization.name === "string") ? typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization.name : "storm-software");
31
+ const organization = process.env.STORM_ORG_NAME || process.env.STORM_ORGANIZATION_NAME || process.env.STORM_ORG || process.env.STORM_ORGANIZATION || (workspaceConfig?.organization && (typeof workspaceConfig.organization === "string" || typeof workspaceConfig.organization.name === "string") ? typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization.name : void 0) || "storm-software";
32
32
  return ` -------------------------------------------------------------------
33
33
 
34
34
  ${padding}\u26A1 ${(organization.charAt(0).toUpperCase() + organization.slice(1)).split("-").filter((word) => word && word.length > 0).map((word) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getFileBanner
3
- } from "./chunk-X23CTXJC.js";
3
+ } from "./chunk-2PBILQLV.js";
4
4
  import {
5
5
  GLOB_SRC
6
6
  } from "./chunk-FYHJSIQT.js";
package/dist/preset.js CHANGED
@@ -11,10 +11,10 @@ import {
11
11
  } from "./chunk-WSRPN4A5.js";
12
12
  import {
13
13
  banner_plugin_default
14
- } from "./chunk-ELC2P47N.js";
14
+ } from "./chunk-URESQVUQ.js";
15
15
  import {
16
16
  getFileBanner
17
- } from "./chunk-X23CTXJC.js";
17
+ } from "./chunk-2PBILQLV.js";
18
18
  import {
19
19
  GLOB_ASTRO,
20
20
  GLOB_ASTRO_TS,
@@ -2403,12 +2403,8 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
2403
2403
  var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
2404
2404
  var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
2405
2405
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
2406
- var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
2407
2406
  var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
2408
- var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
2409
2407
  var STORM_DEFAULT_SOCIAL_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
2410
- var STORM_DEFAULT_SOCIAL_MEDIUM = "https://medium.com/storm-software";
2411
- var STORM_DEFAULT_SOCIAL_GITHUB = "https://github.com/storm-software";
2412
2408
  var STORM_DEFAULT_RELEASE_FOOTER = `
2413
2409
  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.
2414
2410
 
@@ -2417,238 +2413,492 @@ Join us on [Discord](${STORM_DEFAULT_SOCIAL_DISCORD}) to chat with the team, rec
2417
2413
  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!
2418
2414
  `;
2419
2415
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
2416
+ var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
2420
2417
 
2421
2418
  // ../config/src/define-config.ts
2422
2419
  init_esm_shims();
2423
2420
 
2424
2421
  // ../config/src/schema.ts
2425
2422
  init_esm_shims();
2426
- import * as z from "zod";
2427
- var ColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7);
2428
- var DarkColorSchema = ColorSchema.default("#151718").describe(
2429
- "The dark background color of the workspace"
2423
+ import * as z from "zod/mini";
2424
+ var schemaRegistry = z.registry();
2425
+ var colorSchema = z.string().check(
2426
+ z.length(7),
2427
+ z.toLowerCase(),
2428
+ z.regex(/^#([0-9a-f]{3}){1,2}$/i),
2429
+ z.trim()
2430
2430
  );
2431
- var LightColorSchema = ColorSchema.default("#cbd5e1").describe(
2432
- "The light background color of the workspace"
2431
+ schemaRegistry.add(colorSchema, {
2432
+ description: "A base schema for describing the format of colors"
2433
+ });
2434
+ var darkColorSchema = z._default(colorSchema, "#151718");
2435
+ schemaRegistry.add(darkColorSchema, {
2436
+ description: "The dark background color of the workspace"
2437
+ });
2438
+ var lightColorSchema = z._default(colorSchema, "#cbd5e1");
2439
+ schemaRegistry.add(lightColorSchema, {
2440
+ description: "The light background color of the workspace"
2441
+ });
2442
+ var brandColorSchema = z._default(colorSchema, "#1fb2a6");
2443
+ schemaRegistry.add(brandColorSchema, {
2444
+ description: "The primary brand specific color of the workspace"
2445
+ });
2446
+ var alternateColorSchema = z.optional(colorSchema);
2447
+ schemaRegistry.add(alternateColorSchema, {
2448
+ description: "The alternate brand specific color of the workspace"
2449
+ });
2450
+ var accentColorSchema = z.optional(colorSchema);
2451
+ schemaRegistry.add(accentColorSchema, {
2452
+ description: "The secondary brand specific color of the workspace"
2453
+ });
2454
+ var linkColorSchema = z._default(colorSchema, "#3fa6ff");
2455
+ schemaRegistry.add(linkColorSchema, {
2456
+ description: "The color used to display hyperlink text"
2457
+ });
2458
+ var helpColorSchema = z._default(colorSchema, "#818cf8");
2459
+ schemaRegistry.add(helpColorSchema, {
2460
+ description: "The second brand specific color of the workspace"
2461
+ });
2462
+ var successColorSchema = z._default(colorSchema, "#45b27e");
2463
+ schemaRegistry.add(successColorSchema, {
2464
+ description: "The success color of the workspace"
2465
+ });
2466
+ var infoColorSchema = z._default(colorSchema, "#38bdf8");
2467
+ schemaRegistry.add(infoColorSchema, {
2468
+ description: "The informational color of the workspace"
2469
+ });
2470
+ var warningColorSchema = z._default(colorSchema, "#f3d371");
2471
+ schemaRegistry.add(warningColorSchema, {
2472
+ description: "The warning color of the workspace"
2473
+ });
2474
+ var dangerColorSchema = z._default(colorSchema, "#d8314a");
2475
+ schemaRegistry.add(dangerColorSchema, {
2476
+ description: "The danger color of the workspace"
2477
+ });
2478
+ var fatalColorSchema = z.optional(colorSchema);
2479
+ schemaRegistry.add(fatalColorSchema, {
2480
+ description: "The fatal color of the workspace"
2481
+ });
2482
+ var positiveColorSchema = z._default(colorSchema, "#4ade80");
2483
+ schemaRegistry.add(positiveColorSchema, {
2484
+ description: "The positive number color of the workspace"
2485
+ });
2486
+ var negativeColorSchema = z._default(colorSchema, "#ef4444");
2487
+ schemaRegistry.add(negativeColorSchema, {
2488
+ description: "The negative number color of the workspace"
2489
+ });
2490
+ var gradientStopsSchema = z.optional(z.array(colorSchema));
2491
+ schemaRegistry.add(gradientStopsSchema, {
2492
+ description: "The color stops for the base gradient color pattern used in the workspace"
2493
+ });
2494
+ var darkColorsSchema = z.object({
2495
+ foreground: lightColorSchema,
2496
+ background: darkColorSchema,
2497
+ brand: brandColorSchema,
2498
+ alternate: alternateColorSchema,
2499
+ accent: accentColorSchema,
2500
+ link: linkColorSchema,
2501
+ help: helpColorSchema,
2502
+ success: successColorSchema,
2503
+ info: infoColorSchema,
2504
+ warning: warningColorSchema,
2505
+ danger: dangerColorSchema,
2506
+ fatal: fatalColorSchema,
2507
+ positive: positiveColorSchema,
2508
+ negative: negativeColorSchema,
2509
+ gradient: gradientStopsSchema
2510
+ });
2511
+ var lightColorsSchema = z.object({
2512
+ foreground: darkColorSchema,
2513
+ background: lightColorSchema,
2514
+ brand: brandColorSchema,
2515
+ alternate: alternateColorSchema,
2516
+ accent: accentColorSchema,
2517
+ link: linkColorSchema,
2518
+ help: helpColorSchema,
2519
+ success: successColorSchema,
2520
+ info: infoColorSchema,
2521
+ warning: warningColorSchema,
2522
+ danger: dangerColorSchema,
2523
+ fatal: fatalColorSchema,
2524
+ positive: positiveColorSchema,
2525
+ negative: negativeColorSchema,
2526
+ gradient: gradientStopsSchema
2527
+ });
2528
+ var multiColorsSchema = z.object({
2529
+ dark: darkColorsSchema,
2530
+ light: lightColorsSchema
2531
+ });
2532
+ var singleColorsSchema = z.object({
2533
+ dark: darkColorSchema,
2534
+ light: lightColorSchema,
2535
+ brand: brandColorSchema,
2536
+ alternate: alternateColorSchema,
2537
+ accent: accentColorSchema,
2538
+ link: linkColorSchema,
2539
+ help: helpColorSchema,
2540
+ success: successColorSchema,
2541
+ info: infoColorSchema,
2542
+ warning: warningColorSchema,
2543
+ danger: dangerColorSchema,
2544
+ fatal: fatalColorSchema,
2545
+ positive: positiveColorSchema,
2546
+ negative: negativeColorSchema,
2547
+ gradient: gradientStopsSchema
2548
+ });
2549
+ var registryUrlConfigSchema = z.optional(z.url());
2550
+ schemaRegistry.add(registryUrlConfigSchema, {
2551
+ description: "A remote registry URL used to publish distributable packages"
2552
+ });
2553
+ var registrySchema = z._default(
2554
+ z.object({
2555
+ github: registryUrlConfigSchema,
2556
+ npm: registryUrlConfigSchema,
2557
+ cargo: registryUrlConfigSchema,
2558
+ cyclone: registryUrlConfigSchema,
2559
+ container: registryUrlConfigSchema
2560
+ }),
2561
+ {}
2562
+ );
2563
+ schemaRegistry.add(registrySchema, {
2564
+ description: "A list of remote registry URLs used by Storm Software"
2565
+ });
2566
+ var colorsSchema = z.union([singleColorsSchema, multiColorsSchema]);
2567
+ schemaRegistry.add(colorsSchema, {
2568
+ description: "Colors used for various workspace elements"
2569
+ });
2570
+ var themeColorsSchema = z.record(
2571
+ z.union([z.union([z.literal("base"), z.string()]), z.string()]),
2572
+ colorsSchema
2573
+ );
2574
+ schemaRegistry.add(themeColorsSchema, {
2575
+ description: "Storm theme config values used for styling various package elements"
2576
+ });
2577
+ var extendsSchema = z.optional(
2578
+ z.union([z.string().check(z.trim()), z.array(z.string().check(z.trim()))])
2579
+ );
2580
+ schemaRegistry.add(extendsSchema, {
2581
+ 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."
2582
+ });
2583
+ var workspaceBotNameSchema = z.string().check(z.trim());
2584
+ schemaRegistry.add(workspaceBotNameSchema, {
2585
+ description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
2586
+ });
2587
+ var workspaceBotEmailSchema = z.string().check(z.trim());
2588
+ schemaRegistry.add(workspaceBotEmailSchema, {
2589
+ description: "The email of the workspace bot"
2590
+ });
2591
+ var workspaceBotSchema = z.object({
2592
+ name: workspaceBotNameSchema,
2593
+ email: workspaceBotEmailSchema
2594
+ });
2595
+ schemaRegistry.add(workspaceBotSchema, {
2596
+ description: "The workspace's bot user's config used to automated various operations tasks"
2597
+ });
2598
+ var workspaceReleaseBannerUrlSchema = z.optional(
2599
+ z.string().check(z.trim(), z.url())
2600
+ );
2601
+ schemaRegistry.add(workspaceReleaseBannerUrlSchema, {
2602
+ description: "A URL to a banner image used to display the workspace's release"
2603
+ });
2604
+ var workspaceReleaseBannerAltSchema = z._default(
2605
+ z.string().check(z.trim()),
2606
+ STORM_DEFAULT_BANNER_ALT
2607
+ );
2608
+ schemaRegistry.add(workspaceReleaseBannerAltSchema, {
2609
+ description: "The alt text for the workspace's release banner image"
2610
+ });
2611
+ var workspaceReleaseBannerSchema = z.object({
2612
+ url: workspaceReleaseBannerUrlSchema,
2613
+ alt: workspaceReleaseBannerAltSchema
2614
+ });
2615
+ schemaRegistry.add(workspaceReleaseBannerSchema, {
2616
+ description: "The workspace's banner image used during the release process"
2617
+ });
2618
+ var workspaceReleaseHeaderSchema = z.optional(
2619
+ z.string().check(z.trim())
2433
2620
  );
2434
- var BrandColorSchema = ColorSchema.default("#1fb2a6").describe(
2435
- "The primary brand specific color of the workspace"
2621
+ schemaRegistry.add(workspaceReleaseHeaderSchema, {
2622
+ description: "A header message appended to the start of the workspace's release notes"
2623
+ });
2624
+ var workspaceReleaseFooterSchema = z.optional(
2625
+ z.string().check(z.trim())
2626
+ );
2627
+ schemaRegistry.add(workspaceReleaseFooterSchema, {
2628
+ description: "A footer message appended to the end of the workspace's release notes"
2629
+ });
2630
+ var workspaceReleaseSchema = z.object({
2631
+ banner: z.union([
2632
+ workspaceReleaseBannerSchema,
2633
+ z.string().check(z.trim(), z.url())
2634
+ ]),
2635
+ header: workspaceReleaseHeaderSchema,
2636
+ footer: workspaceReleaseFooterSchema
2637
+ });
2638
+ schemaRegistry.add(workspaceReleaseSchema, {
2639
+ description: "The workspace's release config used during the release process"
2640
+ });
2641
+ var workspaceSocialsTwitterSchema = z.optional(
2642
+ z.string().check(z.trim())
2643
+ );
2644
+ schemaRegistry.add(workspaceSocialsTwitterSchema, {
2645
+ description: "A Twitter/X account associated with the organization/project"
2646
+ });
2647
+ var workspaceSocialsDiscordSchema = z.optional(
2648
+ z.string().check(z.trim())
2649
+ );
2650
+ schemaRegistry.add(workspaceSocialsDiscordSchema, {
2651
+ description: "A Discord account associated with the organization/project"
2652
+ });
2653
+ var workspaceSocialsTelegramSchema = z.optional(
2654
+ z.string().check(z.trim())
2655
+ );
2656
+ schemaRegistry.add(workspaceSocialsTelegramSchema, {
2657
+ description: "A Telegram account associated with the organization/project"
2658
+ });
2659
+ var workspaceSocialsSlackSchema = z.optional(
2660
+ z.string().check(z.trim())
2661
+ );
2662
+ schemaRegistry.add(workspaceSocialsSlackSchema, {
2663
+ description: "A Slack account associated with the organization/project"
2664
+ });
2665
+ var workspaceSocialsMediumSchema = z.optional(
2666
+ z.string().check(z.trim())
2436
2667
  );
2437
- var AlternateColorSchema = ColorSchema.optional().describe(
2438
- "The alternate brand specific color of the workspace"
2668
+ schemaRegistry.add(workspaceSocialsMediumSchema, {
2669
+ description: "A Medium account associated with the organization/project"
2670
+ });
2671
+ var workspaceSocialsGithubSchema = z.optional(
2672
+ z.string().check(z.trim())
2439
2673
  );
2440
- var AccentColorSchema = ColorSchema.optional().describe(
2441
- "The secondary brand specific color of the workspace"
2674
+ schemaRegistry.add(workspaceSocialsGithubSchema, {
2675
+ description: "A GitHub account associated with the organization/project"
2676
+ });
2677
+ var workspaceSocialsSchema = z.object({
2678
+ twitter: workspaceSocialsTwitterSchema,
2679
+ discord: workspaceSocialsDiscordSchema,
2680
+ telegram: workspaceSocialsTelegramSchema,
2681
+ slack: workspaceSocialsSlackSchema,
2682
+ medium: workspaceSocialsMediumSchema,
2683
+ github: workspaceSocialsGithubSchema
2684
+ });
2685
+ schemaRegistry.add(workspaceSocialsSchema, {
2686
+ description: "The workspace's account config used to store various social media links"
2687
+ });
2688
+ var workspaceDirectoryCacheSchema = z.optional(
2689
+ z.string().check(z.trim())
2442
2690
  );
2443
- var LinkColorSchema = ColorSchema.default("#3fa6ff").describe(
2444
- "The color used to display hyperlink text"
2691
+ schemaRegistry.add(workspaceDirectoryCacheSchema, {
2692
+ description: "The directory used to store the environment's cached file data"
2693
+ });
2694
+ var workspaceDirectoryDataSchema = z.optional(
2695
+ z.string().check(z.trim())
2445
2696
  );
2446
- var HelpColorSchema = ColorSchema.default("#818cf8").describe(
2447
- "The second brand specific color of the workspace"
2697
+ schemaRegistry.add(workspaceDirectoryDataSchema, {
2698
+ description: "The directory used to store the environment's data files"
2699
+ });
2700
+ var workspaceDirectoryConfigSchema = z.optional(
2701
+ z.string().check(z.trim())
2448
2702
  );
2449
- var SuccessColorSchema = ColorSchema.default("#45b27e").describe(
2450
- "The success color of the workspace"
2703
+ schemaRegistry.add(workspaceDirectoryConfigSchema, {
2704
+ description: "The directory used to store the environment's configuration files"
2705
+ });
2706
+ var workspaceDirectoryTempSchema = z.optional(
2707
+ z.string().check(z.trim())
2451
2708
  );
2452
- var InfoColorSchema = ColorSchema.default("#38bdf8").describe(
2453
- "The informational color of the workspace"
2709
+ schemaRegistry.add(workspaceDirectoryTempSchema, {
2710
+ description: "The directory used to store the environment's temp files"
2711
+ });
2712
+ var workspaceDirectoryLogSchema = z.optional(
2713
+ z.string().check(z.trim())
2454
2714
  );
2455
- var WarningColorSchema = ColorSchema.default("#f3d371").describe(
2456
- "The warning color of the workspace"
2715
+ schemaRegistry.add(workspaceDirectoryLogSchema, {
2716
+ description: "The directory used to store the environment's log files"
2717
+ });
2718
+ var workspaceDirectoryBuildSchema = z._default(
2719
+ z.string().check(z.trim()),
2720
+ "dist"
2457
2721
  );
2458
- var DangerColorSchema = ColorSchema.default("#d8314a").describe(
2459
- "The danger color of the workspace"
2722
+ schemaRegistry.add(workspaceDirectoryBuildSchema, {
2723
+ description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
2724
+ });
2725
+ var workspaceDirectorySchema = z.object({
2726
+ cache: workspaceDirectoryCacheSchema,
2727
+ data: workspaceDirectoryDataSchema,
2728
+ config: workspaceDirectoryConfigSchema,
2729
+ temp: workspaceDirectoryTempSchema,
2730
+ log: workspaceDirectoryLogSchema,
2731
+ build: workspaceDirectoryBuildSchema
2732
+ });
2733
+ schemaRegistry.add(workspaceDirectorySchema, {
2734
+ description: "Various directories used by the workspace to store data, cache, and configuration files"
2735
+ });
2736
+ var errorCodesFileSchema = z._default(
2737
+ z.string().check(z.trim()),
2738
+ STORM_DEFAULT_ERROR_CODES_FILE
2460
2739
  );
2461
- var FatalColorSchema = ColorSchema.optional().describe(
2462
- "The fatal color of the workspace"
2740
+ schemaRegistry.add(errorCodesFileSchema, {
2741
+ description: "The path to the workspace's error codes JSON file"
2742
+ });
2743
+ var errorUrlSchema = z.optional(z.url());
2744
+ schemaRegistry.add(errorUrlSchema, {
2745
+ description: "A URL to a page that looks up the workspace's error messages given a specific error code"
2746
+ });
2747
+ var errorSchema = z.object({
2748
+ codesFile: errorCodesFileSchema,
2749
+ url: errorUrlSchema
2750
+ });
2751
+ schemaRegistry.add(errorSchema, {
2752
+ description: "The workspace's error config used when creating error details during a system error"
2753
+ });
2754
+ var organizationNameSchema = z.optional(
2755
+ z.string().check(z.trim(), z.toLowerCase())
2463
2756
  );
2464
- var PositiveColorSchema = ColorSchema.default("#4ade80").describe(
2465
- "The positive number color of the workspace"
2757
+ schemaRegistry.add(organizationNameSchema, {
2758
+ description: "The name of the organization"
2759
+ });
2760
+ var organizationDescriptionSchema = z.optional(
2761
+ z.string().check(z.trim())
2466
2762
  );
2467
- var NegativeColorSchema = ColorSchema.default("#ef4444").describe(
2468
- "The negative number color of the workspace"
2763
+ schemaRegistry.add(organizationDescriptionSchema, {
2764
+ description: "A description of the organization"
2765
+ });
2766
+ var organizationLogoSchema = z.optional(z.url());
2767
+ schemaRegistry.add(organizationLogoSchema, {
2768
+ description: "A URL to the organization's logo image"
2769
+ });
2770
+ var organizationIconSchema = z.optional(z.url());
2771
+ schemaRegistry.add(organizationIconSchema, {
2772
+ description: "A URL to the organization's icon image"
2773
+ });
2774
+ var organizationUrlSchema = z.optional(z.url());
2775
+ schemaRegistry.add(organizationUrlSchema, {
2776
+ description: "A URL to a page that provides more information about the organization"
2777
+ });
2778
+ var organizationSchema = z.object({
2779
+ name: organizationNameSchema,
2780
+ description: organizationDescriptionSchema,
2781
+ logo: organizationLogoSchema,
2782
+ icon: organizationIconSchema,
2783
+ url: organizationUrlSchema
2784
+ });
2785
+ schemaRegistry.add(organizationSchema, {
2786
+ description: "The workspace's organization details"
2787
+ });
2788
+ var schemaNameSchema = z._default(
2789
+ z.string().check(z.trim(), z.toLowerCase()),
2790
+ "https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
2469
2791
  );
2470
- var GradientStopsSchema = z.array(ColorSchema).optional().describe(
2471
- "The color stops for the base gradient color pattern used in the workspace"
2792
+ schemaRegistry.add(schemaNameSchema, {
2793
+ description: "The URL or file path to the JSON schema file that describes the Storm configuration file"
2794
+ });
2795
+ var nameSchema = z.string().check(z.trim(), z.toLowerCase());
2796
+ schemaRegistry.add(nameSchema, {
2797
+ description: "The name of the workspace/project/service/package/scope using this configuration"
2798
+ });
2799
+ var namespaceSchema = z.string().check(z.trim(), z.toLowerCase());
2800
+ schemaRegistry.add(namespaceSchema, {
2801
+ description: "The namespace of the workspace/project/service/package/scope using this configuration"
2802
+ });
2803
+ var orgSchema = z.union([
2804
+ organizationSchema,
2805
+ z.string().check(z.trim(), z.toLowerCase())
2806
+ ]);
2807
+ schemaRegistry.add(orgSchema, {
2808
+ description: "The organization of the workspace. This can be a string or an object containing the organization's details"
2809
+ });
2810
+ var repositorySchema = z.string().check(z.trim(), z.toLowerCase());
2811
+ schemaRegistry.add(repositorySchema, {
2812
+ description: "The repo URL of the workspace (i.e. the GitHub repository URL)"
2813
+ });
2814
+ var licenseSchema = z._default(
2815
+ z.string().check(z.trim()),
2816
+ "Apache-2.0"
2472
2817
  );
2473
- var DarkThemeColorConfigSchema = z.object({
2474
- foreground: LightColorSchema,
2475
- background: DarkColorSchema,
2476
- brand: BrandColorSchema,
2477
- alternate: AlternateColorSchema,
2478
- accent: AccentColorSchema,
2479
- link: LinkColorSchema,
2480
- help: HelpColorSchema,
2481
- success: SuccessColorSchema,
2482
- info: InfoColorSchema,
2483
- warning: WarningColorSchema,
2484
- danger: DangerColorSchema,
2485
- fatal: FatalColorSchema,
2486
- positive: PositiveColorSchema,
2487
- negative: NegativeColorSchema,
2488
- gradient: GradientStopsSchema
2818
+ schemaRegistry.add(licenseSchema, {
2819
+ description: "The license type of the package"
2820
+ });
2821
+ var homepageSchema = z.optional(z.url());
2822
+ schemaRegistry.add(homepageSchema, {
2823
+ description: "The homepage of the workspace"
2824
+ });
2825
+ var docsSchema = z.optional(z.url());
2826
+ schemaRegistry.add(docsSchema, {
2827
+ description: "The documentation site for the workspace"
2489
2828
  });
2490
- var LightThemeColorConfigSchema = z.object({
2491
- foreground: DarkColorSchema,
2492
- background: LightColorSchema,
2493
- brand: BrandColorSchema,
2494
- alternate: AlternateColorSchema,
2495
- accent: AccentColorSchema,
2496
- link: LinkColorSchema,
2497
- help: HelpColorSchema,
2498
- success: SuccessColorSchema,
2499
- info: InfoColorSchema,
2500
- warning: WarningColorSchema,
2501
- danger: DangerColorSchema,
2502
- fatal: FatalColorSchema,
2503
- positive: PositiveColorSchema,
2504
- negative: NegativeColorSchema,
2505
- gradient: GradientStopsSchema
2829
+ var portalSchema = z.optional(z.url());
2830
+ schemaRegistry.add(portalSchema, {
2831
+ description: "The development portal site for the workspace"
2506
2832
  });
2507
- var MultiThemeColorConfigSchema = z.object({
2508
- dark: DarkThemeColorConfigSchema,
2509
- light: LightThemeColorConfigSchema
2833
+ var licensingSchema = z.optional(z.url());
2834
+ schemaRegistry.add(licensingSchema, {
2835
+ description: "The licensing site for the workspace"
2510
2836
  });
2511
- var SingleThemeColorConfigSchema = z.object({
2512
- dark: DarkColorSchema,
2513
- light: LightColorSchema,
2514
- brand: BrandColorSchema,
2515
- alternate: AlternateColorSchema,
2516
- accent: AccentColorSchema,
2517
- link: LinkColorSchema,
2518
- help: HelpColorSchema,
2519
- success: SuccessColorSchema,
2520
- info: InfoColorSchema,
2521
- warning: WarningColorSchema,
2522
- danger: DangerColorSchema,
2523
- fatal: FatalColorSchema,
2524
- positive: PositiveColorSchema,
2525
- negative: NegativeColorSchema,
2526
- gradient: GradientStopsSchema
2837
+ var contactSchema = z.optional(z.url());
2838
+ schemaRegistry.add(contactSchema, {
2839
+ description: "The contact site for the workspace"
2527
2840
  });
2528
- var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
2529
- var RegistryConfigSchema = z.object({
2530
- github: RegistryUrlConfigSchema,
2531
- npm: RegistryUrlConfigSchema,
2532
- cargo: RegistryUrlConfigSchema,
2533
- cyclone: RegistryUrlConfigSchema,
2534
- container: RegistryUrlConfigSchema
2535
- }).default({}).describe("A list of remote registry URLs used by Storm Software");
2536
- var ColorConfigSchema = SingleThemeColorConfigSchema.or(
2537
- MultiThemeColorConfigSchema
2538
- ).describe("Colors used for various workspace elements");
2539
- var ColorConfigMapSchema = z.record(
2540
- z.union([z.literal("base"), z.string()]),
2541
- ColorConfigSchema
2841
+ var supportSchema = z.optional(z.url());
2842
+ schemaRegistry.add(supportSchema, {
2843
+ description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
2844
+ });
2845
+ var branchSchema = z._default(
2846
+ z.string().check(z.trim(), z.toLowerCase()),
2847
+ "main"
2542
2848
  );
2543
- var ExtendsItemSchema = z.string().trim().describe(
2544
- "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."
2849
+ schemaRegistry.add(branchSchema, {
2850
+ description: "The branch of the workspace"
2851
+ });
2852
+ var preidSchema = z.optional(
2853
+ z.string().check(z.trim(), z.toLowerCase())
2545
2854
  );
2546
- var ExtendsSchema = ExtendsItemSchema.or(
2547
- z.array(ExtendsItemSchema)
2548
- ).describe(
2549
- "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."
2855
+ schemaRegistry.add(preidSchema, {
2856
+ description: "A tag specifying the version pre-release identifier"
2857
+ });
2858
+ var ownerSchema = z.optional(
2859
+ z.string().check(z.trim(), z.toLowerCase())
2550
2860
  );
2551
- var WorkspaceBotConfigSchema = z.object({
2552
- name: z.string().trim().default("stormie-bot").describe(
2553
- "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
2554
- ),
2555
- email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
2556
- }).describe(
2557
- "The workspace's bot user's config used to automated various operations tasks"
2861
+ schemaRegistry.add(ownerSchema, {
2862
+ description: "The owner of the package"
2863
+ });
2864
+ var modeSchema = z._default(
2865
+ z.enum(["development", "staging", "production"]).check(z.trim(), z.toLowerCase()),
2866
+ "production"
2867
+ );
2868
+ schemaRegistry.add(modeSchema, {
2869
+ description: "The current runtime environment mode for the package"
2870
+ });
2871
+ var workspaceRootSchema = z.string().check(z.trim(), z.toLowerCase());
2872
+ schemaRegistry.add(workspaceRootSchema, {
2873
+ description: "The root directory of the workspace"
2874
+ });
2875
+ var skipCacheSchema = z._default(z.boolean(), false);
2876
+ schemaRegistry.add(skipCacheSchema, {
2877
+ description: "Should all known types of workspace caching be skipped?"
2878
+ });
2879
+ var packageManagerSchema = z._default(
2880
+ z.enum(["npm", "yarn", "pnpm", "bun"]),
2881
+ "npm"
2558
2882
  );
2559
- var WorkspaceReleaseConfigSchema = z.object({
2560
- banner: z.string().trim().optional().describe(
2561
- "A URL to a banner image used to display the workspace's release"
2562
- ),
2563
- header: z.string().trim().optional().describe(
2564
- "A header message appended to the start of the workspace's release notes"
2565
- ),
2566
- footer: z.string().trim().optional().describe(
2567
- "A footer message appended to the end of the workspace's release notes"
2568
- )
2569
- }).describe("The workspace's release config used during the release process");
2570
- var WorkspaceSocialsConfigSchema = z.object({
2571
- twitter: z.string().trim().default(STORM_DEFAULT_SOCIAL_TWITTER).describe("A Twitter/X account associated with the organization/project"),
2572
- discord: z.string().trim().default(STORM_DEFAULT_SOCIAL_DISCORD).describe("A Discord account associated with the organization/project"),
2573
- telegram: z.string().trim().default(STORM_DEFAULT_SOCIAL_TELEGRAM).describe("A Telegram account associated with the organization/project"),
2574
- slack: z.string().trim().default(STORM_DEFAULT_SOCIAL_SLACK).describe("A Slack account associated with the organization/project"),
2575
- medium: z.string().trim().default(STORM_DEFAULT_SOCIAL_MEDIUM).describe("A Medium account associated with the organization/project"),
2576
- github: z.string().trim().default(STORM_DEFAULT_SOCIAL_GITHUB).describe("A GitHub account associated with the organization/project")
2577
- }).describe(
2578
- "The workspace's account config used to store various social media links"
2883
+ schemaRegistry.add(packageManagerSchema, {
2884
+ description: "The JavaScript/TypeScript package manager used by the repository"
2885
+ });
2886
+ var timezoneSchema = z._default(
2887
+ z.string().check(z.trim(), z.toLowerCase()),
2888
+ "America/New_York"
2579
2889
  );
2580
- var WorkspaceDirectoryConfigSchema = z.object({
2581
- cache: z.string().trim().optional().describe(
2582
- "The directory used to store the environment's cached file data"
2583
- ),
2584
- data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
2585
- config: z.string().trim().optional().describe(
2586
- "The directory used to store the environment's configuration files"
2587
- ),
2588
- temp: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
2589
- log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
2590
- build: z.string().trim().default("dist").describe(
2591
- "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
2592
- )
2593
- }).describe(
2594
- "Various directories used by the workspace to store data, cache, and configuration files"
2890
+ schemaRegistry.add(timezoneSchema, {
2891
+ description: "The default timezone of the workspace"
2892
+ });
2893
+ var localeSchema = z._default(
2894
+ z.string().check(z.trim(), z.toLowerCase()),
2895
+ "en-US"
2595
2896
  );
2596
- var errorConfigSchema = z.object({
2597
- codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
2598
- url: z.url().optional().describe(
2599
- "A URL to a page that looks up the workspace's error messages given a specific error code"
2600
- )
2601
- }).describe("The workspace's error config used during the error process");
2602
- var organizationConfigSchema = z.object({
2603
- name: z.string().trim().describe("The name of the organization"),
2604
- description: z.string().trim().optional().describe("A description of the organization"),
2605
- logo: z.url().optional().describe("A URL to the organization's logo image"),
2606
- icon: z.url().optional().describe("A URL to the organization's icon image"),
2607
- url: z.url().optional().describe(
2608
- "A URL to a page that provides more information about the organization"
2609
- )
2610
- }).describe("The workspace's organization details");
2611
- var stormWorkspaceConfigSchema = z.object({
2612
- $schema: z.string().trim().default(
2613
- "https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
2614
- ).describe(
2615
- "The URL or file path to the JSON schema file that describes the Storm configuration file"
2616
- ),
2617
- extends: ExtendsSchema.optional(),
2618
- name: z.string().trim().toLowerCase().optional().describe(
2619
- "The name of the service/package/scope using this configuration"
2620
- ),
2621
- namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
2622
- organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
2623
- "The organization of the workspace. This can be a string or an object containing the organization's details"
2624
- ),
2625
- repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
2626
- license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
2627
- homepage: z.url().optional().describe("The homepage of the workspace"),
2628
- docs: z.url().optional().describe("The documentation site for the workspace"),
2629
- portal: z.url().optional().describe("The development portal site for the workspace"),
2630
- licensing: z.url().optional().describe("The licensing site for the workspace"),
2631
- contact: z.url().optional().describe("The contact site for the workspace"),
2632
- support: z.url().optional().describe(
2633
- "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
2634
- ),
2635
- branch: z.string().trim().default("main").describe("The branch of the workspace"),
2636
- preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
2637
- owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
2638
- bot: WorkspaceBotConfigSchema,
2639
- release: WorkspaceReleaseConfigSchema,
2640
- socials: WorkspaceSocialsConfigSchema,
2641
- error: errorConfigSchema,
2642
- mode: z.string().trim().default("production").describe("The current runtime environment mode for the package"),
2643
- workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
2644
- skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
2645
- directories: WorkspaceDirectoryConfigSchema,
2646
- packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
2647
- "The JavaScript/TypeScript package manager used by the repository"
2648
- ),
2649
- timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
2650
- locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
2651
- logLevel: z.enum([
2897
+ schemaRegistry.add(localeSchema, {
2898
+ description: "The default locale of the workspace"
2899
+ });
2900
+ var logLevelSchema = z._default(
2901
+ z.enum([
2652
2902
  "silent",
2653
2903
  "fatal",
2654
2904
  "error",
@@ -2658,23 +2908,65 @@ var stormWorkspaceConfigSchema = z.object({
2658
2908
  "debug",
2659
2909
  "trace",
2660
2910
  "all"
2661
- ]).default("info").describe(
2662
- "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`)."
2663
- ),
2664
- skipConfigLogging: z.boolean().optional().describe(
2665
- "Should the logging of the current Storm Workspace configuration be skipped?"
2666
- ),
2667
- registry: RegistryConfigSchema,
2668
- configFile: z.string().trim().nullable().default(null).describe(
2669
- "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
2670
- ),
2671
- colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
2672
- "Storm theme config values used for styling various package elements"
2673
- ),
2674
- extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
2675
- }).describe(
2676
- "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."
2911
+ ]),
2912
+ "info"
2677
2913
  );
2914
+ schemaRegistry.add(logLevelSchema, {
2915
+ 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`)."
2916
+ });
2917
+ var skipConfigLoggingSchema = z._default(z.boolean(), true);
2918
+ schemaRegistry.add(skipConfigLoggingSchema, {
2919
+ description: "Should the logging of the current Storm Workspace configuration be skipped?"
2920
+ });
2921
+ var configFileSchema = z._default(
2922
+ z.nullable(z.string().check(z.trim())),
2923
+ null
2924
+ );
2925
+ schemaRegistry.add(configFileSchema, {
2926
+ description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
2927
+ });
2928
+ var extensionsSchema = z._default(z.record(z.string(), z.any()), {});
2929
+ schemaRegistry.add(extensionsSchema, {
2930
+ description: "Configuration of each used extension"
2931
+ });
2932
+ var workspaceConfigSchema = z.object({
2933
+ $schema: schemaNameSchema,
2934
+ extends: extendsSchema,
2935
+ name: nameSchema,
2936
+ namespace: namespaceSchema,
2937
+ organization: orgSchema,
2938
+ repository: repositorySchema,
2939
+ license: licenseSchema,
2940
+ homepage: homepageSchema,
2941
+ docs: docsSchema,
2942
+ portal: portalSchema,
2943
+ licensing: licensingSchema,
2944
+ contact: contactSchema,
2945
+ support: supportSchema,
2946
+ branch: branchSchema,
2947
+ preid: preidSchema,
2948
+ owner: ownerSchema,
2949
+ bot: workspaceBotSchema,
2950
+ release: workspaceReleaseSchema,
2951
+ socials: workspaceSocialsSchema,
2952
+ error: errorSchema,
2953
+ mode: modeSchema,
2954
+ workspaceRoot: workspaceRootSchema,
2955
+ skipCache: skipCacheSchema,
2956
+ directories: workspaceDirectorySchema,
2957
+ packageManager: packageManagerSchema,
2958
+ timezone: timezoneSchema,
2959
+ locale: localeSchema,
2960
+ logLevel: logLevelSchema,
2961
+ skipConfigLogging: skipConfigLoggingSchema,
2962
+ registry: registrySchema,
2963
+ configFile: configFileSchema,
2964
+ colors: z.union([colorsSchema, themeColorsSchema]),
2965
+ extensions: extensionsSchema
2966
+ });
2967
+ schemaRegistry.add(extensionsSchema, {
2968
+ 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."
2969
+ });
2678
2970
 
2679
2971
  // ../config/src/types.ts
2680
2972
  init_esm_shims();
@@ -2889,7 +3181,10 @@ var getConfigEnv = () => {
2889
3181
  email: process.env[`${prefix}BOT_EMAIL`] || void 0
2890
3182
  },
2891
3183
  release: {
2892
- banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
3184
+ banner: {
3185
+ url: process.env[`${prefix}RELEASE_BANNER_URL`] || void 0,
3186
+ alt: process.env[`${prefix}RELEASE_BANNER_ALT`] || void 0
3187
+ },
2893
3188
  header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
2894
3189
  footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
2895
3190
  },
@@ -2966,11 +3261,11 @@ var getConfigEnv = () => {
2966
3261
  );
2967
3262
  config2.colors = themeNames.length > 0 ? themeNames.reduce(
2968
3263
  (ret, themeName) => {
2969
- ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
3264
+ ret[themeName] = getThemeColorsEnv(prefix, themeName);
2970
3265
  return ret;
2971
3266
  },
2972
3267
  {}
2973
- ) : getThemeColorConfigEnv(prefix);
3268
+ ) : getThemeColorsEnv(prefix);
2974
3269
  if (config2.docs === STORM_DEFAULT_DOCS) {
2975
3270
  if (config2.homepage === STORM_DEFAULT_HOMEPAGE) {
2976
3271
  config2.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config2.name}/docs`;
@@ -2997,11 +3292,11 @@ var getConfigEnv = () => {
2997
3292
  }
2998
3293
  return config2;
2999
3294
  };
3000
- var getThemeColorConfigEnv = (prefix, theme) => {
3295
+ var getThemeColorsEnv = (prefix, theme) => {
3001
3296
  const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
3002
- return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
3297
+ return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorsEnv(prefix + themeName) : getSingleThemeColorsEnv(prefix + themeName);
3003
3298
  };
3004
- var getSingleThemeColorConfigEnv = (prefix) => {
3299
+ var getSingleThemeColorsEnv = (prefix) => {
3005
3300
  const gradient = [];
3006
3301
  if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
3007
3302
  gradient.push(
@@ -3033,15 +3328,13 @@ var getSingleThemeColorConfigEnv = (prefix) => {
3033
3328
  gradient
3034
3329
  };
3035
3330
  };
3036
- var getMultiThemeColorConfigEnv = (prefix) => {
3331
+ var getMultiThemeColorsEnv = (prefix) => {
3037
3332
  return {
3038
- light: getBaseThemeColorConfigEnv(
3039
- `${prefix}_LIGHT_`
3040
- ),
3041
- dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
3333
+ light: getBaseThemeColorsEnv(`${prefix}_LIGHT_`),
3334
+ dark: getBaseThemeColorsEnv(`${prefix}_DARK_`)
3042
3335
  };
3043
3336
  };
3044
- var getBaseThemeColorConfigEnv = (prefix) => {
3337
+ var getBaseThemeColorsEnv = (prefix) => {
3045
3338
  const gradient = [];
3046
3339
  if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
3047
3340
  gradient.push(
@@ -3121,7 +3414,16 @@ var setConfigEnv = (config2) => {
3121
3414
  process.env[`${prefix}ERROR_URL`] = config2.error.url;
3122
3415
  }
3123
3416
  if (config2.release) {
3124
- process.env[`${prefix}RELEASE_BANNER`] = config2.release.banner;
3417
+ if (config2.release.banner) {
3418
+ if (typeof config2.release.banner === "string") {
3419
+ process.env[`${prefix}RELEASE_BANNER`] = config2.release.banner;
3420
+ process.env[`${prefix}RELEASE_BANNER_URL`] = config2.release.banner;
3421
+ } else {
3422
+ process.env[`${prefix}RELEASE_BANNER`] = config2.release.banner.url;
3423
+ process.env[`${prefix}RELEASE_BANNER_URL`] = config2.release.banner.url;
3424
+ process.env[`${prefix}RELEASE_BANNER_ALT`] = config2.release.banner.alt;
3425
+ }
3426
+ }
3125
3427
  process.env[`${prefix}RELEASE_HEADER`] = config2.release.header;
3126
3428
  process.env[`${prefix}RELEASE_FOOTER`] = config2.release.footer;
3127
3429
  }
@@ -3264,10 +3566,10 @@ var setConfigEnv = (config2) => {
3264
3566
  }
3265
3567
  if (config2.colors?.base?.light || config2.colors?.base?.dark) {
3266
3568
  for (const key of Object.keys(config2.colors)) {
3267
- setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config2.colors[key]);
3569
+ setThemeColorsEnv(`${prefix}COLOR_${key}_`, config2.colors[key]);
3268
3570
  }
3269
3571
  } else {
3270
- setThemeColorConfigEnv(
3572
+ setThemeColorsEnv(
3271
3573
  `${prefix}COLOR_`,
3272
3574
  config2.colors
3273
3575
  );
@@ -3322,10 +3624,10 @@ var setConfigEnv = (config2) => {
3322
3624
  }
3323
3625
  }
3324
3626
  };
3325
- var setThemeColorConfigEnv = (prefix, config2) => {
3326
- return config2?.light?.brand || config2?.dark?.brand ? setMultiThemeColorConfigEnv(prefix, config2) : setSingleThemeColorConfigEnv(prefix, config2);
3627
+ var setThemeColorsEnv = (prefix, config2) => {
3628
+ return config2?.light?.brand || config2?.dark?.brand ? setMultiThemeColorsEnv(prefix, config2) : setSingleThemeColorsEnv(prefix, config2);
3327
3629
  };
3328
- var setSingleThemeColorConfigEnv = (prefix, config2) => {
3630
+ var setSingleThemeColorsEnv = (prefix, config2) => {
3329
3631
  if (config2.dark) {
3330
3632
  process.env[`${prefix}DARK`] = config2.dark;
3331
3633
  }
@@ -3374,13 +3676,13 @@ var setSingleThemeColorConfigEnv = (prefix, config2) => {
3374
3676
  }
3375
3677
  }
3376
3678
  };
3377
- var setMultiThemeColorConfigEnv = (prefix, config2) => {
3679
+ var setMultiThemeColorsEnv = (prefix, config2) => {
3378
3680
  return {
3379
- light: setBaseThemeColorConfigEnv(`${prefix}LIGHT_`, config2.light),
3380
- dark: setBaseThemeColorConfigEnv(`${prefix}DARK_`, config2.dark)
3681
+ light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config2.light),
3682
+ dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config2.dark)
3381
3683
  };
3382
3684
  };
3383
- var setBaseThemeColorConfigEnv = (prefix, config2) => {
3685
+ var setBaseThemeColorsEnv = (prefix, config2) => {
3384
3686
  if (config2.foreground) {
3385
3687
  process.env[`${prefix}FOREGROUND`] = config2.foreground;
3386
3688
  }
@@ -3461,7 +3763,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
3461
3763
  );
3462
3764
  try {
3463
3765
  result = applyDefaultConfig(
3464
- await stormWorkspaceConfigSchema.parseAsync(configInput)
3766
+ await workspaceConfigSchema.parseAsync(configInput)
3465
3767
  );
3466
3768
  result.workspaceRoot ??= _workspaceRoot;
3467
3769
  } catch (error) {
package/dist/types.d.ts CHANGED
@@ -14241,7 +14241,6 @@ type PrettierPrettier = []|[{
14241
14241
  fileInfoOptions?: {
14242
14242
  [k: string]: unknown | undefined
14243
14243
  }
14244
- [k: string]: unknown | undefined
14245
14244
  }]
14246
14245
  // ----- quote-props -----
14247
14246
  type QuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  banner_plugin_default
3
- } from "../chunk-ELC2P47N.js";
4
- import "../chunk-X23CTXJC.js";
3
+ } from "../chunk-URESQVUQ.js";
4
+ import "../chunk-2PBILQLV.js";
5
5
  import "../chunk-FYHJSIQT.js";
6
6
  import "../chunk-ECVSHAMX.js";
7
7
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getFileBanner
3
- } from "../chunk-X23CTXJC.js";
3
+ } from "../chunk-2PBILQLV.js";
4
4
  import "../chunk-FYHJSIQT.js";
5
5
  import "../chunk-ECVSHAMX.js";
6
6
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.161.1",
3
+ "version": "0.162.0",
4
4
  "type": "module",
5
5
  "description": "A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {
@@ -162,8 +162,8 @@
162
162
  "@eslint/eslintrc": "^3.3.1",
163
163
  "@eslint/markdown": "^6.6.0",
164
164
  "@nx/eslint-plugin": "^21.3.10",
165
- "@storm-software/config": "^1.127.1",
166
- "@storm-software/config-tools": "^1.179.1",
165
+ "@storm-software/config": "^1.128.0",
166
+ "@storm-software/config-tools": "^1.180.0",
167
167
  "@stylistic/eslint-plugin": "^4.4.1",
168
168
  "@typescript-eslint/eslint-plugin": "^8.35.0",
169
169
  "@typescript-eslint/parser": "^8.35.0",
@@ -189,7 +189,7 @@
189
189
  "eslint-plugin-paths": "^1.1.0",
190
190
  "eslint-plugin-perfectionist": "^4.15.0",
191
191
  "eslint-plugin-pnpm": "0.3.0",
192
- "eslint-plugin-prettier": "^5.5.3",
192
+ "eslint-plugin-prettier": "^5.5.4",
193
193
  "eslint-plugin-regexp": "^2.9.1",
194
194
  "eslint-plugin-toml": "^0.12.0",
195
195
  "eslint-plugin-tsdoc": "0.4.0",
@@ -237,5 +237,5 @@
237
237
  },
238
238
  "publishConfig": { "access": "public" },
239
239
  "sideEffects": false,
240
- "gitHead": "e98f9f2645646b8bc1842cb3626e3defb604472f"
240
+ "gitHead": "6a6dd784f46be577947b206ab5e38654a85140e2"
241
241
  }