@storm-software/terraform-tools 0.54.19 → 0.54.20

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
@@ -1,3 +1,9 @@
1
+ ## 0.54.20 (2025-02-01)
2
+
3
+ ### Miscellaneous
4
+
5
+ - **monorepo:** Regenerate README markdown files ([af5c80fa](https://github.com/storm-software/storm-ops/commit/af5c80fa))
6
+
1
7
  ## 0.54.19 (2025-01-29)
2
8
 
3
9
  ### 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.18-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.19-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 -->
@@ -349,7 +349,8 @@ var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
349
349
 
350
350
  var _projectgraph = require('nx/src/project-graph/project-graph');
351
351
  var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot3, projectRoot, projectName, packageJson) => {
352
- const projectDependencies = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0, void 0, _projectgraph.readCachedProjectGraph.call(void 0, ), workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
352
+ const projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
353
+ const projectDependencies = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0, void 0, projectGraph, workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
353
354
  const localPackages = [];
354
355
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
355
356
  const projectNode = project.node;
@@ -366,26 +367,38 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
366
367
  }
367
368
  if (localPackages.length > 0) {
368
369
  _chunkGCCFZEDUjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
369
- packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
370
- if (!ret[localPackage.name]) {
371
- ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
370
+ const projectJsonFile = await _promises.readFile.call(void 0, _chunkGCCFZEDUjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
371
+ const projectJson = JSON.parse(projectJsonFile);
372
+ const projectName2 = projectJson.name;
373
+ const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
374
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _5 => _5.projects, 'optionalAccess', _6 => _6[projectName2]])) {
375
+ throw new Error("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.");
376
+ }
377
+ const implicitDependencies = _optionalChain([projectConfigurations, 'access', _7 => _7.projects, 'optionalAccess', _8 => _8[projectName2], 'access', _9 => _9.implicitDependencies, 'optionalAccess', _10 => _10.reduce, 'call', _11 => _11((ret, dep) => {
378
+ if (_optionalChain([projectConfigurations, 'access', _12 => _12.projects, 'optionalAccess', _13 => _13[dep]])) {
379
+ const depPackageJsonPath = _chunkGCCFZEDUjs.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
380
+ if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
381
+ const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
382
+ const depPackageJson = JSON.parse(depPackageJsonContent);
383
+ if (depPackageJson.private !== true && !ret.includes(depPackageJson.name)) {
384
+ ret.push(depPackageJson.name);
385
+ }
386
+ }
372
387
  }
373
388
  return ret;
374
- }, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
375
- packageJson.peerDependenciesMeta = localPackages.reduce((ret, localPackage) => {
376
- if (!ret[localPackage.name]) {
377
- ret[localPackage.name] = {
378
- optional: false
379
- };
389
+ }, [])]);
390
+ packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
391
+ if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _14 => _14.includes, 'call', _15 => _15(localPackage.name)])) {
392
+ ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
380
393
  }
381
394
  return ret;
382
- }, _nullishCoalesce(packageJson.peerDependenciesMeta, () => ( {})));
395
+ }, _nullishCoalesce(packageJson.dependencies, () => ( {})));
383
396
  packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
384
- if (!ret[localPackage.name]) {
397
+ if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _16 => _16.includes, 'call', _17 => _17(localPackage.name)])) {
385
398
  ret[localPackage.name] = localPackage.version || "0.0.1";
386
399
  }
387
400
  return ret;
388
- }, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
401
+ }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
389
402
  } else {
390
403
  _chunkGCCFZEDUjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
391
404
  }
@@ -617,15 +630,15 @@ var RendererEngine = class {
617
630
  if (!relativePath.startsWith("\\\\?\\")) {
618
631
  relativePath = relativePath.replace(/\\/g, "/");
619
632
  }
620
- const meta = _optionalChain([metafile, 'optionalAccess', _5 => _5.outputs, 'access', _6 => _6[relativePath]]);
633
+ const meta = _optionalChain([metafile, 'optionalAccess', _18 => _18.outputs, 'access', _19 => _19[relativePath]]);
621
634
  return {
622
635
  type: "chunk",
623
636
  path: file.path,
624
637
  code: file.text,
625
- map: _optionalChain([outputFiles, 'access', _7 => _7.find, 'call', _8 => _8((f) => f.path === `${file.path}.map`), 'optionalAccess', _9 => _9.text]),
626
- entryPoint: _optionalChain([meta, 'optionalAccess', _10 => _10.entryPoint]),
627
- exports: _optionalChain([meta, 'optionalAccess', _11 => _11.exports]),
628
- imports: _optionalChain([meta, 'optionalAccess', _12 => _12.imports])
638
+ map: _optionalChain([outputFiles, 'access', _20 => _20.find, 'call', _21 => _21((f) => f.path === `${file.path}.map`), 'optionalAccess', _22 => _22.text]),
639
+ entryPoint: _optionalChain([meta, 'optionalAccess', _23 => _23.entryPoint]),
640
+ exports: _optionalChain([meta, 'optionalAccess', _24 => _24.exports]),
641
+ imports: _optionalChain([meta, 'optionalAccess', _25 => _25.imports])
629
642
  };
630
643
  } else {
631
644
  return {
@@ -708,7 +721,7 @@ var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void
708
721
  name: "storm:esm-split-code-to-cjs",
709
722
  setup(build5) {
710
723
  build5.onEnd(async (result) => {
711
- const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _13 => _13.metafile, 'optionalAccess', _14 => _14.outputs]), () => ( {})));
724
+ const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _26 => _26.metafile, 'optionalAccess', _27 => _27.outputs]), () => ( {})));
712
725
  const jsFiles = outFiles.filter((f) => f.endsWith("js"));
713
726
  await esbuild.build({
714
727
  outdir: resolvedOptions.outdir,
@@ -830,7 +843,7 @@ ${result.errors.map((error) => error.text).join("\n")}
830
843
  // ../esbuild/src/plugins/resolve-paths.ts
831
844
 
832
845
  function resolvePathsConfig(options, cwd) {
833
- if (_optionalChain([options, 'optionalAccess', _15 => _15.compilerOptions, 'optionalAccess', _16 => _16.paths])) {
846
+ if (_optionalChain([options, 'optionalAccess', _28 => _28.compilerOptions, 'optionalAccess', _29 => _29.paths])) {
834
847
  const paths = Object.entries(options.compilerOptions.paths);
835
848
  const resolvedPaths = paths.map(([key, paths2]) => {
836
849
  return [
@@ -858,7 +871,7 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (o
858
871
  build5.onResolve({
859
872
  filter: packagesRegex
860
873
  }, (args) => {
861
- if (_optionalChain([build5, 'access', _17 => _17.initialOptions, 'access', _18 => _18.external, 'optionalAccess', _19 => _19.includes, 'call', _20 => _20(args.path)])) {
874
+ if (_optionalChain([build5, 'access', _30 => _30.initialOptions, 'access', _31 => _31.external, 'optionalAccess', _32 => _32.includes, 'call', _33 => _33(args.path)])) {
862
875
  return {
863
876
  path: args.path,
864
877
  external: true
@@ -967,7 +980,7 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, r
967
980
  function getTypeDependencyPackageName(npmPackage) {
968
981
  if (npmPackage.startsWith("@")) {
969
982
  const [scope, name] = npmPackage.split("/");
970
- return `@types/${_optionalChain([scope, 'optionalAccess', _21 => _21.slice, 'call', _22 => _22(1)])}__${name}`;
983
+ return `@types/${_optionalChain([scope, 'optionalAccess', _34 => _34.slice, 'call', _35 => _35(1)])}__${name}`;
971
984
  }
972
985
  return `@types/${npmPackage}`;
973
986
  }
@@ -1174,7 +1187,7 @@ function pipeSync(fn, ...fns) {
1174
1187
  return (...args) => {
1175
1188
  let result = fn(...args);
1176
1189
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1177
- result = _optionalChain([fns, 'access', _23 => _23[i], 'optionalCall', _24 => _24(result)]);
1190
+ result = _optionalChain([fns, 'access', _36 => _36[i], 'optionalCall', _37 => _37(result)]);
1178
1191
  }
1179
1192
  return result;
1180
1193
  };
@@ -1184,7 +1197,7 @@ function pipeAsync(fn, ...fns) {
1184
1197
  return async (...args) => {
1185
1198
  let result = await fn(...args);
1186
1199
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1187
- result = await _optionalChain([fns, 'access', _25 => _25[i], 'optionalCall', _26 => _26(result)]);
1200
+ result = await _optionalChain([fns, 'access', _38 => _38[i], 'optionalCall', _39 => _39(result)]);
1188
1201
  }
1189
1202
  return result;
1190
1203
  };
@@ -1214,7 +1227,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1214
1227
  const projectJson = JSON.parse(projectJsonFile);
1215
1228
  const projectName = projectJson.name;
1216
1229
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1217
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _27 => _27.projects, 'optionalAccess', _28 => _28[projectName]])) {
1230
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _40 => _40.projects, 'optionalAccess', _41 => _41[projectName]])) {
1218
1231
  throw new Error("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.");
1219
1232
  }
1220
1233
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
@@ -1392,7 +1405,7 @@ async function executeEsBuild(context2) {
1392
1405
  }
1393
1406
  _chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1394
1407
  async function copyBuildAssets(context2) {
1395
- if (_optionalChain([context2, 'access', _29 => _29.result, 'optionalAccess', _30 => _30.errors, 'access', _31 => _31.length]) === 0) {
1408
+ if (_optionalChain([context2, 'access', _42 => _42.result, 'optionalAccess', _43 => _43.errors, 'access', _44 => _44.length]) === 0) {
1396
1409
  _chunkGCCFZEDUjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1397
1410
  const stopwatch = _chunkGCCFZEDUjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1398
1411
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
@@ -1402,7 +1415,7 @@ async function copyBuildAssets(context2) {
1402
1415
  }
1403
1416
  _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1404
1417
  async function reportResults(context2) {
1405
- if (_optionalChain([context2, 'access', _32 => _32.result, 'optionalAccess', _33 => _33.errors, 'access', _34 => _34.length]) === 0) {
1418
+ if (_optionalChain([context2, 'access', _45 => _45.result, 'optionalAccess', _46 => _46.errors, 'access', _47 => _47.length]) === 0) {
1406
1419
  if (context2.result.warnings.length > 0) {
1407
1420
  _chunkGCCFZEDUjs.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);
1408
1421
  }
@@ -1503,14 +1516,14 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
1503
1516
  // ../workspace-tools/src/executors/esbuild/executor.ts
1504
1517
  async function esbuildExecutorFn(options, context2, config) {
1505
1518
  _chunkGCCFZEDUjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1506
- if (!_optionalChain([context2, 'access', _35 => _35.projectsConfigurations, 'optionalAccess', _36 => _36.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _37 => _37.projectsConfigurations, 'access', _38 => _38.projects, 'access', _39 => _39[context2.projectName], 'optionalAccess', _40 => _40.root])) {
1519
+ if (!_optionalChain([context2, 'access', _48 => _48.projectsConfigurations, 'optionalAccess', _49 => _49.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _50 => _50.projectsConfigurations, 'access', _51 => _51.projects, 'access', _52 => _52[context2.projectName], 'optionalAccess', _53 => _53.root])) {
1507
1520
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1508
1521
  }
1509
1522
  await build3({
1510
1523
  ...options,
1511
- projectRoot: _optionalChain([context2, 'access', _41 => _41.projectsConfigurations, 'access', _42 => _42.projects, 'optionalAccess', _43 => _43[context2.projectName], 'access', _44 => _44.root]),
1524
+ projectRoot: _optionalChain([context2, 'access', _54 => _54.projectsConfigurations, 'access', _55 => _55.projects, 'optionalAccess', _56 => _56[context2.projectName], 'access', _57 => _57.root]),
1512
1525
  projectName: context2.projectName,
1513
- sourceRoot: _optionalChain([context2, 'access', _45 => _45.projectsConfigurations, 'access', _46 => _46.projects, 'optionalAccess', _47 => _47[context2.projectName], 'optionalAccess', _48 => _48.sourceRoot]),
1526
+ sourceRoot: _optionalChain([context2, 'access', _58 => _58.projectsConfigurations, 'access', _59 => _59.projects, 'optionalAccess', _60 => _60[context2.projectName], 'optionalAccess', _61 => _61.sourceRoot]),
1514
1527
  format: options.format,
1515
1528
  platform: options.format
1516
1529
  });
@@ -1553,7 +1566,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
1553
1566
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
1554
1567
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
1555
1568
  async function sizeLimitExecutorFn(options, context2, config) {
1556
- if (!_optionalChain([context2, 'optionalAccess', _49 => _49.projectName]) || !_optionalChain([context2, 'access', _50 => _50.projectsConfigurations, 'optionalAccess', _51 => _51.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1569
+ if (!_optionalChain([context2, 'optionalAccess', _62 => _62.projectName]) || !_optionalChain([context2, 'access', _63 => _63.projectsConfigurations, 'optionalAccess', _64 => _64.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1557
1570
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
1558
1571
  }
1559
1572
  _chunkGCCFZEDUjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
@@ -1562,7 +1575,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
1562
1575
  _esbuild3.default,
1563
1576
  _esbuildwhy2.default
1564
1577
  ], {
1565
- checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _52 => _52.projectsConfigurations, 'access', _53 => _53.projects, 'access', _54 => _54[context2.projectName], 'optionalAccess', _55 => _55.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _56 => _56.projectsConfigurations, 'access', _57 => _57.projects, 'access', _58 => _58[context2.projectName], 'optionalAccess', _59 => _59.root]), () => ( "./")), "src")))
1578
+ checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _65 => _65.projectsConfigurations, 'access', _66 => _66.projects, 'access', _67 => _67[context2.projectName], 'optionalAccess', _68 => _68.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _69 => _69.projectsConfigurations, 'access', _70 => _70.projects, 'access', _71 => _71[context2.projectName], 'optionalAccess', _72 => _72.root]), () => ( "./")), "src")))
1566
1579
  }).then((result) => {
1567
1580
  _chunkGCCFZEDUjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1568
1581
  });
@@ -1641,7 +1654,7 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1641
1654
  const projectJson = JSON.parse(projectJsonFile);
1642
1655
  const projectName = projectJson.name;
1643
1656
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1644
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _60 => _60.projects, 'optionalAccess', _61 => _61[projectName]])) {
1657
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _73 => _73.projects, 'optionalAccess', _74 => _74[projectName]])) {
1645
1658
  throw new Error("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.");
1646
1659
  }
1647
1660
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS2);
@@ -1825,14 +1838,14 @@ _chunk3GQAWCBQjs.__name.call(void 0, build4, "build");
1825
1838
  // ../workspace-tools/src/executors/tsdown/executor.ts
1826
1839
  async function tsdownExecutorFn(options, context2, config) {
1827
1840
  _chunkGCCFZEDUjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
1828
- if (!_optionalChain([context2, 'access', _62 => _62.projectsConfigurations, 'optionalAccess', _63 => _63.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _64 => _64.projectsConfigurations, 'access', _65 => _65.projects, 'access', _66 => _66[context2.projectName], 'optionalAccess', _67 => _67.root])) {
1841
+ if (!_optionalChain([context2, 'access', _75 => _75.projectsConfigurations, 'optionalAccess', _76 => _76.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _77 => _77.projectsConfigurations, 'access', _78 => _78.projects, 'access', _79 => _79[context2.projectName], 'optionalAccess', _80 => _80.root])) {
1829
1842
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1830
1843
  }
1831
1844
  await build4({
1832
1845
  ...options,
1833
- projectRoot: _optionalChain([context2, 'access', _68 => _68.projectsConfigurations, 'access', _69 => _69.projects, 'optionalAccess', _70 => _70[context2.projectName], 'access', _71 => _71.root]),
1846
+ projectRoot: _optionalChain([context2, 'access', _81 => _81.projectsConfigurations, 'access', _82 => _82.projects, 'optionalAccess', _83 => _83[context2.projectName], 'access', _84 => _84.root]),
1834
1847
  projectName: context2.projectName,
1835
- sourceRoot: _optionalChain([context2, 'access', _72 => _72.projectsConfigurations, 'access', _73 => _73.projects, 'optionalAccess', _74 => _74[context2.projectName], 'optionalAccess', _75 => _75.sourceRoot]),
1848
+ sourceRoot: _optionalChain([context2, 'access', _85 => _85.projectsConfigurations, 'access', _86 => _86.projects, 'optionalAccess', _87 => _87[context2.projectName], 'optionalAccess', _88 => _88.sourceRoot]),
1836
1849
  format: options.format,
1837
1850
  platform: options.platform
1838
1851
  });
@@ -1896,7 +1909,7 @@ var executor_default9 = _chunkGCCFZEDUjs.withRunExecutor.call(void 0, "Typia run
1896
1909
  var _jiti = require('jiti');
1897
1910
  async function unbuildExecutorFn(options, context2, config) {
1898
1911
  _chunkGCCFZEDUjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1899
- if (!_optionalChain([context2, 'access', _76 => _76.projectsConfigurations, 'optionalAccess', _77 => _77.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
1912
+ if (!_optionalChain([context2, 'access', _89 => _89.projectsConfigurations, 'optionalAccess', _90 => _90.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
1900
1913
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
1901
1914
  }
1902
1915
  if (!context2.projectsConfigurations.projects[context2.projectName].root) {
@@ -1979,7 +1992,7 @@ var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (nam
1979
1992
  - workspaceRoot: ${workspaceRoot3}`, config);
1980
1993
  config = await _chunkGCCFZEDUjs.getConfig.call(void 0, workspaceRoot3);
1981
1994
  }
1982
- if (_optionalChain([generatorOptions, 'optionalAccess', _78 => _78.hooks, 'optionalAccess', _79 => _79.applyDefaultOptions])) {
1995
+ if (_optionalChain([generatorOptions, 'optionalAccess', _91 => _91.hooks, 'optionalAccess', _92 => _92.applyDefaultOptions])) {
1983
1996
  _chunkGCCFZEDUjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
1984
1997
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
1985
1998
  _chunkGCCFZEDUjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
@@ -1990,22 +2003,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1990
2003
  workspaceRoot: tree.root,
1991
2004
  config
1992
2005
  }, _chunkGCCFZEDUjs.applyWorkspaceBaseTokens);
1993
- if (_optionalChain([generatorOptions, 'optionalAccess', _80 => _80.hooks, 'optionalAccess', _81 => _81.preProcess])) {
2006
+ if (_optionalChain([generatorOptions, 'optionalAccess', _93 => _93.hooks, 'optionalAccess', _94 => _94.preProcess])) {
1994
2007
  _chunkGCCFZEDUjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
1995
2008
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
1996
2009
  _chunkGCCFZEDUjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
1997
2010
  }
1998
2011
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
1999
2012
  if (result) {
2000
- if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _82 => _82.error, 'optionalAccess', _83 => _83.message]) && typeof _optionalChain([result, 'optionalAccess', _84 => _84.error, 'optionalAccess', _85 => _85.message]) === "string" && _optionalChain([result, 'optionalAccess', _86 => _86.error, 'optionalAccess', _87 => _87.name]) && typeof _optionalChain([result, 'optionalAccess', _88 => _88.error, 'optionalAccess', _89 => _89.name]) === "string") {
2013
+ if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _95 => _95.error, 'optionalAccess', _96 => _96.message]) && typeof _optionalChain([result, 'optionalAccess', _97 => _97.error, 'optionalAccess', _98 => _98.message]) === "string" && _optionalChain([result, 'optionalAccess', _99 => _99.error, 'optionalAccess', _100 => _100.name]) && typeof _optionalChain([result, 'optionalAccess', _101 => _101.error, 'optionalAccess', _102 => _102.name]) === "string") {
2001
2014
  throw new Error(`The ${name} generator failed to run`, {
2002
- cause: _optionalChain([result, 'optionalAccess', _90 => _90.error])
2015
+ cause: _optionalChain([result, 'optionalAccess', _103 => _103.error])
2003
2016
  });
2004
2017
  } else if (result.success && result.data) {
2005
2018
  return result;
2006
2019
  }
2007
2020
  }
2008
- if (_optionalChain([generatorOptions, 'optionalAccess', _91 => _91.hooks, 'optionalAccess', _92 => _92.postProcess])) {
2021
+ if (_optionalChain([generatorOptions, 'optionalAccess', _104 => _104.hooks, 'optionalAccess', _105 => _105.postProcess])) {
2009
2022
  _chunkGCCFZEDUjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2010
2023
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
2011
2024
  _chunkGCCFZEDUjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
@@ -2171,15 +2184,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2171
2184
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
2172
2185
  let repository = {
2173
2186
  type: "github",
2174
- url: _optionalChain([config, 'optionalAccess', _93 => _93.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _94 => _94.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _95 => _95.namespace]) || _optionalChain([config, 'optionalAccess', _96 => _96.name]) || "repository"}.git`
2187
+ url: _optionalChain([config, 'optionalAccess', _106 => _106.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _107 => _107.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _108 => _108.namespace]) || _optionalChain([config, 'optionalAccess', _109 => _109.name]) || "repository"}.git`
2175
2188
  };
2176
2189
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
2177
2190
  if (tree.exists("package.json")) {
2178
2191
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2179
- if (_optionalChain([packageJson, 'optionalAccess', _97 => _97.repository])) {
2192
+ if (_optionalChain([packageJson, 'optionalAccess', _110 => _110.repository])) {
2180
2193
  repository = packageJson.repository;
2181
2194
  }
2182
- if (_optionalChain([packageJson, 'optionalAccess', _98 => _98.description])) {
2195
+ if (_optionalChain([packageJson, 'optionalAccess', _111 => _111.description])) {
2183
2196
  description = packageJson.description;
2184
2197
  }
2185
2198
  }
@@ -2234,9 +2247,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2234
2247
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
2235
2248
  ...json,
2236
2249
  pnpm: {
2237
- ..._optionalChain([json, 'optionalAccess', _99 => _99.pnpm]),
2250
+ ..._optionalChain([json, 'optionalAccess', _112 => _112.pnpm]),
2238
2251
  overrides: {
2239
- ..._optionalChain([json, 'optionalAccess', _100 => _100.pnpm, 'optionalAccess', _101 => _101.overrides]),
2252
+ ..._optionalChain([json, 'optionalAccess', _113 => _113.pnpm, 'optionalAccess', _114 => _114.overrides]),
2240
2253
  [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
2241
2254
  }
2242
2255
  }
@@ -2250,10 +2263,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2250
2263
  ]);
2251
2264
  if (tree.exists("package.json")) {
2252
2265
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2253
- if (_optionalChain([packageJson, 'optionalAccess', _102 => _102.repository])) {
2266
+ if (_optionalChain([packageJson, 'optionalAccess', _115 => _115.repository])) {
2254
2267
  repository = packageJson.repository;
2255
2268
  }
2256
- if (_optionalChain([packageJson, 'optionalAccess', _103 => _103.description])) {
2269
+ if (_optionalChain([packageJson, 'optionalAccess', _116 => _116.description])) {
2257
2270
  description = packageJson.description;
2258
2271
  }
2259
2272
  }
@@ -2301,24 +2314,24 @@ _chunk3GQAWCBQjs.__name.call(void 0, getOutputPath, "getOutputPath");
2301
2314
  function createProjectTsConfigJson(tree, options) {
2302
2315
  const tsconfig = {
2303
2316
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
2304
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _104 => _104.tsconfigOptions]), () => ( {})),
2317
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _117 => _117.tsconfigOptions]), () => ( {})),
2305
2318
  compilerOptions: {
2306
2319
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
2307
2320
  outDir: _chunkGCCFZEDUjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2308
2321
  noEmit: true,
2309
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _105 => _105.tsconfigOptions, 'optionalAccess', _106 => _106.compilerOptions]), () => ( {}))
2322
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _118 => _118.tsconfigOptions, 'optionalAccess', _119 => _119.compilerOptions]), () => ( {}))
2310
2323
  },
2311
2324
  files: [
2312
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _107 => _107.tsconfigOptions, 'optionalAccess', _108 => _108.files]), () => ( []))
2325
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _120 => _120.tsconfigOptions, 'optionalAccess', _121 => _121.files]), () => ( []))
2313
2326
  ],
2314
2327
  include: [
2315
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _109 => _109.tsconfigOptions, 'optionalAccess', _110 => _110.include]), () => ( [])),
2328
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _122 => _122.tsconfigOptions, 'optionalAccess', _123 => _123.include]), () => ( [])),
2316
2329
  "src/**/*.ts",
2317
2330
  "src/**/*.js",
2318
2331
  "bin/**/*"
2319
2332
  ],
2320
2333
  exclude: [
2321
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _111 => _111.tsconfigOptions, 'optionalAccess', _112 => _112.exclude]), () => ( [])),
2334
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _124 => _124.tsconfigOptions, 'optionalAccess', _125 => _125.exclude]), () => ( [])),
2322
2335
  "jest.config.ts",
2323
2336
  "src/**/*.spec.ts",
2324
2337
  "src/**/*.test.ts"
@@ -2329,8 +2342,8 @@ function createProjectTsConfigJson(tree, options) {
2329
2342
  _chunk3GQAWCBQjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
2330
2343
  async function normalizeOptions(tree, options, config) {
2331
2344
  let importPath = options.importPath;
2332
- if (!importPath && _optionalChain([config, 'optionalAccess', _113 => _113.namespace])) {
2333
- importPath = `@${_optionalChain([config, 'optionalAccess', _114 => _114.namespace])}/${options.name}`;
2345
+ if (!importPath && _optionalChain([config, 'optionalAccess', _126 => _126.namespace])) {
2346
+ importPath = `@${_optionalChain([config, 'optionalAccess', _127 => _127.namespace])}/${options.name}`;
2334
2347
  }
2335
2348
  if (options.publishable) {
2336
2349
  if (!importPath) {
@@ -2376,7 +2389,8 @@ async function normalizeOptions(tree, options, config) {
2376
2389
  projectRoot,
2377
2390
  parsedTags: options.tags ? options.tags.split(",").map((s) => s.trim()) : [],
2378
2391
  importPath: normalizedImportPath,
2379
- rootProject
2392
+ rootProject,
2393
+ shouldUseSwcJest: false
2380
2394
  };
2381
2395
  }
2382
2396
  _chunk3GQAWCBQjs.__name.call(void 0, normalizeOptions, "normalizeOptions");
@@ -2461,7 +2475,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
2461
2475
  name: "StormWorkspaceConfiguration"
2462
2476
  });
2463
2477
  _chunkGCCFZEDUjs.writeTrace.call(void 0, jsonSchema, config);
2464
- const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _115 => _115.workspaceRoot]), () => ( _chunkGCCFZEDUjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _116 => _116.outputFile, 'optionalAccess', _117 => _117.startsWith, 'call', _118 => _118("./")]) ? "" : "./");
2478
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _128 => _128.workspaceRoot]), () => ( _chunkGCCFZEDUjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _129 => _129.outputFile, 'optionalAccess', _130 => _130.startsWith, 'call', _131 => _131("./")]) ? "" : "./");
2465
2479
  _chunkGCCFZEDUjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2466
2480
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
2467
2481
  spaces: 2
@@ -17,12 +17,12 @@ import {
17
17
  writeSuccess,
18
18
  writeTrace,
19
19
  writeWarning
20
- } from "./chunk-W3S56D72.mjs";
20
+ } from "./chunk-KWXOSOKO.mjs";
21
21
  import {
22
22
  __dirname,
23
23
  __name,
24
24
  __require
25
- } from "./chunk-XUV4U54K.mjs";
25
+ } from "./chunk-R7DU2APC.mjs";
26
26
 
27
27
  // src/generators/init/init.ts
28
28
  import { formatFiles as formatFiles9 } from "@nx/devkit";
@@ -262,7 +262,7 @@ import { logger } from "@nx/devkit";
262
262
  var LARGE_BUFFER = 1024 * 1e6;
263
263
 
264
264
  // ../esbuild/src/build.ts
265
- import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph, writeJsonFile } from "@nx/devkit";
265
+ import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile } from "@nx/devkit";
266
266
 
267
267
  // ../build-tools/src/config.ts
268
268
  var DEFAULT_COMPILED_BANNER = `
@@ -346,11 +346,12 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
346
346
  // ../build-tools/src/utilities/generate-package-json.ts
347
347
  import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
348
348
  import { Glob } from "glob";
349
- import { existsSync } from "node:fs";
349
+ import { existsSync, readFileSync as readFileSync2 } from "node:fs";
350
350
  import { readFile as readFile2 } from "node:fs/promises";
351
- import { readCachedProjectGraph } from "nx/src/project-graph/project-graph";
351
+ import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "nx/src/project-graph/project-graph";
352
352
  var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, projectRoot, projectName, packageJson) => {
353
- const projectDependencies = calculateProjectBuildableDependencies(void 0, readCachedProjectGraph(), workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
353
+ const projectGraph = readCachedProjectGraph();
354
+ const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
354
355
  const localPackages = [];
355
356
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
356
357
  const projectNode = project.node;
@@ -367,26 +368,38 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, proje
367
368
  }
368
369
  if (localPackages.length > 0) {
369
370
  writeTrace(`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
370
- packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
371
- if (!ret[localPackage.name]) {
372
- ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
371
+ const projectJsonFile = await readFile2(joinPaths(projectRoot, "project.json"), "utf8");
372
+ const projectJson = JSON.parse(projectJsonFile);
373
+ const projectName2 = projectJson.name;
374
+ const projectConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
375
+ if (!projectConfigurations?.projects?.[projectName2]) {
376
+ throw new Error("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.");
377
+ }
378
+ const implicitDependencies = projectConfigurations.projects?.[projectName2].implicitDependencies?.reduce((ret, dep) => {
379
+ if (projectConfigurations.projects?.[dep]) {
380
+ const depPackageJsonPath = joinPaths(workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
381
+ if (existsSync(depPackageJsonPath)) {
382
+ const depPackageJsonContent = readFileSync2(depPackageJsonPath, "utf8");
383
+ const depPackageJson = JSON.parse(depPackageJsonContent);
384
+ if (depPackageJson.private !== true && !ret.includes(depPackageJson.name)) {
385
+ ret.push(depPackageJson.name);
386
+ }
387
+ }
373
388
  }
374
389
  return ret;
375
- }, packageJson.peerDependencies ?? {});
376
- packageJson.peerDependenciesMeta = localPackages.reduce((ret, localPackage) => {
377
- if (!ret[localPackage.name]) {
378
- ret[localPackage.name] = {
379
- optional: false
380
- };
390
+ }, []);
391
+ packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
392
+ if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name)) {
393
+ ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
381
394
  }
382
395
  return ret;
383
- }, packageJson.peerDependenciesMeta ?? {});
396
+ }, packageJson.dependencies ?? {});
384
397
  packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
385
- if (!ret[localPackage.name]) {
398
+ if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name)) {
386
399
  ret[localPackage.name] = localPackage.version || "0.0.1";
387
400
  }
388
401
  return ret;
389
- }, packageJson.peerDependencies ?? {});
402
+ }, packageJson.devDependencies ?? {});
390
403
  } else {
391
404
  writeTrace("\u{1F4E6} No local packages dependencies to add to package.json");
392
405
  }
@@ -1214,7 +1227,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1214
1227
  const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
1215
1228
  const projectJson = JSON.parse(projectJsonFile);
1216
1229
  const projectName = projectJson.name;
1217
- const projectConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
1230
+ const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
1218
1231
  if (!projectConfigurations?.projects?.[projectName]) {
1219
1232
  throw new Error("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.");
1220
1233
  }
@@ -1582,7 +1595,7 @@ var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor",
1582
1595
  });
1583
1596
 
1584
1597
  // ../tsdown/src/build.ts
1585
- import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile as writeJsonFile2 } from "@nx/devkit";
1598
+ import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3, writeJsonFile as writeJsonFile2 } from "@nx/devkit";
1586
1599
  import defu2 from "defu";
1587
1600
  import { existsSync as existsSync6 } from "node:fs";
1588
1601
  import hf2 from "node:fs/promises";
@@ -1641,7 +1654,7 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
1641
1654
  const projectJsonFile = await hf2.readFile(projectJsonPath, "utf8");
1642
1655
  const projectJson = JSON.parse(projectJsonFile);
1643
1656
  const projectName = projectJson.name;
1644
- const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
1657
+ const projectConfigurations = readProjectsConfigurationFromProjectGraph3(projectGraph);
1645
1658
  if (!projectConfigurations?.projects?.[projectName]) {
1646
1659
  throw new Error("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.");
1647
1660
  }
@@ -2377,7 +2390,8 @@ async function normalizeOptions(tree, options, config) {
2377
2390
  projectRoot,
2378
2391
  parsedTags: options.tags ? options.tags.split(",").map((s) => s.trim()) : [],
2379
2392
  importPath: normalizedImportPath,
2380
- rootProject
2393
+ rootProject,
2394
+ shouldUseSwcJest: false
2381
2395
  };
2382
2396
  }
2383
2397
  __name(normalizeOptions, "normalizeOptions");
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withTerraformExecutor
3
- } from "./chunk-53LPW54Q.mjs";
3
+ } from "./chunk-VWRPSPA5.mjs";
4
4
 
5
5
  // src/executors/apply/executor.ts
6
6
  var executor_default = withTerraformExecutor("apply");
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withTerraformExecutor
3
- } from "./chunk-53LPW54Q.mjs";
3
+ } from "./chunk-VWRPSPA5.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
  __name
3
- } from "./chunk-XUV4U54K.mjs";
3
+ } from "./chunk-R7DU2APC.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-53LPW54Q.mjs";
3
+ } from "./chunk-VWRPSPA5.mjs";
4
4
 
5
5
  // src/executors/output/executor.ts
6
6
  var executor_default = withTerraformExecutor("output");
@@ -7,7 +7,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
7
7
  throw Error('Dynamic require of "' + x + '" is not supported');
8
8
  });
9
9
 
10
- // ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/esm_shims.js
10
+ // ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.2_@types+node@22.13.0__@swc+core@1.7.26_@swc+helpers_kupakjppxzf7wv7pnek6irqjpq/node_modules/tsup/assets/esm_shims.js
11
11
  import { fileURLToPath } from "url";
12
12
  import path from "path";
13
13
  var getFilename = /* @__PURE__ */ __name(() => fileURLToPath(import.meta.url), "getFilename");
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withTerraformExecutor
3
- } from "./chunk-53LPW54Q.mjs";
3
+ } from "./chunk-VWRPSPA5.mjs";
4
4
 
5
5
  // src/executors/plan/executor.ts
6
6
  var executor_default = withTerraformExecutor("plan");
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  run,
3
3
  withRunExecutor
4
- } from "./chunk-W3S56D72.mjs";
4
+ } from "./chunk-KWXOSOKO.mjs";
5
5
  import {
6
6
  __name
7
- } from "./chunk-XUV4U54K.mjs";
7
+ } from "./chunk-R7DU2APC.mjs";
8
8
 
9
9
  // src/base/terraform-executor.ts
10
10
  import { which } from "shelljs";
@@ -1,8 +1,8 @@
1
1
  import "./chunk-HYHKZPRR.mjs";
2
- import "./chunk-K5R7Z4IA.mjs";
3
- import "./chunk-ZIPCZI7T.mjs";
4
- import "./chunk-ZUYMYXE2.mjs";
5
- import "./chunk-PD7DIQ7D.mjs";
6
- import "./chunk-53LPW54Q.mjs";
7
- import "./chunk-W3S56D72.mjs";
8
- import "./chunk-XUV4U54K.mjs";
2
+ import "./chunk-GDIPTQU2.mjs";
3
+ import "./chunk-MBXPILHI.mjs";
4
+ import "./chunk-UQJF73ZV.mjs";
5
+ import "./chunk-BYGHUFW4.mjs";
6
+ import "./chunk-VWRPSPA5.mjs";
7
+ import "./chunk-KWXOSOKO.mjs";
8
+ import "./chunk-R7DU2APC.mjs";
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-N2YKXZ5R.js');
2
2
 
3
3
 
4
- var _chunkYD6YAH3Djs = require('./chunk-YD6YAH3D.js');
4
+ var _chunk25PTDMW6js = require('./chunk-25PTDMW6.js');
5
5
  require('./chunk-GCCFZEDU.js');
6
6
  require('./chunk-3GQAWCBQ.js');
7
7
 
8
8
 
9
- exports.initGenerator = _chunkYD6YAH3Djs.initGenerator;
9
+ exports.initGenerator = _chunk25PTDMW6js.initGenerator;
@@ -1,9 +1,9 @@
1
1
  import "./chunk-23KFTIT2.mjs";
2
2
  import {
3
3
  initGenerator
4
- } from "./chunk-STXHLIEE.mjs";
5
- import "./chunk-W3S56D72.mjs";
6
- import "./chunk-XUV4U54K.mjs";
4
+ } from "./chunk-2ZZJNUXX.mjs";
5
+ import "./chunk-KWXOSOKO.mjs";
6
+ import "./chunk-R7DU2APC.mjs";
7
7
  export {
8
8
  initGenerator
9
9
  };
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ require('./chunk-AP4J2N34.js');
5
5
  require('./chunk-N2YKXZ5R.js');
6
6
 
7
7
 
8
- var _chunkYD6YAH3Djs = require('./chunk-YD6YAH3D.js');
8
+ var _chunk25PTDMW6js = require('./chunk-25PTDMW6.js');
9
9
  require('./chunk-GUQOEBFW.js');
10
10
 
11
11
 
@@ -20,4 +20,4 @@ require('./chunk-3GQAWCBQ.js');
20
20
 
21
21
 
22
22
 
23
- exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator = _chunkYD6YAH3Djs.initGenerator; exports.withTerraformExecutor = _chunkZYPB3WACjs.withTerraformExecutor;
23
+ exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator = _chunk25PTDMW6js.initGenerator; exports.withTerraformExecutor = _chunkZYPB3WACjs.withTerraformExecutor;
package/dist/index.mjs CHANGED
@@ -1,21 +1,21 @@
1
1
  import "./chunk-HYHKZPRR.mjs";
2
- import "./chunk-K5R7Z4IA.mjs";
3
- import "./chunk-ZIPCZI7T.mjs";
4
- import "./chunk-ZUYMYXE2.mjs";
2
+ import "./chunk-GDIPTQU2.mjs";
3
+ import "./chunk-MBXPILHI.mjs";
4
+ import "./chunk-UQJF73ZV.mjs";
5
5
  import "./chunk-23KFTIT2.mjs";
6
6
  import {
7
7
  initGenerator
8
- } from "./chunk-STXHLIEE.mjs";
8
+ } from "./chunk-2ZZJNUXX.mjs";
9
9
  import "./chunk-CA7S5MOH.mjs";
10
10
  import {
11
11
  base_terraform_executor_untyped_default
12
12
  } from "./chunk-EL25IDXP.mjs";
13
- import "./chunk-PD7DIQ7D.mjs";
13
+ import "./chunk-BYGHUFW4.mjs";
14
14
  import {
15
15
  withTerraformExecutor
16
- } from "./chunk-53LPW54Q.mjs";
17
- import "./chunk-W3S56D72.mjs";
18
- import "./chunk-XUV4U54K.mjs";
16
+ } from "./chunk-VWRPSPA5.mjs";
17
+ import "./chunk-KWXOSOKO.mjs";
18
+ import "./chunk-R7DU2APC.mjs";
19
19
  export {
20
20
  base_terraform_executor_untyped_default as baseTerraformExecutorSchema,
21
21
  initGenerator,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  base_terraform_executor_untyped_default
3
3
  } from "../../chunk-EL25IDXP.mjs";
4
- import "../../chunk-XUV4U54K.mjs";
4
+ import "../../chunk-R7DU2APC.mjs";
5
5
  export {
6
6
  base_terraform_executor_untyped_default as default
7
7
  };
@@ -4,9 +4,9 @@ import {
4
4
  } from "../../chunk-EL25IDXP.mjs";
5
5
  import {
6
6
  withTerraformExecutor
7
- } from "../../chunk-53LPW54Q.mjs";
8
- import "../../chunk-W3S56D72.mjs";
9
- import "../../chunk-XUV4U54K.mjs";
7
+ } from "../../chunk-VWRPSPA5.mjs";
8
+ import "../../chunk-KWXOSOKO.mjs";
9
+ import "../../chunk-R7DU2APC.mjs";
10
10
  export {
11
11
  base_terraform_executor_untyped_default as baseTerraformExecutorSchema,
12
12
  withTerraformExecutor
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  withTerraformExecutor
3
- } from "../../chunk-53LPW54Q.mjs";
4
- import "../../chunk-W3S56D72.mjs";
5
- import "../../chunk-XUV4U54K.mjs";
3
+ } from "../../chunk-VWRPSPA5.mjs";
4
+ import "../../chunk-KWXOSOKO.mjs";
5
+ import "../../chunk-R7DU2APC.mjs";
6
6
  export {
7
7
  withTerraformExecutor
8
8
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-PD7DIQ7D.mjs";
4
- import "../../../chunk-53LPW54Q.mjs";
5
- import "../../../chunk-W3S56D72.mjs";
6
- import "../../../chunk-XUV4U54K.mjs";
3
+ } from "../../../chunk-BYGHUFW4.mjs";
4
+ import "../../../chunk-VWRPSPA5.mjs";
5
+ import "../../../chunk-KWXOSOKO.mjs";
6
+ import "../../../chunk-R7DU2APC.mjs";
7
7
  export {
8
8
  executor_default as default
9
9
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-K5R7Z4IA.mjs";
4
- import "../../../chunk-53LPW54Q.mjs";
5
- import "../../../chunk-W3S56D72.mjs";
6
- import "../../../chunk-XUV4U54K.mjs";
3
+ } from "../../../chunk-GDIPTQU2.mjs";
4
+ import "../../../chunk-VWRPSPA5.mjs";
5
+ import "../../../chunk-KWXOSOKO.mjs";
6
+ import "../../../chunk-R7DU2APC.mjs";
7
7
  export {
8
8
  executor_default as default
9
9
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-ZIPCZI7T.mjs";
4
- import "../../../chunk-53LPW54Q.mjs";
5
- import "../../../chunk-W3S56D72.mjs";
6
- import "../../../chunk-XUV4U54K.mjs";
3
+ } from "../../../chunk-MBXPILHI.mjs";
4
+ import "../../../chunk-VWRPSPA5.mjs";
5
+ import "../../../chunk-KWXOSOKO.mjs";
6
+ import "../../../chunk-R7DU2APC.mjs";
7
7
  export {
8
8
  executor_default as default
9
9
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  executor_default
3
- } from "../../../chunk-ZUYMYXE2.mjs";
4
- import "../../../chunk-53LPW54Q.mjs";
5
- import "../../../chunk-W3S56D72.mjs";
6
- import "../../../chunk-XUV4U54K.mjs";
3
+ } from "../../../chunk-UQJF73ZV.mjs";
4
+ import "../../../chunk-VWRPSPA5.mjs";
5
+ import "../../../chunk-KWXOSOKO.mjs";
6
+ import "../../../chunk-R7DU2APC.mjs";
7
7
  export {
8
8
  executor_default as default
9
9
  };
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkYD6YAH3Djs = require('../../../chunk-YD6YAH3D.js');
4
+ var _chunk25PTDMW6js = require('../../../chunk-25PTDMW6.js');
5
5
  require('../../../chunk-GCCFZEDU.js');
6
6
  require('../../../chunk-3GQAWCBQ.js');
7
7
 
8
8
 
9
9
 
10
- exports.default = _chunkYD6YAH3Djs.init_default; exports.initGenerator = _chunkYD6YAH3Djs.initGenerator;
10
+ exports.default = _chunk25PTDMW6js.init_default; exports.initGenerator = _chunk25PTDMW6js.initGenerator;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  initGenerator,
3
3
  init_default
4
- } from "../../../chunk-STXHLIEE.mjs";
5
- import "../../../chunk-W3S56D72.mjs";
6
- import "../../../chunk-XUV4U54K.mjs";
4
+ } from "../../../chunk-2ZZJNUXX.mjs";
5
+ import "../../../chunk-KWXOSOKO.mjs";
6
+ import "../../../chunk-R7DU2APC.mjs";
7
7
  export {
8
8
  init_default as default,
9
9
  initGenerator
@@ -1,4 +1,4 @@
1
- import "./chunk-XUV4U54K.mjs";
1
+ import "./chunk-R7DU2APC.mjs";
2
2
 
3
3
  // tsup.config.ts
4
4
  import { defineConfig } from "tsup";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/terraform-tools",
3
- "version": "0.54.19",
3
+ "version": "0.54.20",
4
4
  "description": "Tools for managing Terraform infrastructure within a Nx workspace.",
5
5
  "repository": {
6
6
  "type": "github",