@storm-software/workspace-tools 1.277.34 → 1.278.4

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 (212) hide show
  1. package/CHANGELOG.md +126 -0
  2. package/README.md +1 -2
  3. package/config/base.json +14 -117
  4. package/dist/{chunk-6RHHYXZE.mjs → chunk-2AZFAMT2.mjs} +1 -1
  5. package/dist/chunk-2CDSXWFA.js +311 -0
  6. package/dist/chunk-2LY7DGBH.mjs +336 -0
  7. package/dist/{chunk-UXALGSQC.js → chunk-452FQZ3B.js} +2 -2
  8. package/dist/{chunk-3VAHUUNQ.mjs → chunk-47VSL76K.mjs} +1 -1
  9. package/dist/{chunk-PGIUP33N.mjs → chunk-47X3OTR5.mjs} +4 -4
  10. package/dist/{chunk-3TYXXJKV.js → chunk-4DLKOUQA.js} +2 -2
  11. package/dist/{chunk-NFK6PGAC.mjs → chunk-5FBIPGPD.mjs} +1 -1
  12. package/dist/{chunk-XPFT4BMH.mjs → chunk-5KP5KWGU.mjs} +1 -1
  13. package/dist/{chunk-S2N53PIP.js → chunk-63DISBXN.js} +2 -2
  14. package/dist/{chunk-NQ525HTH.mjs → chunk-64LWOWPE.mjs} +4 -4
  15. package/dist/{chunk-XBRR6YS3.js → chunk-73IC2JQV.js} +2 -2
  16. package/dist/{chunk-GH5ABWPU.mjs → chunk-7DLHAWLG.mjs} +1 -1
  17. package/dist/{chunk-J2Z4WP3E.js → chunk-A77PFJ72.js} +2 -2
  18. package/dist/{chunk-65P2PGPR.js → chunk-AH253N44.js} +5 -5
  19. package/dist/{chunk-6WBXO6UH.js → chunk-ARTBWDR4.js} +2 -2
  20. package/dist/{chunk-JRQIA2WV.js → chunk-BZTR7YL6.js} +2 -2
  21. package/dist/{chunk-7IPJE3E3.mjs → chunk-CCMBHSV7.mjs} +4 -4
  22. package/dist/{chunk-7YUXBCFS.js → chunk-CHSTJ3AR.js} +13 -11
  23. package/dist/{chunk-Q7MIY2SX.mjs → chunk-D26STI4S.mjs} +1 -1
  24. package/dist/{chunk-RVJSZ7SI.js → chunk-DJLGYPRA.js} +4 -4
  25. package/dist/{chunk-OFNVRO2Q.js → chunk-DLJY6UOI.js} +7 -7
  26. package/dist/{chunk-TJ3JPU6C.js → chunk-ESFH6QVE.js} +2 -2
  27. package/dist/{chunk-3ZBMLG4D.mjs → chunk-FHBOYSRN.mjs} +17 -13
  28. package/dist/{chunk-3CPOV3N6.mjs → chunk-FVGLL54Y.mjs} +1 -1
  29. package/dist/{chunk-R7DNGWVO.js → chunk-G3YKHGPE.js} +2 -2
  30. package/dist/{chunk-QPCOSMXY.mjs → chunk-GNIDPNI3.mjs} +2 -2
  31. package/dist/{chunk-OQUI7H7Z.js → chunk-GWT4ZQ6Y.js} +2 -2
  32. package/dist/{chunk-4WHSR4FK.js → chunk-HNFKVXBV.js} +0 -1
  33. package/dist/chunk-IBTPJDV6.js +336 -0
  34. package/dist/{chunk-PPMPCT7K.mjs → chunk-JCEMECUD.mjs} +2 -2
  35. package/dist/{chunk-V53473BD.js → chunk-JX3KVFO5.js} +2 -2
  36. package/dist/{chunk-YDXXSCNG.mjs → chunk-K7FEZWBA.mjs} +1 -1
  37. package/dist/{chunk-VLOTOQYE.mjs → chunk-KLAMLNPM.mjs} +1 -1
  38. package/dist/{chunk-ZLVVUMYO.js → chunk-KRAHIMKO.js} +2 -2
  39. package/dist/{chunk-BDA4N25E.js → chunk-KX7XTUYW.js} +461 -43
  40. package/dist/{chunk-X6PHOMFB.mjs → chunk-KYGWN2MB.mjs} +1 -1
  41. package/dist/{chunk-V5564COA.mjs → chunk-LVIDSVDC.mjs} +4 -4
  42. package/dist/{chunk-LSF4BHCI.mjs → chunk-M5Z57CUO.mjs} +0 -1
  43. package/dist/{chunk-KZIA4CGL.js → chunk-MZEFNYBT.js} +24 -24
  44. package/dist/{chunk-K262HGVZ.mjs → chunk-N46RWKEK.mjs} +1 -1
  45. package/dist/{chunk-5VY5IBBQ.js → chunk-NSSJMQFD.js} +16 -12
  46. package/dist/{chunk-L4NCVOB5.mjs → chunk-OWKH2ZBQ.mjs} +1 -1
  47. package/dist/{chunk-VRPEYRWI.mjs → chunk-PIK7KYVE.mjs} +1 -1
  48. package/dist/{chunk-PG7GBHUM.mjs → chunk-PYS5P7QE.mjs} +430 -12
  49. package/dist/{chunk-6UFOMB3R.mjs → chunk-R3OLB3C6.mjs} +141 -145
  50. package/dist/{chunk-TZJGO4US.js → chunk-RANQ4TXU.js} +141 -145
  51. package/dist/{chunk-HWCERW6A.mjs → chunk-RMWG74QA.mjs} +1 -1
  52. package/dist/{chunk-EUWPFP5C.mjs → chunk-SVIG7SR3.mjs} +1 -1
  53. package/dist/{chunk-ZRTYYXDL.mjs → chunk-UGBVA3KE.mjs} +6 -4
  54. package/dist/{chunk-6XYAQUU3.js → chunk-UGJVZ6LI.js} +26 -26
  55. package/dist/{chunk-AQOT2IAM.js → chunk-UTAJHUJL.js} +34 -34
  56. package/dist/{chunk-A5CKB6IJ.js → chunk-UZ63ALZQ.js} +2 -2
  57. package/dist/{chunk-ZFA26D42.mjs → chunk-V2UGPEY2.mjs} +1 -1
  58. package/dist/chunk-V44DYGWX.mjs +311 -0
  59. package/dist/{chunk-3OVLNULV.js → chunk-VR3OLKAI.js} +2 -2
  60. package/dist/{chunk-AZ5HDBYX.mjs → chunk-VVCIYZJD.mjs} +7 -7
  61. package/dist/{chunk-55FODDLQ.mjs → chunk-WASXXREW.mjs} +4 -4
  62. package/dist/{chunk-ABUZEUF7.js → chunk-WRXLSZ6I.js} +2 -2
  63. package/dist/{chunk-QEU3B4T6.js → chunk-YBUD4GFC.js} +21 -21
  64. package/dist/{chunk-EC7YQEHT.js → chunk-YEUILWDR.js} +2 -2
  65. package/dist/{chunk-E566KBB3.js → chunk-ZVL2TRR6.js} +6 -6
  66. package/dist/{executor-oIXMAz-g.d.ts → executor-BZYJEb9V.d.ts} +1 -1
  67. package/dist/{executor-DPIWxm-x.d.mts → executor-Bez_tWxf.d.mts} +1 -1
  68. package/dist/{executor-B8wLnXnx.d.mts → executor-CUlX29YN.d.mts} +1 -1
  69. package/dist/{executor-CFBDS3tc.d.mts → executor-CwENKkEy.d.mts} +1 -1
  70. package/dist/{executor-L8Jmwybf.d.ts → executor-CysN0MTH.d.ts} +1 -1
  71. package/dist/{executor-CRnQhNlT.d.ts → executor-D3Tip-ad.d.ts} +1 -1
  72. package/dist/{executor-BSkPYkkP.d.mts → executor-DJb8r-Zb.d.mts} +1 -1
  73. package/dist/{executor-BpITPYcR.d.ts → executor-_WT0Qd2F.d.ts} +1 -1
  74. package/dist/executors.d.mts +5 -5
  75. package/dist/executors.d.ts +5 -5
  76. package/dist/executors.js +19 -19
  77. package/dist/executors.mjs +18 -18
  78. package/dist/{generator-rgiO0GJQ.d.ts → generator-Biz_Ai4B.d.ts} +1 -1
  79. package/dist/{generator-Cb58mGnB.d.mts → generator-CVPI52z3.d.mts} +2 -2
  80. package/dist/{generator-CJABg49g.d.mts → generator-CYCzda2K.d.mts} +2 -2
  81. package/dist/{generator-Cj8BzNWS.d.ts → generator-CmkSA-dv.d.ts} +2 -2
  82. package/dist/{generator-CAV7jT3f.d.mts → generator-D7tljo-K.d.mts} +1 -1
  83. package/dist/{generator-BIMz19YK.d.mts → generator-DKZjOzNw.d.mts} +2 -2
  84. package/dist/{generator-DTjXg4Lz.d.mts → generator-De9XOTip.d.mts} +2 -2
  85. package/dist/{generator-mIOdDYVo.d.ts → generator-Dk1ihwF-.d.ts} +2 -2
  86. package/dist/{generator-Sm7r9ETR.d.ts → generator-DpjPMueC.d.ts} +2 -2
  87. package/dist/{generator-C0oESGRU.d.ts → generator-Dyk2TjIp.d.ts} +1 -1
  88. package/dist/{generator-Oe3vHbZC.d.mts → generator-o2v2Q4At.d.mts} +1 -1
  89. package/dist/{generator-Cf30wgA4.d.ts → generator-ujd2pu2I.d.ts} +2 -2
  90. package/dist/generators.d.mts +8 -8
  91. package/dist/generators.d.ts +8 -8
  92. package/dist/generators.js +13 -13
  93. package/dist/generators.mjs +12 -12
  94. package/dist/index.d.mts +14 -13
  95. package/dist/index.d.ts +14 -13
  96. package/dist/index.js +40 -30
  97. package/dist/index.mjs +40 -30
  98. package/dist/src/base/base-executor.d.mts +2 -2
  99. package/dist/src/base/base-executor.d.ts +2 -2
  100. package/dist/src/base/base-executor.js +6 -6
  101. package/dist/src/base/base-executor.mjs +5 -5
  102. package/dist/src/base/base-generator.d.mts +2 -2
  103. package/dist/src/base/base-generator.d.ts +2 -2
  104. package/dist/src/base/base-generator.js +6 -6
  105. package/dist/src/base/base-generator.mjs +5 -5
  106. package/dist/src/base/index.d.mts +2 -2
  107. package/dist/src/base/index.d.ts +2 -2
  108. package/dist/src/base/index.js +7 -7
  109. package/dist/src/base/index.mjs +6 -6
  110. package/dist/src/executors/cargo-build/executor.js +7 -7
  111. package/dist/src/executors/cargo-build/executor.mjs +6 -6
  112. package/dist/src/executors/cargo-check/executor.js +7 -7
  113. package/dist/src/executors/cargo-check/executor.mjs +6 -6
  114. package/dist/src/executors/cargo-clippy/executor.js +7 -7
  115. package/dist/src/executors/cargo-clippy/executor.mjs +6 -6
  116. package/dist/src/executors/cargo-doc/executor.js +7 -7
  117. package/dist/src/executors/cargo-doc/executor.mjs +6 -6
  118. package/dist/src/executors/cargo-format/executor.js +7 -7
  119. package/dist/src/executors/cargo-format/executor.mjs +6 -6
  120. package/dist/src/executors/cargo-publish/executor.js +4 -6
  121. package/dist/src/executors/cargo-publish/executor.mjs +3 -5
  122. package/dist/src/executors/clean-package/executor.d.mts +1 -1
  123. package/dist/src/executors/clean-package/executor.d.ts +1 -1
  124. package/dist/src/executors/clean-package/executor.js +9 -8
  125. package/dist/src/executors/clean-package/executor.mjs +6 -5
  126. package/dist/src/executors/esbuild/executor.d.mts +2 -2
  127. package/dist/src/executors/esbuild/executor.d.ts +2 -2
  128. package/dist/src/executors/esbuild/executor.js +7 -7
  129. package/dist/src/executors/esbuild/executor.mjs +6 -6
  130. package/dist/src/executors/npm-publish/executor.js +5 -6
  131. package/dist/src/executors/npm-publish/executor.mjs +4 -5
  132. package/dist/src/executors/size-limit/executor.d.mts +2 -2
  133. package/dist/src/executors/size-limit/executor.d.ts +2 -2
  134. package/dist/src/executors/size-limit/executor.js +7 -7
  135. package/dist/src/executors/size-limit/executor.mjs +6 -6
  136. package/dist/src/executors/typia/executor.d.mts +2 -2
  137. package/dist/src/executors/typia/executor.d.ts +2 -2
  138. package/dist/src/executors/typia/executor.js +7 -7
  139. package/dist/src/executors/typia/executor.mjs +6 -6
  140. package/dist/src/executors/unbuild/executor.d.mts +2 -2
  141. package/dist/src/executors/unbuild/executor.d.ts +2 -2
  142. package/dist/src/executors/unbuild/executor.js +7 -7
  143. package/dist/src/executors/unbuild/executor.mjs +6 -6
  144. package/dist/src/generators/browser-library/generator.d.mts +3 -3
  145. package/dist/src/generators/browser-library/generator.d.ts +3 -3
  146. package/dist/src/generators/browser-library/generator.js +7 -7
  147. package/dist/src/generators/browser-library/generator.mjs +6 -6
  148. package/dist/src/generators/config-schema/generator.d.mts +3 -3
  149. package/dist/src/generators/config-schema/generator.d.ts +3 -3
  150. package/dist/src/generators/config-schema/generator.js +7 -7
  151. package/dist/src/generators/config-schema/generator.mjs +6 -6
  152. package/dist/src/generators/neutral-library/generator.d.mts +3 -3
  153. package/dist/src/generators/neutral-library/generator.d.ts +3 -3
  154. package/dist/src/generators/neutral-library/generator.js +7 -7
  155. package/dist/src/generators/neutral-library/generator.mjs +6 -6
  156. package/dist/src/generators/node-library/generator.d.mts +3 -3
  157. package/dist/src/generators/node-library/generator.d.ts +3 -3
  158. package/dist/src/generators/node-library/generator.js +7 -7
  159. package/dist/src/generators/node-library/generator.mjs +6 -6
  160. package/dist/src/generators/preset/generator.d.mts +3 -3
  161. package/dist/src/generators/preset/generator.d.ts +3 -3
  162. package/dist/src/generators/preset/generator.js +7 -7
  163. package/dist/src/generators/preset/generator.mjs +6 -6
  164. package/dist/src/generators/release-version/generator.d.mts +2 -2
  165. package/dist/src/generators/release-version/generator.d.ts +2 -2
  166. package/dist/src/generators/release-version/generator.js +6 -6
  167. package/dist/src/generators/release-version/generator.mjs +5 -5
  168. package/dist/src/plugins/rust/cargo-toml.js +3 -2
  169. package/dist/src/plugins/rust/cargo-toml.mjs +2 -1
  170. package/dist/src/plugins/rust/index.js +3 -2
  171. package/dist/src/plugins/rust/index.mjs +2 -1
  172. package/dist/src/plugins/typescript/index.js +3 -3
  173. package/dist/src/plugins/typescript/index.mjs +2 -2
  174. package/dist/src/plugins/typescript/project-config.js +3 -3
  175. package/dist/src/plugins/typescript/project-config.mjs +2 -2
  176. package/dist/src/plugins/typescript/tsup.js +22 -19
  177. package/dist/src/plugins/typescript/tsup.mjs +21 -18
  178. package/dist/src/plugins/typescript/untyped-schema.js +18 -15
  179. package/dist/src/plugins/typescript/untyped-schema.mjs +18 -15
  180. package/dist/src/types.d.mts +2 -2
  181. package/dist/src/types.d.ts +2 -2
  182. package/dist/src/utils/apply-workspace-tokens.d.mts +1 -1
  183. package/dist/src/utils/apply-workspace-tokens.d.ts +1 -1
  184. package/dist/src/utils/apply-workspace-tokens.js +3 -3
  185. package/dist/src/utils/apply-workspace-tokens.mjs +2 -2
  186. package/dist/src/utils/get-project-configurations.js +3 -3
  187. package/dist/src/utils/get-project-configurations.mjs +2 -2
  188. package/dist/src/utils/index.d.mts +4 -3
  189. package/dist/src/utils/index.d.ts +4 -3
  190. package/dist/src/utils/index.js +19 -9
  191. package/dist/src/utils/index.mjs +20 -10
  192. package/dist/src/utils/nx-json.d.mts +57 -0
  193. package/dist/src/utils/nx-json.d.ts +57 -0
  194. package/dist/src/utils/nx-json.js +11 -0
  195. package/dist/src/utils/nx-json.mjs +11 -0
  196. package/dist/src/utils/package-helpers.js +4 -5
  197. package/dist/src/utils/package-helpers.mjs +3 -4
  198. package/dist/src/utils/plugin-helpers.d.mts +7 -6
  199. package/dist/src/utils/plugin-helpers.d.ts +7 -6
  200. package/dist/src/utils/plugin-helpers.js +4 -2
  201. package/dist/src/utils/plugin-helpers.mjs +5 -3
  202. package/dist/src/utils/project-tags.d.mts +2 -2
  203. package/dist/src/utils/project-tags.d.ts +2 -2
  204. package/dist/{types-DvynnIqE.d.mts → types-DWiPwz5j.d.mts} +12 -6
  205. package/dist/{types-DvynnIqE.d.ts → types-DWiPwz5j.d.ts} +12 -6
  206. package/dist/{types-jXJWvL7s.d.mts → types-DXRPpxuL.d.mts} +1 -1
  207. package/dist/{types-SUxfrM7H.d.ts → types-ifEQCCcO.d.ts} +1 -1
  208. package/package.json +5 -5
  209. package/dist/chunk-BP22TRDI.js +0 -665
  210. package/dist/chunk-SW2AFRXA.mjs +0 -665
  211. /package/dist/{chunk-JGP4YWZY.js → chunk-DO2X7OZO.js} +0 -0
  212. /package/dist/{chunk-6YZ3OUJB.mjs → chunk-XCVH63OO.mjs} +0 -0
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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 _chunk6XYAQUU3js = require('./chunk-6XYAQUU3.js');
3
+ var _chunkUGJVZ6LIjs = require('./chunk-UGJVZ6LI.js');
4
4
 
5
5
 
6
- var _chunkBDA4N25Ejs = require('./chunk-BDA4N25E.js');
6
+ var _chunkKX7XTUYWjs = require('./chunk-KX7XTUYW.js');
7
7
 
8
8
 
9
9
 
@@ -14,10 +14,10 @@ var _chunkBDA4N25Ejs = require('./chunk-BDA4N25E.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkBP22TRDIjs = require('./chunk-BP22TRDI.js');
17
+ var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
18
18
 
19
19
 
20
- var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
20
+ var _chunkHNFKVXBVjs = require('./chunk-HNFKVXBV.js');
21
21
 
22
22
 
23
23
  var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
@@ -82,7 +82,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
82
82
  output: "src/"
83
83
  });
84
84
  }
85
- _chunkBP22TRDIjs.writeTrace.call(void 0,
85
+ _chunk2CDSXWFAjs.writeTrace.call(void 0,
86
86
  `\u{1F4DD} Copying the following assets to the output directory:
87
87
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunk53DNHF7Bjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
88
88
  config
@@ -94,9 +94,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
94
94
  assets: pendingAssets
95
95
  });
96
96
  await assetHandler.processAllAssetsOnce();
97
- _chunkBP22TRDIjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
97
+ _chunk2CDSXWFAjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
98
98
  if (includeSrc === true) {
99
- _chunkBP22TRDIjs.writeDebug.call(void 0,
99
+ _chunk2CDSXWFAjs.writeDebug.call(void 0,
100
100
  `\u{1F4DD} Adding banner and writing source files: ${_chunk53DNHF7Bjs.joinPaths.call(void 0,
101
101
  outputPath,
102
102
  "src"
@@ -180,7 +180,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
180
180
  }
181
181
  }
182
182
  if (localPackages.length > 0) {
183
- _chunkBP22TRDIjs.writeTrace.call(void 0,
183
+ _chunk2CDSXWFAjs.writeTrace.call(void 0,
184
184
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
185
185
  );
186
186
  const projectJsonFile = await _promises.readFile.call(void 0,
@@ -228,12 +228,12 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
228
228
  return ret;
229
229
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
230
230
  } else {
231
- _chunkBP22TRDIjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
231
+ _chunk2CDSXWFAjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
232
232
  }
233
233
  return packageJson;
234
234
  };
235
235
  var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
236
- const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
236
+ const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkHNFKVXBVjs.findWorkspaceRoot.call(void 0, );
237
237
  const workspacePackageJsonContent = await _promises.readFile.call(void 0,
238
238
  _chunk53DNHF7Bjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
239
239
  "utf8"
@@ -305,11 +305,11 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
305
305
  // ../esbuild/src/assets.ts
306
306
  async function copyBuildAssets(context) {
307
307
  if (!_optionalChain([context, 'access', _24 => _24.result, 'optionalAccess', _25 => _25.errors, 'access', _26 => _26.length]) && _optionalChain([context, 'access', _27 => _27.options, 'access', _28 => _28.assets, 'optionalAccess', _29 => _29.length])) {
308
- _chunkBP22TRDIjs.writeDebug.call(void 0,
308
+ _chunk2CDSXWFAjs.writeDebug.call(void 0,
309
309
  ` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
310
310
  context.workspaceConfig
311
311
  );
312
- const stopwatch = _chunkBP22TRDIjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
312
+ const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
313
313
  await copyAssets(
314
314
  context.workspaceConfig,
315
315
  _nullishCoalesce(context.options.assets, () => ( [])),
@@ -390,11 +390,11 @@ async function resolveContext(userOptions) {
390
390
  if (!workspaceRoot) {
391
391
  throw new Error("Cannot find Nx workspace root");
392
392
  }
393
- const workspaceConfig = await _chunkBDA4N25Ejs.getWorkspaceConfig.call(void 0, true, {
393
+ const workspaceConfig = await _chunkKX7XTUYWjs.getWorkspaceConfig.call(void 0, true, {
394
394
  workspaceRoot: workspaceRoot.dir
395
395
  });
396
- _chunkBP22TRDIjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
397
- const stopwatch = _chunkBP22TRDIjs.getStopwatch.call(void 0, "Build options resolution");
396
+ _chunk2CDSXWFAjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
397
+ const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, "Build options resolution");
398
398
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
399
399
  exitOnError: true
400
400
  });
@@ -464,10 +464,10 @@ async function resolveContext(userOptions) {
464
464
  };
465
465
  context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
466
466
  if (context.options.verbose) {
467
- _chunkBP22TRDIjs.writeDebug.call(void 0,
467
+ _chunk2CDSXWFAjs.writeDebug.call(void 0,
468
468
  ` \u2699\uFE0F Build options resolved:
469
469
 
470
- ${_chunkBP22TRDIjs.formatLogMessage.call(void 0, context.options)}`,
470
+ ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0, context.options)}`,
471
471
  workspaceConfig
472
472
  );
473
473
  }
@@ -480,8 +480,8 @@ ${_chunkBP22TRDIjs.formatLogMessage.call(void 0, context.options)}`,
480
480
 
481
481
  async function generatePackageJson(context) {
482
482
  if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk53DNHF7Bjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
483
- _chunkBP22TRDIjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
484
- const stopwatch = _chunkBP22TRDIjs.getStopwatch.call(void 0, "Write package.json file");
483
+ _chunk2CDSXWFAjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
484
+ const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, "Write package.json file");
485
485
  const packageJsonPath = _chunk53DNHF7Bjs.joinPaths.call(void 0,
486
486
  context.options.projectRoot,
487
487
  "project.json"
@@ -671,10 +671,10 @@ var depsCheckPlugin = (bundle) => ({
671
671
  const filteredMissingDeps = missingDependencies.filter((dep) => {
672
672
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
673
673
  });
674
- _chunkBP22TRDIjs.writeWarning.call(void 0,
674
+ _chunk2CDSXWFAjs.writeWarning.call(void 0,
675
675
  `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
676
676
  );
677
- _chunkBP22TRDIjs.writeError.call(void 0,
677
+ _chunk2CDSXWFAjs.writeError.call(void 0,
678
678
  `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
679
679
  );
680
680
  if (filteredMissingDeps.length > 0) {
@@ -689,11 +689,11 @@ ${JSON.stringify(filteredMissingDeps)}
689
689
  // ../esbuild/src/tsup.ts
690
690
  var _tsup = require('tsup');
691
691
  async function executeTsup(context) {
692
- _chunkBP22TRDIjs.writeDebug.call(void 0,
692
+ _chunk2CDSXWFAjs.writeDebug.call(void 0,
693
693
  ` \u{1F680} Running ${context.options.name} build`,
694
694
  context.workspaceConfig
695
695
  );
696
- const stopwatch = _chunkBP22TRDIjs.getStopwatch.call(void 0, `${context.options.name} build`);
696
+ const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, `${context.options.name} build`);
697
697
  await _tsup.build.call(void 0, {
698
698
  ...context.options,
699
699
  outDir: context.options.distDir ? _chunk53DNHF7Bjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
@@ -707,17 +707,17 @@ async function executeTsup(context) {
707
707
  async function reportResults(context) {
708
708
  if (_optionalChain([context, 'access', _32 => _32.result, 'optionalAccess', _33 => _33.errors, 'access', _34 => _34.length]) === 0) {
709
709
  if (context.result.warnings.length > 0) {
710
- _chunkBP22TRDIjs.writeWarning.call(void 0,
710
+ _chunk2CDSXWFAjs.writeWarning.call(void 0,
711
711
  ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
712
712
  context.workspaceConfig
713
713
  );
714
714
  }
715
- _chunkBP22TRDIjs.writeSuccess.call(void 0,
715
+ _chunk2CDSXWFAjs.writeSuccess.call(void 0,
716
716
  ` \u{1F4E6} The ${context.options.name} build completed successfully`,
717
717
  context.workspaceConfig
718
718
  );
719
719
  } else if (_optionalChain([context, 'access', _35 => _35.result, 'optionalAccess', _36 => _36.errors]) && _optionalChain([context, 'access', _37 => _37.result, 'optionalAccess', _38 => _38.errors, 'access', _39 => _39.length]) > 0) {
720
- _chunkBP22TRDIjs.writeError.call(void 0,
720
+ _chunk2CDSXWFAjs.writeError.call(void 0,
721
721
  ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
722
722
  context.workspaceConfig
723
723
  );
@@ -754,19 +754,19 @@ async function dependencyCheck(options) {
754
754
  }
755
755
  async function cleanOutputPath(context) {
756
756
  if (context.clean !== false && context.outputPath) {
757
- _chunkBP22TRDIjs.writeDebug.call(void 0,
757
+ _chunk2CDSXWFAjs.writeDebug.call(void 0,
758
758
  ` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
759
759
  context.workspaceConfig
760
760
  );
761
- const stopwatch = _chunkBP22TRDIjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
761
+ const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
762
762
  await cleanDirectories(context.outputPath);
763
763
  stopwatch();
764
764
  }
765
765
  return context;
766
766
  }
767
767
  async function build2(options) {
768
- _chunkBP22TRDIjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
769
- const stopwatch = _chunkBP22TRDIjs.getStopwatch.call(void 0, "ESBuild pipeline");
768
+ _chunk2CDSXWFAjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
769
+ const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, "ESBuild pipeline");
770
770
  try {
771
771
  const opts = Array.isArray(options) ? options : [options];
772
772
  if (opts.length === 0) {
@@ -781,9 +781,9 @@ async function build2(options) {
781
781
  executeTsup(context)
782
782
  ]);
783
783
  await reportResults(context);
784
- _chunkBP22TRDIjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
784
+ _chunk2CDSXWFAjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
785
785
  } catch (error) {
786
- _chunkBP22TRDIjs.writeFatal.call(void 0,
786
+ _chunk2CDSXWFAjs.writeFatal.call(void 0,
787
787
  "Fatal errors that the build process could not recover from have occured. The build process has been terminated."
788
788
  );
789
789
  throw error;
@@ -794,7 +794,7 @@ async function build2(options) {
794
794
 
795
795
  // src/executors/esbuild/executor.ts
796
796
  async function esbuildExecutorFn(options, context, config) {
797
- _chunkBP22TRDIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
797
+ _chunk2CDSXWFAjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
798
798
  if (!_optionalChain([context, 'access', _40 => _40.projectsConfigurations, 'optionalAccess', _41 => _41.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _42 => _42.projectsConfigurations, 'access', _43 => _43.projects, 'access', _44 => _44[context.projectName], 'optionalAccess', _45 => _45.root])) {
799
799
  throw new Error(
800
800
  "The Build process failed because the context is not valid. Please run this command from a workspace."
@@ -812,7 +812,7 @@ async function esbuildExecutorFn(options, context, config) {
812
812
  success: true
813
813
  };
814
814
  }
815
- var executor_default = _chunk6XYAQUU3js.withRunExecutor.call(void 0,
815
+ var executor_default = _chunkUGJVZ6LIjs.withRunExecutor.call(void 0,
816
816
  "Storm ESBuild build",
817
817
  esbuildExecutorFn,
818
818
  {
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
3
+ var _chunkHNFKVXBVjs = require('./chunk-HNFKVXBV.js');
4
4
 
5
5
  // src/utils/get-project-configurations.ts
6
6
  var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
7
7
  var getProjectConfigurations = async () => {
8
8
  return _retrieveworkspacefiles.retrieveProjectConfigurationsWithoutPluginInference.call(void 0,
9
- _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, )
9
+ _chunkHNFKVXBVjs.findWorkspaceRoot.call(void 0, )
10
10
  );
11
11
  };
12
12
  var getProjectConfiguration = (projectName) => _optionalChain([getProjectConfigurations, 'call', _ => _(), 'optionalAccess', _2 => _2[projectName]]);
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-EK75QNMS.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-PGIUP33N.mjs";
7
+ } from "./chunk-47X3OTR5.mjs";
8
8
  import {
9
9
  __dirname
10
10
  } from "./chunk-5EK4H7VB.mjs";
@@ -0,0 +1,311 @@
1
+ // ../config-tools/src/types.ts
2
+ var LogLevel = {
3
+ SILENT: 0,
4
+ FATAL: 10,
5
+ ERROR: 20,
6
+ WARN: 30,
7
+ SUCCESS: 35,
8
+ INFO: 40,
9
+ DEBUG: 60,
10
+ TRACE: 70,
11
+ ALL: 100
12
+ };
13
+ var LogLevelLabel = {
14
+ SILENT: "silent",
15
+ FATAL: "fatal",
16
+ ERROR: "error",
17
+ WARN: "warn",
18
+ SUCCESS: "success",
19
+ INFO: "info",
20
+ DEBUG: "debug",
21
+ TRACE: "trace",
22
+ ALL: "all"
23
+ };
24
+
25
+ // ../config-tools/src/utilities/colors.ts
26
+ var DEFAULT_COLOR_CONFIG = {
27
+ light: {
28
+ background: "#fafafa",
29
+ foreground: "#1d1e22",
30
+ brand: "#1fb2a6",
31
+ alternate: "#db2777",
32
+ help: "#5C4EE5",
33
+ success: "#087f5b",
34
+ info: "#0550ae",
35
+ warning: "#e3b341",
36
+ danger: "#D8314A",
37
+ fatal: "#51070f",
38
+ link: "#3fa6ff",
39
+ positive: "#22c55e",
40
+ negative: "#dc2626",
41
+ gradient: ["#1fb2a6", "#db2777", "#5C4EE5"]
42
+ },
43
+ dark: {
44
+ background: "#1d1e22",
45
+ foreground: "#cbd5e1",
46
+ brand: "#2dd4bf",
47
+ alternate: "#db2777",
48
+ help: "#818cf8",
49
+ success: "#10b981",
50
+ info: "#58a6ff",
51
+ warning: "#f3d371",
52
+ danger: "#D8314A",
53
+ fatal: "#a40e26",
54
+ link: "#3fa6ff",
55
+ positive: "#22c55e",
56
+ negative: "#dc2626",
57
+ gradient: ["#1fb2a6", "#db2777", "#818cf8"]
58
+ }
59
+ };
60
+
61
+ // ../config-tools/src/logger/chalk.ts
62
+ import chalk from "chalk";
63
+ var chalkDefault = {
64
+ hex: (_) => (message) => message,
65
+ bgHex: (_) => ({
66
+ whiteBright: (message) => message,
67
+ white: (message) => message
68
+ }),
69
+ white: (message) => message,
70
+ whiteBright: (message) => message,
71
+ gray: (message) => message,
72
+ bold: {
73
+ hex: (_) => (message) => message,
74
+ bgHex: (_) => ({
75
+ whiteBright: (message) => message,
76
+ white: (message) => message
77
+ }),
78
+ whiteBright: (message) => message,
79
+ white: (message) => message
80
+ },
81
+ dim: {
82
+ hex: (_) => (message) => message,
83
+ gray: (message) => message
84
+ }
85
+ };
86
+ var getChalk = () => {
87
+ let _chalk = chalk;
88
+ if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) {
89
+ _chalk = chalkDefault;
90
+ }
91
+ return _chalk;
92
+ };
93
+
94
+ // ../config-tools/src/logger/is-unicode-supported.ts
95
+ function isUnicodeSupported() {
96
+ if (process.platform !== "win32") {
97
+ return process.env.TERM !== "linux";
98
+ }
99
+ return Boolean(process.env.WT_SESSION) || // Windows Terminal
100
+ Boolean(process.env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
101
+ process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
102
+ process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
103
+ }
104
+
105
+ // ../config-tools/src/logger/console-icons.ts
106
+ var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
107
+ var CONSOLE_ICONS = {
108
+ [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
109
+ [LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
110
+ [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
111
+ [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
112
+ [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
113
+ [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
114
+ [LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
115
+ [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
116
+ };
117
+
118
+ // ../config-tools/src/logger/format-timestamp.ts
119
+ var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
120
+ return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
121
+ };
122
+
123
+ // ../config-tools/src/logger/get-log-level.ts
124
+ var getLogLevel = (label) => {
125
+ switch (label) {
126
+ case "all":
127
+ return LogLevel.ALL;
128
+ case "trace":
129
+ return LogLevel.TRACE;
130
+ case "debug":
131
+ return LogLevel.DEBUG;
132
+ case "info":
133
+ return LogLevel.INFO;
134
+ case "warn":
135
+ return LogLevel.WARN;
136
+ case "error":
137
+ return LogLevel.ERROR;
138
+ case "fatal":
139
+ return LogLevel.FATAL;
140
+ case "silent":
141
+ return LogLevel.SILENT;
142
+ default:
143
+ return LogLevel.INFO;
144
+ }
145
+ };
146
+ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
147
+ if (logLevel >= LogLevel.ALL) {
148
+ return LogLevelLabel.ALL;
149
+ }
150
+ if (logLevel >= LogLevel.TRACE) {
151
+ return LogLevelLabel.TRACE;
152
+ }
153
+ if (logLevel >= LogLevel.DEBUG) {
154
+ return LogLevelLabel.DEBUG;
155
+ }
156
+ if (logLevel >= LogLevel.INFO) {
157
+ return LogLevelLabel.INFO;
158
+ }
159
+ if (logLevel >= LogLevel.WARN) {
160
+ return LogLevelLabel.WARN;
161
+ }
162
+ if (logLevel >= LogLevel.ERROR) {
163
+ return LogLevelLabel.ERROR;
164
+ }
165
+ if (logLevel >= LogLevel.FATAL) {
166
+ return LogLevelLabel.FATAL;
167
+ }
168
+ if (logLevel <= LogLevel.SILENT) {
169
+ return LogLevelLabel.SILENT;
170
+ }
171
+ return LogLevelLabel.INFO;
172
+ };
173
+
174
+ // ../config-tools/src/logger/console.ts
175
+ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
176
+ const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
177
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
178
+ if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
179
+ return (_) => {
180
+ };
181
+ }
182
+ if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
183
+ return (message) => {
184
+ console.error(
185
+ `
186
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal)(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
187
+ `
188
+ );
189
+ };
190
+ }
191
+ if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
192
+ return (message) => {
193
+ console.error(
194
+ `
195
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger)(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
196
+ `
197
+ );
198
+ };
199
+ }
200
+ if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
201
+ return (message) => {
202
+ console.warn(
203
+ `
204
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning)(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
205
+ `
206
+ );
207
+ };
208
+ }
209
+ if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
210
+ return (message) => {
211
+ console.info(
212
+ `
213
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? DEFAULT_COLOR_CONFIG.dark.success)(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
214
+ `
215
+ );
216
+ };
217
+ }
218
+ if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
219
+ return (message) => {
220
+ console.info(
221
+ `
222
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
223
+ `
224
+ );
225
+ };
226
+ }
227
+ if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
228
+ return (message) => {
229
+ console.debug(
230
+ `
231
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
232
+ `
233
+ );
234
+ };
235
+ }
236
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
237
+ return (message) => {
238
+ console.debug(
239
+ `
240
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
241
+ `
242
+ );
243
+ };
244
+ }
245
+ return (message) => {
246
+ console.log(
247
+ `
248
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand)(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
249
+ `
250
+ );
251
+ };
252
+ };
253
+ var writeFatal = (message, config) => getLogFn(LogLevel.FATAL, config)(message);
254
+ var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
255
+ var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
256
+ var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
257
+ var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
258
+ var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
259
+ var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
260
+ var getStopwatch = (name) => {
261
+ const start = process.hrtime();
262
+ return () => {
263
+ const end = process.hrtime(start);
264
+ console.info(
265
+ `
266
+ > \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
267
+ end[0] * 1e3 + end[1] / 1e6
268
+ )}ms to complete
269
+ `
270
+ );
271
+ };
272
+ };
273
+ var MAX_DEPTH = 4;
274
+ var formatLogMessage = (message, options = {}, depth = 0) => {
275
+ if (depth > MAX_DEPTH) {
276
+ return "<max depth>";
277
+ }
278
+ const prefix = options.prefix ?? "-";
279
+ const skip = options.skip ?? [];
280
+ return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
281
+ ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, { prefix: `${prefix}-`, skip }, depth + 1)}`).join("\n")}` : typeof message === "object" ? `
282
+ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
283
+ (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
284
+ message[key],
285
+ { prefix: `${prefix}-`, skip },
286
+ depth + 1
287
+ ) : message[key]}`
288
+ ).join("\n")}` : message;
289
+ };
290
+ var _isFunction = (value) => {
291
+ try {
292
+ return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
293
+ } catch {
294
+ return false;
295
+ }
296
+ };
297
+
298
+ export {
299
+ LogLevel,
300
+ getLogLevel,
301
+ getLogLevelLabel,
302
+ writeFatal,
303
+ writeError,
304
+ writeWarning,
305
+ writeInfo,
306
+ writeSuccess,
307
+ writeDebug,
308
+ writeTrace,
309
+ getStopwatch,
310
+ formatLogMessage
311
+ };
@@ -4,14 +4,14 @@
4
4
  var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
5
5
 
6
6
 
7
- var _chunk6XYAQUU3js = require('./chunk-6XYAQUU3.js');
7
+ var _chunkUGJVZ6LIjs = require('./chunk-UGJVZ6LI.js');
8
8
 
9
9
  // src/executors/cargo-build/executor.ts
10
10
  async function cargoBuildExecutor(options, context) {
11
11
  const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "build", options, context);
12
12
  return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
13
13
  }
14
- var executor_default = _chunk6XYAQUU3js.withRunExecutor.call(void 0,
14
+ var executor_default = _chunkUGJVZ6LIjs.withRunExecutor.call(void 0,
15
15
  "Cargo - Build",
16
16
  cargoBuildExecutor,
17
17
  {
@@ -1,3 +1,6 @@
1
+ import {
2
+ getRoot
3
+ } from "./chunk-FHBOYSRN.mjs";
1
4
  import {
2
5
  cargoMetadata,
3
6
  isExternal
@@ -62,7 +65,7 @@ var createNodesV2 = [
62
65
  }, /* @__PURE__ */ new Map());
63
66
  for (const cargoPackage of cargoPackages) {
64
67
  if (!isExternal(cargoPackage, context2.workspaceRoot)) {
65
- const root = dirname(configFile);
68
+ const root = getRoot(dirname(configFile), context2);
66
69
  const project = {
67
70
  root,
68
71
  name: cargoPackage.name
@@ -233,12 +236,7 @@ var createNodesV2 = [
233
236
  if (skipDocs != true) {
234
237
  project.targets.docs = {
235
238
  cache: true,
236
- inputs: [
237
- "linting",
238
- "documentation",
239
- "default",
240
- "^production"
241
- ],
239
+ inputs: ["linting", "documentation", "^production"],
242
240
  dependsOn: ["format-readme", "lint-docs", "^docs"],
243
241
  outputs: [`{workspaceRoot}/dist/{projectRoot}/docs`],
244
242
  executor: "@storm-software/workspace-tools:cargo-doc",
@@ -297,7 +295,9 @@ var createNodesV2 = [
297
295
  const externalDepName = `cargo:${dep.name}`;
298
296
  if (!externalNodes?.[externalDepName]) {
299
297
  externalNodes[externalDepName] = {
298
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
300
299
  type: "cargo",
300
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
301
301
  name: externalDepName,
302
302
  data: {
303
303
  packageName: dep.name,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-V5564COA.mjs";
3
+ } from "./chunk-LVIDSVDC.mjs";
4
4
  import {
5
5
  writeInfo
6
- } from "./chunk-SW2AFRXA.mjs";
6
+ } from "./chunk-V44DYGWX.mjs";
7
7
 
8
8
  // src/executors/size-limit/executor.ts
9
9
  import { joinPathFragments } from "@nx/devkit";
@@ -17,7 +17,7 @@ async function sizeLimitExecutorFn(options, context, config) {
17
17
  "The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
18
18
  );
19
19
  }
20
- writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
20
+ writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
21
21
  sizeLimit([filePlugin, esBuildPlugin, esBuildWhyPlugin], {
22
22
  checks: options.entry ?? context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? joinPathFragments(
23
23
  context.projectsConfigurations.projects[context.projectName]?.root ?? "./",
@@ -25,7 +25,7 @@ async function sizeLimitExecutorFn(options, context, config) {
25
25
  )
26
26
  }).then((result) => {
27
27
  writeInfo(
28
- `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
28
+ `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
29
29
  config
30
30
  );
31
31
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkUXALGSQCjs = require('./chunk-UXALGSQC.js');
3
+ var _chunk452FQZ3Bjs = require('./chunk-452FQZ3B.js');
4
4
 
5
5
  // src/executors/cargo-publish/executor.ts
6
6
  var _devkit = require('@nx/devkit');
@@ -25,7 +25,7 @@ async function runExecutor(options, context) {
25
25
  context.root,
26
26
  options.packageRoot ? options.packageRoot : root
27
27
  );
28
- const cargoToml = _chunkUXALGSQCjs.parseCargoToml.call(void 0,
28
+ const cargoToml = _chunk452FQZ3Bjs.parseCargoToml.call(void 0,
29
29
  _fs.readFileSync.call(void 0, _devkit.joinPathFragments.call(void 0, packageRoot, "Cargo.toml"), "utf-8")
30
30
  );
31
31
  try {