@storm-software/terraform-tools 0.53.3 → 0.53.5

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,25 @@
1
+ ## 0.53.5 (2025-01-23)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **build-tools:** Resolve issue with unending copy asset files process ([e0050d6b](https://github.com/storm-software/storm-ops/commit/e0050d6b))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated workspace-tools to 1.240.1
10
+ - Updated workspace-tools to 1.240.1
11
+
12
+ ## 0.53.4 (2025-01-23)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **monorepo:** Resolve issue with internal package referencing ([cdc11477](https://github.com/storm-software/storm-ops/commit/cdc11477))
17
+
18
+ ### 🧱 Updated Dependencies
19
+
20
+ - Updated workspace-tools to 1.240.0
21
+ - Updated workspace-tools to 1.240.0
22
+
1
23
  ## 0.53.3 (2025-01-22)
2
24
 
3
25
  ### 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.53.2-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.53.4-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 -->
@@ -288,38 +288,18 @@ var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_reso
288
288
 
289
289
 
290
290
  // ../build-tools/src/utilities/copy-assets.ts
291
-
292
- var _js = require('@nx/js');
291
+ var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
293
292
  var _glob = require('glob');
294
293
  var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
295
-
296
- // ../build-tools/src/utilities/read-nx-config.ts
297
-
298
-
299
- var readNxConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot3) => {
300
- let rootDir = workspaceRoot3;
301
- if (!rootDir) {
302
- const config = await _chunkOAZ3OJPIjs.getConfig.call(void 0, );
303
- rootDir = config.workspaceRoot;
304
- }
305
- const nxJsonPath = _chunkOAZ3OJPIjs.joinPaths.call(void 0, rootDir, "nx.json");
306
- if (!_fs.existsSync.call(void 0, nxJsonPath)) {
307
- throw new Error("Cannot find project.json configuration");
308
- }
309
- const configContent = await _promises.readFile.call(void 0, nxJsonPath, "utf8");
310
- return JSON.parse(configContent);
311
- }, "readNxConfig");
312
-
313
- // ../build-tools/src/utilities/copy-assets.ts
314
- var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
294
+ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
315
295
  const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
316
296
  pendingAssets.push({
317
- input: _chunkOAZ3OJPIjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot),
297
+ input: projectRoot,
318
298
  glob: "*.md",
319
299
  output: "."
320
300
  });
321
301
  pendingAssets.push({
322
- input: config.workspaceRoot,
302
+ input: ".",
323
303
  glob: "LICENSE",
324
304
  output: "."
325
305
  });
@@ -337,36 +317,15 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
337
317
  output: "src/"
338
318
  });
339
319
  }
340
- const nxJson = readNxConfig(config.workspaceRoot);
341
- const projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
342
- const projectsConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
343
- if (!_optionalChain([projectsConfigurations, 'optionalAccess', _5 => _5.projects, 'optionalAccess', _6 => _6[projectName]])) {
344
- 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.");
345
- }
346
- const buildTarget = _optionalChain([projectsConfigurations, 'access', _7 => _7.projects, 'access', _8 => _8[projectName], 'access', _9 => _9.targets, 'optionalAccess', _10 => _10.build]);
347
- if (!buildTarget) {
348
- throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkOAZ3OJPIjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
349
- }
350
320
  _chunkOAZ3OJPIjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
351
321
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkOAZ3OJPIjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
352
- const result = await _js.copyAssets.call(void 0, {
353
- assets: pendingAssets,
354
- watch: false,
355
- outputPath
356
- }, {
357
- root: config.workspaceRoot,
358
- targetName: "build",
359
- target: buildTarget,
360
- projectName,
361
- projectGraph,
362
- projectsConfigurations,
363
- nxJsonConfiguration: nxJson,
364
- cwd: config.workspaceRoot,
365
- isVerbose: _chunkOAZ3OJPIjs.isVerbose.call(void 0, config.logLevel)
322
+ const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
323
+ projectDir: projectRoot,
324
+ rootDir: config.workspaceRoot,
325
+ outputDir: outputPath,
326
+ assets: pendingAssets
366
327
  });
367
- if (!result.success) {
368
- throw new Error("The Build process failed trying to copy assets");
369
- }
328
+ await assetHandler.processAllAssetsOnce();
370
329
  if (includeSrc === true) {
371
330
  _chunkOAZ3OJPIjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkOAZ3OJPIjs.joinPaths.call(void 0, outputPath, "src")}`, config);
372
331
  const files = await _glob.glob.call(void 0, [
@@ -574,6 +533,10 @@ function getOutExtension(format2, pkgType) {
574
533
  }
575
534
  _chunk3GQAWCBQjs.__name.call(void 0, getOutExtension, "getOutExtension");
576
535
 
536
+ // ../build-tools/src/utilities/read-nx-config.ts
537
+
538
+
539
+
577
540
  // ../build-tools/src/utilities/task-graph.ts
578
541
  var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
579
542
 
@@ -652,15 +615,15 @@ var RendererEngine = class {
652
615
  if (!relativePath.startsWith("\\\\?\\")) {
653
616
  relativePath = relativePath.replace(/\\/g, "/");
654
617
  }
655
- const meta = _optionalChain([metafile, 'optionalAccess', _11 => _11.outputs, 'access', _12 => _12[relativePath]]);
618
+ const meta = _optionalChain([metafile, 'optionalAccess', _5 => _5.outputs, 'access', _6 => _6[relativePath]]);
656
619
  return {
657
620
  type: "chunk",
658
621
  path: file.path,
659
622
  code: file.text,
660
- map: _optionalChain([outputFiles, 'access', _13 => _13.find, 'call', _14 => _14((f) => f.path === `${file.path}.map`), 'optionalAccess', _15 => _15.text]),
661
- entryPoint: _optionalChain([meta, 'optionalAccess', _16 => _16.entryPoint]),
662
- exports: _optionalChain([meta, 'optionalAccess', _17 => _17.exports]),
663
- imports: _optionalChain([meta, 'optionalAccess', _18 => _18.imports])
623
+ map: _optionalChain([outputFiles, 'access', _7 => _7.find, 'call', _8 => _8((f) => f.path === `${file.path}.map`), 'optionalAccess', _9 => _9.text]),
624
+ entryPoint: _optionalChain([meta, 'optionalAccess', _10 => _10.entryPoint]),
625
+ exports: _optionalChain([meta, 'optionalAccess', _11 => _11.exports]),
626
+ imports: _optionalChain([meta, 'optionalAccess', _12 => _12.imports])
664
627
  };
665
628
  } else {
666
629
  return {
@@ -743,7 +706,7 @@ var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void
743
706
  name: "storm:esm-split-code-to-cjs",
744
707
  setup(build5) {
745
708
  build5.onEnd(async (result) => {
746
- const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metafile, 'optionalAccess', _20 => _20.outputs]), () => ( {})));
709
+ const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _13 => _13.metafile, 'optionalAccess', _14 => _14.outputs]), () => ( {})));
747
710
  const jsFiles = outFiles.filter((f) => f.endsWith("js"));
748
711
  await esbuild.build({
749
712
  outdir: resolvedOptions.outdir,
@@ -865,7 +828,7 @@ ${result.errors.map((error) => error.text).join("\n")}
865
828
  // ../esbuild/src/plugins/resolve-paths.ts
866
829
 
867
830
  function resolvePathsConfig(options, cwd) {
868
- if (_optionalChain([options, 'optionalAccess', _21 => _21.compilerOptions, 'optionalAccess', _22 => _22.paths])) {
831
+ if (_optionalChain([options, 'optionalAccess', _15 => _15.compilerOptions, 'optionalAccess', _16 => _16.paths])) {
869
832
  const paths = Object.entries(options.compilerOptions.paths);
870
833
  const resolvedPaths = paths.map(([key, paths2]) => {
871
834
  return [
@@ -893,7 +856,7 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (o
893
856
  build5.onResolve({
894
857
  filter: packagesRegex
895
858
  }, (args) => {
896
- if (_optionalChain([build5, 'access', _23 => _23.initialOptions, 'access', _24 => _24.external, 'optionalAccess', _25 => _25.includes, 'call', _26 => _26(args.path)])) {
859
+ if (_optionalChain([build5, 'access', _17 => _17.initialOptions, 'access', _18 => _18.external, 'optionalAccess', _19 => _19.includes, 'call', _20 => _20(args.path)])) {
897
860
  return {
898
861
  path: args.path,
899
862
  external: true
@@ -1001,7 +964,7 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, r
1001
964
  function getTypeDependencyPackageName(npmPackage) {
1002
965
  if (npmPackage.startsWith("@")) {
1003
966
  const [scope, name] = npmPackage.split("/");
1004
- return `@types/${_optionalChain([scope, 'optionalAccess', _27 => _27.slice, 'call', _28 => _28(1)])}__${name}`;
967
+ return `@types/${_optionalChain([scope, 'optionalAccess', _21 => _21.slice, 'call', _22 => _22(1)])}__${name}`;
1005
968
  }
1006
969
  return `@types/${npmPackage}`;
1007
970
  }
@@ -1208,7 +1171,7 @@ function pipeSync(fn, ...fns) {
1208
1171
  return (...args) => {
1209
1172
  let result = fn(...args);
1210
1173
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1211
- result = _optionalChain([fns, 'access', _29 => _29[i], 'optionalCall', _30 => _30(result)]);
1174
+ result = _optionalChain([fns, 'access', _23 => _23[i], 'optionalCall', _24 => _24(result)]);
1212
1175
  }
1213
1176
  return result;
1214
1177
  };
@@ -1218,7 +1181,7 @@ function pipeAsync(fn, ...fns) {
1218
1181
  return async (...args) => {
1219
1182
  let result = await fn(...args);
1220
1183
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1221
- result = await _optionalChain([fns, 'access', _31 => _31[i], 'optionalCall', _32 => _32(result)]);
1184
+ result = await _optionalChain([fns, 'access', _25 => _25[i], 'optionalCall', _26 => _26(result)]);
1222
1185
  }
1223
1186
  return result;
1224
1187
  };
@@ -1247,7 +1210,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1247
1210
  const projectJson = await _node.hfs.json(projectJsonPath);
1248
1211
  const projectName = projectJson.name;
1249
1212
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1250
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _33 => _33.projects, 'optionalAccess', _34 => _34[projectName]])) {
1213
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _27 => _27.projects, 'optionalAccess', _28 => _28[projectName]])) {
1251
1214
  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.");
1252
1215
  }
1253
1216
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
@@ -1423,17 +1386,17 @@ async function executeEsBuild(context2) {
1423
1386
  }
1424
1387
  _chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1425
1388
  async function copyBuildAssets(context2) {
1426
- if (_optionalChain([context2, 'access', _35 => _35.result, 'optionalAccess', _36 => _36.errors, 'access', _37 => _37.length]) === 0) {
1389
+ if (_optionalChain([context2, 'access', _29 => _29.result, 'optionalAccess', _30 => _30.errors, 'access', _31 => _31.length]) === 0) {
1427
1390
  _chunkOAZ3OJPIjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1428
1391
  const stopwatch = _chunkOAZ3OJPIjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1429
- await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.projectName, context2.options.sourceRoot, true, false);
1392
+ await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
1430
1393
  stopwatch();
1431
1394
  }
1432
1395
  return context2;
1433
1396
  }
1434
1397
  _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1435
1398
  async function reportResults(context2) {
1436
- if (_optionalChain([context2, 'access', _38 => _38.result, 'optionalAccess', _39 => _39.errors, 'access', _40 => _40.length]) === 0) {
1399
+ if (_optionalChain([context2, 'access', _32 => _32.result, 'optionalAccess', _33 => _33.errors, 'access', _34 => _34.length]) === 0) {
1437
1400
  if (context2.result.warnings.length > 0) {
1438
1401
  _chunkOAZ3OJPIjs.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);
1439
1402
  }
@@ -1531,14 +1494,14 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
1531
1494
  // ../workspace-tools/src/executors/esbuild/executor.ts
1532
1495
  async function esbuildExecutorFn(options, context2, config) {
1533
1496
  _chunkOAZ3OJPIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1534
- if (!_optionalChain([context2, 'access', _41 => _41.projectsConfigurations, 'optionalAccess', _42 => _42.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _43 => _43.projectsConfigurations, 'access', _44 => _44.projects, 'access', _45 => _45[context2.projectName], 'optionalAccess', _46 => _46.root])) {
1497
+ 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])) {
1535
1498
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1536
1499
  }
1537
1500
  await build3({
1538
1501
  ...options,
1539
- projectRoot: _optionalChain([context2, 'access', _47 => _47.projectsConfigurations, 'access', _48 => _48.projects, 'optionalAccess', _49 => _49[context2.projectName], 'access', _50 => _50.root]),
1502
+ projectRoot: _optionalChain([context2, 'access', _41 => _41.projectsConfigurations, 'access', _42 => _42.projects, 'optionalAccess', _43 => _43[context2.projectName], 'access', _44 => _44.root]),
1540
1503
  projectName: context2.projectName,
1541
- sourceRoot: _optionalChain([context2, 'access', _51 => _51.projectsConfigurations, 'access', _52 => _52.projects, 'optionalAccess', _53 => _53[context2.projectName], 'optionalAccess', _54 => _54.sourceRoot]),
1504
+ sourceRoot: _optionalChain([context2, 'access', _45 => _45.projectsConfigurations, 'access', _46 => _46.projects, 'optionalAccess', _47 => _47[context2.projectName], 'optionalAccess', _48 => _48.sourceRoot]),
1542
1505
  format: options.format,
1543
1506
  platform: options.format
1544
1507
  });
@@ -1581,7 +1544,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
1581
1544
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
1582
1545
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
1583
1546
  async function sizeLimitExecutorFn(options, context2, config) {
1584
- if (!_optionalChain([context2, 'optionalAccess', _55 => _55.projectName]) || !_optionalChain([context2, 'access', _56 => _56.projectsConfigurations, 'optionalAccess', _57 => _57.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1547
+ if (!_optionalChain([context2, 'optionalAccess', _49 => _49.projectName]) || !_optionalChain([context2, 'access', _50 => _50.projectsConfigurations, 'optionalAccess', _51 => _51.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1585
1548
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
1586
1549
  }
1587
1550
  _chunkOAZ3OJPIjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
@@ -1590,7 +1553,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
1590
1553
  _esbuild3.default,
1591
1554
  _esbuildwhy2.default
1592
1555
  ], {
1593
- checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _58 => _58.projectsConfigurations, 'access', _59 => _59.projects, 'access', _60 => _60[context2.projectName], 'optionalAccess', _61 => _61.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _62 => _62.projectsConfigurations, 'access', _63 => _63.projects, 'access', _64 => _64[context2.projectName], 'optionalAccess', _65 => _65.root]), () => ( "./")), "src")))
1556
+ 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")))
1594
1557
  }).then((result) => {
1595
1558
  _chunkOAZ3OJPIjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1596
1559
  });
@@ -1667,7 +1630,7 @@ var resolveOptions2 = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1667
1630
  const projectJson = await _node.hfs.json(projectJsonPath);
1668
1631
  const projectName = projectJson.name;
1669
1632
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1670
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _66 => _66.projects, 'optionalAccess', _67 => _67[projectName]])) {
1633
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _60 => _60.projects, 'optionalAccess', _61 => _61[projectName]])) {
1671
1634
  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.");
1672
1635
  }
1673
1636
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS2);
@@ -1796,7 +1759,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, executeTSDown, "executeTSDown");
1796
1759
  async function copyBuildAssets2(options) {
1797
1760
  _chunkOAZ3OJPIjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1798
1761
  const stopwatch = _chunkOAZ3OJPIjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1799
- await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
1762
+ await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
1800
1763
  stopwatch();
1801
1764
  return options;
1802
1765
  }
@@ -1847,14 +1810,14 @@ _chunk3GQAWCBQjs.__name.call(void 0, build4, "build");
1847
1810
  // ../workspace-tools/src/executors/tsdown/executor.ts
1848
1811
  async function tsdownExecutorFn(options, context2, config) {
1849
1812
  _chunkOAZ3OJPIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
1850
- if (!_optionalChain([context2, 'access', _68 => _68.projectsConfigurations, 'optionalAccess', _69 => _69.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _70 => _70.projectsConfigurations, 'access', _71 => _71.projects, 'access', _72 => _72[context2.projectName], 'optionalAccess', _73 => _73.root])) {
1813
+ 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])) {
1851
1814
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1852
1815
  }
1853
1816
  await build4({
1854
1817
  ...options,
1855
- projectRoot: _optionalChain([context2, 'access', _74 => _74.projectsConfigurations, 'access', _75 => _75.projects, 'optionalAccess', _76 => _76[context2.projectName], 'access', _77 => _77.root]),
1818
+ projectRoot: _optionalChain([context2, 'access', _68 => _68.projectsConfigurations, 'access', _69 => _69.projects, 'optionalAccess', _70 => _70[context2.projectName], 'access', _71 => _71.root]),
1856
1819
  projectName: context2.projectName,
1857
- sourceRoot: _optionalChain([context2, 'access', _78 => _78.projectsConfigurations, 'access', _79 => _79.projects, 'optionalAccess', _80 => _80[context2.projectName], 'optionalAccess', _81 => _81.sourceRoot]),
1820
+ sourceRoot: _optionalChain([context2, 'access', _72 => _72.projectsConfigurations, 'access', _73 => _73.projects, 'optionalAccess', _74 => _74[context2.projectName], 'optionalAccess', _75 => _75.sourceRoot]),
1858
1821
  format: options.format,
1859
1822
  platform: options.platform
1860
1823
  });
@@ -1918,7 +1881,7 @@ var executor_default9 = _chunkOAZ3OJPIjs.withRunExecutor.call(void 0, "Typia run
1918
1881
  var _jiti = require('jiti');
1919
1882
  async function unbuildExecutorFn(options, context2, config) {
1920
1883
  _chunkOAZ3OJPIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1921
- if (!_optionalChain([context2, 'access', _82 => _82.projectsConfigurations, 'optionalAccess', _83 => _83.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
1884
+ if (!_optionalChain([context2, 'access', _76 => _76.projectsConfigurations, 'optionalAccess', _77 => _77.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
1922
1885
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
1923
1886
  }
1924
1887
  if (!context2.projectsConfigurations.projects[context2.projectName].root) {
@@ -2002,7 +1965,7 @@ var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (nam
2002
1965
  - workspaceRoot: ${workspaceRoot3}`, config);
2003
1966
  config = await _chunkOAZ3OJPIjs.getConfig.call(void 0, workspaceRoot3);
2004
1967
  }
2005
- if (_optionalChain([generatorOptions, 'optionalAccess', _84 => _84.hooks, 'optionalAccess', _85 => _85.applyDefaultOptions])) {
1968
+ if (_optionalChain([generatorOptions, 'optionalAccess', _78 => _78.hooks, 'optionalAccess', _79 => _79.applyDefaultOptions])) {
2006
1969
  _chunkOAZ3OJPIjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
2007
1970
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
2008
1971
  _chunkOAZ3OJPIjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
@@ -2013,22 +1976,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
2013
1976
  workspaceRoot: tree.root,
2014
1977
  config
2015
1978
  }, _chunkOAZ3OJPIjs.applyWorkspaceBaseTokens);
2016
- if (_optionalChain([generatorOptions, 'optionalAccess', _86 => _86.hooks, 'optionalAccess', _87 => _87.preProcess])) {
1979
+ if (_optionalChain([generatorOptions, 'optionalAccess', _80 => _80.hooks, 'optionalAccess', _81 => _81.preProcess])) {
2017
1980
  _chunkOAZ3OJPIjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
2018
1981
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
2019
1982
  _chunkOAZ3OJPIjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
2020
1983
  }
2021
1984
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
2022
1985
  if (result) {
2023
- 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") {
1986
+ 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") {
2024
1987
  throw new Error(`The ${name} generator failed to run`, {
2025
- cause: _optionalChain([result, 'optionalAccess', _96 => _96.error])
1988
+ cause: _optionalChain([result, 'optionalAccess', _90 => _90.error])
2026
1989
  });
2027
1990
  } else if (result.success && result.data) {
2028
1991
  return result;
2029
1992
  }
2030
1993
  }
2031
- if (_optionalChain([generatorOptions, 'optionalAccess', _97 => _97.hooks, 'optionalAccess', _98 => _98.postProcess])) {
1994
+ if (_optionalChain([generatorOptions, 'optionalAccess', _91 => _91.hooks, 'optionalAccess', _92 => _92.postProcess])) {
2032
1995
  _chunkOAZ3OJPIjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2033
1996
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
2034
1997
  _chunkOAZ3OJPIjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
@@ -2052,7 +2015,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
2052
2015
  // ../workspace-tools/src/base/typescript-library-generator.ts
2053
2016
 
2054
2017
  var _projectnameandrootutils = require('@nx/devkit/src/generators/project-name-and-root-utils');
2055
-
2018
+ var _js = require('@nx/js');
2056
2019
  var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopRequireDefault(_init);
2057
2020
  var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
2058
2021
 
@@ -2194,15 +2157,15 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
2194
2157
  _devkit.addProjectConfiguration.call(void 0, tree, options.name, projectConfig);
2195
2158
  let repository = {
2196
2159
  type: "github",
2197
- 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`
2160
+ 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`
2198
2161
  };
2199
2162
  let description = schema.description || "A package developed by Storm Software used to create modern, scalable web applications.";
2200
2163
  if (tree.exists("package.json")) {
2201
2164
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2202
- if (_optionalChain([packageJson, 'optionalAccess', _103 => _103.repository])) {
2165
+ if (_optionalChain([packageJson, 'optionalAccess', _97 => _97.repository])) {
2203
2166
  repository = packageJson.repository;
2204
2167
  }
2205
- if (_optionalChain([packageJson, 'optionalAccess', _104 => _104.description])) {
2168
+ if (_optionalChain([packageJson, 'optionalAccess', _98 => _98.description])) {
2206
2169
  description = packageJson.description;
2207
2170
  }
2208
2171
  }
@@ -2257,9 +2220,9 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
2257
2220
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
2258
2221
  ...json,
2259
2222
  pnpm: {
2260
- ..._optionalChain([json, 'optionalAccess', _105 => _105.pnpm]),
2223
+ ..._optionalChain([json, 'optionalAccess', _99 => _99.pnpm]),
2261
2224
  overrides: {
2262
- ..._optionalChain([json, 'optionalAccess', _106 => _106.pnpm, 'optionalAccess', _107 => _107.overrides]),
2225
+ ..._optionalChain([json, 'optionalAccess', _100 => _100.pnpm, 'optionalAccess', _101 => _101.overrides]),
2263
2226
  [_nullishCoalesce(options.importPath, () => ( ""))]: "workspace:*"
2264
2227
  }
2265
2228
  }
@@ -2273,10 +2236,10 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
2273
2236
  ]);
2274
2237
  if (tree.exists("package.json")) {
2275
2238
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2276
- if (_optionalChain([packageJson, 'optionalAccess', _108 => _108.repository])) {
2239
+ if (_optionalChain([packageJson, 'optionalAccess', _102 => _102.repository])) {
2277
2240
  repository = packageJson.repository;
2278
2241
  }
2279
- if (_optionalChain([packageJson, 'optionalAccess', _109 => _109.description])) {
2242
+ if (_optionalChain([packageJson, 'optionalAccess', _103 => _103.description])) {
2280
2243
  description = packageJson.description;
2281
2244
  }
2282
2245
  }
@@ -2324,24 +2287,24 @@ _chunk3GQAWCBQjs.__name.call(void 0, getOutputPath, "getOutputPath");
2324
2287
  function createProjectTsConfigJson(tree, options) {
2325
2288
  const tsconfig = {
2326
2289
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
2327
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _110 => _110.tsconfigOptions]), () => ( {})),
2290
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _104 => _104.tsconfigOptions]), () => ( {})),
2328
2291
  compilerOptions: {
2329
2292
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
2330
2293
  outDir: _chunkOAZ3OJPIjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2331
2294
  noEmit: true,
2332
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _111 => _111.tsconfigOptions, 'optionalAccess', _112 => _112.compilerOptions]), () => ( {}))
2295
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _105 => _105.tsconfigOptions, 'optionalAccess', _106 => _106.compilerOptions]), () => ( {}))
2333
2296
  },
2334
2297
  files: [
2335
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _113 => _113.tsconfigOptions, 'optionalAccess', _114 => _114.files]), () => ( []))
2298
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _107 => _107.tsconfigOptions, 'optionalAccess', _108 => _108.files]), () => ( []))
2336
2299
  ],
2337
2300
  include: [
2338
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _115 => _115.tsconfigOptions, 'optionalAccess', _116 => _116.include]), () => ( [])),
2301
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _109 => _109.tsconfigOptions, 'optionalAccess', _110 => _110.include]), () => ( [])),
2339
2302
  "src/**/*.ts",
2340
2303
  "src/**/*.js",
2341
2304
  "bin/**/*"
2342
2305
  ],
2343
2306
  exclude: [
2344
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _117 => _117.tsconfigOptions, 'optionalAccess', _118 => _118.exclude]), () => ( [])),
2307
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _111 => _111.tsconfigOptions, 'optionalAccess', _112 => _112.exclude]), () => ( [])),
2345
2308
  "jest.config.ts",
2346
2309
  "src/**/*.spec.ts",
2347
2310
  "src/**/*.test.ts"
@@ -2479,7 +2442,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
2479
2442
  name: "StormWorkspaceConfiguration"
2480
2443
  });
2481
2444
  _chunkOAZ3OJPIjs.writeTrace.call(void 0, jsonSchema, config);
2482
- const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _119 => _119.workspaceRoot]), () => ( _chunkOAZ3OJPIjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _120 => _120.outputFile, 'optionalAccess', _121 => _121.startsWith, 'call', _122 => _122("./")]) ? "" : "./");
2445
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _113 => _113.workspaceRoot]), () => ( _chunkOAZ3OJPIjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _114 => _114.outputFile, 'optionalAccess', _115 => _115.startsWith, 'call', _116 => _116("./")]) ? "" : "./");
2483
2446
  _chunkOAZ3OJPIjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2484
2447
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
2485
2448
  spaces: 2
@@ -262,7 +262,7 @@ var LARGE_BUFFER = 1024 * 1e6;
262
262
 
263
263
  // ../esbuild/src/build.ts
264
264
  import { hfs as hfs3 } from "@humanfs/node";
265
- import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile } from "@nx/devkit";
265
+ import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph, writeJsonFile } from "@nx/devkit";
266
266
 
267
267
  // ../build-tools/src/config.ts
268
268
  var DEFAULT_COMPILED_BANNER = `
@@ -289,38 +289,18 @@ import { stripIndents } from "@nx/devkit";
289
289
  import { relative as relative2 } from "path";
290
290
 
291
291
  // ../build-tools/src/utilities/copy-assets.ts
292
- import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "@nx/devkit";
293
- import { copyAssets as copyAssetsBase } from "@nx/js";
292
+ import { CopyAssetsHandler } from "@nx/js/src/utils/assets/copy-assets-handler";
294
293
  import { glob } from "glob";
295
- import { readFile as readFile2, writeFile } from "node:fs/promises";
296
-
297
- // ../build-tools/src/utilities/read-nx-config.ts
298
- import { existsSync } from "node:fs";
299
- import { readFile } from "node:fs/promises";
300
- var readNxConfig = /* @__PURE__ */ __name(async (workspaceRoot3) => {
301
- let rootDir = workspaceRoot3;
302
- if (!rootDir) {
303
- const config = await getConfig();
304
- rootDir = config.workspaceRoot;
305
- }
306
- const nxJsonPath = joinPaths(rootDir, "nx.json");
307
- if (!existsSync(nxJsonPath)) {
308
- throw new Error("Cannot find project.json configuration");
309
- }
310
- const configContent = await readFile(nxJsonPath, "utf8");
311
- return JSON.parse(configContent);
312
- }, "readNxConfig");
313
-
314
- // ../build-tools/src/utilities/copy-assets.ts
315
- var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
294
+ import { readFile, writeFile } from "node:fs/promises";
295
+ var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
316
296
  const pendingAssets = Array.from(assets ?? []);
317
297
  pendingAssets.push({
318
- input: joinPaths(config.workspaceRoot, projectRoot),
298
+ input: projectRoot,
319
299
  glob: "*.md",
320
300
  output: "."
321
301
  });
322
302
  pendingAssets.push({
323
- input: config.workspaceRoot,
303
+ input: ".",
324
304
  glob: "LICENSE",
325
305
  output: "."
326
306
  });
@@ -338,36 +318,15 @@ var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, proje
338
318
  output: "src/"
339
319
  });
340
320
  }
341
- const nxJson = readNxConfig(config.workspaceRoot);
342
- const projectGraph = readCachedProjectGraph();
343
- const projectsConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
344
- if (!projectsConfigurations?.projects?.[projectName]) {
345
- 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.");
346
- }
347
- const buildTarget = projectsConfigurations.projects[projectName].targets?.build;
348
- if (!buildTarget) {
349
- throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${joinPaths(projectRoot, "project.json")}`);
350
- }
351
321
  writeTrace(`\u{1F4DD} Copying the following assets to the output directory:
352
322
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`, config);
353
- const result = await copyAssetsBase({
354
- assets: pendingAssets,
355
- watch: false,
356
- outputPath
357
- }, {
358
- root: config.workspaceRoot,
359
- targetName: "build",
360
- target: buildTarget,
361
- projectName,
362
- projectGraph,
363
- projectsConfigurations,
364
- nxJsonConfiguration: nxJson,
365
- cwd: config.workspaceRoot,
366
- isVerbose: isVerbose(config.logLevel)
323
+ const assetHandler = new CopyAssetsHandler({
324
+ projectDir: projectRoot,
325
+ rootDir: config.workspaceRoot,
326
+ outputDir: outputPath,
327
+ assets: pendingAssets
367
328
  });
368
- if (!result.success) {
369
- throw new Error("The Build process failed trying to copy assets");
370
- }
329
+ await assetHandler.processAllAssetsOnce();
371
330
  if (includeSrc === true) {
372
331
  writeDebug(`\u{1F4DD} Adding banner and writing source files: ${joinPaths(outputPath, "src")}`, config);
373
332
  const files = await glob([
@@ -378,7 +337,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
378
337
  ]);
379
338
  await Promise.allSettled(files.map(async (file) => writeFile(file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
380
339
 
381
- ${await readFile2(file, "utf8")}
340
+ ${await readFile(file, "utf8")}
382
341
 
383
342
  ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `// ${footer}` : ""}`)));
384
343
  }
@@ -387,18 +346,18 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
387
346
  // ../build-tools/src/utilities/generate-package-json.ts
388
347
  import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
389
348
  import { Glob } from "glob";
390
- import { existsSync as existsSync2 } from "node:fs";
391
- import { readFile as readFile3 } from "node:fs/promises";
392
- import { readCachedProjectGraph as readCachedProjectGraph2 } from "nx/src/project-graph/project-graph";
349
+ import { existsSync } from "node:fs";
350
+ import { readFile as readFile2 } from "node:fs/promises";
351
+ import { readCachedProjectGraph } from "nx/src/project-graph/project-graph";
393
352
  var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, projectRoot, projectName, packageJson) => {
394
- const projectDependencies = calculateProjectBuildableDependencies(void 0, readCachedProjectGraph2(), workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
353
+ const projectDependencies = calculateProjectBuildableDependencies(void 0, readCachedProjectGraph(), workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
395
354
  const localPackages = [];
396
355
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
397
356
  const projectNode = project.node;
398
357
  if (projectNode.data.root) {
399
358
  const projectPackageJsonPath = joinPaths(workspaceRoot3, projectNode.data.root, "package.json");
400
- if (existsSync2(projectPackageJsonPath)) {
401
- const projectPackageJsonContent = await readFile3(projectPackageJsonPath, "utf8");
359
+ if (existsSync(projectPackageJsonPath)) {
360
+ const projectPackageJsonContent = await readFile2(projectPackageJsonPath, "utf8");
402
361
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
403
362
  if (projectPackageJson.private !== false) {
404
363
  localPackages.push(projectPackageJson);
@@ -435,7 +394,7 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, proje
435
394
  }, "addPackageDependencies");
436
395
  var addWorkspacePackageJsonFields = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
437
396
  const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : findWorkspaceRoot();
438
- const workspacePackageJsonContent = await readFile3(joinPaths(workspaceRoot3, "package.json"), "utf8");
397
+ const workspacePackageJsonContent = await readFile2(joinPaths(workspaceRoot3, "package.json"), "utf8");
439
398
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
440
399
  packageJson.type ??= "module";
441
400
  packageJson.sideEffects ??= false;
@@ -575,6 +534,10 @@ function getOutExtension(format2, pkgType) {
575
534
  }
576
535
  __name(getOutExtension, "getOutExtension");
577
536
 
537
+ // ../build-tools/src/utilities/read-nx-config.ts
538
+ import { existsSync as existsSync2 } from "node:fs";
539
+ import { readFile as readFile3 } from "node:fs/promises";
540
+
578
541
  // ../build-tools/src/utilities/task-graph.ts
579
542
  import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-runner/create-task-graph";
580
543
 
@@ -1247,7 +1210,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1247
1210
  }
1248
1211
  const projectJson = await hfs3.json(projectJsonPath);
1249
1212
  const projectName = projectJson.name;
1250
- const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
1213
+ const projectConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
1251
1214
  if (!projectConfigurations?.projects?.[projectName]) {
1252
1215
  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.");
1253
1216
  }
@@ -1427,7 +1390,7 @@ async function copyBuildAssets(context2) {
1427
1390
  if (context2.result?.errors.length === 0) {
1428
1391
  writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1429
1392
  const stopwatch = getStopwatch(`${context2.options.name} asset copy`);
1430
- await copyAssets(context2.options.config, context2.options.assets ?? [], context2.options.outdir, context2.options.projectRoot, context2.options.projectName, context2.options.sourceRoot, true, false);
1393
+ await copyAssets(context2.options.config, context2.options.assets ?? [], context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
1431
1394
  stopwatch();
1432
1395
  }
1433
1396
  return context2;
@@ -1611,7 +1574,7 @@ var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor",
1611
1574
 
1612
1575
  // ../tsdown/src/build.ts
1613
1576
  import { hfs as hfs5 } from "@humanfs/node";
1614
- import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3, writeJsonFile as writeJsonFile2 } from "@nx/devkit";
1577
+ import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile as writeJsonFile2 } from "@nx/devkit";
1615
1578
  import defu2 from "defu";
1616
1579
  import { findWorkspaceRoot as findWorkspaceRoot3 } from "nx/src/utils/find-workspace-root";
1617
1580
  import { build as tsdown } from "tsdown";
@@ -1667,7 +1630,7 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
1667
1630
  }
1668
1631
  const projectJson = await hfs5.json(projectJsonPath);
1669
1632
  const projectName = projectJson.name;
1670
- const projectConfigurations = readProjectsConfigurationFromProjectGraph3(projectGraph);
1633
+ const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
1671
1634
  if (!projectConfigurations?.projects?.[projectName]) {
1672
1635
  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.");
1673
1636
  }
@@ -1797,7 +1760,7 @@ __name(executeTSDown, "executeTSDown");
1797
1760
  async function copyBuildAssets2(options) {
1798
1761
  writeDebug(` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1799
1762
  const stopwatch = getStopwatch(`${options.name} asset copy`);
1800
- await copyAssets(options.config, options.assets ?? [], options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
1763
+ await copyAssets(options.config, options.assets ?? [], options.outdir, options.projectRoot, options.sourceRoot, true, false);
1801
1764
  stopwatch();
1802
1765
  return options;
1803
1766
  }
package/dist/executors.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";require('./chunk-E7SPQEPH.js');
2
+ require('./chunk-ZIUAOW5J.js');
2
3
  require('./chunk-P4DYHSWV.js');
3
- require('./chunk-BDNXCOYM.js');
4
4
  require('./chunk-QYC5T3J3.js');
5
- require('./chunk-ZIUAOW5J.js');
5
+ require('./chunk-BDNXCOYM.js');
6
6
  require('./chunk-2YZ3MY7Z.js');
7
7
  require('./chunk-OAZ3OJPI.js');
8
8
  require('./chunk-3GQAWCBQ.js');
@@ -1,8 +1,8 @@
1
1
  import "./chunk-HYHKZPRR.mjs";
2
+ import "./chunk-M7TZCVBI.mjs";
2
3
  import "./chunk-JMMGQ3VC.mjs";
3
- import "./chunk-ODKOOHVU.mjs";
4
4
  import "./chunk-FAMG3LBJ.mjs";
5
- import "./chunk-M7TZCVBI.mjs";
5
+ import "./chunk-ODKOOHVU.mjs";
6
6
  import "./chunk-YFYQLHFW.mjs";
7
7
  import "./chunk-COZQPQN4.mjs";
8
8
  import "./chunk-XUV4U54K.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 _chunkYIC7T6TBjs = require('./chunk-YIC7T6TB.js');
4
+ var _chunk62AAEOVBjs = require('./chunk-62AAEOVB.js');
5
5
  require('./chunk-OAZ3OJPI.js');
6
6
  require('./chunk-3GQAWCBQ.js');
7
7
 
8
8
 
9
- exports.initGenerator = _chunkYIC7T6TBjs.initGenerator;
9
+ exports.initGenerator = _chunk62AAEOVBjs.initGenerator;
@@ -1,7 +1,7 @@
1
1
  import "./chunk-23KFTIT2.mjs";
2
2
  import {
3
3
  initGenerator
4
- } from "./chunk-CJUII4ME.mjs";
4
+ } from "./chunk-ASK4ZDKV.mjs";
5
5
  import "./chunk-COZQPQN4.mjs";
6
6
  import "./chunk-XUV4U54K.mjs";
7
7
  export {
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-E7SPQEPH.js');
2
+ require('./chunk-ZIUAOW5J.js');
2
3
  require('./chunk-P4DYHSWV.js');
3
- require('./chunk-BDNXCOYM.js');
4
4
  require('./chunk-QYC5T3J3.js');
5
5
  require('./chunk-N2YKXZ5R.js');
6
6
 
7
7
 
8
- var _chunkYIC7T6TBjs = require('./chunk-YIC7T6TB.js');
8
+ var _chunk62AAEOVBjs = require('./chunk-62AAEOVB.js');
9
9
  require('./chunk-GUQOEBFW.js');
10
10
 
11
11
 
12
12
  var _chunkILC773N2js = require('./chunk-ILC773N2.js');
13
- require('./chunk-ZIUAOW5J.js');
13
+ require('./chunk-BDNXCOYM.js');
14
14
 
15
15
 
16
16
  var _chunk2YZ3MY7Zjs = require('./chunk-2YZ3MY7Z.js');
@@ -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 = _chunkYIC7T6TBjs.initGenerator; exports.withTerraformExecutor = _chunk2YZ3MY7Zjs.withTerraformExecutor;
23
+ exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator = _chunk62AAEOVBjs.initGenerator; exports.withTerraformExecutor = _chunk2YZ3MY7Zjs.withTerraformExecutor;
package/dist/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
1
  import "./chunk-HYHKZPRR.mjs";
2
+ import "./chunk-M7TZCVBI.mjs";
2
3
  import "./chunk-JMMGQ3VC.mjs";
3
- import "./chunk-ODKOOHVU.mjs";
4
4
  import "./chunk-FAMG3LBJ.mjs";
5
5
  import "./chunk-23KFTIT2.mjs";
6
6
  import {
7
7
  initGenerator
8
- } from "./chunk-CJUII4ME.mjs";
8
+ } from "./chunk-ASK4ZDKV.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-M7TZCVBI.mjs";
13
+ import "./chunk-ODKOOHVU.mjs";
14
14
  import {
15
15
  withTerraformExecutor
16
16
  } from "./chunk-YFYQLHFW.mjs";
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkYIC7T6TBjs = require('../../../chunk-YIC7T6TB.js');
4
+ var _chunk62AAEOVBjs = require('../../../chunk-62AAEOVB.js');
5
5
  require('../../../chunk-OAZ3OJPI.js');
6
6
  require('../../../chunk-3GQAWCBQ.js');
7
7
 
8
8
 
9
9
 
10
- exports.default = _chunkYIC7T6TBjs.init_default; exports.initGenerator = _chunkYIC7T6TBjs.initGenerator;
10
+ exports.default = _chunk62AAEOVBjs.init_default; exports.initGenerator = _chunk62AAEOVBjs.initGenerator;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  initGenerator,
3
3
  init_default
4
- } from "../../../chunk-CJUII4ME.mjs";
4
+ } from "../../../chunk-ASK4ZDKV.mjs";
5
5
  import "../../../chunk-COZQPQN4.mjs";
6
6
  import "../../../chunk-XUV4U54K.mjs";
7
7
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/terraform-tools",
3
- "version": "0.53.3",
3
+ "version": "0.53.5",
4
4
  "description": "Tools for managing Terraform infrastructure within a Nx workspace.",
5
5
  "repository": {
6
6
  "type": "github",
@@ -123,7 +123,7 @@
123
123
  "nx": { "optional": false }
124
124
  },
125
125
  "dependencies": {
126
- "@storm-software/workspace-tools": "1.239.6",
126
+ "@storm-software/workspace-tools": "1.240.1",
127
127
  "shelljs": "^0.8.5",
128
128
  "tslib": "^2.6.3"
129
129
  },