@storm-software/terraform-tools 0.54.85 → 0.54.87

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,22 @@
2
2
 
3
3
  # Changelog for Storm Ops - Terraform Tools
4
4
 
5
+ ## [0.54.87](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.54.87) (2025-04-30)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+ ([4b707da15](https://github.com/storm-software/storm-ops/commit/4b707da15))
11
+
12
+ ## [0.54.86](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.54.86) (2025-04-30)
13
+
14
+ ### Miscellaneous
15
+
16
+ - **esbuild:** Remove swc plugin for ESBuild
17
+ ([ad298c288](https://github.com/storm-software/storm-ops/commit/ad298c288))
18
+ - **monorepo:** Regenerate README markdown files
19
+ ([933d45f0b](https://github.com/storm-software/storm-ops/commit/933d45f0b))
20
+
5
21
  ## [0.54.85](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.54.85) (2025-04-30)
6
22
 
7
23
  ### Bug Fixes
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.84-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.86-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 -->
@@ -621,53 +621,6 @@ var DEFAULT_BUILD_OPTIONS = {
621
621
  }
622
622
  };
623
623
 
624
- // ../esbuild/src/plugins/resolve-paths.ts
625
- import path2 from "node:path";
626
- function resolvePathsConfig(options, cwd, projectRoot) {
627
- if (options?.compilerOptions?.paths) {
628
- const paths = Object.entries(options.compilerOptions.paths);
629
- const resolvedPaths = paths.map(([key, paths2]) => {
630
- return [key, paths2.map((v) => path2.resolve(cwd, v))];
631
- });
632
- return Object.fromEntries(resolvedPaths);
633
- }
634
- if (options.extends) {
635
- const extendsPath = path2.resolve(
636
- projectRoot ? joinPaths(cwd, projectRoot, options.extends) : joinPaths(cwd, options.extends)
637
- );
638
- const extendsDir = path2.dirname(extendsPath);
639
- const extendsConfig = __require(extendsPath);
640
- return resolvePathsConfig(extendsConfig, extendsDir);
641
- }
642
- return [];
643
- }
644
- var resolvePathsPlugin = (context) => ({
645
- name: "storm:resolve-paths",
646
- setup(build3) {
647
- const parentTsConfig = build3.initialOptions.tsconfig ? __require(joinPaths(
648
- context.workspaceConfig.workspaceRoot,
649
- build3.initialOptions.tsconfig.replace(
650
- context.workspaceConfig.workspaceRoot,
651
- ""
652
- )
653
- )) : __require(joinPaths(context.workspaceConfig.workspaceRoot, "tsconfig.json"));
654
- const resolvedTsPaths = resolvePathsConfig(
655
- parentTsConfig,
656
- context.workspaceConfig.workspaceRoot,
657
- context.options.projectRoot
658
- );
659
- const packagesRegex = new RegExp(
660
- `^(${Object.keys(resolvedTsPaths).join("|")})$`
661
- );
662
- build3.onResolve({ filter: packagesRegex }, (args) => {
663
- if (build3.initialOptions.external?.includes(args.path)) {
664
- return { path: args.path, external: true };
665
- }
666
- return { path: `${resolvedTsPaths[args.path][0]}/index.ts` };
667
- });
668
- }
669
- });
670
-
671
624
  // ../esbuild/src/context.ts
672
625
  async function resolveContext(userOptions) {
673
626
  const projectRoot = userOptions.projectRoot;
@@ -747,10 +700,7 @@ async function resolveContext(userOptions) {
747
700
  ),
748
701
  minify: resolvedOptions.minify || resolvedOptions.mode === "production"
749
702
  };
750
- context.options.esbuildPlugins = [
751
- resolvePathsPlugin(context),
752
- ...context.options.esbuildPlugins ?? []
753
- ];
703
+ context.options.esbuildPlugins = [...context.options.esbuildPlugins ?? []];
754
704
  return context;
755
705
  }
756
706
 
@@ -886,7 +836,7 @@ async function generatePackageJson(context) {
886
836
 
887
837
  // ../esbuild/src/plugins/deps-check.ts
888
838
  import { builtinModules as builtinModules2 } from "node:module";
889
- import path3 from "node:path";
839
+ import path2 from "node:path";
890
840
  var unusedIgnore = [
891
841
  // these are our dev dependencies
892
842
  /@types\/.*?/,
@@ -915,7 +865,7 @@ var missingIgnore = [".prisma", "@prisma/client", "ts-toolbelt"];
915
865
  var depsCheckPlugin = (bundle) => ({
916
866
  name: "storm:deps-check",
917
867
  setup(build3) {
918
- const pkgJsonPath = path3.join(process.cwd(), "package.json");
868
+ const pkgJsonPath = path2.join(process.cwd(), "package.json");
919
869
  const pkgContents = __require(pkgJsonPath);
920
870
  const regDependencies = Object.keys(pkgContents["dependencies"] ?? {});
921
871
  const devDependencies = Object.keys(pkgContents["devDependencies"] ?? {});
@@ -2039,7 +1989,7 @@ import {
2039
1989
  joinPathFragments as joinPathFragments4,
2040
1990
  updateJson as updateJson2
2041
1991
  } from "@nx/devkit";
2042
- import * as path4 from "node:path";
1992
+ import * as path3 from "node:path";
2043
1993
  async function presetGeneratorFn(tree, options) {
2044
1994
  const projectRoot = ".";
2045
1995
  options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
@@ -2187,7 +2137,7 @@ async function presetGeneratorFn(tree, options) {
2187
2137
  };
2188
2138
  return json;
2189
2139
  });
2190
- generateFiles4(tree, path4.join(__dirname, "files"), projectRoot, {
2140
+ generateFiles4(tree, path3.join(__dirname, "files"), projectRoot, {
2191
2141
  ...options,
2192
2142
  pnpmVersion,
2193
2143
  nodeVersion
@@ -29,7 +29,7 @@ var _devkit = require('@nx/devkit');
29
29
 
30
30
 
31
31
  var _child_process = require('child_process');
32
- var _path = require('path'); var path4 = _interopRequireWildcard(_path);
32
+ var _path = require('path'); var path3 = _interopRequireWildcard(_path);
33
33
  var INVALID_CARGO_ARGS = [
34
34
  "allFeatures",
35
35
  "allTargets",
@@ -620,53 +620,6 @@ var DEFAULT_BUILD_OPTIONS = {
620
620
  }
621
621
  };
622
622
 
623
- // ../esbuild/src/plugins/resolve-paths.ts
624
-
625
- function resolvePathsConfig(options, cwd, projectRoot) {
626
- if (_optionalChain([options, 'optionalAccess', _31 => _31.compilerOptions, 'optionalAccess', _32 => _32.paths])) {
627
- const paths = Object.entries(options.compilerOptions.paths);
628
- const resolvedPaths = paths.map(([key, paths2]) => {
629
- return [key, paths2.map((v) => path4.default.resolve(cwd, v))];
630
- });
631
- return Object.fromEntries(resolvedPaths);
632
- }
633
- if (options.extends) {
634
- const extendsPath = path4.default.resolve(
635
- projectRoot ? _chunkA4RDGLKCjs.joinPaths.call(void 0, cwd, projectRoot, options.extends) : _chunkA4RDGLKCjs.joinPaths.call(void 0, cwd, options.extends)
636
- );
637
- const extendsDir = path4.default.dirname(extendsPath);
638
- const extendsConfig = _chunk3RG5ZIWIjs.__require.call(void 0, extendsPath);
639
- return resolvePathsConfig(extendsConfig, extendsDir);
640
- }
641
- return [];
642
- }
643
- var resolvePathsPlugin = (context) => ({
644
- name: "storm:resolve-paths",
645
- setup(build3) {
646
- const parentTsConfig = build3.initialOptions.tsconfig ? _chunk3RG5ZIWIjs.__require.call(void 0, _chunkA4RDGLKCjs.joinPaths.call(void 0,
647
- context.workspaceConfig.workspaceRoot,
648
- build3.initialOptions.tsconfig.replace(
649
- context.workspaceConfig.workspaceRoot,
650
- ""
651
- )
652
- )) : _chunk3RG5ZIWIjs.__require.call(void 0, _chunkA4RDGLKCjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, "tsconfig.json"));
653
- const resolvedTsPaths = resolvePathsConfig(
654
- parentTsConfig,
655
- context.workspaceConfig.workspaceRoot,
656
- context.options.projectRoot
657
- );
658
- const packagesRegex = new RegExp(
659
- `^(${Object.keys(resolvedTsPaths).join("|")})$`
660
- );
661
- build3.onResolve({ filter: packagesRegex }, (args) => {
662
- if (_optionalChain([build3, 'access', _33 => _33.initialOptions, 'access', _34 => _34.external, 'optionalAccess', _35 => _35.includes, 'call', _36 => _36(args.path)])) {
663
- return { path: args.path, external: true };
664
- }
665
- return { path: `${resolvedTsPaths[args.path][0]}/index.ts` };
666
- });
667
- }
668
- });
669
-
670
623
  // ../esbuild/src/context.ts
671
624
  async function resolveContext(userOptions) {
672
625
  const projectRoot = userOptions.projectRoot;
@@ -694,7 +647,7 @@ async function resolveContext(userOptions) {
694
647
  const projectJson = JSON.parse(projectJsonFile);
695
648
  const projectName = projectJson.name || userOptions.name;
696
649
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
697
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _37 => _37.projects, 'optionalAccess', _38 => _38[projectName]])) {
650
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _31 => _31.projects, 'optionalAccess', _32 => _32[projectName]])) {
698
651
  throw new Error(
699
652
  "The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
700
653
  );
@@ -746,10 +699,7 @@ async function resolveContext(userOptions) {
746
699
  ),
747
700
  minify: resolvedOptions.minify || resolvedOptions.mode === "production"
748
701
  };
749
- context.options.esbuildPlugins = [
750
- resolvePathsPlugin(context),
751
- ..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))
752
- ];
702
+ context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
753
703
  return context;
754
704
  }
755
705
 
@@ -914,7 +864,7 @@ var missingIgnore = [".prisma", "@prisma/client", "ts-toolbelt"];
914
864
  var depsCheckPlugin = (bundle) => ({
915
865
  name: "storm:deps-check",
916
866
  setup(build3) {
917
- const pkgJsonPath = path4.default.join(process.cwd(), "package.json");
867
+ const pkgJsonPath = path3.default.join(process.cwd(), "package.json");
918
868
  const pkgContents = _chunk3RG5ZIWIjs.__require.call(void 0, pkgJsonPath);
919
869
  const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
920
870
  const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
@@ -984,7 +934,7 @@ async function executeTsup(context) {
984
934
 
985
935
  // ../esbuild/src/build.ts
986
936
  async function reportResults(context) {
987
- if (_optionalChain([context, 'access', _39 => _39.result, 'optionalAccess', _40 => _40.errors, 'access', _41 => _41.length]) === 0) {
937
+ if (_optionalChain([context, 'access', _33 => _33.result, 'optionalAccess', _34 => _34.errors, 'access', _35 => _35.length]) === 0) {
988
938
  if (context.result.warnings.length > 0) {
989
939
  _chunkA4RDGLKCjs.writeWarning.call(void 0,
990
940
  ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
@@ -995,7 +945,7 @@ async function reportResults(context) {
995
945
  ` \u{1F4E6} The ${context.options.name} build completed successfully`,
996
946
  context.workspaceConfig
997
947
  );
998
- } else if (_optionalChain([context, 'access', _42 => _42.result, 'optionalAccess', _43 => _43.errors]) && _optionalChain([context, 'access', _44 => _44.result, 'optionalAccess', _45 => _45.errors, 'access', _46 => _46.length]) > 0) {
948
+ } else if (_optionalChain([context, 'access', _36 => _36.result, 'optionalAccess', _37 => _37.errors]) && _optionalChain([context, 'access', _38 => _38.result, 'optionalAccess', _39 => _39.errors, 'access', _40 => _40.length]) > 0) {
999
949
  _chunkA4RDGLKCjs.writeError.call(void 0,
1000
950
  ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
1001
951
  context.workspaceConfig
@@ -1074,16 +1024,16 @@ async function build2(options) {
1074
1024
  // ../workspace-tools/src/executors/esbuild/executor.ts
1075
1025
  async function esbuildExecutorFn(options, context, config) {
1076
1026
  _chunkA4RDGLKCjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1077
- if (!_optionalChain([context, 'access', _47 => _47.projectsConfigurations, 'optionalAccess', _48 => _48.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _49 => _49.projectsConfigurations, 'access', _50 => _50.projects, 'access', _51 => _51[context.projectName], 'optionalAccess', _52 => _52.root])) {
1027
+ if (!_optionalChain([context, 'access', _41 => _41.projectsConfigurations, 'optionalAccess', _42 => _42.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _43 => _43.projectsConfigurations, 'access', _44 => _44.projects, 'access', _45 => _45[context.projectName], 'optionalAccess', _46 => _46.root])) {
1078
1028
  throw new Error(
1079
1029
  "The Build process failed because the context is not valid. Please run this command from a workspace."
1080
1030
  );
1081
1031
  }
1082
1032
  await build2({
1083
1033
  ...options,
1084
- projectRoot: _optionalChain([context, 'access', _53 => _53.projectsConfigurations, 'access', _54 => _54.projects, 'optionalAccess', _55 => _55[context.projectName], 'access', _56 => _56.root]),
1034
+ projectRoot: _optionalChain([context, 'access', _47 => _47.projectsConfigurations, 'access', _48 => _48.projects, 'optionalAccess', _49 => _49[context.projectName], 'access', _50 => _50.root]),
1085
1035
  name: context.projectName,
1086
- sourceRoot: _optionalChain([context, 'access', _57 => _57.projectsConfigurations, 'access', _58 => _58.projects, 'optionalAccess', _59 => _59[context.projectName], 'optionalAccess', _60 => _60.sourceRoot]),
1036
+ sourceRoot: _optionalChain([context, 'access', _51 => _51.projectsConfigurations, 'access', _52 => _52.projects, 'optionalAccess', _53 => _53[context.projectName], 'optionalAccess', _54 => _54.sourceRoot]),
1087
1037
  format: options.format,
1088
1038
  platform: options.format
1089
1039
  });
@@ -1127,15 +1077,15 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
1127
1077
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
1128
1078
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
1129
1079
  async function sizeLimitExecutorFn(options, context, config) {
1130
- if (!_optionalChain([context, 'optionalAccess', _61 => _61.projectName]) || !_optionalChain([context, 'access', _62 => _62.projectsConfigurations, 'optionalAccess', _63 => _63.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
1080
+ if (!_optionalChain([context, 'optionalAccess', _55 => _55.projectName]) || !_optionalChain([context, 'access', _56 => _56.projectsConfigurations, 'optionalAccess', _57 => _57.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
1131
1081
  throw new Error(
1132
1082
  "The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
1133
1083
  );
1134
1084
  }
1135
1085
  _chunkA4RDGLKCjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
1136
1086
  _sizelimit2.default.call(void 0, [_file2.default, _esbuild3.default, _esbuildwhy2.default], {
1137
- checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _64 => _64.projectsConfigurations, 'access', _65 => _65.projects, 'access', _66 => _66[context.projectName], 'optionalAccess', _67 => _67.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
1138
- _nullishCoalesce(_optionalChain([context, 'access', _68 => _68.projectsConfigurations, 'access', _69 => _69.projects, 'access', _70 => _70[context.projectName], 'optionalAccess', _71 => _71.root]), () => ( "./")),
1087
+ checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _58 => _58.projectsConfigurations, 'access', _59 => _59.projects, 'access', _60 => _60[context.projectName], 'optionalAccess', _61 => _61.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
1088
+ _nullishCoalesce(_optionalChain([context, 'access', _62 => _62.projectsConfigurations, 'access', _63 => _63.projects, 'access', _64 => _64[context.projectName], 'optionalAccess', _65 => _65.root]), () => ( "./")),
1139
1089
  "src"
1140
1090
  )))
1141
1091
  }).then((result) => {
@@ -1205,7 +1155,7 @@ var executor_default8 = _chunkA4RDGLKCjs.withRunExecutor.call(void 0,
1205
1155
  var _jiti = require('jiti');
1206
1156
  async function unbuildExecutorFn(options, context, config) {
1207
1157
  _chunkA4RDGLKCjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1208
- if (!_optionalChain([context, 'access', _72 => _72.projectsConfigurations, 'optionalAccess', _73 => _73.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
1158
+ if (!_optionalChain([context, 'access', _66 => _66.projectsConfigurations, 'optionalAccess', _67 => _67.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
1209
1159
  throw new Error(
1210
1160
  "The Build process failed because the context is not valid. Please run this command from a workspace root directory."
1211
1161
  );
@@ -1319,7 +1269,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
1319
1269
  );
1320
1270
  config = await _chunkA4RDGLKCjs.getConfig.call(void 0, workspaceRoot3);
1321
1271
  }
1322
- if (_optionalChain([generatorOptions, 'optionalAccess', _74 => _74.hooks, 'optionalAccess', _75 => _75.applyDefaultOptions])) {
1272
+ if (_optionalChain([generatorOptions, 'optionalAccess', _68 => _68.hooks, 'optionalAccess', _69 => _69.applyDefaultOptions])) {
1323
1273
  _chunkA4RDGLKCjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
1324
1274
  options = await Promise.resolve(
1325
1275
  generatorOptions.hooks.applyDefaultOptions(options, config)
@@ -1336,7 +1286,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1336
1286
  { workspaceRoot: tree.root, config },
1337
1287
  _chunkA4RDGLKCjs.applyWorkspaceBaseTokens
1338
1288
  );
1339
- if (_optionalChain([generatorOptions, 'optionalAccess', _76 => _76.hooks, 'optionalAccess', _77 => _77.preProcess])) {
1289
+ if (_optionalChain([generatorOptions, 'optionalAccess', _70 => _70.hooks, 'optionalAccess', _71 => _71.preProcess])) {
1340
1290
  _chunkA4RDGLKCjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
1341
1291
  await Promise.resolve(
1342
1292
  generatorOptions.hooks.preProcess(tokenized, config)
@@ -1347,15 +1297,15 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1347
1297
  generatorFn(tree, tokenized, config)
1348
1298
  );
1349
1299
  if (result) {
1350
- if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _78 => _78.error, 'optionalAccess', _79 => _79.message]) && typeof _optionalChain([result, 'optionalAccess', _80 => _80.error, 'optionalAccess', _81 => _81.message]) === "string" && _optionalChain([result, 'optionalAccess', _82 => _82.error, 'optionalAccess', _83 => _83.name]) && typeof _optionalChain([result, 'optionalAccess', _84 => _84.error, 'optionalAccess', _85 => _85.name]) === "string") {
1300
+ if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _72 => _72.error, 'optionalAccess', _73 => _73.message]) && typeof _optionalChain([result, 'optionalAccess', _74 => _74.error, 'optionalAccess', _75 => _75.message]) === "string" && _optionalChain([result, 'optionalAccess', _76 => _76.error, 'optionalAccess', _77 => _77.name]) && typeof _optionalChain([result, 'optionalAccess', _78 => _78.error, 'optionalAccess', _79 => _79.name]) === "string") {
1351
1301
  throw new Error(`The ${name} generator failed to run`, {
1352
- cause: _optionalChain([result, 'optionalAccess', _86 => _86.error])
1302
+ cause: _optionalChain([result, 'optionalAccess', _80 => _80.error])
1353
1303
  });
1354
1304
  } else if (result.success && result.data) {
1355
1305
  return result;
1356
1306
  }
1357
1307
  }
1358
- if (_optionalChain([generatorOptions, 'optionalAccess', _87 => _87.hooks, 'optionalAccess', _88 => _88.postProcess])) {
1308
+ if (_optionalChain([generatorOptions, 'optionalAccess', _81 => _81.hooks, 'optionalAccess', _82 => _82.postProcess])) {
1359
1309
  _chunkA4RDGLKCjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
1360
1310
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
1361
1311
  _chunkA4RDGLKCjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
@@ -1547,15 +1497,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1547
1497
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
1548
1498
  let repository = {
1549
1499
  type: "github",
1550
- url: _optionalChain([config, 'optionalAccess', _89 => _89.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _90 => _90.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _91 => _91.namespace]) || _optionalChain([config, 'optionalAccess', _92 => _92.name]) || "repository"}.git`
1500
+ url: _optionalChain([config, 'optionalAccess', _83 => _83.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _84 => _84.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _85 => _85.namespace]) || _optionalChain([config, 'optionalAccess', _86 => _86.name]) || "repository"}.git`
1551
1501
  };
1552
1502
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
1553
1503
  if (tree.exists("package.json")) {
1554
1504
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
1555
- if (_optionalChain([packageJson, 'optionalAccess', _93 => _93.repository])) {
1505
+ if (_optionalChain([packageJson, 'optionalAccess', _87 => _87.repository])) {
1556
1506
  repository = packageJson.repository;
1557
1507
  }
1558
- if (_optionalChain([packageJson, 'optionalAccess', _94 => _94.description])) {
1508
+ if (_optionalChain([packageJson, 'optionalAccess', _88 => _88.description])) {
1559
1509
  description = packageJson.description;
1560
1510
  }
1561
1511
  }
@@ -1610,9 +1560,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1610
1560
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
1611
1561
  ...json,
1612
1562
  pnpm: {
1613
- ..._optionalChain([json, 'optionalAccess', _95 => _95.pnpm]),
1563
+ ..._optionalChain([json, 'optionalAccess', _89 => _89.pnpm]),
1614
1564
  overrides: {
1615
- ..._optionalChain([json, 'optionalAccess', _96 => _96.pnpm, 'optionalAccess', _97 => _97.overrides]),
1565
+ ..._optionalChain([json, 'optionalAccess', _90 => _90.pnpm, 'optionalAccess', _91 => _91.overrides]),
1616
1566
  [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
1617
1567
  }
1618
1568
  }
@@ -1630,10 +1580,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1630
1580
  ]);
1631
1581
  if (tree.exists("package.json")) {
1632
1582
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
1633
- if (_optionalChain([packageJson, 'optionalAccess', _98 => _98.repository])) {
1583
+ if (_optionalChain([packageJson, 'optionalAccess', _92 => _92.repository])) {
1634
1584
  repository = packageJson.repository;
1635
1585
  }
1636
- if (_optionalChain([packageJson, 'optionalAccess', _99 => _99.description])) {
1586
+ if (_optionalChain([packageJson, 'optionalAccess', _93 => _93.description])) {
1637
1587
  description = packageJson.description;
1638
1588
  }
1639
1589
  }
@@ -1670,22 +1620,22 @@ function getOutputPath(options) {
1670
1620
  function createProjectTsConfigJson(tree, options) {
1671
1621
  const tsconfig = {
1672
1622
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
1673
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _100 => _100.tsconfigOptions]), () => ( {})),
1623
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _94 => _94.tsconfigOptions]), () => ( {})),
1674
1624
  compilerOptions: {
1675
1625
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
1676
1626
  outDir: _chunkA4RDGLKCjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
1677
1627
  noEmit: true,
1678
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _101 => _101.tsconfigOptions, 'optionalAccess', _102 => _102.compilerOptions]), () => ( {}))
1628
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _95 => _95.tsconfigOptions, 'optionalAccess', _96 => _96.compilerOptions]), () => ( {}))
1679
1629
  },
1680
- files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _103 => _103.tsconfigOptions, 'optionalAccess', _104 => _104.files]), () => ( []))],
1630
+ files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _97 => _97.tsconfigOptions, 'optionalAccess', _98 => _98.files]), () => ( []))],
1681
1631
  include: [
1682
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _105 => _105.tsconfigOptions, 'optionalAccess', _106 => _106.include]), () => ( [])),
1632
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _99 => _99.tsconfigOptions, 'optionalAccess', _100 => _100.include]), () => ( [])),
1683
1633
  "src/**/*.ts",
1684
1634
  "src/**/*.js",
1685
1635
  "bin/**/*"
1686
1636
  ],
1687
1637
  exclude: [
1688
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _107 => _107.tsconfigOptions, 'optionalAccess', _108 => _108.exclude]), () => ( [])),
1638
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _101 => _101.tsconfigOptions, 'optionalAccess', _102 => _102.exclude]), () => ( [])),
1689
1639
  "jest.config.ts",
1690
1640
  "src/**/*.spec.ts",
1691
1641
  "src/**/*.test.ts"
@@ -1695,8 +1645,8 @@ function createProjectTsConfigJson(tree, options) {
1695
1645
  }
1696
1646
  async function normalizeOptions(tree, options, config) {
1697
1647
  let importPath = options.importPath;
1698
- if (!importPath && _optionalChain([config, 'optionalAccess', _109 => _109.namespace])) {
1699
- importPath = `@${_optionalChain([config, 'optionalAccess', _110 => _110.namespace])}/${options.name}`;
1648
+ if (!importPath && _optionalChain([config, 'optionalAccess', _103 => _103.namespace])) {
1649
+ importPath = `@${_optionalChain([config, 'optionalAccess', _104 => _104.namespace])}/${options.name}`;
1700
1650
  }
1701
1651
  if (options.publishable) {
1702
1652
  if (!importPath) {
@@ -1852,8 +1802,8 @@ async function configSchemaGeneratorFn(tree, options, config) {
1852
1802
  });
1853
1803
  _chunkA4RDGLKCjs.writeTrace.call(void 0, jsonSchema, config);
1854
1804
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
1855
- _nullishCoalesce(_optionalChain([config, 'optionalAccess', _111 => _111.workspaceRoot]), () => ( _chunkA4RDGLKCjs.findWorkspaceRoot.call(void 0, ))),
1856
- _optionalChain([options, 'access', _112 => _112.outputFile, 'optionalAccess', _113 => _113.startsWith, 'call', _114 => _114("./")]) ? "" : "./"
1805
+ _nullishCoalesce(_optionalChain([config, 'optionalAccess', _105 => _105.workspaceRoot]), () => ( _chunkA4RDGLKCjs.findWorkspaceRoot.call(void 0, ))),
1806
+ _optionalChain([options, 'access', _106 => _106.outputFile, 'optionalAccess', _107 => _107.startsWith, 'call', _108 => _108("./")]) ? "" : "./"
1857
1807
  );
1858
1808
  _chunkA4RDGLKCjs.writeTrace.call(void 0,
1859
1809
  `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
@@ -2186,7 +2136,7 @@ async function presetGeneratorFn(tree, options) {
2186
2136
  };
2187
2137
  return json;
2188
2138
  });
2189
- _devkit.generateFiles.call(void 0, tree, path4.join(__dirname, "files"), projectRoot, {
2139
+ _devkit.generateFiles.call(void 0, tree, path3.join(__dirname, "files"), projectRoot, {
2190
2140
  ...options,
2191
2141
  pnpmVersion,
2192
2142
  nodeVersion
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-N2YKXZ5R.js');
2
2
 
3
3
 
4
- var _chunkS6UZXYLHjs = require('./chunk-S6UZXYLH.js');
4
+ var _chunkN5AGYIJOjs = require('./chunk-N5AGYIJO.js');
5
5
  require('./chunk-A4RDGLKC.js');
6
6
  require('./chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
- exports.initGenerator = _chunkS6UZXYLHjs.initGenerator;
9
+ exports.initGenerator = _chunkN5AGYIJOjs.initGenerator;
@@ -1,7 +1,7 @@
1
1
  import "./chunk-23KFTIT2.mjs";
2
2
  import {
3
3
  initGenerator
4
- } from "./chunk-3VZ6A6RG.mjs";
4
+ } from "./chunk-L3RPHNAE.mjs";
5
5
  import "./chunk-DIXFQWYR.mjs";
6
6
  import "./chunk-IEZKYJSF.mjs";
7
7
  export {
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ require('./chunk-WJV4GOSN.js');
5
5
  require('./chunk-N2YKXZ5R.js');
6
6
 
7
7
 
8
- var _chunkS6UZXYLHjs = require('./chunk-S6UZXYLH.js');
8
+ var _chunkN5AGYIJOjs = require('./chunk-N5AGYIJO.js');
9
9
  require('./chunk-GUQOEBFW.js');
10
10
 
11
11
 
@@ -20,4 +20,4 @@ require('./chunk-3RG5ZIWI.js');
20
20
 
21
21
 
22
22
 
23
- exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator = _chunkS6UZXYLHjs.initGenerator; exports.withTerraformExecutor = _chunkZLPOE4VZjs.withTerraformExecutor;
23
+ exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator = _chunkN5AGYIJOjs.initGenerator; exports.withTerraformExecutor = _chunkZLPOE4VZjs.withTerraformExecutor;
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import "./chunk-ONGG25RY.mjs";
5
5
  import "./chunk-23KFTIT2.mjs";
6
6
  import {
7
7
  initGenerator
8
- } from "./chunk-3VZ6A6RG.mjs";
8
+ } from "./chunk-L3RPHNAE.mjs";
9
9
  import "./chunk-CA7S5MOH.mjs";
10
10
  import {
11
11
  base_terraform_executor_untyped_default
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkS6UZXYLHjs = require('../../../chunk-S6UZXYLH.js');
4
+ var _chunkN5AGYIJOjs = require('../../../chunk-N5AGYIJO.js');
5
5
  require('../../../chunk-A4RDGLKC.js');
6
6
  require('../../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
9
 
10
- exports.default = _chunkS6UZXYLHjs.init_default; exports.initGenerator = _chunkS6UZXYLHjs.initGenerator;
10
+ exports.default = _chunkN5AGYIJOjs.init_default; exports.initGenerator = _chunkN5AGYIJOjs.initGenerator;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  initGenerator,
3
3
  init_default
4
- } from "../../../chunk-3VZ6A6RG.mjs";
4
+ } from "../../../chunk-L3RPHNAE.mjs";
5
5
  import "../../../chunk-DIXFQWYR.mjs";
6
6
  import "../../../chunk-IEZKYJSF.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.85",
3
+ "version": "0.54.87",
4
4
  "description": "Tools for managing Terraform infrastructure within a Nx workspace.",
5
5
  "repository": {
6
6
  "type": "github",
@@ -31,16 +31,28 @@
31
31
  "types": "./dist/index.d.mts",
32
32
  "default": "./dist/index.mjs"
33
33
  },
34
- "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
35
- "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
34
+ "require": {
35
+ "types": "./dist/index.d.ts",
36
+ "default": "./dist/index.js"
37
+ },
38
+ "default": {
39
+ "types": "./dist/index.d.ts",
40
+ "default": "./dist/index.js"
41
+ }
36
42
  },
37
43
  "./index": {
38
44
  "import": {
39
45
  "types": "./dist/index.d.mts",
40
46
  "default": "./dist/index.mjs"
41
47
  },
42
- "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
43
- "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
48
+ "require": {
49
+ "types": "./dist/index.d.ts",
50
+ "default": "./dist/index.js"
51
+ },
52
+ "default": {
53
+ "types": "./dist/index.d.ts",
54
+ "default": "./dist/index.js"
55
+ }
44
56
  },
45
57
  "./executors": {
46
58
  "import": {
@@ -121,10 +133,16 @@
121
133
  "untyped": "1.5.2"
122
134
  },
123
135
  "peerDependenciesMeta": {
124
- "@nx/devkit": { "optional": false },
125
- "nx": { "optional": false }
136
+ "@nx/devkit": {
137
+ "optional": false
138
+ },
139
+ "nx": {
140
+ "optional": false
141
+ }
142
+ },
143
+ "dependencies": {
144
+ "shelljs": "^0.8.5"
126
145
  },
127
- "dependencies": { "shelljs": "^0.8.5" },
128
146
  "devDependencies": {
129
147
  "@nx/devkit": "20.8.0",
130
148
  "@types/node": "^22.10.2",
@@ -132,7 +150,9 @@
132
150
  "tsup": "8.4.0",
133
151
  "untyped": "^1.5.2"
134
152
  },
135
- "publishConfig": { "access": "public" },
153
+ "publishConfig": {
154
+ "access": "public"
155
+ },
136
156
  "executors": "./executors.json",
137
157
  "generators": "./generators.json"
138
- }
158
+ }