@storm-software/workspace-tools 1.239.5 → 1.240.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-KTQJ3BYS.js → chunk-2JLHVV5S.js} +22 -61
  4. package/dist/{chunk-VTNJFMZL.js → chunk-2VV3TV3C.js} +2 -2
  5. package/dist/{chunk-SOQA673K.mjs → chunk-33S3ENYB.mjs} +6 -6
  6. package/dist/{chunk-SMQLC4ZD.js → chunk-3LJCHADS.js} +5 -5
  7. package/dist/{chunk-STENKYWN.js → chunk-4AOGBZNI.js} +2 -2
  8. package/dist/{chunk-CT2M6P5R.js → chunk-4ZKSU75O.js} +11 -11
  9. package/dist/{chunk-FZRFNRJT.js → chunk-6NSTM255.js} +31 -31
  10. package/dist/{chunk-BQ6QQEKM.js → chunk-6WRRTV43.js} +41 -41
  11. package/dist/{chunk-7ZQ2E7DU.mjs → chunk-762D6XMQ.mjs} +1 -1
  12. package/dist/{chunk-PYLFT2B6.mjs → chunk-7HUOKMPU.mjs} +1 -1
  13. package/dist/{chunk-LQSCFXXH.mjs → chunk-AJ7WQHX5.mjs} +1 -1
  14. package/dist/{chunk-UR7LTGOY.js → chunk-APBDTIK2.js} +2 -2
  15. package/dist/{chunk-OCZKMQKV.mjs → chunk-BFKQCOQJ.mjs} +1 -1
  16. package/dist/{chunk-FDQROX6T.js → chunk-BJAK7EVK.js} +4 -4
  17. package/dist/{chunk-B2TMWHSQ.js → chunk-CRMDACYF.js} +20 -20
  18. package/dist/{chunk-TDO6POJN.js → chunk-EGBJI6CN.js} +15 -15
  19. package/dist/{chunk-NOGV45XZ.mjs → chunk-FOYWFRVO.mjs} +3 -3
  20. package/dist/{chunk-IFT7I2FJ.js → chunk-HCEVPME2.js} +9 -9
  21. package/dist/{chunk-XV2NPRXT.mjs → chunk-HO2DSAZ2.mjs} +1 -1
  22. package/dist/{chunk-3BU4E3N6.mjs → chunk-I5N7XQEK.mjs} +1 -1
  23. package/dist/{chunk-IF2P52VQ.mjs → chunk-JE4JY3YS.mjs} +1 -1
  24. package/dist/{chunk-FTCEJETR.mjs → chunk-JKJK4ONU.mjs} +3 -3
  25. package/dist/{chunk-SLVOLY6P.mjs → chunk-JXMDPU4I.mjs} +3 -3
  26. package/dist/{chunk-VNRL6EUK.mjs → chunk-M47JATRY.mjs} +6 -6
  27. package/dist/{chunk-YP6KREBX.mjs → chunk-M4PPRKPX.mjs} +2 -2
  28. package/dist/{chunk-JES75APB.mjs → chunk-MFWYLIWY.mjs} +2 -2
  29. package/dist/{chunk-7DG4BPDH.js → chunk-MQAKNE4X.js} +5 -5
  30. package/dist/{chunk-E42HWC4D.js → chunk-NWSV2EYZ.js} +2 -2
  31. package/dist/{chunk-BWUHOT6F.mjs → chunk-NYX3ICKR.mjs} +103 -50
  32. package/dist/{chunk-RER3HTR4.js → chunk-PB6J3FU7.js} +2 -2
  33. package/dist/{chunk-XV57DEOH.mjs → chunk-QLOTS3MH.mjs} +1 -1
  34. package/dist/{chunk-M3X4P6AT.js → chunk-RN4QXP7F.js} +111 -58
  35. package/dist/{chunk-WO3SOZPT.mjs → chunk-RRQ7WHLD.mjs} +2 -2
  36. package/dist/{chunk-3W2Z7D4U.js → chunk-SBHOAJIT.js} +2 -2
  37. package/dist/{chunk-ODVU2NXI.mjs → chunk-SC3ANGC5.mjs} +2 -2
  38. package/dist/{chunk-BUKUNOCV.js → chunk-SGSMEZWT.js} +2 -2
  39. package/dist/{chunk-6SV7BVD4.mjs → chunk-WGNNLNSH.mjs} +1 -1
  40. package/dist/{chunk-GIIOK5XW.mjs → chunk-Y5SXJ6IC.mjs} +23 -62
  41. package/dist/{chunk-BNVJA74D.js → chunk-Y7RQKDIF.js} +2 -2
  42. package/dist/{chunk-LSUHHBAM.js → chunk-YVJY3MXR.js} +2 -2
  43. package/dist/{executor-B4MiexNw.d.ts → executor-BHwhDrL-.d.ts} +1 -1
  44. package/dist/{executor-C8vSwRW1.d.ts → executor-BW_5lER2.d.ts} +1 -1
  45. package/dist/{executor-qCehbH9x.d.mts → executor-Bk4ug-RW.d.mts} +1 -1
  46. package/dist/{executor-BqpvCbj5.d.ts → executor-CIGyZdrv.d.ts} +1 -1
  47. package/dist/{executor-D8m1bXgk.d.mts → executor-C_QU1lUw.d.mts} +1 -1
  48. package/dist/{executor-5Wog21g_.d.mts → executor-D2o23AZj.d.mts} +1 -1
  49. package/dist/{executor-hq_H_ICT.d.mts → executor-DL3jAzFW.d.mts} +1 -1
  50. package/dist/{executor-D5hcfG7B.d.ts → executor-DOFe9F7c.d.ts} +1 -1
  51. package/dist/{executor-U929Bp8J.d.ts → executor-hDJ0Fk_g.d.ts} +1 -1
  52. package/dist/{executor-CqbWU1uP.d.mts → executor-ozBp5rj1.d.mts} +1 -1
  53. package/dist/executors.d.mts +6 -6
  54. package/dist/executors.d.ts +6 -6
  55. package/dist/executors.js +14 -14
  56. package/dist/executors.mjs +13 -13
  57. package/dist/{generator-BLYdn00o.d.mts → generator-BNM0qnMp.d.mts} +1 -1
  58. package/dist/{generator-48_WHnGL.d.mts → generator-BPXY7sqO.d.mts} +1 -1
  59. package/dist/{generator-Dyq3mgZU.d.mts → generator-BS6uKMIL.d.mts} +2 -2
  60. package/dist/{generator-DeKyhxAj.d.mts → generator-BsxAYGR_.d.mts} +2 -2
  61. package/dist/{generator-OLytwpdD.d.ts → generator-CFxhJoNw.d.ts} +2 -2
  62. package/dist/{generator-T2p5gT0C.d.ts → generator-CiDljAEY.d.ts} +2 -2
  63. package/dist/{generator-noL-xIjx.d.ts → generator-CiNaIUED.d.ts} +1 -1
  64. package/dist/{generator-BufhnJev.d.ts → generator-DDW7kns9.d.ts} +2 -2
  65. package/dist/{generator-BqzpDHpv.d.mts → generator-DatrLGpK.d.mts} +2 -2
  66. package/dist/{generator-DeNfAL1R.d.ts → generator-QTX2Ix9P.d.ts} +1 -1
  67. package/dist/{generator-CC8n6BWL.d.mts → generator-c8PBxLhH.d.mts} +2 -2
  68. package/dist/{generator-CtpgcwxE.d.ts → generator-ymaJQAJP.d.ts} +2 -2
  69. package/dist/generators.d.mts +8 -8
  70. package/dist/generators.d.ts +8 -8
  71. package/dist/generators.js +9 -9
  72. package/dist/generators.mjs +8 -8
  73. package/dist/index.d.mts +13 -13
  74. package/dist/index.d.ts +13 -13
  75. package/dist/index.js +21 -21
  76. package/dist/index.mjs +20 -20
  77. package/dist/src/base/base-executor.d.mts +2 -2
  78. package/dist/src/base/base-executor.d.ts +2 -2
  79. package/dist/src/base/base-executor.js +3 -3
  80. package/dist/src/base/base-executor.mjs +2 -2
  81. package/dist/src/base/base-generator.d.mts +2 -2
  82. package/dist/src/base/base-generator.d.ts +2 -2
  83. package/dist/src/base/base-generator.js +3 -3
  84. package/dist/src/base/base-generator.mjs +2 -2
  85. package/dist/src/base/index.d.mts +2 -2
  86. package/dist/src/base/index.d.ts +2 -2
  87. package/dist/src/base/index.js +4 -4
  88. package/dist/src/base/index.mjs +3 -3
  89. package/dist/src/executors/cargo-build/executor.js +4 -4
  90. package/dist/src/executors/cargo-build/executor.mjs +3 -3
  91. package/dist/src/executors/cargo-check/executor.js +4 -4
  92. package/dist/src/executors/cargo-check/executor.mjs +3 -3
  93. package/dist/src/executors/cargo-clippy/executor.js +4 -4
  94. package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
  95. package/dist/src/executors/cargo-doc/executor.js +4 -4
  96. package/dist/src/executors/cargo-doc/executor.mjs +3 -3
  97. package/dist/src/executors/cargo-format/executor.js +4 -4
  98. package/dist/src/executors/cargo-format/executor.mjs +3 -3
  99. package/dist/src/executors/clean-package/executor.d.mts +1 -1
  100. package/dist/src/executors/clean-package/executor.d.ts +1 -1
  101. package/dist/src/executors/clean-package/executor.js +5 -5
  102. package/dist/src/executors/clean-package/executor.mjs +2 -2
  103. package/dist/src/executors/esbuild/executor.d.mts +2 -2
  104. package/dist/src/executors/esbuild/executor.d.ts +2 -2
  105. package/dist/src/executors/esbuild/executor.js +5 -5
  106. package/dist/src/executors/esbuild/executor.mjs +4 -4
  107. package/dist/src/executors/size-limit/executor.d.mts +2 -2
  108. package/dist/src/executors/size-limit/executor.d.ts +2 -2
  109. package/dist/src/executors/size-limit/executor.js +4 -4
  110. package/dist/src/executors/size-limit/executor.mjs +3 -3
  111. package/dist/src/executors/tsdown/executor.d.mts +2 -2
  112. package/dist/src/executors/tsdown/executor.d.ts +2 -2
  113. package/dist/src/executors/tsdown/executor.js +5 -5
  114. package/dist/src/executors/tsdown/executor.mjs +4 -4
  115. package/dist/src/executors/typia/executor.d.mts +2 -2
  116. package/dist/src/executors/typia/executor.d.ts +2 -2
  117. package/dist/src/executors/typia/executor.js +4 -4
  118. package/dist/src/executors/typia/executor.mjs +3 -3
  119. package/dist/src/executors/unbuild/executor.d.mts +2 -2
  120. package/dist/src/executors/unbuild/executor.d.ts +2 -2
  121. package/dist/src/executors/unbuild/executor.js +4 -4
  122. package/dist/src/executors/unbuild/executor.mjs +3 -3
  123. package/dist/src/generators/browser-library/generator.d.mts +3 -3
  124. package/dist/src/generators/browser-library/generator.d.ts +3 -3
  125. package/dist/src/generators/browser-library/generator.js +4 -4
  126. package/dist/src/generators/browser-library/generator.mjs +3 -3
  127. package/dist/src/generators/config-schema/generator.d.mts +3 -3
  128. package/dist/src/generators/config-schema/generator.d.ts +3 -3
  129. package/dist/src/generators/config-schema/generator.js +4 -4
  130. package/dist/src/generators/config-schema/generator.mjs +3 -3
  131. package/dist/src/generators/neutral-library/generator.d.mts +3 -3
  132. package/dist/src/generators/neutral-library/generator.d.ts +3 -3
  133. package/dist/src/generators/neutral-library/generator.js +4 -4
  134. package/dist/src/generators/neutral-library/generator.mjs +3 -3
  135. package/dist/src/generators/node-library/generator.d.mts +3 -3
  136. package/dist/src/generators/node-library/generator.d.ts +3 -3
  137. package/dist/src/generators/node-library/generator.js +4 -4
  138. package/dist/src/generators/node-library/generator.mjs +3 -3
  139. package/dist/src/generators/preset/generator.d.mts +3 -3
  140. package/dist/src/generators/preset/generator.d.ts +3 -3
  141. package/dist/src/generators/preset/generator.js +4 -4
  142. package/dist/src/generators/preset/generator.mjs +3 -3
  143. package/dist/src/generators/release-version/generator.d.mts +2 -2
  144. package/dist/src/generators/release-version/generator.d.ts +2 -2
  145. package/dist/src/generators/release-version/generator.js +3 -3
  146. package/dist/src/generators/release-version/generator.mjs +2 -2
  147. package/dist/src/types.d.mts +2 -2
  148. package/dist/src/types.d.ts +2 -2
  149. package/dist/src/utils/apply-workspace-tokens.d.mts +1 -1
  150. package/dist/src/utils/apply-workspace-tokens.d.ts +1 -1
  151. package/dist/src/utils/index.d.mts +2 -2
  152. package/dist/src/utils/index.d.ts +2 -2
  153. package/dist/src/utils/project-tags.d.mts +2 -2
  154. package/dist/src/utils/project-tags.d.ts +2 -2
  155. package/dist/{types-BmsLBqaq.d.ts → types-Bd83s-qg.d.ts} +1 -1
  156. package/dist/{types-CQzaS20Q.d.mts → types-CYi2oThM.d.mts} +1 -1
  157. package/dist/{types-D9vU63tt.d.ts → types-zrlItIRw.d.mts} +3 -3
  158. package/dist/{types-D9vU63tt.d.mts → types-zrlItIRw.d.ts} +3 -3
  159. package/package.json +5 -5
@@ -8,10 +8,10 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkKTQJ3BYSjs = require('./chunk-KTQJ3BYS.js');
11
+ var _chunk2JLHVV5Sjs = require('./chunk-2JLHVV5S.js');
12
12
 
13
13
 
14
- var _chunkB2TMWHSQjs = require('./chunk-B2TMWHSQ.js');
14
+ var _chunkCRMDACYFjs = require('./chunk-CRMDACYF.js');
15
15
 
16
16
 
17
17
 
@@ -23,7 +23,7 @@ var _chunkB2TMWHSQjs = require('./chunk-B2TMWHSQ.js');
23
23
 
24
24
 
25
25
 
26
- var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
26
+ var _chunkRN4QXP7Fjs = require('./chunk-RN4QXP7F.js');
27
27
 
28
28
 
29
29
  var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
@@ -208,8 +208,8 @@ var RendererEngine = class {
208
208
  // ../esbuild/src/clean.ts
209
209
 
210
210
  async function clean(name = "ESBuild", directory, config) {
211
- _chunkM3X4P6ATjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
212
- const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, `${name} output clean`);
211
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
212
+ const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, `${name} output clean`);
213
213
  await _node.hfs.deleteAll(directory);
214
214
  stopwatch();
215
215
  }
@@ -330,7 +330,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
330
330
  setup(build4) {
331
331
  build4.onEnd((result) => {
332
332
  if (result.errors.length > 0 && process.env.WATCH !== "true") {
333
- _chunkM3X4P6ATjs.writeError.call(void 0, `The following errors occurred during the build:
333
+ _chunkRN4QXP7Fjs.writeError.call(void 0, `The following errors occurred during the build:
334
334
  ${result.errors.map((error) => error.text).join("\n")}
335
335
 
336
336
  `, resolvedOptions.config);
@@ -438,7 +438,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
438
438
  localBuild: true
439
439
  });
440
440
  if (extractorResult.succeeded === false) {
441
- _chunkM3X4P6ATjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
441
+ _chunkRN4QXP7Fjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
442
442
  throw new Error("API Extractor completed with errors");
443
443
  }
444
444
  }
@@ -487,7 +487,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, getTypeDependencyPackageName, "getTypeDepen
487
487
 
488
488
  // ../esbuild/src/config.ts
489
489
  var getOutputExtensionMap = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, pkgType) => {
490
- return options.outExtension ? options.outExtension(options.format, pkgType) : _chunkKTQJ3BYSjs.getOutExtension.call(void 0, options.format, pkgType);
490
+ return options.outExtension ? options.outExtension(options.format, pkgType) : _chunk2JLHVV5Sjs.getOutExtension.call(void 0, options.format, pkgType);
491
491
  }, "getOutputExtensionMap");
492
492
  var getDefaultBuildPlugins = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => [
493
493
  nodeProtocolPlugin(options, resolvedOptions),
@@ -535,7 +535,7 @@ var DEFAULT_BUILD_OPTIONS = {
535
535
  ".woff": "file",
536
536
  ".woff2": "file"
537
537
  },
538
- banner: _chunkKTQJ3BYSjs.DEFAULT_COMPILED_BANNER
538
+ banner: _chunk2JLHVV5Sjs.DEFAULT_COMPILED_BANNER
539
539
  };
540
540
 
541
541
  // ../esbuild/src/plugins/deps-check.ts
@@ -617,8 +617,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bund
617
617
  const filteredMissingDeps = missingDependencies.filter((dep) => {
618
618
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
619
619
  });
620
- _chunkM3X4P6ATjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
621
- _chunkM3X4P6ATjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
620
+ _chunkRN4QXP7Fjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
621
+ _chunkRN4QXP7Fjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
622
622
  if (filteredMissingDeps.length > 0) {
623
623
  throw new Error(`Missing dependencies detected - please install them:
624
624
  ${JSON.stringify(filteredMissingDeps)}
@@ -712,9 +712,9 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
712
712
  if (!workspaceRoot) {
713
713
  throw new Error("Cannot find Nx workspace root");
714
714
  }
715
- const config = await _chunkM3X4P6ATjs.loadStormConfig.call(void 0, workspaceRoot.dir);
716
- _chunkM3X4P6ATjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
717
- const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, "Build options resolution");
715
+ const config = await _chunkRN4QXP7Fjs.getConfig.call(void 0, workspaceRoot.dir);
716
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
717
+ const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, "Build options resolution");
718
718
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
719
719
  exitOnError: true
720
720
  });
@@ -730,14 +730,14 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
730
730
  }
731
731
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
732
732
  options.name ??= `${projectName}-${options.format}`;
733
- options.target ??= _chunkKTQJ3BYSjs.DEFAULT_TARGET;
733
+ options.target ??= _chunk2JLHVV5Sjs.DEFAULT_TARGET;
734
734
  const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
735
735
  if (!await _node.hfs.isFile(packageJsonPath)) {
736
736
  throw new Error("Cannot find package.json configuration");
737
737
  }
738
738
  const packageJson = await _node.hfs.json(packageJsonPath);
739
739
  const outExtension = getOutputExtensionMap(options, packageJson.type);
740
- const env = _chunkKTQJ3BYSjs.getEnv.call(void 0, "esbuild", options);
740
+ const env = _chunk2JLHVV5Sjs.getEnv.call(void 0, "esbuild", options);
741
741
  const result = {
742
742
  ...options,
743
743
  config,
@@ -757,7 +757,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
757
757
  ...userOptions,
758
758
  tsconfig: _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
759
759
  format: options.format || "cjs",
760
- entryPoints: await _chunkKTQJ3BYSjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
760
+ entryPoints: await _chunk2JLHVV5Sjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
761
761
  "./src/index.ts"
762
762
  ], userOptions.emitOnAll),
763
763
  outdir: userOptions.outputPath || _chunkXCSSYTCUjs.joinPaths.call(void 0, "dist", projectRoot),
@@ -768,7 +768,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
768
768
  projectGraph,
769
769
  sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, "src"),
770
770
  minify: userOptions.minify || !userOptions.debug,
771
- verbose: userOptions.verbose || _chunkM3X4P6ATjs.isVerbose.call(void 0, ) || userOptions.debug === true,
771
+ verbose: userOptions.verbose || _chunkRN4QXP7Fjs.isVerbose.call(void 0, ) || userOptions.debug === true,
772
772
  includeSrc: userOptions.includeSrc === true,
773
773
  metafile: userOptions.metafile !== false,
774
774
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -782,8 +782,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
782
782
  outExtension,
783
783
  footer: userOptions.footer,
784
784
  banner: {
785
- js: options.banner || _chunkKTQJ3BYSjs.DEFAULT_COMPILED_BANNER,
786
- css: options.banner || _chunkKTQJ3BYSjs.DEFAULT_COMPILED_BANNER
785
+ js: options.banner || _chunk2JLHVV5Sjs.DEFAULT_COMPILED_BANNER,
786
+ css: options.banner || _chunk2JLHVV5Sjs.DEFAULT_COMPILED_BANNER
787
787
  },
788
788
  splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
789
789
  treeShaking: options.format === "esm",
@@ -815,8 +815,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
815
815
  }, "resolveOptions");
816
816
  async function generatePackageJson(context2) {
817
817
  if (context2.options.generatePackageJson !== false && await _node.hfs.isFile(_chunkXCSSYTCUjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
818
- _chunkM3X4P6ATjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
819
- const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, "Write package.json file");
818
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
819
+ const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, "Write package.json file");
820
820
  const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
821
821
  if (!await _node.hfs.isFile(packageJsonPath)) {
822
822
  throw new Error("Cannot find package.json configuration");
@@ -825,11 +825,11 @@ async function generatePackageJson(context2) {
825
825
  if (!packageJson) {
826
826
  throw new Error("Cannot find package.json configuration file");
827
827
  }
828
- packageJson = await _chunkKTQJ3BYSjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
829
- packageJson = await _chunkKTQJ3BYSjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
828
+ packageJson = await _chunk2JLHVV5Sjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
829
+ packageJson = await _chunk2JLHVV5Sjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
830
830
  packageJson.exports ??= {};
831
831
  packageJson.exports["./package.json"] ??= "./package.json";
832
- packageJson.exports["."] ??= _chunkKTQJ3BYSjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
832
+ packageJson.exports["."] ??= _chunk2JLHVV5Sjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
833
833
  let entryPoints = [
834
834
  {
835
835
  in: "./src/index.ts",
@@ -847,7 +847,7 @@ async function generatePackageJson(context2) {
847
847
  const split = entryPoint.out.split(".");
848
848
  split.pop();
849
849
  const entry = split.join(".").replaceAll("\\", "/");
850
- packageJson.exports[`./${entry}`] ??= _chunkKTQJ3BYSjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
850
+ packageJson.exports[`./${entry}`] ??= _chunk2JLHVV5Sjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
851
851
  }
852
852
  }
853
853
  packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
@@ -885,8 +885,8 @@ async function generateContext(getOptions) {
885
885
  }
886
886
  _chunk3GQAWCBQjs.__name.call(void 0, generateContext, "generateContext");
887
887
  async function executeEsBuild(context2) {
888
- _chunkM3X4P6ATjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
889
- const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, `${context2.options.name} build`);
888
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
889
+ const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, `${context2.options.name} build`);
890
890
  if (process.env.WATCH === "true") {
891
891
  const ctx = await esbuild2.context(context2.options);
892
892
  watch(ctx, context2.options);
@@ -902,9 +902,9 @@ async function executeEsBuild(context2) {
902
902
  _chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
903
903
  async function copyBuildAssets(context2) {
904
904
  if (_optionalChain([context2, 'access', _26 => _26.result, 'optionalAccess', _27 => _27.errors, 'access', _28 => _28.length]) === 0) {
905
- _chunkM3X4P6ATjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
906
- const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
907
- await _chunkKTQJ3BYSjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.projectName, context2.options.sourceRoot, true, false);
905
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
906
+ const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
907
+ await _chunk2JLHVV5Sjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
908
908
  stopwatch();
909
909
  }
910
910
  return context2;
@@ -913,9 +913,9 @@ _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
913
913
  async function reportResults(context2) {
914
914
  if (_optionalChain([context2, 'access', _29 => _29.result, 'optionalAccess', _30 => _30.errors, 'access', _31 => _31.length]) === 0) {
915
915
  if (context2.result.warnings.length > 0) {
916
- _chunkM3X4P6ATjs.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);
916
+ _chunkRN4QXP7Fjs.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);
917
917
  }
918
- _chunkM3X4P6ATjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
918
+ _chunkRN4QXP7Fjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
919
919
  }
920
920
  }
921
921
  _chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
@@ -957,8 +957,8 @@ async function cleanOutputPath(context2) {
957
957
  }
958
958
  _chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
959
959
  async function build3(options) {
960
- _chunkM3X4P6ATjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
961
- const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, "ESBuild pipeline");
960
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
961
+ const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, "ESBuild pipeline");
962
962
  try {
963
963
  const opts = Array.isArray(options) ? options : [
964
964
  options
@@ -968,9 +968,9 @@ async function build3(options) {
968
968
  }
969
969
  void transduce.async(opts, dependencyCheck);
970
970
  await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
971
- _chunkM3X4P6ATjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
971
+ _chunkRN4QXP7Fjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
972
972
  } catch (error) {
973
- _chunkM3X4P6ATjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
973
+ _chunkRN4QXP7Fjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
974
974
  throw error;
975
975
  } finally {
976
976
  stopwatch();
@@ -998,9 +998,9 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
998
998
  return context2.rebuild();
999
999
  });
1000
1000
  if (rebuildResult instanceof Error) {
1001
- _chunkM3X4P6ATjs.writeError.call(void 0, rebuildResult.message);
1001
+ _chunkRN4QXP7Fjs.writeError.call(void 0, rebuildResult.message);
1002
1002
  }
1003
- _chunkM3X4P6ATjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1003
+ _chunkRN4QXP7Fjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1004
1004
  }, 10);
1005
1005
  changeWatcher.on("change", fastRebuild);
1006
1006
  return void 0;
@@ -1008,7 +1008,7 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
1008
1008
 
1009
1009
  // src/executors/esbuild/executor.ts
1010
1010
  async function esbuildExecutorFn(options, context2, config) {
1011
- _chunkM3X4P6ATjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1011
+ _chunkRN4QXP7Fjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1012
1012
  if (!_optionalChain([context2, 'access', _32 => _32.projectsConfigurations, 'optionalAccess', _33 => _33.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _34 => _34.projectsConfigurations, 'access', _35 => _35.projects, 'access', _36 => _36[context2.projectName], 'optionalAccess', _37 => _37.root])) {
1013
1013
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1014
1014
  }
@@ -1025,7 +1025,7 @@ async function esbuildExecutorFn(options, context2, config) {
1025
1025
  };
1026
1026
  }
1027
1027
  _chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
1028
- var executor_default = _chunkB2TMWHSQjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
1028
+ var executor_default = _chunkCRMDACYFjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
1029
1029
  skipReadingConfig: false,
1030
1030
  hooks: {
1031
1031
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XSRDTQ5C.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-SLVOLY6P.mjs";
7
+ } from "./chunk-JXMDPU4I.mjs";
8
8
  import {
9
9
  __dirname,
10
10
  __name
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QZHIWK5Z.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-FTCEJETR.mjs";
7
+ } from "./chunk-JKJK4ONU.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QZHIWK5Z.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-FTCEJETR.mjs";
7
+ } from "./chunk-JKJK4ONU.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";
@@ -4,7 +4,7 @@
4
4
  var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
5
5
 
6
6
 
7
- var _chunkB2TMWHSQjs = require('./chunk-B2TMWHSQ.js');
7
+ var _chunkCRMDACYFjs = require('./chunk-CRMDACYF.js');
8
8
 
9
9
 
10
10
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -15,7 +15,7 @@ async function cargoBuildExecutor(options, context) {
15
15
  return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
16
16
  }
17
17
  _chunk3GQAWCBQjs.__name.call(void 0, cargoBuildExecutor, "cargoBuildExecutor");
18
- var executor_default = _chunkB2TMWHSQjs.withRunExecutor.call(void 0, "Cargo Build", cargoBuildExecutor, {
18
+ var executor_default = _chunkCRMDACYFjs.withRunExecutor.call(void 0, "Cargo Build", cargoBuildExecutor, {
19
19
  skipReadingConfig: false,
20
20
  hooks: {
21
21
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QZHIWK5Z.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-FTCEJETR.mjs";
7
+ } from "./chunk-JKJK4ONU.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkB2TMWHSQjs = require('./chunk-B2TMWHSQ.js');
3
+ var _chunkCRMDACYFjs = require('./chunk-CRMDACYF.js');
4
4
 
5
5
 
6
- var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
6
+ var _chunkRN4QXP7Fjs = require('./chunk-RN4QXP7F.js');
7
7
 
8
8
 
9
9
  var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
@@ -15,7 +15,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
15
15
  var _defu = require('defu');
16
16
  var _jiti = require('jiti');
17
17
  async function unbuildExecutorFn(options, context, config) {
18
- _chunkM3X4P6ATjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
18
+ _chunkRN4QXP7Fjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
19
19
  if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
20
20
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
21
21
  }
@@ -63,7 +63,7 @@ async function unbuildExecutorFn(options, context, config) {
63
63
  };
64
64
  }
65
65
  _chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
66
- var executor_default = _chunkB2TMWHSQjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
66
+ var executor_default = _chunkCRMDACYFjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
67
67
  skipReadingConfig: false,
68
68
  hooks: {
69
69
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
@@ -12,7 +12,7 @@ var _chunkXS73BPQSjs = require('./chunk-XS73BPQS.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
15
+ var _chunkRN4QXP7Fjs = require('./chunk-RN4QXP7F.js');
16
16
 
17
17
 
18
18
  var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
@@ -23,7 +23,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
23
23
  // src/base/base-executor.ts
24
24
  var _defu = require('defu');
25
25
  var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
26
- const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, name);
26
+ const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, name);
27
27
  let options = _options;
28
28
  let config = {};
29
29
  try {
@@ -35,25 +35,25 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
35
35
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
36
36
  const projectName = context.projectName;
37
37
  config.workspaceRoot = workspaceRoot;
38
- _chunkM3X4P6ATjs.writeInfo.call(void 0, `
38
+ _chunkRN4QXP7Fjs.writeInfo.call(void 0, `
39
39
  \u26A1 Running the ${name} executor for ${projectName}
40
40
  `, config);
41
41
  if (!executorOptions.skipReadingConfig) {
42
- _chunkM3X4P6ATjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
42
+ _chunkRN4QXP7Fjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
43
43
  - workspaceRoot: ${workspaceRoot}
44
44
  - projectRoot: ${projectRoot}
45
45
  - sourceRoot: ${sourceRoot}
46
46
  - projectName: ${projectName}
47
47
  `, config);
48
- config = await _chunkM3X4P6ATjs.loadStormConfig.call(void 0, workspaceRoot);
48
+ config = await _chunkRN4QXP7Fjs.getConfig.call(void 0, workspaceRoot);
49
49
  }
50
50
  if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
51
- _chunkM3X4P6ATjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
51
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
52
52
  options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
53
- _chunkM3X4P6ATjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
53
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
54
54
  }
55
- _chunkM3X4P6ATjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
56
- ${_chunkM3X4P6ATjs.formatLogMessage.call(void 0, options)}
55
+ _chunkRN4QXP7Fjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
56
+ ${_chunkRN4QXP7Fjs.formatLogMessage.call(void 0, options)}
57
57
  `, config);
58
58
  const tokenized = await _chunkXS73BPQSjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
59
59
  workspaceRoot,
@@ -62,13 +62,13 @@ ${_chunkM3X4P6ATjs.formatLogMessage.call(void 0, options)}
62
62
  projectName,
63
63
  config
64
64
  }, config, context.projectsConfigurations.projects[context.projectName]), _chunkXS73BPQSjs.applyWorkspaceProjectTokens);
65
- _chunkM3X4P6ATjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
66
- ${_chunkM3X4P6ATjs.formatLogMessage.call(void 0, tokenized)}
65
+ _chunkRN4QXP7Fjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
66
+ ${_chunkRN4QXP7Fjs.formatLogMessage.call(void 0, tokenized)}
67
67
  `, config);
68
68
  if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
69
- _chunkM3X4P6ATjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
69
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
70
70
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
71
- _chunkM3X4P6ATjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
71
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
72
72
  }
73
73
  const ret = executorFn(tokenized, context, config);
74
74
  if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
@@ -78,26 +78,26 @@ ${_chunkM3X4P6ATjs.formatLogMessage.call(void 0, tokenized)}
78
78
  }
79
79
  const result = await Promise.resolve(ret);
80
80
  if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _8 => _8.error, 'optionalAccess', _9 => _9.message]) && typeof _optionalChain([result, 'optionalAccess', _10 => _10.error, 'optionalAccess', _11 => _11.message]) === "string" && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.name]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.name]) === "string")) {
81
- _chunkM3X4P6ATjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
82
- ${_chunkM3X4P6ATjs.formatLogMessage.call(void 0, result)}`, config);
81
+ _chunkRN4QXP7Fjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
82
+ ${_chunkRN4QXP7Fjs.formatLogMessage.call(void 0, result)}`, config);
83
83
  console.error(result);
84
84
  throw new Error(`The ${name} executor failed to run`, {
85
85
  cause: _optionalChain([result, 'optionalAccess', _16 => _16.error])
86
86
  });
87
87
  }
88
88
  if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
89
- _chunkM3X4P6ATjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
89
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
90
90
  await Promise.resolve(executorOptions.hooks.postProcess(config));
91
- _chunkM3X4P6ATjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
91
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
92
92
  }
93
- _chunkM3X4P6ATjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
93
+ _chunkRN4QXP7Fjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
94
94
  `, config);
95
95
  return {
96
96
  success: true
97
97
  };
98
98
  } catch (error) {
99
- _chunkM3X4P6ATjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
100
- _chunkM3X4P6ATjs.writeError.call(void 0, `An exception was thrown in the executor's process
99
+ _chunkRN4QXP7Fjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
100
+ _chunkRN4QXP7Fjs.writeError.call(void 0, `An exception was thrown in the executor's process
101
101
  - Details: ${error.message}
102
102
  - Stacktrace: ${error.stack}`, config);
103
103
  return {
@@ -11,7 +11,7 @@ var _chunkXS73BPQSjs = require('./chunk-XS73BPQS.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
14
+ var _chunkRN4QXP7Fjs = require('./chunk-RN4QXP7F.js');
15
15
 
16
16
 
17
17
  var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
@@ -23,34 +23,34 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
23
23
  var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
24
24
  skipReadingConfig: false
25
25
  }) => async (tree, _options) => {
26
- const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, name);
26
+ const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, name);
27
27
  let options = _options;
28
28
  let config;
29
29
  try {
30
- _chunkM3X4P6ATjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
30
+ _chunkRN4QXP7Fjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
31
31
 
32
32
  `, config);
33
33
  const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
34
34
  if (!generatorOptions.skipReadingConfig) {
35
- _chunkM3X4P6ATjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
35
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
36
36
  - workspaceRoot: ${workspaceRoot}`, config);
37
- config = await _chunkM3X4P6ATjs.loadStormConfig.call(void 0, workspaceRoot);
37
+ config = await _chunkRN4QXP7Fjs.getConfig.call(void 0, workspaceRoot);
38
38
  }
39
39
  if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
40
- _chunkM3X4P6ATjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
40
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
41
41
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
42
- _chunkM3X4P6ATjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
42
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
43
43
  }
44
- _chunkM3X4P6ATjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
44
+ _chunkRN4QXP7Fjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
45
45
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
46
46
  const tokenized = await _chunkXS73BPQSjs.applyWorkspaceTokens.call(void 0, options, {
47
47
  workspaceRoot: tree.root,
48
48
  config
49
49
  }, _chunkXS73BPQSjs.applyWorkspaceBaseTokens);
50
50
  if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
51
- _chunkM3X4P6ATjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
51
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
52
52
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
53
- _chunkM3X4P6ATjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
53
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
54
54
  }
55
55
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
56
56
  if (result) {
@@ -63,18 +63,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
63
63
  }
64
64
  }
65
65
  if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
66
- _chunkM3X4P6ATjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
66
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
67
67
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
68
- _chunkM3X4P6ATjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
68
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
69
69
  }
70
70
  return () => {
71
- _chunkM3X4P6ATjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
71
+ _chunkRN4QXP7Fjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
72
72
  `, config);
73
73
  };
74
74
  } catch (error) {
75
75
  return () => {
76
- _chunkM3X4P6ATjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
77
- _chunkM3X4P6ATjs.writeError.call(void 0, `An exception was thrown in the generator's process
76
+ _chunkRN4QXP7Fjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
77
+ _chunkRN4QXP7Fjs.writeError.call(void 0, `An exception was thrown in the generator's process
78
78
  - Details: ${error.message}
79
79
  - Stacktrace: ${error.stack}`, config);
80
80
  };
@@ -5,15 +5,15 @@ import {
5
5
  stringifyCargoToml
6
6
  } from "./chunk-VYH45FO6.mjs";
7
7
  import {
8
+ getConfig,
8
9
  getStopwatch,
9
- loadStormConfig,
10
10
  writeDebug,
11
11
  writeError,
12
12
  writeFatal,
13
13
  writeInfo,
14
14
  writeSuccess,
15
15
  writeTrace
16
- } from "./chunk-BWUHOT6F.mjs";
16
+ } from "./chunk-NYX3ICKR.mjs";
17
17
  import {
18
18
  findWorkspaceRoot
19
19
  } from "./chunk-DMUTOQCB.mjs";
@@ -256,7 +256,7 @@ async function releaseVersionGeneratorFn(tree, options, config) {
256
256
  const workspaceRoot = findWorkspaceRoot();
257
257
  writeDebug(`Loading the Storm Config from environment variables and storm.config.js file...
258
258
  - workspaceRoot: ${workspaceRoot}`, config);
259
- config = await loadStormConfig(workspaceRoot);
259
+ config = await getConfig(workspaceRoot);
260
260
  writeTrace(`Generator schema options \u2699\uFE0F
261
261
  ${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
262
262
  const versionData = {};
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkTDO6POJNjs = require('./chunk-TDO6POJN.js');
3
+ var _chunkEGBJI6CNjs = require('./chunk-EGBJI6CN.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
9
+ var _chunkRN4QXP7Fjs = require('./chunk-RN4QXP7F.js');
10
10
 
11
11
 
12
12
  var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
@@ -18,25 +18,25 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
18
18
  var _devkit = require('@nx/devkit');
19
19
  var _zodtojsonschema = require('zod-to-json-schema');
20
20
  async function configSchemaGeneratorFn(tree, options, config) {
21
- _chunkM3X4P6ATjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
22
- _chunkM3X4P6ATjs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
23
- const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkM3X4P6ATjs.StormConfigSchema, {
21
+ _chunkRN4QXP7Fjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
22
+ _chunkRN4QXP7Fjs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
23
+ const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkRN4QXP7Fjs.StormConfigSchema, {
24
24
  name: "StormWorkspaceConfiguration"
25
25
  });
26
- _chunkM3X4P6ATjs.writeTrace.call(void 0, jsonSchema, config);
26
+ _chunkRN4QXP7Fjs.writeTrace.call(void 0, jsonSchema, config);
27
27
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./");
28
- _chunkM3X4P6ATjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
28
+ _chunkRN4QXP7Fjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
29
29
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
30
30
  spaces: 2
31
31
  });
32
32
  await _devkit.formatFiles.call(void 0, tree);
33
- _chunkM3X4P6ATjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
33
+ _chunkRN4QXP7Fjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
34
34
  return {
35
35
  success: true
36
36
  };
37
37
  }
38
38
  _chunk3GQAWCBQjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
39
- var generator_default = _chunkTDO6POJNjs.withRunGenerator.call(void 0, "Configuration Schema Creator", configSchemaGeneratorFn, {
39
+ var generator_default = _chunkEGBJI6CNjs.withRunGenerator.call(void 0, "Configuration Schema Creator", configSchemaGeneratorFn, {
40
40
  hooks: {
41
41
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
42
42
  options.outputFile ??= "{workspaceRoot}/storm-workspace.schema.json";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QZHIWK5Z.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-FTCEJETR.mjs";
7
+ } from "./chunk-JKJK4ONU.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-EK75QNMS.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-SLVOLY6P.mjs";
7
+ } from "./chunk-JXMDPU4I.mjs";
8
8
  import {
9
9
  __dirname,
10
10
  __name