@storm-software/config 1.110.6 → 1.111.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/CHANGELOG.md +13 -0
- package/dist/{chunk-FWJ7T4PW.js → chunk-C2SK4O44.js} +2 -2
- package/dist/{chunk-4SJ57WRV.cjs → chunk-JOTT4XGW.cjs} +2 -2
- package/dist/define-config.d.cts +80 -80
- package/dist/define-config.d.ts +80 -80
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/schema.cjs +2 -2
- package/dist/schema.d.cts +633 -633
- package/dist/schema.d.ts +633 -633
- package/dist/schema.js +5 -5
- package/dist/types.d.cts +22 -6
- package/dist/types.d.ts +22 -6
- package/package.json +1 -1
- package/src/define-config.d.ts +2 -2
- package/src/schema.d.ts +1 -1
- package/src/types.d.ts +21 -5
package/dist/schema.js
CHANGED
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
RegistryConfigSchema,
|
|
9
9
|
RegistryUrlConfigSchema,
|
|
10
10
|
SingleThemeColorConfigSchema,
|
|
11
|
-
StormConfigSchema,
|
|
12
11
|
WorkspaceAccountConfigSchema,
|
|
13
12
|
WorkspaceBotConfigSchema,
|
|
14
13
|
WorkspaceDirectoryConfigSchema,
|
|
15
|
-
WorkspaceReleaseConfigSchema
|
|
16
|
-
|
|
14
|
+
WorkspaceReleaseConfigSchema,
|
|
15
|
+
stormWorkspaceConfigSchema
|
|
16
|
+
} from "./chunk-C2SK4O44.js";
|
|
17
17
|
import "./chunk-HODJMVAD.js";
|
|
18
18
|
import "./chunk-SHUYVCID.js";
|
|
19
19
|
export {
|
|
@@ -26,9 +26,9 @@ export {
|
|
|
26
26
|
RegistryConfigSchema,
|
|
27
27
|
RegistryUrlConfigSchema,
|
|
28
28
|
SingleThemeColorConfigSchema,
|
|
29
|
-
StormConfigSchema,
|
|
30
29
|
WorkspaceAccountConfigSchema,
|
|
31
30
|
WorkspaceBotConfigSchema,
|
|
32
31
|
WorkspaceDirectoryConfigSchema,
|
|
33
|
-
WorkspaceReleaseConfigSchema
|
|
32
|
+
WorkspaceReleaseConfigSchema,
|
|
33
|
+
stormWorkspaceConfigSchema
|
|
34
34
|
};
|
package/dist/types.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
import { DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema,
|
|
2
|
+
import { DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, stormWorkspaceConfigSchema } from './schema.cjs';
|
|
3
3
|
|
|
4
4
|
type DarkThemeColorConfig = z.infer<typeof DarkThemeColorConfigSchema>;
|
|
5
5
|
type DarkThemeColorConfigInput = z.input<typeof DarkThemeColorConfigSchema>;
|
|
@@ -13,13 +13,29 @@ type ColorConfig = z.infer<typeof ColorConfigSchema>;
|
|
|
13
13
|
type ColorConfigInput = z.input<typeof ColorConfigSchema>;
|
|
14
14
|
type ColorConfigMap = z.infer<typeof ColorConfigMapSchema>;
|
|
15
15
|
type ColorConfigMapInput = z.input<typeof ColorConfigMapSchema>;
|
|
16
|
-
type
|
|
17
|
-
type
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
|
|
17
|
+
type StormWorkspaceConfigInput = z.input<typeof stormWorkspaceConfigSchema>;
|
|
18
|
+
/**
|
|
19
|
+
* The Storm workspace's configuration object
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
23
|
+
*
|
|
24
|
+
* @deprecated
|
|
25
|
+
* This type is deprecated and will be removed in the next major version. Use `StormWorkspaceConfig` instead.
|
|
26
|
+
*/
|
|
27
|
+
type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
|
|
28
|
+
extensions: (TStormWorkspaceConfig["extensions"] & {
|
|
20
29
|
[extensionName in TExtensionName]: TExtensionConfig;
|
|
21
30
|
}) | NonNullable<Record<string, any>>;
|
|
22
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* The Storm workspace's configuration object
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
37
|
+
*/
|
|
38
|
+
type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
|
|
23
39
|
declare const COLOR_KEYS: string[];
|
|
24
40
|
|
|
25
|
-
export { COLOR_KEYS, type ColorConfig, type ColorConfigInput, type ColorConfigMap, type ColorConfigMapInput, type DarkThemeColorConfig, type DarkThemeColorConfigInput, type LightThemeColorConfig, type LightThemeColorConfigInput, type MultiThemeColorConfig, type MultiThemeColorConfigInput, type SingleThemeColorConfig, type SingleThemeColorConfigInput, type StormConfig, type
|
|
41
|
+
export { COLOR_KEYS, type ColorConfig, type ColorConfigInput, type ColorConfigMap, type ColorConfigMapInput, type DarkThemeColorConfig, type DarkThemeColorConfigInput, type LightThemeColorConfig, type LightThemeColorConfigInput, type MultiThemeColorConfig, type MultiThemeColorConfigInput, type SingleThemeColorConfig, type SingleThemeColorConfigInput, type StormConfig, type StormWorkspaceConfig, type StormWorkspaceConfigInput };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
import { DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema,
|
|
2
|
+
import { DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, stormWorkspaceConfigSchema } from './schema.js';
|
|
3
3
|
|
|
4
4
|
type DarkThemeColorConfig = z.infer<typeof DarkThemeColorConfigSchema>;
|
|
5
5
|
type DarkThemeColorConfigInput = z.input<typeof DarkThemeColorConfigSchema>;
|
|
@@ -13,13 +13,29 @@ type ColorConfig = z.infer<typeof ColorConfigSchema>;
|
|
|
13
13
|
type ColorConfigInput = z.input<typeof ColorConfigSchema>;
|
|
14
14
|
type ColorConfigMap = z.infer<typeof ColorConfigMapSchema>;
|
|
15
15
|
type ColorConfigMapInput = z.input<typeof ColorConfigMapSchema>;
|
|
16
|
-
type
|
|
17
|
-
type
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
|
|
17
|
+
type StormWorkspaceConfigInput = z.input<typeof stormWorkspaceConfigSchema>;
|
|
18
|
+
/**
|
|
19
|
+
* The Storm workspace's configuration object
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
23
|
+
*
|
|
24
|
+
* @deprecated
|
|
25
|
+
* This type is deprecated and will be removed in the next major version. Use `StormWorkspaceConfig` instead.
|
|
26
|
+
*/
|
|
27
|
+
type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
|
|
28
|
+
extensions: (TStormWorkspaceConfig["extensions"] & {
|
|
20
29
|
[extensionName in TExtensionName]: TExtensionConfig;
|
|
21
30
|
}) | NonNullable<Record<string, any>>;
|
|
22
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* The Storm workspace's configuration object
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
37
|
+
*/
|
|
38
|
+
type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
|
|
23
39
|
declare const COLOR_KEYS: string[];
|
|
24
40
|
|
|
25
|
-
export { COLOR_KEYS, type ColorConfig, type ColorConfigInput, type ColorConfigMap, type ColorConfigMapInput, type DarkThemeColorConfig, type DarkThemeColorConfigInput, type LightThemeColorConfig, type LightThemeColorConfigInput, type MultiThemeColorConfig, type MultiThemeColorConfigInput, type SingleThemeColorConfig, type SingleThemeColorConfigInput, type StormConfig, type
|
|
41
|
+
export { COLOR_KEYS, type ColorConfig, type ColorConfigInput, type ColorConfigMap, type ColorConfigMapInput, type DarkThemeColorConfig, type DarkThemeColorConfigInput, type LightThemeColorConfig, type LightThemeColorConfigInput, type MultiThemeColorConfig, type MultiThemeColorConfigInput, type SingleThemeColorConfig, type SingleThemeColorConfigInput, type StormConfig, type StormWorkspaceConfig, type StormWorkspaceConfigInput };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.111.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Configuration management tools and schemas for Storm Software projects, providing a standardized approach to handle project settings and presets.",
|
|
6
6
|
"repository": {
|
package/src/define-config.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { StormWorkspaceConfigInput } from "./types";
|
|
2
2
|
/**
|
|
3
3
|
* Type the config values for the current Storm workspace
|
|
4
4
|
*
|
|
5
5
|
* @param input - The config values for the current Storm workspace
|
|
6
6
|
* @returns The config values for the current Storm workspace
|
|
7
7
|
*/
|
|
8
|
-
export declare const defineConfig: (input:
|
|
8
|
+
export declare const defineConfig: (input: StormWorkspaceConfigInput) => {
|
|
9
9
|
bot: {
|
|
10
10
|
name?: string | undefined;
|
|
11
11
|
email?: string | undefined;
|
package/src/schema.d.ts
CHANGED
|
@@ -1107,7 +1107,7 @@ export declare const WorkspaceDirectoryConfigSchema: z.ZodObject<{
|
|
|
1107
1107
|
/**
|
|
1108
1108
|
* Storm Workspace config values used during various dev-ops processes. It represents the config of the entire monorepo.
|
|
1109
1109
|
*/
|
|
1110
|
-
export declare const
|
|
1110
|
+
export declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
1111
1111
|
$schema: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodString>>>>;
|
|
1112
1112
|
extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1113
1113
|
name: z.ZodOptional<z.ZodString>;
|
package/src/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type z from "zod";
|
|
2
|
-
import type { ColorConfigMapSchema, ColorConfigSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema,
|
|
2
|
+
import type { ColorConfigMapSchema, ColorConfigSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, stormWorkspaceConfigSchema } from "./schema";
|
|
3
3
|
export type DarkThemeColorConfig = z.infer<typeof DarkThemeColorConfigSchema>;
|
|
4
4
|
export type DarkThemeColorConfigInput = z.input<typeof DarkThemeColorConfigSchema>;
|
|
5
5
|
export type LightThemeColorConfig = z.infer<typeof LightThemeColorConfigSchema>;
|
|
@@ -12,12 +12,28 @@ export type ColorConfig = z.infer<typeof ColorConfigSchema>;
|
|
|
12
12
|
export type ColorConfigInput = z.input<typeof ColorConfigSchema>;
|
|
13
13
|
export type ColorConfigMap = z.infer<typeof ColorConfigMapSchema>;
|
|
14
14
|
export type ColorConfigMapInput = z.input<typeof ColorConfigMapSchema>;
|
|
15
|
-
type
|
|
16
|
-
export type
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
|
|
16
|
+
export type StormWorkspaceConfigInput = z.input<typeof stormWorkspaceConfigSchema>;
|
|
17
|
+
/**
|
|
18
|
+
* The Storm workspace's configuration object
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
22
|
+
*
|
|
23
|
+
* @deprecated
|
|
24
|
+
* This type is deprecated and will be removed in the next major version. Use `StormWorkspaceConfig` instead.
|
|
25
|
+
*/
|
|
26
|
+
export type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
|
|
27
|
+
extensions: (TStormWorkspaceConfig["extensions"] & {
|
|
19
28
|
[extensionName in TExtensionName]: TExtensionConfig;
|
|
20
29
|
}) | NonNullable<Record<string, any>>;
|
|
21
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* The Storm workspace's configuration object
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
36
|
+
*/
|
|
37
|
+
export type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
|
|
22
38
|
export declare const COLOR_KEYS: string[];
|
|
23
39
|
export {};
|