@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.
Files changed (37) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-RA7KUOBG.mjs → chunk-6MXVWOEX.mjs} +1 -1
  4. package/dist/{chunk-H2TR3X3B.js → chunk-CB5TC2RP.js} +2 -2
  5. package/dist/{chunk-DIPKER7R.js → chunk-ELCT45UM.js} +2 -2
  6. package/dist/{chunk-ARUMABXM.mjs → chunk-FD3RF3B3.mjs} +5 -5
  7. package/dist/{chunk-YDXCU7P4.mjs → chunk-FPUITK4C.mjs} +1 -1
  8. package/dist/{chunk-7W4PK35Y.js → chunk-JPEKGOAX.js} +2 -2
  9. package/dist/{chunk-KXEMVOJF.mjs → chunk-LB7M33FA.mjs} +1 -1
  10. package/dist/{chunk-TKD4PGPW.mjs → chunk-NGAJ5W5H.mjs} +1 -1
  11. package/dist/{chunk-A6OADGQ2.mjs → chunk-OZWSP7EQ.mjs} +1 -1
  12. package/dist/{chunk-4RXDLHU3.js → chunk-QHV7SDFQ.js} +87 -87
  13. package/dist/{chunk-GNEF6K7C.mjs → chunk-QQZ6PXPB.mjs} +13 -5
  14. package/dist/{chunk-HWW6WTSH.js → chunk-SYR53UDS.js} +2 -2
  15. package/dist/{chunk-E5WX4GAD.js → chunk-VVBBXLTV.js} +2 -2
  16. package/dist/{chunk-PKDNEMEB.js → chunk-YHVTCYRL.js} +117 -109
  17. package/dist/executors.js +6 -6
  18. package/dist/executors.mjs +6 -6
  19. package/dist/generators.js +3 -3
  20. package/dist/generators.mjs +2 -2
  21. package/dist/index.js +8 -8
  22. package/dist/index.mjs +7 -7
  23. package/dist/src/base/index.js +3 -3
  24. package/dist/src/base/index.mjs +2 -2
  25. package/dist/src/base/terraform-executor.js +3 -3
  26. package/dist/src/base/terraform-executor.mjs +2 -2
  27. package/dist/src/executors/apply/executor.js +4 -4
  28. package/dist/src/executors/apply/executor.mjs +3 -3
  29. package/dist/src/executors/destroy/executor.js +4 -4
  30. package/dist/src/executors/destroy/executor.mjs +3 -3
  31. package/dist/src/executors/output/executor.js +4 -4
  32. package/dist/src/executors/output/executor.mjs +3 -3
  33. package/dist/src/executors/plan/executor.js +4 -4
  34. package/dist/src/executors/plan/executor.mjs +3 -3
  35. package/dist/src/generators/init/init.js +3 -3
  36. package/dist/src/generators/init/init.mjs +2 -2
  37. 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
- [![Version](https://img.shields.io/badge/version-0.60.25-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-0.60.27-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 -->
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withTerraformExecutor
3
- } from "./chunk-TKD4PGPW.mjs";
3
+ } from "./chunk-NGAJ5W5H.mjs";
4
4
 
5
5
  // src/executors/output/executor.ts
6
6
  var executor_default = withTerraformExecutor("output");
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkDIPKER7Rjs = require('./chunk-DIPKER7R.js');
3
+ var _chunkELCT45UMjs = require('./chunk-ELCT45UM.js');
4
4
 
5
5
  // src/executors/plan/executor.ts
6
- var executor_default = _chunkDIPKER7Rjs.withTerraformExecutor.call(void 0, "plan");
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 _chunk4RXDLHU3js = require('./chunk-4RXDLHU3.js');
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 _chunk4RXDLHU3js.withRunExecutor.call(void 0,
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://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
205
- ).optional().nullish().describe(
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,6 +1,6 @@
1
1
  import {
2
2
  withTerraformExecutor
3
- } from "./chunk-TKD4PGPW.mjs";
3
+ } from "./chunk-NGAJ5W5H.mjs";
4
4
 
5
5
  // src/executors/apply/executor.ts
6
6
  var executor_default = withTerraformExecutor("apply");
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkDIPKER7Rjs = require('./chunk-DIPKER7R.js');
3
+ var _chunkELCT45UMjs = require('./chunk-ELCT45UM.js');
4
4
 
5
5
  // src/executors/output/executor.ts
6
- var executor_default = _chunkDIPKER7Rjs.withTerraformExecutor.call(void 0, "output");
6
+ var executor_default = _chunkELCT45UMjs.withTerraformExecutor.call(void 0, "output");
7
7
 
8
8
 
9
9
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withTerraformExecutor
3
- } from "./chunk-TKD4PGPW.mjs";
3
+ } from "./chunk-NGAJ5W5H.mjs";
4
4
 
5
5
  // src/executors/destroy/executor.ts
6
6
  var executor_default = withTerraformExecutor("destroy");
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-ARUMABXM.mjs";
3
+ } from "./chunk-FD3RF3B3.mjs";
4
4
 
5
5
  // ../config-tools/src/utilities/run.ts
6
6
  import { exec, execSync } from "node:child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withTerraformExecutor
3
- } from "./chunk-TKD4PGPW.mjs";
3
+ } from "./chunk-NGAJ5W5H.mjs";
4
4
 
5
5
  // src/executors/plan/executor.ts
6
6
  var executor_default = withTerraformExecutor("plan");
@@ -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 _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
53
- 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");
54
- 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");
55
- 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");
56
- 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");
57
- 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");
58
- 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");
59
- 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");
60
- 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");
61
- 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");
62
- 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");
63
- 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");
64
- 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");
65
- 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");
66
- 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");
67
- var DarkThemeColorConfigSchema = _zod2.default.object({
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 = _zod2.default.object({
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 = _zod2.default.object({
99
+ var MultiThemeColorConfigSchema = z.object({
100
100
  dark: DarkThemeColorConfigSchema,
101
101
  light: LightThemeColorConfigSchema
102
102
  });
103
- var SingleThemeColorConfigSchema = _zod2.default.object({
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 = _zod2.default.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
120
- var RegistryConfigSchema = _zod2.default.object({
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 = _zod2.default.union([
131
- _zod2.default.object({ base: ColorConfigSchema }),
132
- _zod2.default.record(_zod2.default.string(), ColorConfigSchema)
130
+ var ColorConfigMapSchema = z.union([
131
+ z.object({ base: ColorConfigSchema }),
132
+ z.record(z.string(), ColorConfigSchema)
133
133
  ]);
134
- var ExtendsItemSchema = _zod2.default.string().trim().describe(
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
- _zod2.default.array(ExtendsItemSchema)
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 = _zod2.default.object({
143
- name: _zod2.default.string().trim().default("stormie-bot").describe(
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: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
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 = _zod2.default.object({
151
- banner: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
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: _zod2.default.string().trim().optional().describe(
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: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
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 = _zod2.default.object({
162
- twitter: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
163
- discord: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
164
- telegram: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
165
- slack: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
166
- medium: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
167
- github: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
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 = _zod2.default.object({
172
- cache: _zod2.default.string().trim().optional().describe(
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: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
176
- config: _zod2.default.string().trim().optional().describe(
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: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
180
- log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
181
- build: _zod2.default.string().trim().default("dist").describe(
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 = _zod2.default.object({
188
- codesFile: _zod2.default.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
189
- url: _zod2.default.string().trim().url().optional().describe(
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 = _zod2.default.object({
194
- name: _zod2.default.string().trim().describe("The name of the organization"),
195
- description: _zod2.default.string().trim().optional().describe("A description of the organization"),
196
- logo: _zod2.default.string().trim().url().optional().describe("A URL to the organization's logo image"),
197
- icon: _zod2.default.string().trim().url().optional().describe("A URL to the organization's icon image"),
198
- url: _zod2.default.string().trim().url().optional().describe(
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 = _zod2.default.object({
203
- $schema: _zod2.default.string().trim().default(
204
- "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
205
- ).optional().nullish().describe(
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: _zod2.default.string().trim().toLowerCase().optional().describe(
209
+ name: z.string().trim().toLowerCase().optional().describe(
210
210
  "The name of the service/package/scope using this configuration"
211
211
  ),
212
- namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
213
- organization: organizationConfigSchema.or(_zod2.default.string().trim().describe("The organization of the workspace")).optional().describe(
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: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
217
- license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
218
- homepage: _zod2.default.string().trim().url().optional().describe("The homepage of the workspace"),
219
- docs: _zod2.default.string().trim().url().optional().describe("The documentation site for the workspace"),
220
- portal: _zod2.default.string().trim().url().optional().describe("The development portal site for the workspace"),
221
- licensing: _zod2.default.string().trim().url().optional().describe("The licensing site for the workspace"),
222
- contact: _zod2.default.string().trim().url().optional().describe("The contact site for the workspace"),
223
- support: _zod2.default.string().trim().url().optional().describe(
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: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
227
- preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
228
- owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
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: _zod2.default.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
234
- workspaceRoot: _zod2.default.string().trim().describe("The root directory of the workspace"),
235
- externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe(
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: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
238
+ skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
239
239
  directories: WorkspaceDirectoryConfigSchema,
240
- packageManager: _zod2.default.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
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: _zod2.default.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
244
- locale: _zod2.default.string().trim().default("en-US").describe("The default locale of the workspace"),
245
- logLevel: _zod2.default.enum([
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: _zod2.default.boolean().optional().describe(
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: _zod2.default.string().trim().nullable().default(null).describe(
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: _zod2.default.record(_zod2.default.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
  );
@@ -16,7 +16,7 @@ import {
16
16
  writeSuccess,
17
17
  writeTrace,
18
18
  writeWarning
19
- } from "./chunk-ARUMABXM.mjs";
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 { zodToJsonSchema } from "zod-to-json-schema";
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 = zodToJsonSchema(stormWorkspaceConfigSchema, {
1808
- name: "StormWorkspaceConfiguration"
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?.startsWith("./") ? "" : "./"
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 _chunkDIPKER7Rjs = require('./chunk-DIPKER7R.js');
3
+ var _chunkELCT45UMjs = require('./chunk-ELCT45UM.js');
4
4
 
5
5
  // src/executors/apply/executor.ts
6
- var executor_default = _chunkDIPKER7Rjs.withTerraformExecutor.call(void 0, "apply");
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 _chunkDIPKER7Rjs = require('./chunk-DIPKER7R.js');
3
+ var _chunkELCT45UMjs = require('./chunk-ELCT45UM.js');
4
4
 
5
5
  // src/executors/destroy/executor.ts
6
- var executor_default = _chunkDIPKER7Rjs.withTerraformExecutor.call(void 0, "destroy");
6
+ var executor_default = _chunkELCT45UMjs.withTerraformExecutor.call(void 0, "destroy");
7
7
 
8
8
 
9
9