@storm-software/terraform-tools 0.60.37 → 0.60.38

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 +7 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-BUWPIUZN.js → chunk-2O7DQPDC.js} +2 -2
  4. package/dist/{chunk-LBU72XRT.js → chunk-3OW6JMBO.js} +2 -2
  5. package/dist/{chunk-IE3GYKQ2.js → chunk-FWOTYBYO.js} +26 -14
  6. package/dist/{chunk-OV2EM7MW.mjs → chunk-GH5Q6LZY.mjs} +1 -1
  7. package/dist/{chunk-3CXHVZHF.js → chunk-KD7CUX45.js} +107 -107
  8. package/dist/{chunk-SBXLS6B7.js → chunk-KJQ3JPTX.js} +2 -2
  9. package/dist/{chunk-3BLQVDP7.mjs → chunk-KNNQJHOH.mjs} +1 -1
  10. package/dist/{chunk-5MOGYNLI.mjs → chunk-LHTFN57X.mjs} +1 -1
  11. package/dist/{chunk-GERJUBNF.mjs → chunk-PGTHUI34.mjs} +18 -6
  12. package/dist/{chunk-7RR2HKBA.mjs → chunk-PRZKXK4E.mjs} +1 -1
  13. package/dist/{chunk-F3DDL5QO.js → chunk-RW4FXDXQ.js} +2 -2
  14. package/dist/{chunk-T77AY65K.mjs → chunk-SCIVGQ5G.mjs} +1 -1
  15. package/dist/{chunk-KYSRH4TW.mjs → chunk-VC7G4MO3.mjs} +1 -1
  16. package/dist/{chunk-U4ZH7ICY.js → chunk-Z6F7BKEF.js} +2 -2
  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 +2 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  # Changelog for Storm Ops - Terraform Tools
4
4
 
5
+ ## [0.60.37](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.60.37) (2025-07-08)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Update README markdown files
10
+ ([a201e9178](https://github.com/storm-software/storm-ops/commit/a201e9178))
11
+
5
12
  ## [0.60.36](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.60.36) (2025-07-06)
6
13
 
7
14
  ### 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.36-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.37-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,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSBXLS6B7js = require('./chunk-SBXLS6B7.js');
3
+ var _chunkKJQ3JPTXjs = require('./chunk-KJQ3JPTX.js');
4
4
 
5
5
  // src/executors/destroy/executor.ts
6
- var executor_default = _chunkSBXLS6B7js.withTerraformExecutor.call(void 0, "destroy");
6
+ var executor_default = _chunkKJQ3JPTXjs.withTerraformExecutor.call(void 0, "destroy");
7
7
 
8
8
 
9
9
 
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSBXLS6B7js = require('./chunk-SBXLS6B7.js');
3
+ var _chunkKJQ3JPTXjs = require('./chunk-KJQ3JPTX.js');
4
4
 
5
5
  // src/executors/output/executor.ts
6
- var executor_default = _chunkSBXLS6B7js.withTerraformExecutor.call(void 0, "output");
6
+ var executor_default = _chunkKJQ3JPTXjs.withTerraformExecutor.call(void 0, "output");
7
7
 
8
8
 
9
9
 
@@ -1557,12 +1557,24 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1557
1557
  }
1558
1558
  }
1559
1559
  const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
1560
- result = applyDefaultConfig(
1561
- await stormWorkspaceConfigSchema.parseAsync(
1562
- _defu2.default.call(void 0, configEnv, configFile, defaultConfig)
1563
- )
1564
- );
1565
- result.workspaceRoot ??= _workspaceRoot;
1560
+ const configInput = _defu2.default.call(void 0, configEnv, configFile, defaultConfig);
1561
+ try {
1562
+ result = applyDefaultConfig(
1563
+ await stormWorkspaceConfigSchema.parseAsync(configInput)
1564
+ );
1565
+ result.workspaceRoot ??= _workspaceRoot;
1566
+ } catch (error) {
1567
+ throw new Error(
1568
+ `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _63 => _63.message]) ? `: ${error.message}` : ""}
1569
+
1570
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
1571
+ configInput
1572
+ )}`,
1573
+ {
1574
+ cause: error
1575
+ }
1576
+ );
1577
+ }
1566
1578
  } else {
1567
1579
  result = _static_cache.data;
1568
1580
  }
@@ -1628,7 +1640,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
1628
1640
  let options = _options;
1629
1641
  let config = {};
1630
1642
  try {
1631
- if (!_optionalChain([context, 'access', _63 => _63.projectsConfigurations, 'optionalAccess', _64 => _64.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
1643
+ if (!_optionalChain([context, 'access', _64 => _64.projectsConfigurations, 'optionalAccess', _65 => _65.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
1632
1644
  throw new Error(
1633
1645
  "The Build process failed because the context is not valid. Please run this command from a workspace."
1634
1646
  );
@@ -1651,7 +1663,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
1651
1663
  );
1652
1664
  config = await getConfig(workspaceRoot);
1653
1665
  }
1654
- if (_optionalChain([executorOptions, 'optionalAccess', _65 => _65.hooks, 'optionalAccess', _66 => _66.applyDefaultOptions])) {
1666
+ if (_optionalChain([executorOptions, 'optionalAccess', _66 => _66.hooks, 'optionalAccess', _67 => _67.applyDefaultOptions])) {
1655
1667
  writeDebug("Running the applyDefaultOptions hook...", config);
1656
1668
  options = await Promise.resolve(
1657
1669
  executorOptions.hooks.applyDefaultOptions(options, config)
@@ -1679,7 +1691,7 @@ ${formatLogMessage(tokenized)}
1679
1691
  `,
1680
1692
  config
1681
1693
  );
1682
- if (_optionalChain([executorOptions, 'optionalAccess', _67 => _67.hooks, 'optionalAccess', _68 => _68.preProcess])) {
1694
+ if (_optionalChain([executorOptions, 'optionalAccess', _68 => _68.hooks, 'optionalAccess', _69 => _69.preProcess])) {
1683
1695
  writeDebug("Running the preProcess hook...", config);
1684
1696
  await Promise.resolve(
1685
1697
  executorOptions.hooks.preProcess(tokenized, config)
@@ -1687,7 +1699,7 @@ ${formatLogMessage(tokenized)}
1687
1699
  writeDebug("Completed the preProcess hook", config);
1688
1700
  }
1689
1701
  const ret = executorFn(tokenized, context, config);
1690
- if (_isFunction2(_optionalChain([ret, 'optionalAccess', _69 => _69.next]))) {
1702
+ if (_isFunction2(_optionalChain([ret, 'optionalAccess', _70 => _70.next]))) {
1691
1703
  const asyncGen = ret;
1692
1704
  for await (const iter of asyncGen) {
1693
1705
  void iter;
@@ -1696,7 +1708,7 @@ ${formatLogMessage(tokenized)}
1696
1708
  const result = await Promise.resolve(
1697
1709
  ret
1698
1710
  );
1699
- if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _70 => _70.error, 'optionalAccess', _71 => _71.message]) && typeof _optionalChain([result, 'optionalAccess', _72 => _72.error, 'optionalAccess', _73 => _73.message]) === "string" && _optionalChain([result, 'optionalAccess', _74 => _74.error, 'optionalAccess', _75 => _75.name]) && typeof _optionalChain([result, 'optionalAccess', _76 => _76.error, 'optionalAccess', _77 => _77.name]) === "string")) {
1711
+ if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _71 => _71.error, 'optionalAccess', _72 => _72.message]) && typeof _optionalChain([result, 'optionalAccess', _73 => _73.error, 'optionalAccess', _74 => _74.message]) === "string" && _optionalChain([result, 'optionalAccess', _75 => _75.error, 'optionalAccess', _76 => _76.name]) && typeof _optionalChain([result, 'optionalAccess', _77 => _77.error, 'optionalAccess', _78 => _78.name]) === "string")) {
1700
1712
  writeTrace(
1701
1713
  `Failure determined by the ${name} executor
1702
1714
  ${formatLogMessage(result)}`,
@@ -1704,10 +1716,10 @@ ${formatLogMessage(result)}`,
1704
1716
  );
1705
1717
  console.error(result);
1706
1718
  throw new Error(`The ${name} executor failed to run`, {
1707
- cause: _optionalChain([result, 'optionalAccess', _78 => _78.error])
1719
+ cause: _optionalChain([result, 'optionalAccess', _79 => _79.error])
1708
1720
  });
1709
1721
  }
1710
- if (_optionalChain([executorOptions, 'optionalAccess', _79 => _79.hooks, 'optionalAccess', _80 => _80.postProcess])) {
1722
+ if (_optionalChain([executorOptions, 'optionalAccess', _80 => _80.hooks, 'optionalAccess', _81 => _81.postProcess])) {
1711
1723
  writeDebug("Running the postProcess hook...", config);
1712
1724
  await Promise.resolve(executorOptions.hooks.postProcess(config));
1713
1725
  writeDebug("Completed the postProcess hook", config);
@@ -1737,7 +1749,7 @@ ${formatLogMessage(result)}`,
1737
1749
  };
1738
1750
  var _isFunction2 = (value) => {
1739
1751
  try {
1740
- return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _81 => _81.constructor]) && _optionalChain([value, 'optionalAccess', _82 => _82.call]) && _optionalChain([value, 'optionalAccess', _83 => _83.apply]));
1752
+ return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _82 => _82.constructor]) && _optionalChain([value, 'optionalAccess', _83 => _83.call]) && _optionalChain([value, 'optionalAccess', _84 => _84.apply]));
1741
1753
  } catch (e) {
1742
1754
  return false;
1743
1755
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-GERJUBNF.mjs";
3
+ } from "./chunk-PGTHUI34.mjs";
4
4
 
5
5
  // ../config-tools/src/utilities/run.ts
6
6
  import { exec, execSync } from "node:child_process";