@storm-software/terraform-tools 0.60.26 → 0.60.28
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 +14 -0
- package/README.md +1 -1
- package/dist/{chunk-RA7KUOBG.mjs → chunk-6MXVWOEX.mjs} +1 -1
- package/dist/{chunk-H2TR3X3B.js → chunk-CB5TC2RP.js} +2 -2
- package/dist/{chunk-DIPKER7R.js → chunk-ELCT45UM.js} +2 -2
- package/dist/{chunk-ARUMABXM.mjs → chunk-FD3RF3B3.mjs} +5 -5
- package/dist/{chunk-YDXCU7P4.mjs → chunk-FPUITK4C.mjs} +1 -1
- package/dist/{chunk-7W4PK35Y.js → chunk-JPEKGOAX.js} +2 -2
- package/dist/{chunk-KXEMVOJF.mjs → chunk-LB7M33FA.mjs} +1 -1
- package/dist/{chunk-TKD4PGPW.mjs → chunk-NGAJ5W5H.mjs} +1 -1
- package/dist/{chunk-A6OADGQ2.mjs → chunk-OZWSP7EQ.mjs} +1 -1
- package/dist/{chunk-4RXDLHU3.js → chunk-QHV7SDFQ.js} +87 -87
- package/dist/{chunk-GNEF6K7C.mjs → chunk-QQZ6PXPB.mjs} +13 -5
- package/dist/{chunk-HWW6WTSH.js → chunk-SYR53UDS.js} +2 -2
- package/dist/{chunk-E5WX4GAD.js → chunk-VVBBXLTV.js} +2 -2
- package/dist/{chunk-PKDNEMEB.js → chunk-YHVTCYRL.js} +117 -109
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +6 -6
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +2 -2
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +3 -3
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +3 -3
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +3 -3
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +3 -3
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Terraform Tools
|
|
4
4
|
|
|
5
|
+
## [0.60.27](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.60.27) (2025-06-20)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update README markdown files
|
|
10
|
+
([90a90bfac](https://github.com/storm-software/storm-ops/commit/90a90bfac))
|
|
11
|
+
|
|
12
|
+
## [0.60.26](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.60.26) (2025-06-20)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Regenerate README markdown files
|
|
17
|
+
([0bdc8a84e](https://github.com/storm-software/storm-ops/commit/0bdc8a84e))
|
|
18
|
+
|
|
5
19
|
## [0.60.25](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.60.25) (2025-06-18)
|
|
6
20
|
|
|
7
21
|
### Miscellaneous
|
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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkELCT45UMjs = require('./chunk-ELCT45UM.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/plan/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkELCT45UMjs.withTerraformExecutor.call(void 0, "plan");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQHV7SDFQjs = require('./chunk-QHV7SDFQ.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/run.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -24,7 +24,7 @@ var run = (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => (
|
|
|
24
24
|
// src/base/terraform-executor.ts
|
|
25
25
|
var _shelljs = require('shelljs');
|
|
26
26
|
var withTerraformExecutor = (command, executorOptions = {}) => async (_options, context) => {
|
|
27
|
-
return
|
|
27
|
+
return _chunkQHV7SDFQjs.withRunExecutor.call(void 0,
|
|
28
28
|
`Terraform \`${command}\` Command Executor`,
|
|
29
29
|
async (options, context2, config) => {
|
|
30
30
|
if (!_shelljs.which.call(void 0, "tofu") || !_shelljs.which.call(void 0, "terraform")) {
|
|
@@ -49,7 +49,7 @@ If this sounds interesting, and you would like to help us in creating the next g
|
|
|
49
49
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
50
50
|
|
|
51
51
|
// ../config/src/schema.ts
|
|
52
|
-
import z from "zod";
|
|
52
|
+
import * as z from "zod/v4";
|
|
53
53
|
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");
|
|
54
54
|
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");
|
|
55
55
|
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");
|
|
@@ -201,9 +201,9 @@ var organizationConfigSchema = z.object({
|
|
|
201
201
|
}).describe("The workspace's organization details");
|
|
202
202
|
var stormWorkspaceConfigSchema = z.object({
|
|
203
203
|
$schema: z.string().trim().default(
|
|
204
|
-
"https://
|
|
205
|
-
).
|
|
206
|
-
"The URL to the JSON schema file that describes the Storm configuration file"
|
|
204
|
+
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
205
|
+
).describe(
|
|
206
|
+
"The URL or file path to the JSON schema file that describes the Storm configuration file"
|
|
207
207
|
),
|
|
208
208
|
extends: ExtendsSchema.optional(),
|
|
209
209
|
name: z.string().trim().toLowerCase().optional().describe(
|
|
@@ -265,7 +265,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
265
265
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
266
266
|
"Storm theme config values used for styling various package elements"
|
|
267
267
|
),
|
|
268
|
-
extensions: z.record(z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
268
|
+
extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
269
269
|
}).describe(
|
|
270
270
|
"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."
|
|
271
271
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkELCT45UMjs = require('./chunk-ELCT45UM.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/output/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkELCT45UMjs.withTerraformExecutor.call(void 0, "output");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../config-tools/src/config-file/get-config-file.ts
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../config-tools/src/config-file/get-config-file.ts
|
|
2
2
|
var _c12 = require('c12');
|
|
3
3
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
4
4
|
|
|
@@ -49,22 +49,22 @@ If this sounds interesting, and you would like to help us in creating the next g
|
|
|
49
49
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
50
50
|
|
|
51
51
|
// ../config/src/schema.ts
|
|
52
|
-
var
|
|
53
|
-
var DarkColorSchema =
|
|
54
|
-
var LightColorSchema =
|
|
55
|
-
var BrandColorSchema =
|
|
56
|
-
var AlternateColorSchema =
|
|
57
|
-
var AccentColorSchema =
|
|
58
|
-
var LinkColorSchema =
|
|
59
|
-
var HelpColorSchema =
|
|
60
|
-
var SuccessColorSchema =
|
|
61
|
-
var InfoColorSchema =
|
|
62
|
-
var WarningColorSchema =
|
|
63
|
-
var DangerColorSchema =
|
|
64
|
-
var FatalColorSchema =
|
|
65
|
-
var PositiveColorSchema =
|
|
66
|
-
var NegativeColorSchema =
|
|
67
|
-
var DarkThemeColorConfigSchema =
|
|
52
|
+
var _v4 = require('zod/v4'); var z = _interopRequireWildcard(_v4);
|
|
53
|
+
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");
|
|
54
|
+
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");
|
|
55
|
+
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");
|
|
56
|
+
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");
|
|
57
|
+
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");
|
|
58
|
+
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");
|
|
59
|
+
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");
|
|
60
|
+
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");
|
|
61
|
+
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");
|
|
62
|
+
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");
|
|
63
|
+
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");
|
|
64
|
+
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
65
|
+
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");
|
|
66
|
+
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");
|
|
67
|
+
var DarkThemeColorConfigSchema = z.object({
|
|
68
68
|
foreground: LightColorSchema,
|
|
69
69
|
background: DarkColorSchema,
|
|
70
70
|
brand: BrandColorSchema,
|
|
@@ -80,7 +80,7 @@ var DarkThemeColorConfigSchema = _zod2.default.object({
|
|
|
80
80
|
positive: PositiveColorSchema,
|
|
81
81
|
negative: NegativeColorSchema
|
|
82
82
|
});
|
|
83
|
-
var LightThemeColorConfigSchema =
|
|
83
|
+
var LightThemeColorConfigSchema = z.object({
|
|
84
84
|
foreground: DarkColorSchema,
|
|
85
85
|
background: LightColorSchema,
|
|
86
86
|
brand: BrandColorSchema,
|
|
@@ -96,11 +96,11 @@ var LightThemeColorConfigSchema = _zod2.default.object({
|
|
|
96
96
|
positive: PositiveColorSchema,
|
|
97
97
|
negative: NegativeColorSchema
|
|
98
98
|
});
|
|
99
|
-
var MultiThemeColorConfigSchema =
|
|
99
|
+
var MultiThemeColorConfigSchema = z.object({
|
|
100
100
|
dark: DarkThemeColorConfigSchema,
|
|
101
101
|
light: LightThemeColorConfigSchema
|
|
102
102
|
});
|
|
103
|
-
var SingleThemeColorConfigSchema =
|
|
103
|
+
var SingleThemeColorConfigSchema = z.object({
|
|
104
104
|
dark: DarkColorSchema,
|
|
105
105
|
light: LightColorSchema,
|
|
106
106
|
brand: BrandColorSchema,
|
|
@@ -116,8 +116,8 @@ var SingleThemeColorConfigSchema = _zod2.default.object({
|
|
|
116
116
|
positive: PositiveColorSchema,
|
|
117
117
|
negative: NegativeColorSchema
|
|
118
118
|
});
|
|
119
|
-
var RegistryUrlConfigSchema =
|
|
120
|
-
var RegistryConfigSchema =
|
|
119
|
+
var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
120
|
+
var RegistryConfigSchema = z.object({
|
|
121
121
|
github: RegistryUrlConfigSchema,
|
|
122
122
|
npm: RegistryUrlConfigSchema,
|
|
123
123
|
cargo: RegistryUrlConfigSchema,
|
|
@@ -127,122 +127,122 @@ var RegistryConfigSchema = _zod2.default.object({
|
|
|
127
127
|
var ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
128
128
|
MultiThemeColorConfigSchema
|
|
129
129
|
).describe("Colors used for various workspace elements");
|
|
130
|
-
var ColorConfigMapSchema =
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
var ColorConfigMapSchema = z.union([
|
|
131
|
+
z.object({ base: ColorConfigSchema }),
|
|
132
|
+
z.record(z.string(), ColorConfigSchema)
|
|
133
133
|
]);
|
|
134
|
-
var ExtendsItemSchema =
|
|
134
|
+
var ExtendsItemSchema = z.string().trim().describe(
|
|
135
135
|
"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."
|
|
136
136
|
);
|
|
137
137
|
var ExtendsSchema = ExtendsItemSchema.or(
|
|
138
|
-
|
|
138
|
+
z.array(ExtendsItemSchema)
|
|
139
139
|
).describe(
|
|
140
140
|
"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."
|
|
141
141
|
);
|
|
142
|
-
var WorkspaceBotConfigSchema =
|
|
143
|
-
name:
|
|
142
|
+
var WorkspaceBotConfigSchema = z.object({
|
|
143
|
+
name: z.string().trim().default("stormie-bot").describe(
|
|
144
144
|
"The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
145
145
|
),
|
|
146
|
-
email:
|
|
146
|
+
email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
147
147
|
}).describe(
|
|
148
148
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
149
149
|
);
|
|
150
|
-
var WorkspaceReleaseConfigSchema =
|
|
151
|
-
banner:
|
|
150
|
+
var WorkspaceReleaseConfigSchema = z.object({
|
|
151
|
+
banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
|
|
152
152
|
"A URL to a banner image used to display the workspace's release"
|
|
153
153
|
),
|
|
154
|
-
header:
|
|
154
|
+
header: z.string().trim().optional().describe(
|
|
155
155
|
"A header message appended to the start of the workspace's release notes"
|
|
156
156
|
),
|
|
157
|
-
footer:
|
|
157
|
+
footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
|
|
158
158
|
"A footer message appended to the end of the workspace's release notes"
|
|
159
159
|
)
|
|
160
160
|
}).describe("The workspace's release config used during the release process");
|
|
161
|
-
var WorkspaceAccountConfigSchema =
|
|
162
|
-
twitter:
|
|
163
|
-
discord:
|
|
164
|
-
telegram:
|
|
165
|
-
slack:
|
|
166
|
-
medium:
|
|
167
|
-
github:
|
|
161
|
+
var WorkspaceAccountConfigSchema = z.object({
|
|
162
|
+
twitter: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
|
|
163
|
+
discord: z.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
|
|
164
|
+
telegram: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
|
|
165
|
+
slack: z.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
|
|
166
|
+
medium: z.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
|
|
167
|
+
github: z.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
|
|
168
168
|
}).describe(
|
|
169
169
|
"The workspace's account config used to store various social media links"
|
|
170
170
|
);
|
|
171
|
-
var WorkspaceDirectoryConfigSchema =
|
|
172
|
-
cache:
|
|
171
|
+
var WorkspaceDirectoryConfigSchema = z.object({
|
|
172
|
+
cache: z.string().trim().optional().describe(
|
|
173
173
|
"The directory used to store the environment's cached file data"
|
|
174
174
|
),
|
|
175
|
-
data:
|
|
176
|
-
config:
|
|
175
|
+
data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
176
|
+
config: z.string().trim().optional().describe(
|
|
177
177
|
"The directory used to store the environment's configuration files"
|
|
178
178
|
),
|
|
179
|
-
temp:
|
|
180
|
-
log:
|
|
181
|
-
build:
|
|
179
|
+
temp: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
180
|
+
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
181
|
+
build: z.string().trim().default("dist").describe(
|
|
182
182
|
"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
|
|
183
183
|
)
|
|
184
184
|
}).describe(
|
|
185
185
|
"Various directories used by the workspace to store data, cache, and configuration files"
|
|
186
186
|
);
|
|
187
|
-
var errorConfigSchema =
|
|
188
|
-
codesFile:
|
|
189
|
-
url:
|
|
187
|
+
var errorConfigSchema = z.object({
|
|
188
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
189
|
+
url: z.string().trim().url().optional().describe(
|
|
190
190
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
191
191
|
)
|
|
192
192
|
}).describe("The workspace's error config used during the error process");
|
|
193
|
-
var organizationConfigSchema =
|
|
194
|
-
name:
|
|
195
|
-
description:
|
|
196
|
-
logo:
|
|
197
|
-
icon:
|
|
198
|
-
url:
|
|
193
|
+
var organizationConfigSchema = z.object({
|
|
194
|
+
name: z.string().trim().describe("The name of the organization"),
|
|
195
|
+
description: z.string().trim().optional().describe("A description of the organization"),
|
|
196
|
+
logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
|
|
197
|
+
icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
|
|
198
|
+
url: z.string().trim().url().optional().describe(
|
|
199
199
|
"A URL to a page that provides more information about the organization"
|
|
200
200
|
)
|
|
201
201
|
}).describe("The workspace's organization details");
|
|
202
|
-
var stormWorkspaceConfigSchema =
|
|
203
|
-
$schema:
|
|
204
|
-
"https://
|
|
205
|
-
).
|
|
206
|
-
"The URL to the JSON schema file that describes the Storm configuration file"
|
|
202
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
203
|
+
$schema: z.string().trim().default(
|
|
204
|
+
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
205
|
+
).describe(
|
|
206
|
+
"The URL or file path to the JSON schema file that describes the Storm configuration file"
|
|
207
207
|
),
|
|
208
208
|
extends: ExtendsSchema.optional(),
|
|
209
|
-
name:
|
|
209
|
+
name: z.string().trim().toLowerCase().optional().describe(
|
|
210
210
|
"The name of the service/package/scope using this configuration"
|
|
211
211
|
),
|
|
212
|
-
namespace:
|
|
213
|
-
organization: organizationConfigSchema.or(
|
|
212
|
+
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
213
|
+
organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
|
|
214
214
|
"The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
215
215
|
),
|
|
216
|
-
repository:
|
|
217
|
-
license:
|
|
218
|
-
homepage:
|
|
219
|
-
docs:
|
|
220
|
-
portal:
|
|
221
|
-
licensing:
|
|
222
|
-
contact:
|
|
223
|
-
support:
|
|
216
|
+
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
217
|
+
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
218
|
+
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
219
|
+
docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
220
|
+
portal: z.string().trim().url().optional().describe("The development portal site for the workspace"),
|
|
221
|
+
licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
222
|
+
contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
223
|
+
support: z.string().trim().url().optional().describe(
|
|
224
224
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
225
225
|
),
|
|
226
|
-
branch:
|
|
227
|
-
preid:
|
|
228
|
-
owner:
|
|
226
|
+
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
227
|
+
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
228
|
+
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
229
229
|
bot: WorkspaceBotConfigSchema,
|
|
230
230
|
release: WorkspaceReleaseConfigSchema,
|
|
231
231
|
account: WorkspaceAccountConfigSchema,
|
|
232
232
|
error: errorConfigSchema,
|
|
233
|
-
mode:
|
|
234
|
-
workspaceRoot:
|
|
235
|
-
externalPackagePatterns:
|
|
233
|
+
mode: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
|
|
234
|
+
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
235
|
+
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
236
236
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
237
237
|
),
|
|
238
|
-
skipCache:
|
|
238
|
+
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
239
239
|
directories: WorkspaceDirectoryConfigSchema,
|
|
240
|
-
packageManager:
|
|
240
|
+
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
241
241
|
"The JavaScript/TypeScript package manager used by the repository"
|
|
242
242
|
),
|
|
243
|
-
timezone:
|
|
244
|
-
locale:
|
|
245
|
-
logLevel:
|
|
243
|
+
timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
244
|
+
locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
245
|
+
logLevel: z.enum([
|
|
246
246
|
"silent",
|
|
247
247
|
"fatal",
|
|
248
248
|
"error",
|
|
@@ -255,17 +255,17 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
255
255
|
]).default("info").describe(
|
|
256
256
|
"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`)."
|
|
257
257
|
),
|
|
258
|
-
skipConfigLogging:
|
|
258
|
+
skipConfigLogging: z.boolean().optional().describe(
|
|
259
259
|
"Should the logging of the current Storm Workspace configuration be skipped?"
|
|
260
260
|
),
|
|
261
261
|
registry: RegistryConfigSchema,
|
|
262
|
-
configFile:
|
|
262
|
+
configFile: z.string().trim().nullable().default(null).describe(
|
|
263
263
|
"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
264
264
|
),
|
|
265
265
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
266
266
|
"Storm theme config values used for styling various package elements"
|
|
267
267
|
),
|
|
268
|
-
extensions:
|
|
268
|
+
extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
269
269
|
}).describe(
|
|
270
270
|
"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."
|
|
271
271
|
);
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
writeSuccess,
|
|
17
17
|
writeTrace,
|
|
18
18
|
writeWarning
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FD3RF3B3.mjs";
|
|
20
20
|
import {
|
|
21
21
|
__dirname,
|
|
22
22
|
__require
|
|
@@ -1794,7 +1794,7 @@ var generator_default = withRunGenerator(
|
|
|
1794
1794
|
|
|
1795
1795
|
// ../workspace-tools/src/generators/config-schema/generator.ts
|
|
1796
1796
|
import { formatFiles as formatFiles3, writeJson as writeJson2 } from "@nx/devkit";
|
|
1797
|
-
import
|
|
1797
|
+
import * as z from "zod/v4";
|
|
1798
1798
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
1799
1799
|
writeInfo(
|
|
1800
1800
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
@@ -1804,13 +1804,21 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
1804
1804
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
1805
1805
|
config
|
|
1806
1806
|
);
|
|
1807
|
-
const jsonSchema =
|
|
1808
|
-
|
|
1807
|
+
const jsonSchema = z.toJSONSchema(stormWorkspaceConfigSchema, {
|
|
1808
|
+
target: "draft-7"
|
|
1809
1809
|
});
|
|
1810
|
+
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
1811
|
+
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
1812
|
+
jsonSchema.description ??= "This JSON Schema defines the structure of the Storm Workspace configuration file (`storm-workspace.json`). It is used to validate the configuration file and ensure that it adheres to the expected format.";
|
|
1810
1813
|
writeTrace(jsonSchema, config);
|
|
1814
|
+
if (!options.outputFile) {
|
|
1815
|
+
throw new Error(
|
|
1816
|
+
"The `outputFile` option is required. Please specify the output file path."
|
|
1817
|
+
);
|
|
1818
|
+
}
|
|
1811
1819
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
1812
1820
|
config?.workspaceRoot ?? findWorkspaceRoot(),
|
|
1813
|
-
options.outputFile
|
|
1821
|
+
options.outputFile.startsWith("./") ? "" : "./"
|
|
1814
1822
|
);
|
|
1815
1823
|
writeTrace(
|
|
1816
1824
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkELCT45UMjs = require('./chunk-ELCT45UM.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/apply/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkELCT45UMjs.withTerraformExecutor.call(void 0, "apply");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkELCT45UMjs = require('./chunk-ELCT45UM.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/destroy/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkELCT45UMjs.withTerraformExecutor.call(void 0, "destroy");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|