@storm-software/config 1.22.0 → 1.23.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/CHANGELOG.md CHANGED
@@ -1,3 +1,26 @@
1
+ ## 1.23.1 (2024-06-05)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **eslint:** Resolve issue with missing dependencies ([b0f43454](https://github.com/storm-software/storm-ops/commit/b0f43454))
7
+
8
+ ## 1.23.0 (2024-06-03)
9
+
10
+
11
+ ### 🚀 Features
12
+
13
+ - **config:** Added the `registry` configuration node ([708668a4](https://github.com/storm-software/storm-ops/commit/708668a4))
14
+
15
+ - **config:** Updates to Storm config JSON schema file ([5075774d](https://github.com/storm-software/storm-ops/commit/5075774d))
16
+
17
+ ## 1.22.1 (2024-06-03)
18
+
19
+
20
+ ### 🩹 Fixes
21
+
22
+ - **git-tools:** Resolved issue with import in markdown formatter ([5e3963de](https://github.com/storm-software/storm-ops/commit/5e3963de))
23
+
1
24
  ## 1.22.0 (2024-06-02)
2
25
 
3
26
 
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.22.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
24
+ [![Version](https://img.shields.io/badge/version-1.23.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
25
25
  [![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 docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&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)
26
26
 
27
27
  > [!IMPORTANT]
@@ -37,9 +37,11 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
37
37
 
38
38
  # Storm Configuration Package
39
39
 
40
- A package containing the definition and Zod validation schema for the custom workspace configuration used by the Storm Software organization.
40
+ A package containing the definition and Zod validation schema for the custom
41
+ workspace configuration used by the Storm Software organization.
41
42
 
42
- Below is a list of the available configuration values that can be set through environment variables:
43
+ Below is a list of the available configuration values that can be set through
44
+ environment variables:
43
45
 
44
46
  | Name | Description | Default |
45
47
  | ----------------------- | -------------------------------------------------------------------------------------- | --------------------------- |
@@ -93,11 +95,15 @@ yarn add -D @storm-software/config
93
95
 
94
96
  ## Reduced Package Size
95
97
 
96
- This project uses [tsup](https://tsup.egoist.dev/) to package the source code due to its ability to remove unused code and ship smaller javascript files thanks to code splitting. This helps to greatly reduce the size of the package and to make it easier to use in other projects.
98
+ This project uses [tsup](https://tsup.egoist.dev/) to package the source code
99
+ due to its ability to remove unused code and ship smaller javascript files
100
+ thanks to code splitting. This helps to greatly reduce the size of the package
101
+ and to make it easier to use in other projects.
97
102
 
98
103
  ## Development
99
104
 
100
- This project is built using [Nx](https://nx.dev). As a result, many of the usual commands are available to assist in development.
105
+ This project is built using [Nx](https://nx.dev). As a result, many of the usual
106
+ commands are available to assist in development.
101
107
 
102
108
  ### Building
103
109
 
package/index.cjs CHANGED
@@ -25,6 +25,8 @@ __export(src_exports, {
25
25
  DarkThemeColorConfigSchema: () => DarkThemeColorConfigSchema,
26
26
  LightThemeColorConfigSchema: () => LightThemeColorConfigSchema,
27
27
  MultiThemeColorConfigSchema: () => MultiThemeColorConfigSchema,
28
+ RegistryConfigSchema: () => RegistryConfigSchema,
29
+ RegistryUrlConfigSchema: () => RegistryUrlConfigSchema,
28
30
  SingleThemeColorConfigSchema: () => SingleThemeColorConfigSchema,
29
31
  StormConfigSchema: () => StormConfigSchema,
30
32
  defineConfig: () => defineConfig
@@ -3996,6 +3998,13 @@ var SingleThemeColorConfigSchema = z.object({
3996
3998
  error: ErrorColorSchema,
3997
3999
  fatal: FatalColorSchema
3998
4000
  });
4001
+ var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
4002
+ var RegistryConfigSchema = z.object({
4003
+ github: RegistryUrlConfigSchema,
4004
+ npm: RegistryUrlConfigSchema,
4005
+ cargo: RegistryUrlConfigSchema,
4006
+ cyclone: RegistryUrlConfigSchema
4007
+ }).describe("A list of remote registry URLs used by Storm Software");
3999
4008
  var ColorConfigSchema = SingleThemeColorConfigSchema.or(
4000
4009
  MultiThemeColorConfigSchema
4001
4010
  ).describe("Colors used for various workspace elements");
@@ -4051,6 +4060,7 @@ var StormConfigSchema = z.object({
4051
4060
  "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`)."
4052
4061
  ),
4053
4062
  cloudflareAccountId: z.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
4063
+ registry: RegistryConfigSchema,
4054
4064
  configFile: z.string().trim().nullable().default(null).describe(
4055
4065
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
4056
4066
  ),
package/index.js CHANGED
@@ -3963,6 +3963,13 @@ var SingleThemeColorConfigSchema = z.object({
3963
3963
  error: ErrorColorSchema,
3964
3964
  fatal: FatalColorSchema
3965
3965
  });
3966
+ var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
3967
+ var RegistryConfigSchema = z.object({
3968
+ github: RegistryUrlConfigSchema,
3969
+ npm: RegistryUrlConfigSchema,
3970
+ cargo: RegistryUrlConfigSchema,
3971
+ cyclone: RegistryUrlConfigSchema
3972
+ }).describe("A list of remote registry URLs used by Storm Software");
3966
3973
  var ColorConfigSchema = SingleThemeColorConfigSchema.or(
3967
3974
  MultiThemeColorConfigSchema
3968
3975
  ).describe("Colors used for various workspace elements");
@@ -4018,6 +4025,7 @@ var StormConfigSchema = z.object({
4018
4025
  "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`)."
4019
4026
  ),
4020
4027
  cloudflareAccountId: z.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
4028
+ registry: RegistryConfigSchema,
4021
4029
  configFile: z.string().trim().nullable().default(null).describe(
4022
4030
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
4023
4031
  ),
@@ -4052,6 +4060,8 @@ export {
4052
4060
  DarkThemeColorConfigSchema,
4053
4061
  LightThemeColorConfigSchema,
4054
4062
  MultiThemeColorConfigSchema,
4063
+ RegistryConfigSchema,
4064
+ RegistryUrlConfigSchema,
4055
4065
  SingleThemeColorConfigSchema,
4056
4066
  StormConfigSchema,
4057
4067
  defineConfig
package/meta.cjs.json CHANGED
@@ -1 +1 @@
1
- {"inputs":{"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs":{"bytes":149466,"imports":[],"format":"esm"},"packages/config/src/schema.ts":{"bytes":8760,"imports":[{"path":"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs","kind":"import-statement","original":"zod"}],"format":"esm"},"packages/config/src/types.ts":{"bytes":1890,"imports":[],"format":"esm"},"packages/config/src/define-config.ts":{"bytes":313,"imports":[],"format":"esm"},"packages/config/src/index.ts":{"bytes":311,"imports":[{"path":"packages/config/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/config/src/define-config.ts","kind":"import-statement","original":"./define-config"}],"format":"esm"}},"outputs":{"dist/packages/config/index.cjs":{"imports":[],"exports":[],"entryPoint":"packages/config/src/index.ts","inputs":{"packages/config/src/index.ts":{"bytesInOutput":569},"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs":{"bytesInOutput":116969},"packages/config/src/schema.ts":{"bytesInOutput":7251},"packages/config/src/types.ts":{"bytesInOutput":133},"packages/config/src/define-config.ts":{"bytesInOutput":37}},"bytes":125950}}}
1
+ {"inputs":{"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs":{"bytes":149466,"imports":[],"format":"esm"},"packages/config/src/schema.ts":{"bytes":9247,"imports":[{"path":"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs","kind":"import-statement","original":"zod"}],"format":"esm"},"packages/config/src/types.ts":{"bytes":1890,"imports":[],"format":"esm"},"packages/config/src/define-config.ts":{"bytes":313,"imports":[],"format":"esm"},"packages/config/src/index.ts":{"bytes":311,"imports":[{"path":"packages/config/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/config/src/define-config.ts","kind":"import-statement","original":"./define-config"}],"format":"esm"}},"outputs":{"dist/packages/config/index.cjs":{"imports":[],"exports":[],"entryPoint":"packages/config/src/index.ts","inputs":{"packages/config/src/index.ts":{"bytesInOutput":679},"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs":{"bytesInOutput":116969},"packages/config/src/schema.ts":{"bytesInOutput":7682},"packages/config/src/types.ts":{"bytesInOutput":133},"packages/config/src/define-config.ts":{"bytesInOutput":37}},"bytes":126491}}}
package/meta.esm.json CHANGED
@@ -1 +1 @@
1
- {"inputs":{"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs":{"bytes":149466,"imports":[],"format":"esm"},"packages/config/src/schema.ts":{"bytes":8760,"imports":[{"path":"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs","kind":"import-statement","original":"zod"}],"format":"esm"},"packages/config/src/types.ts":{"bytes":1890,"imports":[],"format":"esm"},"packages/config/src/define-config.ts":{"bytes":313,"imports":[],"format":"esm"},"packages/config/src/index.ts":{"bytes":311,"imports":[{"path":"packages/config/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/config/src/define-config.ts","kind":"import-statement","original":"./define-config"}],"format":"esm"}},"outputs":{"dist/packages/config/index.js":{"imports":[],"exports":["COLOR_KEYS","ColorConfigMapSchema","ColorConfigSchema","DarkThemeColorConfigSchema","LightThemeColorConfigSchema","MultiThemeColorConfigSchema","SingleThemeColorConfigSchema","StormConfigSchema","defineConfig"],"entryPoint":"packages/config/src/index.ts","inputs":{"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs":{"bytesInOutput":116969},"packages/config/src/schema.ts":{"bytesInOutput":7251},"packages/config/src/index.ts":{"bytesInOutput":0},"packages/config/src/types.ts":{"bytesInOutput":133},"packages/config/src/define-config.ts":{"bytesInOutput":37}},"bytes":124793}}}
1
+ {"inputs":{"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs":{"bytes":149466,"imports":[],"format":"esm"},"packages/config/src/schema.ts":{"bytes":9247,"imports":[{"path":"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs","kind":"import-statement","original":"zod"}],"format":"esm"},"packages/config/src/types.ts":{"bytes":1890,"imports":[],"format":"esm"},"packages/config/src/define-config.ts":{"bytes":313,"imports":[],"format":"esm"},"packages/config/src/index.ts":{"bytes":311,"imports":[{"path":"packages/config/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/config/src/define-config.ts","kind":"import-statement","original":"./define-config"}],"format":"esm"}},"outputs":{"dist/packages/config/index.js":{"imports":[],"exports":["COLOR_KEYS","ColorConfigMapSchema","ColorConfigSchema","DarkThemeColorConfigSchema","LightThemeColorConfigSchema","MultiThemeColorConfigSchema","RegistryConfigSchema","RegistryUrlConfigSchema","SingleThemeColorConfigSchema","StormConfigSchema","defineConfig"],"entryPoint":"packages/config/src/index.ts","inputs":{"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs":{"bytesInOutput":116969},"packages/config/src/schema.ts":{"bytesInOutput":7682},"packages/config/src/index.ts":{"bytesInOutput":0},"packages/config/src/types.ts":{"bytesInOutput":133},"packages/config/src/define-config.ts":{"bytesInOutput":37}},"bytes":125275}}}
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@storm-software/config",
3
- "version": "1.22.0",
4
- "private": false,
3
+ "version": "1.23.1",
5
4
  "description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
6
5
  "repository": {
7
6
  "type": "github",
8
7
  "url": "https://github.com/storm-software/storm-ops",
9
8
  "directory": "packages/config"
10
9
  },
10
+ "private": false,
11
+ "main": "./index.cjs",
12
+ "module": "./index.js",
11
13
  "exports": {
12
14
  "./package.json": "./package.json",
13
15
  "./schemas/storm.schema.json": "./schemas/storm.schema.json",
@@ -18,8 +20,6 @@
18
20
  "require": "./index.cjs"
19
21
  }
20
22
  },
21
- "main": "./index.cjs",
22
- "module": "./index.js",
23
23
  "types": "./declarations.d.ts",
24
24
  "dependencies": {
25
25
  "zod": "3.23.8"
package/presets/base.json CHANGED
@@ -11,6 +11,12 @@
11
11
  "outputDirectory": "node_modules/.storm",
12
12
  "packageManager": "pnpm",
13
13
  "externalPackagePatterns": ["@storm-software/"],
14
+ "registry": {
15
+ "github": "https://npm.pkg.github.com",
16
+ "npm": "https://registry.npmjs.org",
17
+ "cargo": "https://crates.io",
18
+ "cyclone": "https://registry.cyclone-ui.com/components"
19
+ },
14
20
  "colors": {
15
21
  "light": {
16
22
  "background": "#f4f4f5",
@@ -155,6 +155,27 @@
155
155
  "default": null,
156
156
  "description": "The default Cloudflare account ID of the workspace"
157
157
  },
158
+ "registry": {
159
+ "type": "object",
160
+ "properties": {
161
+ "github": {
162
+ "type": "string",
163
+ "format": "uri",
164
+ "description": "A remote registry URL used to publish distributable packages"
165
+ },
166
+ "npm": {
167
+ "$ref": "#/definitions/StormConfiguration/properties/registry/properties/github"
168
+ },
169
+ "cargo": {
170
+ "$ref": "#/definitions/StormConfiguration/properties/registry/properties/github"
171
+ },
172
+ "cyclone": {
173
+ "$ref": "#/definitions/StormConfiguration/properties/registry/properties/github"
174
+ }
175
+ },
176
+ "additionalProperties": false,
177
+ "description": "A list of remote registry URLs used by Storm Software"
178
+ },
158
179
  "configFile": {
159
180
  "anyOf": [
160
181
  {
@@ -367,7 +388,7 @@
367
388
  "description": "Configuration of each used extension"
368
389
  }
369
390
  },
370
- "required": ["colors"],
391
+ "required": ["registry", "colors"],
371
392
  "additionalProperties": false,
372
393
  "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."
373
394
  }