@storm-software/config 1.99.4 → 1.99.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.99.5 (2025-01-23)
2
+
3
+ ### Miscellaneous
4
+
5
+ - **monorepo:** Regenerate README markdown files ([eb629846](https://github.com/storm-software/storm-ops/commit/eb629846))
6
+
1
7
  ## 1.99.4 (2025-01-23)
2
8
 
3
9
  ### Bug Fixes
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-1.99.3-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-1.99.4-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 -->
@@ -0,0 +1,10 @@
1
+ import {
2
+ __name
3
+ } from "./chunk-SHUYVCID.js";
4
+
5
+ // src/define-config.ts
6
+ var defineConfig = /* @__PURE__ */ __name((input) => input, "defineConfig");
7
+
8
+ export {
9
+ defineConfig
10
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/constants.ts
2
+ var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
3
+ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
4
+ var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
5
+ var STORM_DEFAULT_LICENSE = "Apache-2.0";
6
+
7
+
8
+
9
+
10
+
11
+
12
+ exports.STORM_DEFAULT_DOCS = STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSING = STORM_DEFAULT_LICENSING; exports.STORM_DEFAULT_LICENSE = STORM_DEFAULT_LICENSE;
@@ -0,0 +1,166 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
+
3
+
4
+
5
+ var _chunkAVMOBJJQcjs = require('./chunk-AVMOBJJQ.cjs');
6
+
7
+ // src/schema.ts
8
+ var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
9
+ var DarkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
10
+ var LightColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
11
+ var BrandColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
12
+ var AlternateColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
13
+ var AccentColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
14
+ var LinkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
15
+ var HelpColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
16
+ var SuccessColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
17
+ var InfoColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
18
+ var WarningColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
19
+ var DangerColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
20
+ var FatalColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
21
+ var PositiveColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
22
+ var NegativeColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
23
+ var DarkThemeColorConfigSchema = _zod2.default.object({
24
+ foreground: LightColorSchema,
25
+ background: DarkColorSchema,
26
+ brand: BrandColorSchema,
27
+ alternate: AlternateColorSchema,
28
+ accent: AccentColorSchema,
29
+ link: LinkColorSchema,
30
+ help: HelpColorSchema,
31
+ success: SuccessColorSchema,
32
+ info: InfoColorSchema,
33
+ warning: WarningColorSchema,
34
+ danger: DangerColorSchema,
35
+ fatal: FatalColorSchema,
36
+ positive: PositiveColorSchema,
37
+ negative: NegativeColorSchema
38
+ });
39
+ var LightThemeColorConfigSchema = _zod2.default.object({
40
+ foreground: DarkColorSchema,
41
+ background: LightColorSchema,
42
+ brand: BrandColorSchema,
43
+ alternate: AlternateColorSchema,
44
+ accent: AccentColorSchema,
45
+ link: LinkColorSchema,
46
+ help: HelpColorSchema,
47
+ success: SuccessColorSchema,
48
+ info: InfoColorSchema,
49
+ warning: WarningColorSchema,
50
+ danger: DangerColorSchema,
51
+ fatal: FatalColorSchema,
52
+ positive: PositiveColorSchema,
53
+ negative: NegativeColorSchema
54
+ });
55
+ var MultiThemeColorConfigSchema = _zod2.default.object({
56
+ dark: DarkThemeColorConfigSchema,
57
+ light: LightThemeColorConfigSchema
58
+ });
59
+ var SingleThemeColorConfigSchema = _zod2.default.object({
60
+ dark: DarkColorSchema,
61
+ light: LightColorSchema,
62
+ brand: BrandColorSchema,
63
+ alternate: AlternateColorSchema,
64
+ accent: AccentColorSchema,
65
+ link: LinkColorSchema,
66
+ help: HelpColorSchema,
67
+ success: SuccessColorSchema,
68
+ info: InfoColorSchema,
69
+ warning: WarningColorSchema,
70
+ danger: DangerColorSchema,
71
+ fatal: FatalColorSchema,
72
+ positive: PositiveColorSchema,
73
+ negative: NegativeColorSchema
74
+ });
75
+ var RegistryUrlConfigSchema = _zod2.default.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
76
+ var RegistryConfigSchema = _zod2.default.object({
77
+ github: RegistryUrlConfigSchema,
78
+ npm: RegistryUrlConfigSchema,
79
+ cargo: RegistryUrlConfigSchema,
80
+ cyclone: RegistryUrlConfigSchema,
81
+ container: RegistryUrlConfigSchema
82
+ }).default({}).describe("A list of remote registry URLs used by Storm Software");
83
+ var ColorConfigSchema = SingleThemeColorConfigSchema.or(MultiThemeColorConfigSchema).describe("Colors used for various workspace elements");
84
+ var ColorConfigMapSchema = _zod2.default.union([
85
+ _zod2.default.object({
86
+ "base": ColorConfigSchema
87
+ }),
88
+ _zod2.default.record(_zod2.default.string(), ColorConfigSchema)
89
+ ]);
90
+ var ExtendsItemSchema = _zod2.default.string().trim().describe("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.");
91
+ var ExtendsSchema = ExtendsItemSchema.or(_zod2.default.array(ExtendsItemSchema)).describe("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.");
92
+ var WorkspaceBotConfigSchema = _zod2.default.object({
93
+ name: _zod2.default.string().trim().default("Stormie-Bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
94
+ email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
95
+ }).describe("The workspace's bot user's config used to automated various operations tasks");
96
+ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
97
+ cache: _zod2.default.string().trim().optional().describe("The directory used to store the environment's cached file data"),
98
+ data: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
99
+ config: _zod2.default.string().trim().optional().describe("The directory used to store the environment's configuration files"),
100
+ temp: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
101
+ log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
102
+ build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
103
+ }).describe("Various directories used by the workspace to store data, cache, and configuration files");
104
+ var StormConfigSchema = _zod2.default.object({
105
+ $schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
106
+ extends: ExtendsSchema.optional(),
107
+ name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
108
+ namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
109
+ organization: _zod2.default.string().trim().default("storm-software").describe("The organization of the workspace"),
110
+ repository: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
111
+ license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
112
+ homepage: _zod2.default.string().trim().url().default(_chunkAVMOBJJQcjs.STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
113
+ docs: _zod2.default.string().trim().url().default(_chunkAVMOBJJQcjs.STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
114
+ licensing: _zod2.default.string().trim().url().default(_chunkAVMOBJJQcjs.STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
115
+ branch: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
116
+ preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
117
+ owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
118
+ bot: WorkspaceBotConfigSchema,
119
+ env: _zod2.default.enum([
120
+ "development",
121
+ "staging",
122
+ "production"
123
+ ]).default("production").describe("The current runtime environment name for the package"),
124
+ workspaceRoot: _zod2.default.string().trim().default("").describe("The root directory of the workspace"),
125
+ externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
126
+ skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
127
+ directories: WorkspaceDirectoryConfigSchema,
128
+ packageManager: _zod2.default.enum([
129
+ "npm",
130
+ "yarn",
131
+ "pnpm",
132
+ "bun"
133
+ ]).default("npm").describe("The JavaScript/TypeScript package manager used by the repository"),
134
+ timezone: _zod2.default.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
135
+ locale: _zod2.default.string().trim().default("en-US").describe("The default locale of the workspace"),
136
+ logLevel: _zod2.default.enum([
137
+ "silent",
138
+ "fatal",
139
+ "error",
140
+ "warn",
141
+ "success",
142
+ "info",
143
+ "debug",
144
+ "trace",
145
+ "all"
146
+ ]).default("info").describe("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`)."),
147
+ registry: RegistryConfigSchema,
148
+ configFile: _zod2.default.string().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),
149
+ colors: ColorConfigSchema.or(ColorConfigMapSchema).describe("Storm theme config values used for styling various package elements"),
150
+ extensions: _zod2.default.record(_zod2.default.any()).optional().default({}).describe("Configuration of each used extension")
151
+ }).describe("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.");
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+ exports.DarkThemeColorConfigSchema = DarkThemeColorConfigSchema; exports.LightThemeColorConfigSchema = LightThemeColorConfigSchema; exports.MultiThemeColorConfigSchema = MultiThemeColorConfigSchema; exports.SingleThemeColorConfigSchema = SingleThemeColorConfigSchema; exports.RegistryUrlConfigSchema = RegistryUrlConfigSchema; exports.RegistryConfigSchema = RegistryConfigSchema; exports.ColorConfigSchema = ColorConfigSchema; exports.ColorConfigMapSchema = ColorConfigMapSchema; exports.ExtendsSchema = ExtendsSchema; exports.WorkspaceBotConfigSchema = WorkspaceBotConfigSchema; exports.WorkspaceDirectoryConfigSchema = WorkspaceDirectoryConfigSchema; exports.StormConfigSchema = StormConfigSchema;
@@ -0,0 +1,22 @@
1
+ // src/types.ts
2
+ var COLOR_KEYS = [
3
+ "dark",
4
+ "light",
5
+ "base",
6
+ "brand",
7
+ "alternate",
8
+ "accent",
9
+ "link",
10
+ "success",
11
+ "help",
12
+ "info",
13
+ "warning",
14
+ "danger",
15
+ "fatal",
16
+ "positive",
17
+ "negative"
18
+ ];
19
+
20
+ export {
21
+ COLOR_KEYS
22
+ };
@@ -0,0 +1,12 @@
1
+ // src/constants.ts
2
+ var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
3
+ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
4
+ var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
5
+ var STORM_DEFAULT_LICENSE = "Apache-2.0";
6
+
7
+ export {
8
+ STORM_DEFAULT_DOCS,
9
+ STORM_DEFAULT_HOMEPAGE,
10
+ STORM_DEFAULT_LICENSING,
11
+ STORM_DEFAULT_LICENSE
12
+ };
@@ -0,0 +1,6 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
4
+ export {
5
+ __name
6
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
4
+
5
+ // src/define-config.ts
6
+ var defineConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (input) => input, "defineConfig");
7
+
8
+
9
+
10
+ exports.defineConfig = defineConfig;
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
4
+
5
+
6
+ exports.__name = __name;
@@ -0,0 +1,166 @@
1
+ import {
2
+ STORM_DEFAULT_DOCS,
3
+ STORM_DEFAULT_HOMEPAGE,
4
+ STORM_DEFAULT_LICENSING
5
+ } from "./chunk-PQYQEEST.js";
6
+
7
+ // src/schema.ts
8
+ import z from "zod";
9
+ var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
10
+ var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
11
+ var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
12
+ var AlternateColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
13
+ var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
14
+ var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
15
+ var HelpColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
16
+ var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
17
+ var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
18
+ var WarningColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
19
+ var DangerColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
20
+ var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
21
+ var PositiveColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
22
+ var NegativeColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
23
+ var DarkThemeColorConfigSchema = z.object({
24
+ foreground: LightColorSchema,
25
+ background: DarkColorSchema,
26
+ brand: BrandColorSchema,
27
+ alternate: AlternateColorSchema,
28
+ accent: AccentColorSchema,
29
+ link: LinkColorSchema,
30
+ help: HelpColorSchema,
31
+ success: SuccessColorSchema,
32
+ info: InfoColorSchema,
33
+ warning: WarningColorSchema,
34
+ danger: DangerColorSchema,
35
+ fatal: FatalColorSchema,
36
+ positive: PositiveColorSchema,
37
+ negative: NegativeColorSchema
38
+ });
39
+ var LightThemeColorConfigSchema = z.object({
40
+ foreground: DarkColorSchema,
41
+ background: LightColorSchema,
42
+ brand: BrandColorSchema,
43
+ alternate: AlternateColorSchema,
44
+ accent: AccentColorSchema,
45
+ link: LinkColorSchema,
46
+ help: HelpColorSchema,
47
+ success: SuccessColorSchema,
48
+ info: InfoColorSchema,
49
+ warning: WarningColorSchema,
50
+ danger: DangerColorSchema,
51
+ fatal: FatalColorSchema,
52
+ positive: PositiveColorSchema,
53
+ negative: NegativeColorSchema
54
+ });
55
+ var MultiThemeColorConfigSchema = z.object({
56
+ dark: DarkThemeColorConfigSchema,
57
+ light: LightThemeColorConfigSchema
58
+ });
59
+ var SingleThemeColorConfigSchema = z.object({
60
+ dark: DarkColorSchema,
61
+ light: LightColorSchema,
62
+ brand: BrandColorSchema,
63
+ alternate: AlternateColorSchema,
64
+ accent: AccentColorSchema,
65
+ link: LinkColorSchema,
66
+ help: HelpColorSchema,
67
+ success: SuccessColorSchema,
68
+ info: InfoColorSchema,
69
+ warning: WarningColorSchema,
70
+ danger: DangerColorSchema,
71
+ fatal: FatalColorSchema,
72
+ positive: PositiveColorSchema,
73
+ negative: NegativeColorSchema
74
+ });
75
+ var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
76
+ var RegistryConfigSchema = z.object({
77
+ github: RegistryUrlConfigSchema,
78
+ npm: RegistryUrlConfigSchema,
79
+ cargo: RegistryUrlConfigSchema,
80
+ cyclone: RegistryUrlConfigSchema,
81
+ container: RegistryUrlConfigSchema
82
+ }).default({}).describe("A list of remote registry URLs used by Storm Software");
83
+ var ColorConfigSchema = SingleThemeColorConfigSchema.or(MultiThemeColorConfigSchema).describe("Colors used for various workspace elements");
84
+ var ColorConfigMapSchema = z.union([
85
+ z.object({
86
+ "base": ColorConfigSchema
87
+ }),
88
+ z.record(z.string(), ColorConfigSchema)
89
+ ]);
90
+ var ExtendsItemSchema = z.string().trim().describe("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.");
91
+ var ExtendsSchema = ExtendsItemSchema.or(z.array(ExtendsItemSchema)).describe("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.");
92
+ var WorkspaceBotConfigSchema = z.object({
93
+ name: z.string().trim().default("Stormie-Bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
94
+ email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
95
+ }).describe("The workspace's bot user's config used to automated various operations tasks");
96
+ var WorkspaceDirectoryConfigSchema = z.object({
97
+ cache: z.string().trim().optional().describe("The directory used to store the environment's cached file data"),
98
+ data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
99
+ config: z.string().trim().optional().describe("The directory used to store the environment's configuration files"),
100
+ temp: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
101
+ log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
102
+ build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
103
+ }).describe("Various directories used by the workspace to store data, cache, and configuration files");
104
+ var StormConfigSchema = z.object({
105
+ $schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
106
+ extends: ExtendsSchema.optional(),
107
+ name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
108
+ namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
109
+ organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
110
+ repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
111
+ license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
112
+ homepage: z.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
113
+ docs: z.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
114
+ licensing: z.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
115
+ branch: z.string().trim().default("main").describe("The branch of the workspace"),
116
+ preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
117
+ owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
118
+ bot: WorkspaceBotConfigSchema,
119
+ env: z.enum([
120
+ "development",
121
+ "staging",
122
+ "production"
123
+ ]).default("production").describe("The current runtime environment name for the package"),
124
+ workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
125
+ externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
126
+ skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
127
+ directories: WorkspaceDirectoryConfigSchema,
128
+ packageManager: z.enum([
129
+ "npm",
130
+ "yarn",
131
+ "pnpm",
132
+ "bun"
133
+ ]).default("npm").describe("The JavaScript/TypeScript package manager used by the repository"),
134
+ timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
135
+ locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
136
+ logLevel: z.enum([
137
+ "silent",
138
+ "fatal",
139
+ "error",
140
+ "warn",
141
+ "success",
142
+ "info",
143
+ "debug",
144
+ "trace",
145
+ "all"
146
+ ]).default("info").describe("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`)."),
147
+ registry: RegistryConfigSchema,
148
+ configFile: z.string().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),
149
+ colors: ColorConfigSchema.or(ColorConfigMapSchema).describe("Storm theme config values used for styling various package elements"),
150
+ extensions: z.record(z.any()).optional().default({}).describe("Configuration of each used extension")
151
+ }).describe("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.");
152
+
153
+ export {
154
+ DarkThemeColorConfigSchema,
155
+ LightThemeColorConfigSchema,
156
+ MultiThemeColorConfigSchema,
157
+ SingleThemeColorConfigSchema,
158
+ RegistryUrlConfigSchema,
159
+ RegistryConfigSchema,
160
+ ColorConfigSchema,
161
+ ColorConfigMapSchema,
162
+ ExtendsSchema,
163
+ WorkspaceBotConfigSchema,
164
+ WorkspaceDirectoryConfigSchema,
165
+ StormConfigSchema
166
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/types.ts
2
+ var COLOR_KEYS = [
3
+ "dark",
4
+ "light",
5
+ "base",
6
+ "brand",
7
+ "alternate",
8
+ "accent",
9
+ "link",
10
+ "success",
11
+ "help",
12
+ "info",
13
+ "warning",
14
+ "danger",
15
+ "fatal",
16
+ "positive",
17
+ "negative"
18
+ ];
19
+
20
+
21
+
22
+ exports.COLOR_KEYS = COLOR_KEYS;
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunkAVMOBJJQcjs = require('./chunk-AVMOBJJQ.cjs');
7
+ require('./chunk-USNT2KNT.cjs');
8
+
9
+
10
+
11
+
12
+
13
+ exports.STORM_DEFAULT_DOCS = _chunkAVMOBJJQcjs.STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = _chunkAVMOBJJQcjs.STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSE = _chunkAVMOBJJQcjs.STORM_DEFAULT_LICENSE; exports.STORM_DEFAULT_LICENSING = _chunkAVMOBJJQcjs.STORM_DEFAULT_LICENSING;
@@ -0,0 +1,6 @@
1
+ declare const STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
2
+ declare const STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
3
+ declare const STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
4
+ declare const STORM_DEFAULT_LICENSE = "Apache-2.0";
5
+
6
+ export { STORM_DEFAULT_DOCS, STORM_DEFAULT_HOMEPAGE, STORM_DEFAULT_LICENSE, STORM_DEFAULT_LICENSING };
@@ -0,0 +1,6 @@
1
+ declare const STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
2
+ declare const STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
3
+ declare const STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
4
+ declare const STORM_DEFAULT_LICENSE = "Apache-2.0";
5
+
6
+ export { STORM_DEFAULT_DOCS, STORM_DEFAULT_HOMEPAGE, STORM_DEFAULT_LICENSE, STORM_DEFAULT_LICENSING };
@@ -0,0 +1,13 @@
1
+ import {
2
+ STORM_DEFAULT_DOCS,
3
+ STORM_DEFAULT_HOMEPAGE,
4
+ STORM_DEFAULT_LICENSE,
5
+ STORM_DEFAULT_LICENSING
6
+ } from "./chunk-PQYQEEST.js";
7
+ import "./chunk-SHUYVCID.js";
8
+ export {
9
+ STORM_DEFAULT_DOCS,
10
+ STORM_DEFAULT_HOMEPAGE,
11
+ STORM_DEFAULT_LICENSE,
12
+ STORM_DEFAULT_LICENSING
13
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkSNJKI2QWcjs = require('./chunk-SNJKI2QW.cjs');
4
+ require('./chunk-USNT2KNT.cjs');
5
+
6
+
7
+ exports.defineConfig = _chunkSNJKI2QWcjs.defineConfig;