@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
package/CHANGELOG.md CHANGED
@@ -1,3 +1,36 @@
1
+ ## 1.240.0 (2025-01-23)
2
+
3
+ ### Features
4
+
5
+ - **config-tools:** Added the `storm-config` CLI to view current workspace configuration ([4241a6ae](https://github.com/storm-software/storm-ops/commit/4241a6ae))
6
+
7
+ ### Bug Fixes
8
+
9
+ - **monorepo:** Resolve issue with internal package referencing ([cdc11477](https://github.com/storm-software/storm-ops/commit/cdc11477))
10
+
11
+ ### 🧱 Updated Dependencies
12
+
13
+ - Updated esbuild to 0.21.4
14
+ - Updated esbuild to 0.21.4
15
+ - Updated unbuild to 0.31.0
16
+ - Updated unbuild to 0.31.0
17
+ - Updated tsdown to 0.22.4
18
+ - Updated tsdown to 0.22.4
19
+
20
+ ## 1.239.6 (2025-01-22)
21
+
22
+ ### Miscellaneous
23
+
24
+ - **monorepo:** Update the workspace's `storm.json` config to use the new preset repository ([95067c70](https://github.com/storm-software/storm-ops/commit/95067c70))
25
+
26
+ ### 🧱 Updated Dependencies
27
+
28
+ - Updated prettier to 0.30.3
29
+ - Updated esbuild to 0.21.3
30
+ - Updated unbuild to 0.30.6
31
+ - Updated unbuild to 0.30.6
32
+ - Updated tsdown to 0.22.3
33
+
1
34
  ## 1.239.5 (2025-01-22)
2
35
 
3
36
  ### Bug Fixes
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-1.239.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)
24
+ [![Version](https://img.shields.io/badge/version-1.239.6-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 -->
@@ -1,9 +1,7 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
-
5
-
6
- var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
4
+ var _chunkRN4QXP7Fjs = require('./chunk-RN4QXP7F.js');
7
5
 
8
6
 
9
7
  var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
@@ -27,30 +25,10 @@ var DEFAULT_TARGET = "esnext";
27
25
  var DEFAULT_ORGANIZATION = "storm-software";
28
26
 
29
27
  // ../build-tools/src/utilities/copy-assets.ts
30
- var _devkit = require('@nx/devkit');
31
- var _js = require('@nx/js');
28
+ var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
32
29
  var _glob = require('glob');
33
30
  var _promises = require('fs/promises');
34
-
35
- // ../build-tools/src/utilities/read-nx-config.ts
36
- var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
37
-
38
- var readNxConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot) => {
39
- let rootDir = workspaceRoot;
40
- if (!rootDir) {
41
- const config = await _chunkM3X4P6ATjs.loadStormConfig.call(void 0, );
42
- rootDir = config.workspaceRoot;
43
- }
44
- const nxJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, rootDir, "nx.json");
45
- if (!_fs.existsSync.call(void 0, nxJsonPath)) {
46
- throw new Error("Cannot find project.json configuration");
47
- }
48
- const configContent = await _promises.readFile.call(void 0, nxJsonPath, "utf8");
49
- return JSON.parse(configContent);
50
- }, "readNxConfig");
51
-
52
- // ../build-tools/src/utilities/copy-assets.ts
53
- var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson = true, includeSrc = false, banner, footer) => {
31
+ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson = true, includeSrc = false, banner, footer) => {
54
32
  const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
55
33
  pendingAssets.push({
56
34
  input: projectRoot,
@@ -58,7 +36,7 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
58
36
  output: "."
59
37
  });
60
38
  pendingAssets.push({
61
- input: config.workspaceRoot,
39
+ input: ".",
62
40
  glob: "LICENSE",
63
41
  output: "."
64
42
  });
@@ -76,38 +54,17 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
76
54
  output: "src/"
77
55
  });
78
56
  }
79
- const nxJson = readNxConfig(config.workspaceRoot);
80
- const projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
81
- const projectsConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
82
- if (!_optionalChain([projectsConfigurations, 'optionalAccess', _ => _.projects, 'optionalAccess', _2 => _2[projectName]])) {
83
- 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.");
84
- }
85
- const buildTarget = _optionalChain([projectsConfigurations, 'access', _3 => _3.projects, 'access', _4 => _4[projectName], 'access', _5 => _5.targets, 'optionalAccess', _6 => _6.build]);
86
- if (!buildTarget) {
87
- 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 ${_chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
88
- }
89
- _chunkM3X4P6ATjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
57
+ _chunkRN4QXP7Fjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
90
58
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkXCSSYTCUjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
91
- const result = await _js.copyAssets.call(void 0, {
92
- assets: pendingAssets,
93
- watch: false,
94
- outputPath
95
- }, {
96
- root: config.workspaceRoot,
97
- targetName: "build",
98
- target: buildTarget,
99
- projectName,
100
- projectGraph,
101
- projectsConfigurations,
102
- nxJsonConfiguration: nxJson,
103
- cwd: config.workspaceRoot,
104
- isVerbose: _chunkM3X4P6ATjs.isVerbose.call(void 0, config.logLevel)
59
+ const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
60
+ projectDir: projectRoot,
61
+ rootDir: config.workspaceRoot,
62
+ outputDir: outputPath,
63
+ assets: pendingAssets
105
64
  });
106
- if (!result.success) {
107
- throw new Error("The Build process failed trying to copy assets");
108
- }
65
+ await assetHandler.processAllAssetsOnce();
109
66
  if (includeSrc === true) {
110
- _chunkM3X4P6ATjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXCSSYTCUjs.joinPaths.call(void 0, outputPath, "src")}`, config);
67
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXCSSYTCUjs.joinPaths.call(void 0, outputPath, "src")}`, config);
111
68
  const files = await _glob.glob.call(void 0, [
112
69
  _chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
113
70
  _chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
@@ -125,7 +82,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
125
82
  // ../build-tools/src/utilities/generate-package-json.ts
126
83
  var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
127
84
 
128
-
85
+ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
129
86
 
130
87
  var _projectgraph = require('nx/src/project-graph/project-graph');
131
88
  var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot, projectRoot, projectName, packageJson) => {
@@ -145,7 +102,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
145
102
  }
146
103
  }
147
104
  if (localPackages.length > 0) {
148
- _chunkM3X4P6ATjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
105
+ _chunkRN4QXP7Fjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
149
106
  packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
150
107
  if (!ret[localPackage.name]) {
151
108
  ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
@@ -167,7 +124,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
167
124
  return ret;
168
125
  }, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
169
126
  } else {
170
- _chunkM3X4P6ATjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
127
+ _chunkRN4QXP7Fjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
171
128
  }
172
129
  return packageJson;
173
130
  }, "addPackageDependencies");
@@ -263,7 +220,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
263
220
  results.push(...files.reduce((ret, filePath) => {
264
221
  const result = _chunkXCSSYTCUjs.correctPaths.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, projectRoot), ""));
265
222
  if (result) {
266
- _chunkM3X4P6ATjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
223
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
267
224
  if (!results.includes(result)) {
268
225
  results.push(result);
269
226
  }
@@ -301,7 +258,7 @@ var _path = require('path'); var _path2 = _interopRequireDefault(_path);
301
258
  var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
302
259
 
303
260
  // ../build-tools/src/plugins/type-definitions.ts
304
-
261
+ var _devkit = require('@nx/devkit');
305
262
 
306
263
 
307
264
  // ../build-tools/src/utilities/get-out-extension.ts
@@ -326,6 +283,10 @@ function getOutExtension(format, pkgType) {
326
283
  }
327
284
  _chunk3GQAWCBQjs.__name.call(void 0, getOutExtension, "getOutExtension");
328
285
 
286
+ // ../build-tools/src/utilities/read-nx-config.ts
287
+
288
+
289
+
329
290
  // ../build-tools/src/utilities/task-graph.ts
330
291
  var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
331
292
 
@@ -4,7 +4,7 @@
4
4
  var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
5
5
 
6
6
 
7
- var _chunkTDO6POJNjs = require('./chunk-TDO6POJN.js');
7
+ var _chunkEGBJI6CNjs = require('./chunk-EGBJI6CN.js');
8
8
 
9
9
 
10
10
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -70,7 +70,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
70
70
  return null;
71
71
  }
72
72
  _chunk3GQAWCBQjs.__name.call(void 0, browserLibraryGeneratorFn, "browserLibraryGeneratorFn");
73
- var generator_default = _chunkTDO6POJNjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
73
+ var generator_default = _chunkEGBJI6CNjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
74
74
  hooks: {
75
75
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
76
76
  options.description ??= "A library used by Storm Software to support browser applications";
@@ -8,14 +8,14 @@ import {
8
8
  getEntryPoints,
9
9
  getEnv,
10
10
  getOutExtension
11
- } from "./chunk-GIIOK5XW.mjs";
11
+ } from "./chunk-Y5SXJ6IC.mjs";
12
12
  import {
13
13
  withRunExecutor
14
- } from "./chunk-FTCEJETR.mjs";
14
+ } from "./chunk-JKJK4ONU.mjs";
15
15
  import {
16
+ getConfig,
16
17
  getStopwatch,
17
18
  isVerbose,
18
- loadStormConfig,
19
19
  writeDebug,
20
20
  writeError,
21
21
  writeFatal,
@@ -23,7 +23,7 @@ import {
23
23
  writeSuccess,
24
24
  writeTrace,
25
25
  writeWarning
26
- } from "./chunk-BWUHOT6F.mjs";
26
+ } from "./chunk-NYX3ICKR.mjs";
27
27
  import {
28
28
  joinPaths
29
29
  } from "./chunk-PVTEDLBL.mjs";
@@ -713,7 +713,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
713
713
  if (!workspaceRoot) {
714
714
  throw new Error("Cannot find Nx workspace root");
715
715
  }
716
- const config = await loadStormConfig(workspaceRoot.dir);
716
+ const config = await getConfig(workspaceRoot.dir);
717
717
  writeDebug(" \u2699\uFE0F Resolving build options", config);
718
718
  const stopwatch = getStopwatch("Build options resolution");
719
719
  const projectGraph = await createProjectGraphAsync({
@@ -905,7 +905,7 @@ async function copyBuildAssets(context2) {
905
905
  if (context2.result?.errors.length === 0) {
906
906
  writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
907
907
  const stopwatch = getStopwatch(`${context2.options.name} asset copy`);
908
- await copyAssets(context2.options.config, context2.options.assets ?? [], context2.options.outdir, context2.options.projectRoot, context2.options.projectName, context2.options.sourceRoot, true, false);
908
+ await copyAssets(context2.options.config, context2.options.assets ?? [], context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
909
909
  stopwatch();
910
910
  }
911
911
  return context2;
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -18,7 +18,7 @@ async function sizeLimitExecutorFn(options, context, config) {
18
18
  if (!_optionalChain([context, 'optionalAccess', _ => _.projectName]) || !_optionalChain([context, 'access', _2 => _2.projectsConfigurations, 'optionalAccess', _3 => _3.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
19
19
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
20
20
  }
21
- _chunkM3X4P6ATjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
21
+ _chunkRN4QXP7Fjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
22
22
  _sizelimit2.default.call(void 0, [
23
23
  _file2.default,
24
24
  _esbuild2.default,
@@ -26,14 +26,14 @@ async function sizeLimitExecutorFn(options, context, config) {
26
26
  ], {
27
27
  checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")), "src")))
28
28
  }).then((result) => {
29
- _chunkM3X4P6ATjs.writeInfo.call(void 0, `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
29
+ _chunkRN4QXP7Fjs.writeInfo.call(void 0, `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
30
30
  });
31
31
  return {
32
32
  success: true
33
33
  };
34
34
  }
35
35
  _chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
36
- var executor_default = _chunkB2TMWHSQjs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
36
+ var executor_default = _chunkCRMDACYFjs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
37
37
  skipReadingConfig: false,
38
38
  hooks: {
39
39
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -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');
@@ -19,7 +19,7 @@ async function cargoDocExecutor(options, context) {
19
19
  return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
20
20
  }
21
21
  _chunk3GQAWCBQjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
22
- var executor_default = _chunkB2TMWHSQjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
22
+ var executor_default = _chunkCRMDACYFjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
23
23
  skipReadingConfig: false,
24
24
  hooks: {
25
25
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -13,7 +13,7 @@ var _chunkZMFVKBRMjs = require('./chunk-ZMFVKBRM.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
16
+ var _chunkRN4QXP7Fjs = require('./chunk-RN4QXP7F.js');
17
17
 
18
18
 
19
19
  var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
@@ -248,16 +248,16 @@ var _version = require('nx/src/command-line/release/version');
248
248
  var _utils = require('nx/src/tasks-runner/utils');
249
249
  var _semver3 = require('semver');
250
250
  async function releaseVersionGeneratorFn(tree, options, config) {
251
- _chunkM3X4P6ATjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
251
+ _chunkRN4QXP7Fjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
252
252
 
253
253
  `, config);
254
- const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, "Storm Release Version generator");
254
+ const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, "Storm Release Version generator");
255
255
  try {
256
256
  const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
257
- _chunkM3X4P6ATjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
257
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
258
258
  - workspaceRoot: ${workspaceRoot}`, config);
259
- config = await _chunkM3X4P6ATjs.loadStormConfig.call(void 0, workspaceRoot);
260
- _chunkM3X4P6ATjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
259
+ config = await _chunkRN4QXP7Fjs.getConfig.call(void 0, workspaceRoot);
260
+ _chunkRN4QXP7Fjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
261
261
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
262
262
  const versionData = {};
263
263
  if (options.specifier) {
@@ -307,9 +307,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
307
307
  }
308
308
  const workspaceRelativePackagePath = _path.relative.call(void 0, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => ( _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, ))), tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath);
309
309
  const log = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (msg) => {
310
- _chunkM3X4P6ATjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
310
+ _chunkRN4QXP7Fjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
311
311
  }, "log");
312
- _chunkM3X4P6ATjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
312
+ _chunkRN4QXP7Fjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
313
313
  let packageName;
314
314
  let currentVersionFromDisk;
315
315
  if (tree.exists(packageJsonPath)) {
@@ -583,7 +583,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
583
583
  }
584
584
  }
585
585
  await _devkit.formatFiles.call(void 0, tree);
586
- _chunkM3X4P6ATjs.writeSuccess.call(void 0, `Completed running the Storm Release Version generator!
586
+ _chunkRN4QXP7Fjs.writeSuccess.call(void 0, `Completed running the Storm Release Version generator!
587
587
  `, config);
588
588
  return {
589
589
  data: versionData,
@@ -617,8 +617,8 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
617
617
  }, "callback")
618
618
  };
619
619
  } catch (error) {
620
- _chunkM3X4P6ATjs.writeFatal.call(void 0, "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate", config);
621
- _chunkM3X4P6ATjs.writeError.call(void 0, `An exception was thrown in the Storm Release Version generator's process
620
+ _chunkRN4QXP7Fjs.writeFatal.call(void 0, "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate", config);
621
+ _chunkRN4QXP7Fjs.writeError.call(void 0, `An exception was thrown in the Storm Release Version generator's process
622
622
  - Details: ${error.message}
623
623
  - Stacktrace: ${error.stack}`, config);
624
624
  throw new Error(`An exception was thrown in the Storm Release Version generator's process
@@ -6,10 +6,10 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkKTQJ3BYSjs = require('./chunk-KTQJ3BYS.js');
9
+ var _chunk2JLHVV5Sjs = require('./chunk-2JLHVV5S.js');
10
10
 
11
11
 
12
- var _chunkB2TMWHSQjs = require('./chunk-B2TMWHSQ.js');
12
+ var _chunkCRMDACYFjs = require('./chunk-CRMDACYF.js');
13
13
 
14
14
 
15
15
 
@@ -19,7 +19,7 @@ var _chunkB2TMWHSQjs = require('./chunk-B2TMWHSQ.js');
19
19
 
20
20
 
21
21
 
22
- var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
22
+ var _chunkRN4QXP7Fjs = require('./chunk-RN4QXP7F.js');
23
23
 
24
24
 
25
25
  var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
@@ -37,8 +37,8 @@ var _tsdown = require('tsdown');
37
37
  // ../tsdown/src/clean.ts
38
38
 
39
39
  async function clean(name = "ESBuild", directory, config) {
40
- _chunkM3X4P6ATjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
41
- const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, `${name} output clean`);
40
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
41
+ const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, `${name} output clean`);
42
42
  await _node.hfs.deleteAll(directory);
43
43
  stopwatch();
44
44
  }
@@ -73,9 +73,9 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
73
73
  if (!workspaceRoot) {
74
74
  throw new Error("Cannot find Nx workspace root");
75
75
  }
76
- const config = await _chunkM3X4P6ATjs.loadStormConfig.call(void 0, workspaceRoot.dir);
77
- _chunkM3X4P6ATjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
78
- const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, "Build options resolution");
76
+ const config = await _chunkRN4QXP7Fjs.getConfig.call(void 0, workspaceRoot.dir);
77
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
78
+ const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, "Build options resolution");
79
79
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
80
80
  exitOnError: true
81
81
  });
@@ -91,19 +91,19 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
91
91
  }
92
92
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
93
93
  options.name ??= `${projectName}-${options.format}`;
94
- options.target ??= _chunkKTQJ3BYSjs.DEFAULT_TARGET;
94
+ options.target ??= _chunk2JLHVV5Sjs.DEFAULT_TARGET;
95
95
  const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
96
96
  if (!await _node.hfs.isFile(packageJsonPath)) {
97
97
  throw new Error("Cannot find package.json configuration");
98
98
  }
99
- const env = _chunkKTQJ3BYSjs.getEnv.call(void 0, "tsdown", options);
99
+ const env = _chunk2JLHVV5Sjs.getEnv.call(void 0, "tsdown", options);
100
100
  const result = {
101
101
  ...options,
102
102
  config,
103
103
  ...userOptions,
104
104
  tsconfig: _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
105
105
  format: options.format || "cjs",
106
- entryPoints: await _chunkKTQJ3BYSjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
106
+ entryPoints: await _chunk2JLHVV5Sjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
107
107
  "./src/index.ts"
108
108
  ], userOptions.emitOnAll),
109
109
  outdir: userOptions.outputPath || _chunkXCSSYTCUjs.joinPaths.call(void 0, "dist", projectRoot),
@@ -114,7 +114,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
114
114
  projectGraph,
115
115
  sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, "src"),
116
116
  minify: userOptions.minify || !userOptions.debug,
117
- verbose: userOptions.verbose || _chunkM3X4P6ATjs.isVerbose.call(void 0, ) || userOptions.debug === true,
117
+ verbose: userOptions.verbose || _chunkRN4QXP7Fjs.isVerbose.call(void 0, ) || userOptions.debug === true,
118
118
  includeSrc: userOptions.includeSrc === true,
119
119
  metafile: userOptions.metafile !== false,
120
120
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -149,8 +149,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
149
149
  }, "resolveOptions");
150
150
  async function generatePackageJson(options) {
151
151
  if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
152
- _chunkM3X4P6ATjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
153
- const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, "Write package.json file");
152
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
153
+ const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, "Write package.json file");
154
154
  const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "project.json");
155
155
  if (!await _node.hfs.isFile(packageJsonPath)) {
156
156
  throw new Error("Cannot find package.json configuration");
@@ -159,11 +159,11 @@ async function generatePackageJson(options) {
159
159
  if (!packageJson) {
160
160
  throw new Error("Cannot find package.json configuration file");
161
161
  }
162
- packageJson = await _chunkKTQJ3BYSjs.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
163
- packageJson = await _chunkKTQJ3BYSjs.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
162
+ packageJson = await _chunk2JLHVV5Sjs.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
163
+ packageJson = await _chunk2JLHVV5Sjs.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
164
164
  packageJson.exports ??= {};
165
165
  packageJson.exports["./package.json"] ??= "./package.json";
166
- packageJson.exports["."] ??= _chunkKTQJ3BYSjs.addPackageJsonExport.call(void 0, "index", packageJson.type, options.sourceRoot);
166
+ packageJson.exports["."] ??= _chunk2JLHVV5Sjs.addPackageJsonExport.call(void 0, "index", packageJson.type, options.sourceRoot);
167
167
  let entryPoints = [
168
168
  {
169
169
  in: "./src/index.ts",
@@ -181,7 +181,7 @@ async function generatePackageJson(options) {
181
181
  const split = entryPoint.out.split(".");
182
182
  split.pop();
183
183
  const entry = split.join(".").replaceAll("\\", "/");
184
- packageJson.exports[`./${entry}`] ??= _chunkKTQJ3BYSjs.addPackageJsonExport.call(void 0, entry, packageJson.type, options.sourceRoot);
184
+ packageJson.exports[`./${entry}`] ??= _chunk2JLHVV5Sjs.addPackageJsonExport.call(void 0, entry, packageJson.type, options.sourceRoot);
185
185
  }
186
186
  }
187
187
  packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
@@ -200,8 +200,8 @@ async function generatePackageJson(options) {
200
200
  }
201
201
  _chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
202
202
  async function executeTSDown(options) {
203
- _chunkM3X4P6ATjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
204
- const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, `${options.name} build`);
203
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
204
+ const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, `${options.name} build`);
205
205
  await _tsdown.build.call(void 0, {
206
206
  ...options,
207
207
  entry: options.entryPoints,
@@ -213,15 +213,15 @@ async function executeTSDown(options) {
213
213
  }
214
214
  _chunk3GQAWCBQjs.__name.call(void 0, executeTSDown, "executeTSDown");
215
215
  async function copyBuildAssets(options) {
216
- _chunkM3X4P6ATjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
217
- const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, `${options.name} asset copy`);
218
- await _chunkKTQJ3BYSjs.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
216
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
217
+ const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, `${options.name} asset copy`);
218
+ await _chunk2JLHVV5Sjs.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
219
219
  stopwatch();
220
220
  return options;
221
221
  }
222
222
  _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
223
223
  async function reportResults(options) {
224
- _chunkM3X4P6ATjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
224
+ _chunkRN4QXP7Fjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
225
225
  }
226
226
  _chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
227
227
  async function cleanOutputPath(options) {
@@ -232,8 +232,8 @@ async function cleanOutputPath(options) {
232
232
  }
233
233
  _chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
234
234
  async function build(options) {
235
- _chunkM3X4P6ATjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
236
- const stopwatch = _chunkM3X4P6ATjs.getStopwatch.call(void 0, "TSDown pipeline");
235
+ _chunkRN4QXP7Fjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
236
+ const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, "TSDown pipeline");
237
237
  try {
238
238
  const opts = Array.isArray(options) ? options : [
239
239
  options
@@ -251,11 +251,11 @@ async function build(options) {
251
251
  await reportResults(opt);
252
252
  }));
253
253
  } else {
254
- _chunkM3X4P6ATjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
254
+ _chunkRN4QXP7Fjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
255
255
  }
256
- _chunkM3X4P6ATjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
256
+ _chunkRN4QXP7Fjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
257
257
  } catch (error) {
258
- _chunkM3X4P6ATjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
258
+ _chunkRN4QXP7Fjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
259
259
  throw error;
260
260
  } finally {
261
261
  stopwatch();
@@ -265,7 +265,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, build, "build");
265
265
 
266
266
  // src/executors/tsdown/executor.ts
267
267
  async function tsdownExecutorFn(options, context, config) {
268
- _chunkM3X4P6ATjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
268
+ _chunkRN4QXP7Fjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
269
269
  if (!_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'optionalAccess', _4 => _4.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _5 => _5.projectsConfigurations, 'access', _6 => _6.projects, 'access', _7 => _7[context.projectName], 'optionalAccess', _8 => _8.root])) {
270
270
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
271
271
  }
@@ -282,7 +282,7 @@ async function tsdownExecutorFn(options, context, config) {
282
282
  };
283
283
  }
284
284
  _chunk3GQAWCBQjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
285
- var executor_default = _chunkB2TMWHSQjs.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
285
+ var executor_default = _chunkCRMDACYFjs.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
286
286
  skipReadingConfig: false,
287
287
  hooks: {
288
288
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {