@storm-software/config 1.79.0 → 1.91.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.
@@ -5,18 +5,28 @@
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "$schema": {
8
- "type": "string",
9
- "default": "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json",
8
+ "anyOf": [
9
+ {
10
+ "anyOf": [
11
+ {
12
+ "not": {}
13
+ },
14
+ {
15
+ "type": "string",
16
+ "default": "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json"
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "type": "null"
22
+ }
23
+ ],
10
24
  "description": "The URL to the JSON schema file that describes the Storm configuration file"
11
25
  },
12
26
  "extends": {
13
27
  "type": "string",
14
28
  "description": "The path to a base JSON file to use as a configuration preset file"
15
29
  },
16
- "isRoot": {
17
- "type": "boolean",
18
- "description": "A flag indicating if the current configuration is the set in the root of the workspace"
19
- },
20
30
  "name": {
21
31
  "type": "string",
22
32
  "description": "The name of the service/package/scope using this configuration"
@@ -72,12 +82,25 @@
72
82
  "default": "@storm-software/admin",
73
83
  "description": "The owner of the package"
74
84
  },
75
- "worker": {
76
- "type": "string",
77
- "default": "Stormie-Bot",
78
- "description": "The worker of the package (this is the bot that will be used to perform various tasks)"
85
+ "bot": {
86
+ "type": "object",
87
+ "properties": {
88
+ "name": {
89
+ "type": "string",
90
+ "default": "Stormie-Bot",
91
+ "description": "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
92
+ },
93
+ "email": {
94
+ "type": "string",
95
+ "format": "email",
96
+ "default": "bot@stormsoftware.com",
97
+ "description": "The email of the workspace bot"
98
+ }
99
+ },
100
+ "additionalProperties": false,
101
+ "description": "The workspace's bot user's config used to automated various operations tasks"
79
102
  },
80
- "envName": {
103
+ "env": {
81
104
  "type": "string",
82
105
  "enum": ["development", "staging", "production"],
83
106
  "default": "production",
@@ -88,10 +111,6 @@
88
111
  "default": "",
89
112
  "description": "The root directory of the workspace"
90
113
  },
91
- "packageDirectory": {
92
- "type": "string",
93
- "description": "The root directory of the package"
94
- },
95
114
  "externalPackagePatterns": {
96
115
  "type": "array",
97
116
  "items": {
@@ -105,41 +124,37 @@
105
124
  "default": false,
106
125
  "description": "Should all known types of workspace caching be skipped?"
107
126
  },
108
- "cacheDirectory": {
109
- "type": "string",
110
- "description": "The directory used to store the environment's cached file data"
111
- },
112
- "dataDirectory": {
113
- "type": "string",
114
- "description": "The directory used to store the environment's data files"
115
- },
116
- "configDirectory": {
117
- "type": "string",
118
- "description": "The directory used to store the environment's configuration files"
119
- },
120
- "tempDirectory": {
121
- "type": "string",
122
- "description": "The directory used to store the environment's temp files"
123
- },
124
- "logDirectory": {
125
- "type": "string",
126
- "description": "The directory used to store the environment's temp files"
127
- },
128
- "buildDirectory": {
129
- "type": "string",
130
- "default": "dist",
131
- "description": "The build directory for the workspace"
132
- },
133
- "outputDirectory": {
134
- "type": "string",
135
- "default": "node_modules/.storm",
136
- "description": "The runtime directory of Storm"
137
- },
138
- "runtimeVersion": {
139
- "type": "string",
140
- "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
141
- "default": "1.0.0",
142
- "description": "The global version of the Storm runtime"
127
+ "directories": {
128
+ "type": "object",
129
+ "properties": {
130
+ "cache": {
131
+ "type": "string",
132
+ "description": "The directory used to store the environment's cached file data"
133
+ },
134
+ "data": {
135
+ "type": "string",
136
+ "description": "The directory used to store the environment's data files"
137
+ },
138
+ "config": {
139
+ "type": "string",
140
+ "description": "The directory used to store the environment's configuration files"
141
+ },
142
+ "temp": {
143
+ "type": "string",
144
+ "description": "The directory used to store the environment's temp files"
145
+ },
146
+ "log": {
147
+ "type": "string",
148
+ "description": "The directory used to store the environment's temp files"
149
+ },
150
+ "build": {
151
+ "type": "string",
152
+ "default": "dist",
153
+ "description": "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
154
+ }
155
+ },
156
+ "additionalProperties": false,
157
+ "description": "Various directories used by the workspace to store data, cache, and configuration files"
143
158
  },
144
159
  "packageManager": {
145
160
  "type": "string",
@@ -172,21 +187,6 @@
172
187
  "default": "info",
173
188
  "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`)."
174
189
  },
175
- "cloudflareAccountId": {
176
- "anyOf": [
177
- {
178
- "type": "string",
179
- "minLength": 32,
180
- "maxLength": 32,
181
- "pattern": "^([0-9a-fA-F]{32})$"
182
- },
183
- {
184
- "type": "null"
185
- }
186
- ],
187
- "default": null,
188
- "description": "The default Cloudflare account ID of the workspace"
189
- },
190
190
  "registry": {
191
191
  "type": "object",
192
192
  "properties": {
@@ -478,7 +478,7 @@
478
478
  "description": "Configuration of each used extension"
479
479
  }
480
480
  },
481
- "required": ["colors"],
481
+ "required": ["bot", "directories", "colors"],
482
482
  "additionalProperties": false,
483
483
  "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."
484
484
  }
@@ -1,3 +1,4 @@
1
1
  export declare const STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
2
2
  export declare const STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
3
3
  export declare const STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
4
+ export declare const STORM_DEFAULT_LICENSE = "Apache-2.0";
@@ -6,6 +6,18 @@ import type { StormConfigInput } from "./types";
6
6
  * @returns The config values for the current Storm workspace
7
7
  */
8
8
  export declare const defineConfig: (input: StormConfigInput) => {
9
+ bot: {
10
+ name?: string | undefined;
11
+ email?: string | undefined;
12
+ };
13
+ directories: {
14
+ cache?: string | undefined;
15
+ data?: string | undefined;
16
+ config?: string | undefined;
17
+ temp?: string | undefined;
18
+ log?: string | undefined;
19
+ build?: string | undefined;
20
+ };
9
21
  colors: {
10
22
  dark: {
11
23
  foreground?: string | undefined;
@@ -153,10 +165,9 @@ export declare const defineConfig: (input: StormConfigInput) => {
153
165
  dark?: string | undefined;
154
166
  light?: string | undefined;
155
167
  }>;
156
- $schema?: string | undefined;
157
- extends?: string | undefined;
158
- isRoot?: boolean | undefined;
159
168
  name?: string | undefined;
169
+ $schema?: string | null | undefined;
170
+ extends?: string | undefined;
160
171
  namespace?: string | undefined;
161
172
  organization?: string | undefined;
162
173
  repository?: string | undefined;
@@ -167,25 +178,14 @@ export declare const defineConfig: (input: StormConfigInput) => {
167
178
  branch?: string | undefined;
168
179
  preid?: string | undefined;
169
180
  owner?: string | undefined;
170
- worker?: string | undefined;
171
- envName?: "development" | "staging" | "production" | undefined;
181
+ env?: "development" | "staging" | "production" | undefined;
172
182
  workspaceRoot?: string | undefined;
173
- packageDirectory?: string | undefined;
174
183
  externalPackagePatterns?: string[] | undefined;
175
184
  skipCache?: boolean | undefined;
176
- cacheDirectory?: string | undefined;
177
- dataDirectory?: string | undefined;
178
- configDirectory?: string | undefined;
179
- tempDirectory?: string | undefined;
180
- logDirectory?: string | undefined;
181
- buildDirectory?: string | undefined;
182
- outputDirectory?: string | undefined;
183
- runtimeVersion?: string | undefined;
184
185
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
185
186
  timezone?: string | undefined;
186
187
  locale?: string | undefined;
187
188
  logLevel?: "info" | "fatal" | "silent" | "error" | "warn" | "debug" | "trace" | "all" | undefined;
188
- cloudflareAccountId?: string | null | undefined;
189
189
  registry?: {
190
190
  github?: string | undefined;
191
191
  npm?: string | undefined;
package/src/schema.d.ts CHANGED
@@ -1036,13 +1036,44 @@ export declare const ColorConfigMapSchema: z.ZodUnion<[z.ZodObject<{
1036
1036
  negative?: string | undefined;
1037
1037
  };
1038
1038
  }>]>>]>;
1039
+ export declare const WorkspaceBotConfigSchema: z.ZodObject<{
1040
+ name: z.ZodDefault<z.ZodString>;
1041
+ email: z.ZodDefault<z.ZodString>;
1042
+ }, "strip", z.ZodTypeAny, {
1043
+ name: string;
1044
+ email: string;
1045
+ }, {
1046
+ name?: string | undefined;
1047
+ email?: string | undefined;
1048
+ }>;
1049
+ export declare const WorkspaceDirectoryConfigSchema: z.ZodObject<{
1050
+ cache: z.ZodOptional<z.ZodString>;
1051
+ data: z.ZodOptional<z.ZodString>;
1052
+ config: z.ZodOptional<z.ZodString>;
1053
+ temp: z.ZodOptional<z.ZodString>;
1054
+ log: z.ZodOptional<z.ZodString>;
1055
+ build: z.ZodDefault<z.ZodString>;
1056
+ }, "strip", z.ZodTypeAny, {
1057
+ build: string;
1058
+ cache?: string | undefined;
1059
+ data?: string | undefined;
1060
+ config?: string | undefined;
1061
+ temp?: string | undefined;
1062
+ log?: string | undefined;
1063
+ }, {
1064
+ cache?: string | undefined;
1065
+ data?: string | undefined;
1066
+ config?: string | undefined;
1067
+ temp?: string | undefined;
1068
+ log?: string | undefined;
1069
+ build?: string | undefined;
1070
+ }>;
1039
1071
  /**
1040
1072
  * Storm Workspace config values used during various dev-ops processes. It represents the config of the entire monorepo.
1041
1073
  */
1042
1074
  export declare const StormConfigSchema: z.ZodObject<{
1043
- $schema: z.ZodDefault<z.ZodString>;
1075
+ $schema: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodString>>>>;
1044
1076
  extends: z.ZodOptional<z.ZodString>;
1045
- isRoot: z.ZodOptional<z.ZodBoolean>;
1046
1077
  name: z.ZodOptional<z.ZodString>;
1047
1078
  namespace: z.ZodOptional<z.ZodString>;
1048
1079
  organization: z.ZodDefault<z.ZodString>;
@@ -1054,25 +1085,46 @@ export declare const StormConfigSchema: z.ZodObject<{
1054
1085
  branch: z.ZodDefault<z.ZodString>;
1055
1086
  preid: z.ZodOptional<z.ZodString>;
1056
1087
  owner: z.ZodDefault<z.ZodString>;
1057
- worker: z.ZodDefault<z.ZodString>;
1058
- envName: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
1088
+ bot: z.ZodObject<{
1089
+ name: z.ZodDefault<z.ZodString>;
1090
+ email: z.ZodDefault<z.ZodString>;
1091
+ }, "strip", z.ZodTypeAny, {
1092
+ name: string;
1093
+ email: string;
1094
+ }, {
1095
+ name?: string | undefined;
1096
+ email?: string | undefined;
1097
+ }>;
1098
+ env: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
1059
1099
  workspaceRoot: z.ZodDefault<z.ZodString>;
1060
- packageDirectory: z.ZodOptional<z.ZodString>;
1061
1100
  externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1062
1101
  skipCache: z.ZodDefault<z.ZodBoolean>;
1063
- cacheDirectory: z.ZodOptional<z.ZodString>;
1064
- dataDirectory: z.ZodOptional<z.ZodString>;
1065
- configDirectory: z.ZodOptional<z.ZodString>;
1066
- tempDirectory: z.ZodOptional<z.ZodString>;
1067
- logDirectory: z.ZodOptional<z.ZodString>;
1068
- buildDirectory: z.ZodDefault<z.ZodString>;
1069
- outputDirectory: z.ZodDefault<z.ZodString>;
1070
- runtimeVersion: z.ZodDefault<z.ZodString>;
1102
+ directories: z.ZodObject<{
1103
+ cache: z.ZodOptional<z.ZodString>;
1104
+ data: z.ZodOptional<z.ZodString>;
1105
+ config: z.ZodOptional<z.ZodString>;
1106
+ temp: z.ZodOptional<z.ZodString>;
1107
+ log: z.ZodOptional<z.ZodString>;
1108
+ build: z.ZodDefault<z.ZodString>;
1109
+ }, "strip", z.ZodTypeAny, {
1110
+ build: string;
1111
+ cache?: string | undefined;
1112
+ data?: string | undefined;
1113
+ config?: string | undefined;
1114
+ temp?: string | undefined;
1115
+ log?: string | undefined;
1116
+ }, {
1117
+ cache?: string | undefined;
1118
+ data?: string | undefined;
1119
+ config?: string | undefined;
1120
+ temp?: string | undefined;
1121
+ log?: string | undefined;
1122
+ build?: string | undefined;
1123
+ }>;
1071
1124
  packageManager: z.ZodDefault<z.ZodEnum<["npm", "yarn", "pnpm", "bun"]>>;
1072
1125
  timezone: z.ZodDefault<z.ZodString>;
1073
1126
  locale: z.ZodDefault<z.ZodString>;
1074
1127
  logLevel: z.ZodDefault<z.ZodEnum<["silent", "fatal", "error", "warn", "info", "debug", "trace", "all"]>>;
1075
- cloudflareAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1076
1128
  registry: z.ZodDefault<z.ZodObject<{
1077
1129
  github: z.ZodOptional<z.ZodString>;
1078
1130
  npm: z.ZodOptional<z.ZodString>;
@@ -1810,7 +1862,6 @@ export declare const StormConfigSchema: z.ZodObject<{
1810
1862
  }>]>>]>]>;
1811
1863
  extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1812
1864
  }, "strip", z.ZodTypeAny, {
1813
- $schema: string;
1814
1865
  organization: string;
1815
1866
  license: string;
1816
1867
  homepage: string;
@@ -1818,19 +1869,26 @@ export declare const StormConfigSchema: z.ZodObject<{
1818
1869
  licensing: string;
1819
1870
  branch: string;
1820
1871
  owner: string;
1821
- worker: string;
1822
- envName: "development" | "staging" | "production";
1872
+ bot: {
1873
+ name: string;
1874
+ email: string;
1875
+ };
1876
+ env: "development" | "staging" | "production";
1823
1877
  workspaceRoot: string;
1824
1878
  externalPackagePatterns: string[];
1825
1879
  skipCache: boolean;
1826
- buildDirectory: string;
1827
- outputDirectory: string;
1828
- runtimeVersion: string;
1880
+ directories: {
1881
+ build: string;
1882
+ cache?: string | undefined;
1883
+ data?: string | undefined;
1884
+ config?: string | undefined;
1885
+ temp?: string | undefined;
1886
+ log?: string | undefined;
1887
+ };
1829
1888
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
1830
1889
  timezone: string;
1831
1890
  locale: string;
1832
1891
  logLevel: "info" | "fatal" | "silent" | "error" | "warn" | "debug" | "trace" | "all";
1833
- cloudflareAccountId: string | null;
1834
1892
  registry: {
1835
1893
  github?: string | undefined;
1836
1894
  npm?: string | undefined;
@@ -1987,19 +2045,25 @@ export declare const StormConfigSchema: z.ZodObject<{
1987
2045
  fatal?: string | undefined;
1988
2046
  }>;
1989
2047
  extensions: Record<string, any>;
1990
- extends?: string | undefined;
1991
- isRoot?: boolean | undefined;
1992
2048
  name?: string | undefined;
2049
+ $schema?: string | null | undefined;
2050
+ extends?: string | undefined;
1993
2051
  namespace?: string | undefined;
1994
2052
  repository?: string | undefined;
1995
2053
  preid?: string | undefined;
1996
- packageDirectory?: string | undefined;
1997
- cacheDirectory?: string | undefined;
1998
- dataDirectory?: string | undefined;
1999
- configDirectory?: string | undefined;
2000
- tempDirectory?: string | undefined;
2001
- logDirectory?: string | undefined;
2002
2054
  }, {
2055
+ bot: {
2056
+ name?: string | undefined;
2057
+ email?: string | undefined;
2058
+ };
2059
+ directories: {
2060
+ cache?: string | undefined;
2061
+ data?: string | undefined;
2062
+ config?: string | undefined;
2063
+ temp?: string | undefined;
2064
+ log?: string | undefined;
2065
+ build?: string | undefined;
2066
+ };
2003
2067
  colors: {
2004
2068
  dark: {
2005
2069
  foreground?: string | undefined;
@@ -2147,10 +2211,9 @@ export declare const StormConfigSchema: z.ZodObject<{
2147
2211
  dark?: string | undefined;
2148
2212
  light?: string | undefined;
2149
2213
  }>;
2150
- $schema?: string | undefined;
2151
- extends?: string | undefined;
2152
- isRoot?: boolean | undefined;
2153
2214
  name?: string | undefined;
2215
+ $schema?: string | null | undefined;
2216
+ extends?: string | undefined;
2154
2217
  namespace?: string | undefined;
2155
2218
  organization?: string | undefined;
2156
2219
  repository?: string | undefined;
@@ -2161,25 +2224,14 @@ export declare const StormConfigSchema: z.ZodObject<{
2161
2224
  branch?: string | undefined;
2162
2225
  preid?: string | undefined;
2163
2226
  owner?: string | undefined;
2164
- worker?: string | undefined;
2165
- envName?: "development" | "staging" | "production" | undefined;
2227
+ env?: "development" | "staging" | "production" | undefined;
2166
2228
  workspaceRoot?: string | undefined;
2167
- packageDirectory?: string | undefined;
2168
2229
  externalPackagePatterns?: string[] | undefined;
2169
2230
  skipCache?: boolean | undefined;
2170
- cacheDirectory?: string | undefined;
2171
- dataDirectory?: string | undefined;
2172
- configDirectory?: string | undefined;
2173
- tempDirectory?: string | undefined;
2174
- logDirectory?: string | undefined;
2175
- buildDirectory?: string | undefined;
2176
- outputDirectory?: string | undefined;
2177
- runtimeVersion?: string | undefined;
2178
2231
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
2179
2232
  timezone?: string | undefined;
2180
2233
  locale?: string | undefined;
2181
2234
  logLevel?: "info" | "fatal" | "silent" | "error" | "warn" | "debug" | "trace" | "all" | undefined;
2182
- cloudflareAccountId?: string | null | undefined;
2183
2235
  registry?: {
2184
2236
  github?: string | undefined;
2185
2237
  npm?: string | undefined;
package/presets/bun.json DELETED
@@ -1,55 +0,0 @@
1
- {
2
- "organization": "storm-software",
3
- "owner": "@storm-software/admin",
4
- "timezone": "America/New_York",
5
- "locale": "en-US",
6
- "logLevel": "info",
7
- "skipCache": false,
8
- "buildDirectory": "dist",
9
- "outputDirectory": "node_modules/.storm",
10
- "packageManager": "bun",
11
- "externalPackagePatterns": ["@storm-software/"],
12
- "registry": {
13
- "github": "https://npm.pkg.github.com",
14
- "npm": "https://registry.npmjs.org",
15
- "cargo": "https://crates.io",
16
- "cyclone": "https://registry.cyclone-ui.com/components",
17
- "container": "https://hub.docker.com"
18
- },
19
- "colors": {
20
- "light": {
21
- "background": "#fafafa",
22
- "foreground": "#1d1e22",
23
- "brand": "#1fb2a6",
24
- "alternate": "#db2777",
25
- "help": "#5C4EE5",
26
- "success": "#087f5b",
27
- "info": "#0550ae",
28
- "warning": "#e3b341",
29
- "danger": "#a40e26",
30
- "positive": "#22c55e",
31
- "negative": "#dc2626"
32
- },
33
- "dark": {
34
- "background": "#1d1e22",
35
- "foreground": "#cbd5e1",
36
- "brand": "#1fb2a6",
37
- "alternate": "#db2777",
38
- "help": "#818cf8",
39
- "success": "#12B66A",
40
- "info": "#0070E0",
41
- "warning": "#f3d371",
42
- "danger": "#D8314A",
43
- "positive": "#22c55e",
44
- "negative": "#dc2626"
45
- }
46
- },
47
- "extensions": {
48
- "telemetry": {
49
- "fileName": "storm",
50
- "fileExtension": "log",
51
- "path": "tmp/storm/logs",
52
- "stacktrace": true
53
- }
54
- }
55
- }
package/presets/pnpm.json DELETED
@@ -1,55 +0,0 @@
1
- {
2
- "organization": "storm-software",
3
- "owner": "@storm-software/admin",
4
- "timezone": "America/New_York",
5
- "locale": "en-US",
6
- "logLevel": "info",
7
- "skipCache": false,
8
- "buildDirectory": "dist",
9
- "outputDirectory": "node_modules/.storm",
10
- "packageManager": "pnpm",
11
- "externalPackagePatterns": ["@storm-software/"],
12
- "registry": {
13
- "github": "https://npm.pkg.github.com",
14
- "npm": "https://registry.npmjs.org",
15
- "cargo": "https://crates.io",
16
- "cyclone": "https://registry.cyclone-ui.com/components",
17
- "container": "https://hub.docker.com"
18
- },
19
- "colors": {
20
- "light": {
21
- "background": "#fafafa",
22
- "foreground": "#1d1e22",
23
- "brand": "#1fb2a6",
24
- "alternate": "#db2777",
25
- "help": "#5C4EE5",
26
- "success": "#087f5b",
27
- "info": "#0550ae",
28
- "warning": "#e3b341",
29
- "danger": "#a40e26",
30
- "positive": "#22c55e",
31
- "negative": "#dc2626"
32
- },
33
- "dark": {
34
- "background": "#1d1e22",
35
- "foreground": "#cbd5e1",
36
- "brand": "#1fb2a6",
37
- "alternate": "#db2777",
38
- "help": "#818cf8",
39
- "success": "#12B66A",
40
- "info": "#0070E0",
41
- "warning": "#f3d371",
42
- "danger": "#D8314A",
43
- "positive": "#22c55e",
44
- "negative": "#dc2626"
45
- }
46
- },
47
- "extensions": {
48
- "telemetry": {
49
- "fileName": "storm",
50
- "fileExtension": "log",
51
- "path": "tmp/storm/logs",
52
- "stacktrace": true
53
- }
54
- }
55
- }