@storm-software/terraform-tools 0.54.41 → 0.54.42

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  # Changelog for Storm Ops - Terraform Tools
4
4
 
5
+ ## [0.54.42](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.54.42) (2025-03-18)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+ ([2d7343483](https://github.com/storm-software/storm-ops/commit/2d7343483))
11
+
5
12
  ## [0.54.41](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.54.41) (2025-03-17)
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.54.40-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.54.41-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 -->
@@ -1277,15 +1277,14 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1277
1277
  }, {})
1278
1278
  },
1279
1279
  inject: [
1280
- options.format === "cjs" && options.injectShims ? _chunk7EE3ZWHRjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
1281
- options.format === "esm" && options.injectShims && options.platform === "node" ? _chunk7EE3ZWHRjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : ""
1282
- ]
1280
+ options.format === "cjs" && options.injectShims ? _chunk7EE3ZWHRjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : void 0,
1281
+ options.format === "esm" && options.injectShims && options.platform === "node" ? _chunk7EE3ZWHRjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : void 0
1282
+ ].filter(Boolean)
1283
1283
  };
1284
1284
  result.plugins = _nullishCoalesce(userOptions.plugins, () => ( getDefaultBuildPlugins(userOptions, result)));
1285
- if (options.inject) {
1286
- options.inject = _defu2.default.call(void 0, result.inject, options.inject);
1285
+ if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
1286
+ result.inject = _defu2.default.call(void 0, result.inject, options.inject);
1287
1287
  }
1288
- _optionalChain([options, 'access', _48 => _48.inject, 'optionalAccess', _49 => _49.filter, 'call', _50 => _50(Boolean)]);
1289
1288
  delete result.entry;
1290
1289
  delete result.outputPath;
1291
1290
  stopwatch();
@@ -1411,7 +1410,7 @@ ${_chunk7EE3ZWHRjs.formatLogMessage.call(void 0, options)}`, context2.options.co
1411
1410
  }
1412
1411
  _chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1413
1412
  async function copyBuildAssets(context2) {
1414
- if (_optionalChain([context2, 'access', _51 => _51.result, 'optionalAccess', _52 => _52.errors, 'access', _53 => _53.length]) === 0) {
1413
+ if (_optionalChain([context2, 'access', _48 => _48.result, 'optionalAccess', _49 => _49.errors, 'access', _50 => _50.length]) === 0) {
1415
1414
  _chunk7EE3ZWHRjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1416
1415
  const stopwatch = _chunk7EE3ZWHRjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1417
1416
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
@@ -1421,7 +1420,7 @@ async function copyBuildAssets(context2) {
1421
1420
  }
1422
1421
  _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1423
1422
  async function reportResults(context2) {
1424
- if (_optionalChain([context2, 'access', _54 => _54.result, 'optionalAccess', _55 => _55.errors, 'access', _56 => _56.length]) === 0) {
1423
+ if (_optionalChain([context2, 'access', _51 => _51.result, 'optionalAccess', _52 => _52.errors, 'access', _53 => _53.length]) === 0) {
1425
1424
  if (context2.result.warnings.length > 0) {
1426
1425
  _chunk7EE3ZWHRjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
1427
1426
  }
@@ -1522,14 +1521,14 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
1522
1521
  // ../workspace-tools/src/executors/esbuild/executor.ts
1523
1522
  async function esbuildExecutorFn(options, context2, config) {
1524
1523
  _chunk7EE3ZWHRjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1525
- if (!_optionalChain([context2, 'access', _57 => _57.projectsConfigurations, 'optionalAccess', _58 => _58.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _59 => _59.projectsConfigurations, 'access', _60 => _60.projects, 'access', _61 => _61[context2.projectName], 'optionalAccess', _62 => _62.root])) {
1524
+ if (!_optionalChain([context2, 'access', _54 => _54.projectsConfigurations, 'optionalAccess', _55 => _55.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _56 => _56.projectsConfigurations, 'access', _57 => _57.projects, 'access', _58 => _58[context2.projectName], 'optionalAccess', _59 => _59.root])) {
1526
1525
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1527
1526
  }
1528
1527
  await build3({
1529
1528
  ...options,
1530
- projectRoot: _optionalChain([context2, 'access', _63 => _63.projectsConfigurations, 'access', _64 => _64.projects, 'optionalAccess', _65 => _65[context2.projectName], 'access', _66 => _66.root]),
1529
+ projectRoot: _optionalChain([context2, 'access', _60 => _60.projectsConfigurations, 'access', _61 => _61.projects, 'optionalAccess', _62 => _62[context2.projectName], 'access', _63 => _63.root]),
1531
1530
  projectName: context2.projectName,
1532
- sourceRoot: _optionalChain([context2, 'access', _67 => _67.projectsConfigurations, 'access', _68 => _68.projects, 'optionalAccess', _69 => _69[context2.projectName], 'optionalAccess', _70 => _70.sourceRoot]),
1531
+ sourceRoot: _optionalChain([context2, 'access', _64 => _64.projectsConfigurations, 'access', _65 => _65.projects, 'optionalAccess', _66 => _66[context2.projectName], 'optionalAccess', _67 => _67.sourceRoot]),
1533
1532
  format: options.format,
1534
1533
  platform: options.format
1535
1534
  });
@@ -1572,7 +1571,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
1572
1571
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
1573
1572
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
1574
1573
  async function sizeLimitExecutorFn(options, context2, config) {
1575
- if (!_optionalChain([context2, 'optionalAccess', _71 => _71.projectName]) || !_optionalChain([context2, 'access', _72 => _72.projectsConfigurations, 'optionalAccess', _73 => _73.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1574
+ if (!_optionalChain([context2, 'optionalAccess', _68 => _68.projectName]) || !_optionalChain([context2, 'access', _69 => _69.projectsConfigurations, 'optionalAccess', _70 => _70.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1576
1575
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
1577
1576
  }
1578
1577
  _chunk7EE3ZWHRjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
@@ -1581,7 +1580,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
1581
1580
  _esbuild3.default,
1582
1581
  _esbuildwhy2.default
1583
1582
  ], {
1584
- checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _74 => _74.projectsConfigurations, 'access', _75 => _75.projects, 'access', _76 => _76[context2.projectName], 'optionalAccess', _77 => _77.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _78 => _78.projectsConfigurations, 'access', _79 => _79.projects, 'access', _80 => _80[context2.projectName], 'optionalAccess', _81 => _81.root]), () => ( "./")), "src")))
1583
+ checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _71 => _71.projectsConfigurations, 'access', _72 => _72.projects, 'access', _73 => _73[context2.projectName], 'optionalAccess', _74 => _74.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _75 => _75.projectsConfigurations, 'access', _76 => _76.projects, 'access', _77 => _77[context2.projectName], 'optionalAccess', _78 => _78.root]), () => ( "./")), "src")))
1585
1584
  }).then((result) => {
1586
1585
  _chunk7EE3ZWHRjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1587
1586
  });
@@ -1640,7 +1639,7 @@ var executor_default8 = _chunk7EE3ZWHRjs.withRunExecutor.call(void 0, "Typia run
1640
1639
  var _jiti = require('jiti');
1641
1640
  async function unbuildExecutorFn(options, context2, config) {
1642
1641
  _chunk7EE3ZWHRjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1643
- if (!_optionalChain([context2, 'access', _82 => _82.projectsConfigurations, 'optionalAccess', _83 => _83.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
1642
+ if (!_optionalChain([context2, 'access', _79 => _79.projectsConfigurations, 'optionalAccess', _80 => _80.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
1644
1643
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
1645
1644
  }
1646
1645
  if (!context2.projectsConfigurations.projects[context2.projectName].root) {
@@ -1723,7 +1722,7 @@ var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (nam
1723
1722
  - workspaceRoot: ${workspaceRoot3}`, config);
1724
1723
  config = await _chunk7EE3ZWHRjs.getConfig.call(void 0, workspaceRoot3);
1725
1724
  }
1726
- if (_optionalChain([generatorOptions, 'optionalAccess', _84 => _84.hooks, 'optionalAccess', _85 => _85.applyDefaultOptions])) {
1725
+ if (_optionalChain([generatorOptions, 'optionalAccess', _81 => _81.hooks, 'optionalAccess', _82 => _82.applyDefaultOptions])) {
1727
1726
  _chunk7EE3ZWHRjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
1728
1727
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
1729
1728
  _chunk7EE3ZWHRjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
@@ -1734,22 +1733,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1734
1733
  workspaceRoot: tree.root,
1735
1734
  config
1736
1735
  }, _chunk7EE3ZWHRjs.applyWorkspaceBaseTokens);
1737
- if (_optionalChain([generatorOptions, 'optionalAccess', _86 => _86.hooks, 'optionalAccess', _87 => _87.preProcess])) {
1736
+ if (_optionalChain([generatorOptions, 'optionalAccess', _83 => _83.hooks, 'optionalAccess', _84 => _84.preProcess])) {
1738
1737
  _chunk7EE3ZWHRjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
1739
1738
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
1740
1739
  _chunk7EE3ZWHRjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
1741
1740
  }
1742
1741
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
1743
1742
  if (result) {
1744
- if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _88 => _88.error, 'optionalAccess', _89 => _89.message]) && typeof _optionalChain([result, 'optionalAccess', _90 => _90.error, 'optionalAccess', _91 => _91.message]) === "string" && _optionalChain([result, 'optionalAccess', _92 => _92.error, 'optionalAccess', _93 => _93.name]) && typeof _optionalChain([result, 'optionalAccess', _94 => _94.error, 'optionalAccess', _95 => _95.name]) === "string") {
1743
+ if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _85 => _85.error, 'optionalAccess', _86 => _86.message]) && typeof _optionalChain([result, 'optionalAccess', _87 => _87.error, 'optionalAccess', _88 => _88.message]) === "string" && _optionalChain([result, 'optionalAccess', _89 => _89.error, 'optionalAccess', _90 => _90.name]) && typeof _optionalChain([result, 'optionalAccess', _91 => _91.error, 'optionalAccess', _92 => _92.name]) === "string") {
1745
1744
  throw new Error(`The ${name} generator failed to run`, {
1746
- cause: _optionalChain([result, 'optionalAccess', _96 => _96.error])
1745
+ cause: _optionalChain([result, 'optionalAccess', _93 => _93.error])
1747
1746
  });
1748
1747
  } else if (result.success && result.data) {
1749
1748
  return result;
1750
1749
  }
1751
1750
  }
1752
- if (_optionalChain([generatorOptions, 'optionalAccess', _97 => _97.hooks, 'optionalAccess', _98 => _98.postProcess])) {
1751
+ if (_optionalChain([generatorOptions, 'optionalAccess', _94 => _94.hooks, 'optionalAccess', _95 => _95.postProcess])) {
1753
1752
  _chunk7EE3ZWHRjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
1754
1753
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
1755
1754
  _chunk7EE3ZWHRjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
@@ -1915,15 +1914,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1915
1914
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
1916
1915
  let repository = {
1917
1916
  type: "github",
1918
- url: _optionalChain([config, 'optionalAccess', _99 => _99.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _100 => _100.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _101 => _101.namespace]) || _optionalChain([config, 'optionalAccess', _102 => _102.name]) || "repository"}.git`
1917
+ url: _optionalChain([config, 'optionalAccess', _96 => _96.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _97 => _97.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _98 => _98.namespace]) || _optionalChain([config, 'optionalAccess', _99 => _99.name]) || "repository"}.git`
1919
1918
  };
1920
1919
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
1921
1920
  if (tree.exists("package.json")) {
1922
1921
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
1923
- if (_optionalChain([packageJson, 'optionalAccess', _103 => _103.repository])) {
1922
+ if (_optionalChain([packageJson, 'optionalAccess', _100 => _100.repository])) {
1924
1923
  repository = packageJson.repository;
1925
1924
  }
1926
- if (_optionalChain([packageJson, 'optionalAccess', _104 => _104.description])) {
1925
+ if (_optionalChain([packageJson, 'optionalAccess', _101 => _101.description])) {
1927
1926
  description = packageJson.description;
1928
1927
  }
1929
1928
  }
@@ -1978,9 +1977,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1978
1977
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
1979
1978
  ...json,
1980
1979
  pnpm: {
1981
- ..._optionalChain([json, 'optionalAccess', _105 => _105.pnpm]),
1980
+ ..._optionalChain([json, 'optionalAccess', _102 => _102.pnpm]),
1982
1981
  overrides: {
1983
- ..._optionalChain([json, 'optionalAccess', _106 => _106.pnpm, 'optionalAccess', _107 => _107.overrides]),
1982
+ ..._optionalChain([json, 'optionalAccess', _103 => _103.pnpm, 'optionalAccess', _104 => _104.overrides]),
1984
1983
  [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
1985
1984
  }
1986
1985
  }
@@ -1994,10 +1993,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1994
1993
  ]);
1995
1994
  if (tree.exists("package.json")) {
1996
1995
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
1997
- if (_optionalChain([packageJson, 'optionalAccess', _108 => _108.repository])) {
1996
+ if (_optionalChain([packageJson, 'optionalAccess', _105 => _105.repository])) {
1998
1997
  repository = packageJson.repository;
1999
1998
  }
2000
- if (_optionalChain([packageJson, 'optionalAccess', _109 => _109.description])) {
1999
+ if (_optionalChain([packageJson, 'optionalAccess', _106 => _106.description])) {
2001
2000
  description = packageJson.description;
2002
2001
  }
2003
2002
  }
@@ -2045,24 +2044,24 @@ _chunk3GQAWCBQjs.__name.call(void 0, getOutputPath, "getOutputPath");
2045
2044
  function createProjectTsConfigJson(tree, options) {
2046
2045
  const tsconfig = {
2047
2046
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
2048
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _110 => _110.tsconfigOptions]), () => ( {})),
2047
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _107 => _107.tsconfigOptions]), () => ( {})),
2049
2048
  compilerOptions: {
2050
2049
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
2051
2050
  outDir: _chunk7EE3ZWHRjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2052
2051
  noEmit: true,
2053
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _111 => _111.tsconfigOptions, 'optionalAccess', _112 => _112.compilerOptions]), () => ( {}))
2052
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _108 => _108.tsconfigOptions, 'optionalAccess', _109 => _109.compilerOptions]), () => ( {}))
2054
2053
  },
2055
2054
  files: [
2056
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _113 => _113.tsconfigOptions, 'optionalAccess', _114 => _114.files]), () => ( []))
2055
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _110 => _110.tsconfigOptions, 'optionalAccess', _111 => _111.files]), () => ( []))
2057
2056
  ],
2058
2057
  include: [
2059
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _115 => _115.tsconfigOptions, 'optionalAccess', _116 => _116.include]), () => ( [])),
2058
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _112 => _112.tsconfigOptions, 'optionalAccess', _113 => _113.include]), () => ( [])),
2060
2059
  "src/**/*.ts",
2061
2060
  "src/**/*.js",
2062
2061
  "bin/**/*"
2063
2062
  ],
2064
2063
  exclude: [
2065
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _117 => _117.tsconfigOptions, 'optionalAccess', _118 => _118.exclude]), () => ( [])),
2064
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _114 => _114.tsconfigOptions, 'optionalAccess', _115 => _115.exclude]), () => ( [])),
2066
2065
  "jest.config.ts",
2067
2066
  "src/**/*.spec.ts",
2068
2067
  "src/**/*.test.ts"
@@ -2073,8 +2072,8 @@ function createProjectTsConfigJson(tree, options) {
2073
2072
  _chunk3GQAWCBQjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
2074
2073
  async function normalizeOptions(tree, options, config) {
2075
2074
  let importPath = options.importPath;
2076
- if (!importPath && _optionalChain([config, 'optionalAccess', _119 => _119.namespace])) {
2077
- importPath = `@${_optionalChain([config, 'optionalAccess', _120 => _120.namespace])}/${options.name}`;
2075
+ if (!importPath && _optionalChain([config, 'optionalAccess', _116 => _116.namespace])) {
2076
+ importPath = `@${_optionalChain([config, 'optionalAccess', _117 => _117.namespace])}/${options.name}`;
2078
2077
  }
2079
2078
  if (options.publishable) {
2080
2079
  if (!importPath) {
@@ -2206,7 +2205,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
2206
2205
  name: "StormWorkspaceConfiguration"
2207
2206
  });
2208
2207
  _chunk7EE3ZWHRjs.writeTrace.call(void 0, jsonSchema, config);
2209
- const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _121 => _121.workspaceRoot]), () => ( _chunk7EE3ZWHRjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _122 => _122.outputFile, 'optionalAccess', _123 => _123.startsWith, 'call', _124 => _124("./")]) ? "" : "./");
2208
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _118 => _118.workspaceRoot]), () => ( _chunk7EE3ZWHRjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _119 => _119.outputFile, 'optionalAccess', _120 => _120.startsWith, 'call', _121 => _121("./")]) ? "" : "./");
2210
2209
  _chunk7EE3ZWHRjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2211
2210
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
2212
2211
  spaces: 2
@@ -1278,15 +1278,14 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1278
1278
  }, {})
1279
1279
  },
1280
1280
  inject: [
1281
- options.format === "cjs" && options.injectShims ? joinPaths(__dirname, "../assets/cjs_shims.js") : "",
1282
- options.format === "esm" && options.injectShims && options.platform === "node" ? joinPaths(__dirname, "../assets/esm_shims.js") : ""
1283
- ]
1281
+ options.format === "cjs" && options.injectShims ? joinPaths(__dirname, "../assets/cjs_shims.js") : void 0,
1282
+ options.format === "esm" && options.injectShims && options.platform === "node" ? joinPaths(__dirname, "../assets/esm_shims.js") : void 0
1283
+ ].filter(Boolean)
1284
1284
  };
1285
1285
  result.plugins = userOptions.plugins ?? getDefaultBuildPlugins(userOptions, result);
1286
- if (options.inject) {
1287
- options.inject = defu(result.inject, options.inject);
1286
+ if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
1287
+ result.inject = defu(result.inject, options.inject);
1288
1288
  }
1289
- options.inject?.filter(Boolean);
1290
1289
  delete result.entry;
1291
1290
  delete result.outputPath;
1292
1291
  stopwatch();
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-N2YKXZ5R.js');
2
2
 
3
3
 
4
- var _chunk67G4XZWIjs = require('./chunk-67G4XZWI.js');
4
+ var _chunkKWRMGGZSjs = require('./chunk-KWRMGGZS.js');
5
5
  require('./chunk-7EE3ZWHR.js');
6
6
  require('./chunk-3GQAWCBQ.js');
7
7
 
8
8
 
9
- exports.initGenerator = _chunk67G4XZWIjs.initGenerator;
9
+ exports.initGenerator = _chunkKWRMGGZSjs.initGenerator;
@@ -1,7 +1,7 @@
1
1
  import "./chunk-23KFTIT2.mjs";
2
2
  import {
3
3
  initGenerator
4
- } from "./chunk-WGOCJVNM.mjs";
4
+ } from "./chunk-T3CUIOQI.mjs";
5
5
  import "./chunk-NJ3UD3AW.mjs";
6
6
  import "./chunk-2BPV2XV2.mjs";
7
7
  export {
package/dist/index.js CHANGED
@@ -13,11 +13,11 @@ var _chunkILC773N2js = require('./chunk-ILC773N2.js');
13
13
  var _chunk7QES4OFYjs = require('./chunk-7QES4OFY.js');
14
14
 
15
15
 
16
- var _chunk67G4XZWIjs = require('./chunk-67G4XZWI.js');
16
+ var _chunkKWRMGGZSjs = require('./chunk-KWRMGGZS.js');
17
17
  require('./chunk-7EE3ZWHR.js');
18
18
  require('./chunk-3GQAWCBQ.js');
19
19
 
20
20
 
21
21
 
22
22
 
23
- exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator = _chunk67G4XZWIjs.initGenerator; exports.withTerraformExecutor = _chunk7QES4OFYjs.withTerraformExecutor;
23
+ exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator = _chunkKWRMGGZSjs.initGenerator; exports.withTerraformExecutor = _chunk7QES4OFYjs.withTerraformExecutor;
package/dist/index.mjs CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-B73EOUKJ.mjs";
14
14
  import {
15
15
  initGenerator
16
- } from "./chunk-WGOCJVNM.mjs";
16
+ } from "./chunk-T3CUIOQI.mjs";
17
17
  import "./chunk-NJ3UD3AW.mjs";
18
18
  import "./chunk-2BPV2XV2.mjs";
19
19
  export {
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk67G4XZWIjs = require('../../../chunk-67G4XZWI.js');
4
+ var _chunkKWRMGGZSjs = require('../../../chunk-KWRMGGZS.js');
5
5
  require('../../../chunk-7EE3ZWHR.js');
6
6
  require('../../../chunk-3GQAWCBQ.js');
7
7
 
8
8
 
9
9
 
10
- exports.default = _chunk67G4XZWIjs.init_default; exports.initGenerator = _chunk67G4XZWIjs.initGenerator;
10
+ exports.default = _chunkKWRMGGZSjs.init_default; exports.initGenerator = _chunkKWRMGGZSjs.initGenerator;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  initGenerator,
3
3
  init_default
4
- } from "../../../chunk-WGOCJVNM.mjs";
4
+ } from "../../../chunk-T3CUIOQI.mjs";
5
5
  import "../../../chunk-NJ3UD3AW.mjs";
6
6
  import "../../../chunk-2BPV2XV2.mjs";
7
7
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/terraform-tools",
3
- "version": "0.54.41",
3
+ "version": "0.54.42",
4
4
  "description": "Tools for managing Terraform infrastructure within a Nx workspace.",
5
5
  "repository": {
6
6
  "type": "github",