@storm-software/workspace-tools 1.273.9 → 1.274.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 (212) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-Y7JE33K2.js → chunk-222WOWGJ.js} +2 -2
  4. package/dist/{chunk-ON5324R7.js → chunk-2443J2PM.js} +2 -2
  5. package/dist/{chunk-3G3HNZ22.js → chunk-2XAKOAWZ.js} +2 -2
  6. package/dist/{chunk-ZASRR3NW.mjs → chunk-33SPJY5N.mjs} +1 -1
  7. package/dist/{chunk-UQJ4W5YX.mjs → chunk-4F35W2XF.mjs} +2 -2
  8. package/dist/{chunk-QWRE2UFS.js → chunk-4PBELSTL.js} +16 -16
  9. package/dist/{chunk-AAQQSGPY.mjs → chunk-5E6PGJFN.mjs} +1 -1
  10. package/dist/{chunk-TSP73RLP.js → chunk-6X3ZLBG2.js} +2 -2
  11. package/dist/{chunk-MLF7ZQBW.mjs → chunk-7VBGCQH3.mjs} +2 -2
  12. package/dist/{chunk-FCRAGTW6.mjs → chunk-7XEPEVIZ.mjs} +2 -2
  13. package/dist/{chunk-VUSG5IWM.js → chunk-A2XTQR6N.js} +21 -21
  14. package/dist/{chunk-DYDIVZRW.js → chunk-AALD7ZEV.js} +5 -5
  15. package/dist/{chunk-75RE5W2I.mjs → chunk-AYJTBMXU.mjs} +1 -1
  16. package/dist/{chunk-5XYM22SB.mjs → chunk-BAZRQFS5.mjs} +3 -3
  17. package/dist/{chunk-SMRFUKN7.js → chunk-BVE3BYKP.js} +2 -2
  18. package/dist/{chunk-N63KWRTH.mjs → chunk-C4XOCICR.mjs} +12 -5
  19. package/dist/{chunk-IL3R5ZVS.js → chunk-CLMAB7TA.js} +1 -1
  20. package/dist/{chunk-BNERGX6I.js → chunk-CSYOP22P.js} +55 -18
  21. package/dist/{chunk-C22PXFKF.js → chunk-CTWNTX3J.js} +5 -5
  22. package/dist/{chunk-EGPDUUWX.mjs → chunk-D6P2STPQ.mjs} +2 -2
  23. package/dist/{chunk-AW3I76E2.mjs → chunk-EEHAAR36.mjs} +1 -1
  24. package/dist/{chunk-5MOK3MSQ.mjs → chunk-EO5BEDAY.mjs} +1 -1
  25. package/dist/{chunk-2F5TLK3C.js → chunk-F6TLFN34.js} +20 -20
  26. package/dist/{chunk-MSCI7LQ2.js → chunk-FG3RQ2OV.js} +4 -4
  27. package/dist/{chunk-S2JDNKK6.js → chunk-FOCRXFSZ.js} +9 -9
  28. package/dist/{chunk-2PZOGRBP.mjs → chunk-HSBG3ZLM.mjs} +4 -4
  29. package/dist/{chunk-KF6AKLGE.js → chunk-JMRTB4ST.js} +2 -2
  30. package/dist/{chunk-3QD2U6SS.js → chunk-JQE6CQLQ.js} +29 -29
  31. package/dist/{chunk-EDMNYJEB.js → chunk-JYCGVSCY.js} +2 -2
  32. package/dist/{chunk-DMJKKHEC.mjs → chunk-K3NTMKCM.mjs} +2 -2
  33. package/dist/{chunk-6L7JKV7E.mjs → chunk-M2NVA6UP.mjs} +2 -2
  34. package/dist/{chunk-EQ3664ZD.mjs → chunk-MAJJATNY.mjs} +2 -2
  35. package/dist/{chunk-7Q2NOIDR.js → chunk-MBEN52II.js} +2 -2
  36. package/dist/{chunk-HY3ZC5EZ.mjs → chunk-MXVEXRT2.mjs} +1 -1
  37. package/dist/{chunk-DJYOYWNY.mjs → chunk-NDUYSOQT.mjs} +2 -2
  38. package/dist/{chunk-5XTW4576.mjs → chunk-NTDTTTFS.mjs} +1 -1
  39. package/dist/{chunk-M75P2EGZ.js → chunk-QBVFFRGM.js} +2 -2
  40. package/dist/{chunk-Y5UH66KY.mjs → chunk-R4DNKY7G.mjs} +2 -2
  41. package/dist/{chunk-M6IYTP2T.mjs → chunk-TITVB67A.mjs} +1 -1
  42. package/dist/{chunk-2CZBN33P.js → chunk-TP4TN5V3.js} +26 -19
  43. package/dist/{chunk-TVH6TDED.js → chunk-VF5EUZOL.js} +2 -2
  44. package/dist/{chunk-WLB7XVWW.mjs → chunk-VWLAZOKW.mjs} +52 -15
  45. package/dist/{chunk-MNQIKYEB.js → chunk-WJDCZZ4L.js} +2 -2
  46. package/dist/{chunk-6QQQU5ES.mjs → chunk-XMLAOOM7.mjs} +2 -2
  47. package/dist/{chunk-W2RLHQ24.mjs → chunk-YRKPABVG.mjs} +1 -1
  48. package/dist/{chunk-BNV64O5L.js → chunk-ZCP6KEZ3.js} +2 -2
  49. package/dist/{chunk-R2WP5YDO.mjs → chunk-ZI3GFOY5.mjs} +1 -1
  50. package/dist/{executor-BB2ETtRv.d.mts → executor--mlxAMR_.d.mts} +1 -1
  51. package/dist/{executor-B64kh1oi.d.mts → executor-BAnuLY62.d.mts} +1 -1
  52. package/dist/{executor-iAEPRwdw.d.mts → executor-BGlIYFTt.d.mts} +1 -1
  53. package/dist/{executor-BoDeD560.d.ts → executor-BS6HK_i-.d.ts} +1 -1
  54. package/dist/{executor-DweIL90b.d.ts → executor-CmMXt0ZL.d.ts} +1 -1
  55. package/dist/{executor-DQYta-Bm.d.mts → executor-D-oX5X59.d.mts} +1 -1
  56. package/dist/{executor-DGI7S1K6.d.ts → executor-VvboSWN6.d.ts} +1 -1
  57. package/dist/{executor-DJnjBsHi.d.ts → executor-YXD16-Jl.d.ts} +1 -1
  58. package/dist/executors.d.mts +5 -5
  59. package/dist/executors.d.ts +5 -5
  60. package/dist/executors.js +15 -15
  61. package/dist/executors.mjs +20 -20
  62. package/dist/{generator-DkZ7aOcA.d.ts → generator-B0Jsp2ju.d.ts} +2 -2
  63. package/dist/{generator-Dgh8EO8f.d.mts → generator-B0UkDTyO.d.mts} +2 -2
  64. package/dist/{generator-Di06Xw7z.d.mts → generator-B4_Po-mX.d.mts} +1 -1
  65. package/dist/{generator-Bjo526Ot.d.ts → generator-BkkCO0DX.d.ts} +1 -1
  66. package/dist/{generator-DK9vOp3f.d.mts → generator-CjXWOnnK.d.mts} +2 -2
  67. package/dist/{generator-BHwTuGoc.d.ts → generator-CsmV6snI.d.ts} +2 -2
  68. package/dist/{generator-PTy4kTc1.d.ts → generator-CuNtuEDC.d.ts} +2 -2
  69. package/dist/{generator-BqKMXZ9U.d.mts → generator-DP4Yjbo_.d.mts} +2 -2
  70. package/dist/{generator-qr528Z40.d.ts → generator-DVfwgNrx.d.ts} +2 -2
  71. package/dist/{generator-DMoR2v0k.d.mts → generator-DvREvLTF.d.mts} +2 -2
  72. package/dist/{generator-iNjBgmgt.d.mts → generator-UHjIhmN1.d.mts} +1 -1
  73. package/dist/{generator-DRa-qwNt.d.ts → generator-lfLl3DXf.d.ts} +1 -1
  74. package/dist/generators.d.mts +8 -8
  75. package/dist/generators.d.ts +8 -8
  76. package/dist/generators.js +11 -11
  77. package/dist/generators.mjs +11 -11
  78. package/dist/index.d.mts +12 -12
  79. package/dist/index.d.ts +12 -12
  80. package/dist/index.js +24 -24
  81. package/dist/index.mjs +29 -29
  82. package/dist/src/base/base-executor.d.mts +2 -2
  83. package/dist/src/base/base-executor.d.ts +2 -2
  84. package/dist/src/base/base-executor.js +4 -4
  85. package/dist/src/base/base-executor.mjs +4 -4
  86. package/dist/src/base/base-executor.untyped.mjs +1 -1
  87. package/dist/src/base/base-generator.d.mts +2 -2
  88. package/dist/src/base/base-generator.d.ts +2 -2
  89. package/dist/src/base/base-generator.js +4 -4
  90. package/dist/src/base/base-generator.mjs +4 -4
  91. package/dist/src/base/base-generator.untyped.mjs +1 -1
  92. package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
  93. package/dist/src/base/index.d.mts +2 -2
  94. package/dist/src/base/index.d.ts +2 -2
  95. package/dist/src/base/index.js +6 -6
  96. package/dist/src/base/index.mjs +6 -6
  97. package/dist/src/base/typescript-build-executor.untyped.js +2 -2
  98. package/dist/src/base/typescript-build-executor.untyped.mjs +2 -2
  99. package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
  100. package/dist/src/executors/cargo-build/executor.js +5 -5
  101. package/dist/src/executors/cargo-build/executor.mjs +5 -5
  102. package/dist/src/executors/cargo-build/untyped.mjs +1 -1
  103. package/dist/src/executors/cargo-check/executor.js +5 -5
  104. package/dist/src/executors/cargo-check/executor.mjs +5 -5
  105. package/dist/src/executors/cargo-check/untyped.mjs +1 -1
  106. package/dist/src/executors/cargo-clippy/executor.js +5 -5
  107. package/dist/src/executors/cargo-clippy/executor.mjs +5 -5
  108. package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
  109. package/dist/src/executors/cargo-doc/executor.js +5 -5
  110. package/dist/src/executors/cargo-doc/executor.mjs +5 -5
  111. package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
  112. package/dist/src/executors/cargo-format/executor.js +5 -5
  113. package/dist/src/executors/cargo-format/executor.mjs +5 -5
  114. package/dist/src/executors/cargo-format/untyped.mjs +1 -1
  115. package/dist/src/executors/cargo-publish/executor.js +4 -4
  116. package/dist/src/executors/cargo-publish/executor.mjs +4 -4
  117. package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
  118. package/dist/src/executors/clean-package/executor.d.mts +1 -1
  119. package/dist/src/executors/clean-package/executor.d.ts +1 -1
  120. package/dist/src/executors/clean-package/executor.js +6 -6
  121. package/dist/src/executors/clean-package/executor.mjs +4 -4
  122. package/dist/src/executors/clean-package/untyped.mjs +1 -1
  123. package/dist/src/executors/esbuild/executor.d.mts +2 -2
  124. package/dist/src/executors/esbuild/executor.d.ts +2 -2
  125. package/dist/src/executors/esbuild/executor.js +5 -5
  126. package/dist/src/executors/esbuild/executor.mjs +5 -5
  127. package/dist/src/executors/esbuild/untyped.js +2 -2
  128. package/dist/src/executors/esbuild/untyped.mjs +2 -2
  129. package/dist/src/executors/npm-publish/executor.mjs +1 -1
  130. package/dist/src/executors/npm-publish/untyped.mjs +1 -1
  131. package/dist/src/executors/size-limit/executor.d.mts +2 -2
  132. package/dist/src/executors/size-limit/executor.d.ts +2 -2
  133. package/dist/src/executors/size-limit/executor.js +5 -5
  134. package/dist/src/executors/size-limit/executor.mjs +5 -5
  135. package/dist/src/executors/size-limit/untyped.mjs +1 -1
  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 +5 -5
  139. package/dist/src/executors/typia/executor.mjs +5 -5
  140. package/dist/src/executors/typia/untyped.mjs +1 -1
  141. package/dist/src/executors/unbuild/executor.d.mts +2 -2
  142. package/dist/src/executors/unbuild/executor.d.ts +2 -2
  143. package/dist/src/executors/unbuild/executor.js +5 -5
  144. package/dist/src/executors/unbuild/executor.mjs +5 -5
  145. package/dist/src/executors/unbuild/untyped.js +2 -2
  146. package/dist/src/executors/unbuild/untyped.mjs +2 -2
  147. package/dist/src/generators/browser-library/generator.d.mts +3 -3
  148. package/dist/src/generators/browser-library/generator.d.ts +3 -3
  149. package/dist/src/generators/browser-library/generator.js +5 -5
  150. package/dist/src/generators/browser-library/generator.mjs +5 -5
  151. package/dist/src/generators/browser-library/untyped.mjs +1 -1
  152. package/dist/src/generators/config-schema/generator.d.mts +3 -3
  153. package/dist/src/generators/config-schema/generator.d.ts +3 -3
  154. package/dist/src/generators/config-schema/generator.js +5 -5
  155. package/dist/src/generators/config-schema/generator.mjs +5 -5
  156. package/dist/src/generators/config-schema/untyped.mjs +1 -1
  157. package/dist/src/generators/init/init.mjs +1 -1
  158. package/dist/src/generators/init/untyped.mjs +1 -1
  159. package/dist/src/generators/neutral-library/generator.d.mts +3 -3
  160. package/dist/src/generators/neutral-library/generator.d.ts +3 -3
  161. package/dist/src/generators/neutral-library/generator.js +5 -5
  162. package/dist/src/generators/neutral-library/generator.mjs +5 -5
  163. package/dist/src/generators/neutral-library/untyped.mjs +1 -1
  164. package/dist/src/generators/node-library/generator.d.mts +3 -3
  165. package/dist/src/generators/node-library/generator.d.ts +3 -3
  166. package/dist/src/generators/node-library/generator.js +5 -5
  167. package/dist/src/generators/node-library/generator.mjs +5 -5
  168. package/dist/src/generators/node-library/untyped.mjs +1 -1
  169. package/dist/src/generators/preset/generator.d.mts +3 -3
  170. package/dist/src/generators/preset/generator.d.ts +3 -3
  171. package/dist/src/generators/preset/generator.js +5 -5
  172. package/dist/src/generators/preset/generator.mjs +5 -5
  173. package/dist/src/generators/preset/untyped.mjs +1 -1
  174. package/dist/src/generators/release-version/generator.d.mts +2 -2
  175. package/dist/src/generators/release-version/generator.d.ts +2 -2
  176. package/dist/src/generators/release-version/generator.js +5 -5
  177. package/dist/src/generators/release-version/generator.mjs +5 -5
  178. package/dist/src/generators/release-version/untyped.mjs +1 -1
  179. package/dist/src/plugins/rust/cargo-toml.mjs +1 -1
  180. package/dist/src/plugins/rust/index.mjs +1 -1
  181. package/dist/src/plugins/typescript/index.mjs +1 -1
  182. package/dist/src/plugins/typescript/project-config.mjs +1 -1
  183. package/dist/src/plugins/typescript/tsup.mjs +1 -1
  184. package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
  185. package/dist/src/types.d.mts +2 -2
  186. package/dist/src/types.d.ts +2 -2
  187. package/dist/src/types.mjs +1 -1
  188. package/dist/src/utils/apply-workspace-tokens.d.mts +1 -1
  189. package/dist/src/utils/apply-workspace-tokens.d.ts +1 -1
  190. package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
  191. package/dist/src/utils/cargo.mjs +1 -1
  192. package/dist/src/utils/create-cli-options.mjs +1 -1
  193. package/dist/src/utils/get-project-configurations.mjs +1 -1
  194. package/dist/src/utils/index.d.mts +2 -2
  195. package/dist/src/utils/index.d.ts +2 -2
  196. package/dist/src/utils/index.js +4 -4
  197. package/dist/src/utils/index.mjs +4 -4
  198. package/dist/src/utils/lock-file.mjs +1 -1
  199. package/dist/src/utils/package-helpers.js +4 -4
  200. package/dist/src/utils/package-helpers.mjs +4 -4
  201. package/dist/src/utils/plugin-helpers.mjs +1 -1
  202. package/dist/src/utils/pnpm-deps-update.mjs +1 -1
  203. package/dist/src/utils/project-tags.d.mts +2 -2
  204. package/dist/src/utils/project-tags.d.ts +2 -2
  205. package/dist/src/utils/project-tags.mjs +1 -1
  206. package/dist/src/utils/typia-transform.mjs +1 -1
  207. package/dist/src/utils/versions.mjs +1 -1
  208. package/dist/{types-TCjBSz49.d.mts → types-C3bmMIQz.d.mts} +11 -8
  209. package/dist/{types-TCjBSz49.d.ts → types-C3bmMIQz.d.ts} +11 -8
  210. package/dist/{types-DrIOVAV9.d.ts → types-U3fABbAy.d.ts} +1 -1
  211. package/dist/{types-J0DsoZaH.d.mts → types-jbWdA7g_.d.mts} +1 -1
  212. package/package.json +4 -4
@@ -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 _chunkVUSG5IWMjs = require('./chunk-VUSG5IWM.js');
3
+ var _chunkA2XTQR6Njs = require('./chunk-A2XTQR6N.js');
4
4
 
5
5
 
6
- var _chunk2CZBN33Pjs = require('./chunk-2CZBN33P.js');
6
+ var _chunkTP4TN5V3js = require('./chunk-TP4TN5V3.js');
7
7
 
8
8
 
9
9
 
@@ -13,7 +13,7 @@ var _chunk2CZBN33Pjs = require('./chunk-2CZBN33P.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
16
+ var _chunkCSYOP22Pjs = require('./chunk-CSYOP22P.js');
17
17
 
18
18
 
19
19
  var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
@@ -81,7 +81,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
81
81
  output: "src/"
82
82
  });
83
83
  }
84
- _chunkBNERGX6Ijs.writeTrace.call(void 0,
84
+ _chunkCSYOP22Pjs.writeTrace.call(void 0,
85
85
  `\u{1F4DD} Copying the following assets to the output directory:
86
86
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunk53DNHF7Bjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
87
87
  config
@@ -94,7 +94,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
94
94
  });
95
95
  await assetHandler.processAllAssetsOnce();
96
96
  if (includeSrc === true) {
97
- _chunkBNERGX6Ijs.writeDebug.call(void 0,
97
+ _chunkCSYOP22Pjs.writeDebug.call(void 0,
98
98
  `\u{1F4DD} Adding banner and writing source files: ${_chunk53DNHF7Bjs.joinPaths.call(void 0,
99
99
  outputPath,
100
100
  "src"
@@ -178,7 +178,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
178
178
  }
179
179
  }
180
180
  if (localPackages.length > 0) {
181
- _chunkBNERGX6Ijs.writeTrace.call(void 0,
181
+ _chunkCSYOP22Pjs.writeTrace.call(void 0,
182
182
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
183
183
  );
184
184
  const projectJsonFile = await _promises.readFile.call(void 0,
@@ -226,7 +226,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
226
226
  return ret;
227
227
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
228
228
  } else {
229
- _chunkBNERGX6Ijs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
229
+ _chunkCSYOP22Pjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
230
230
  }
231
231
  return packageJson;
232
232
  };
@@ -303,11 +303,11 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
303
303
  // ../esbuild/src/assets.ts
304
304
  async function copyBuildAssets(context) {
305
305
  if (_optionalChain([context, 'access', _24 => _24.result, 'optionalAccess', _25 => _25.errors, 'access', _26 => _26.length]) === 0) {
306
- _chunkBNERGX6Ijs.writeDebug.call(void 0,
306
+ _chunkCSYOP22Pjs.writeDebug.call(void 0,
307
307
  ` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`,
308
308
  context.workspaceConfig
309
309
  );
310
- const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
310
+ const stopwatch = _chunkCSYOP22Pjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
311
311
  await copyAssets(
312
312
  context.workspaceConfig,
313
313
  _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 _chunk2CZBN33Pjs.getWorkspaceConfig.call(void 0, true, {
393
+ const workspaceConfig = await _chunkTP4TN5V3js.getWorkspaceConfig.call(void 0, true, {
394
394
  workspaceRoot: workspaceRoot.dir
395
395
  });
396
- _chunkBNERGX6Ijs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
397
- const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, "Build options resolution");
396
+ _chunkCSYOP22Pjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
397
+ const stopwatch = _chunkCSYOP22Pjs.getStopwatch.call(void 0, "Build options resolution");
398
398
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
399
399
  exitOnError: true
400
400
  });
@@ -472,8 +472,8 @@ async function resolveContext(userOptions) {
472
472
 
473
473
  async function generatePackageJson(context) {
474
474
  if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk53DNHF7Bjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
475
- _chunkBNERGX6Ijs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
476
- const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, "Write package.json file");
475
+ _chunkCSYOP22Pjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
476
+ const stopwatch = _chunkCSYOP22Pjs.getStopwatch.call(void 0, "Write package.json file");
477
477
  const packageJsonPath = _chunk53DNHF7Bjs.joinPaths.call(void 0,
478
478
  context.options.projectRoot,
479
479
  "project.json"
@@ -663,10 +663,10 @@ var depsCheckPlugin = (bundle) => ({
663
663
  const filteredMissingDeps = missingDependencies.filter((dep) => {
664
664
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
665
665
  });
666
- _chunkBNERGX6Ijs.writeWarning.call(void 0,
666
+ _chunkCSYOP22Pjs.writeWarning.call(void 0,
667
667
  `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
668
668
  );
669
- _chunkBNERGX6Ijs.writeError.call(void 0,
669
+ _chunkCSYOP22Pjs.writeError.call(void 0,
670
670
  `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
671
671
  );
672
672
  if (filteredMissingDeps.length > 0) {
@@ -681,11 +681,11 @@ ${JSON.stringify(filteredMissingDeps)}
681
681
  // ../esbuild/src/tsup.ts
682
682
  var _tsup = require('tsup');
683
683
  async function executeTsup(context) {
684
- _chunkBNERGX6Ijs.writeDebug.call(void 0,
684
+ _chunkCSYOP22Pjs.writeDebug.call(void 0,
685
685
  ` \u{1F680} Running ${context.options.name} build`,
686
686
  context.workspaceConfig
687
687
  );
688
- const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, `${context.options.name} build`);
688
+ const stopwatch = _chunkCSYOP22Pjs.getStopwatch.call(void 0, `${context.options.name} build`);
689
689
  await _tsup.build.call(void 0, {
690
690
  ...context.options,
691
691
  outDir: context.options.distDir ? _chunk53DNHF7Bjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
@@ -699,17 +699,17 @@ async function executeTsup(context) {
699
699
  async function reportResults(context) {
700
700
  if (_optionalChain([context, 'access', _29 => _29.result, 'optionalAccess', _30 => _30.errors, 'access', _31 => _31.length]) === 0) {
701
701
  if (context.result.warnings.length > 0) {
702
- _chunkBNERGX6Ijs.writeWarning.call(void 0,
702
+ _chunkCSYOP22Pjs.writeWarning.call(void 0,
703
703
  ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
704
704
  context.workspaceConfig
705
705
  );
706
706
  }
707
- _chunkBNERGX6Ijs.writeSuccess.call(void 0,
707
+ _chunkCSYOP22Pjs.writeSuccess.call(void 0,
708
708
  ` \u{1F4E6} The ${context.options.name} build completed successfully`,
709
709
  context.workspaceConfig
710
710
  );
711
711
  } else if (_optionalChain([context, 'access', _32 => _32.result, 'optionalAccess', _33 => _33.errors]) && _optionalChain([context, 'access', _34 => _34.result, 'optionalAccess', _35 => _35.errors, 'access', _36 => _36.length]) > 0) {
712
- _chunkBNERGX6Ijs.writeError.call(void 0,
712
+ _chunkCSYOP22Pjs.writeError.call(void 0,
713
713
  ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
714
714
  context.workspaceConfig
715
715
  );
@@ -746,19 +746,19 @@ async function dependencyCheck(options) {
746
746
  }
747
747
  async function cleanOutputPath(context) {
748
748
  if (context.clean !== false && context.outputPath) {
749
- _chunkBNERGX6Ijs.writeDebug.call(void 0,
749
+ _chunkCSYOP22Pjs.writeDebug.call(void 0,
750
750
  ` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
751
751
  context.workspaceConfig
752
752
  );
753
- const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, `${context.options.name} output clean`);
753
+ const stopwatch = _chunkCSYOP22Pjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
754
754
  await cleanDirectories(context.outputPath);
755
755
  stopwatch();
756
756
  }
757
757
  return context;
758
758
  }
759
759
  async function build2(options) {
760
- _chunkBNERGX6Ijs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
761
- const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, "ESBuild pipeline");
760
+ _chunkCSYOP22Pjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
761
+ const stopwatch = _chunkCSYOP22Pjs.getStopwatch.call(void 0, "ESBuild pipeline");
762
762
  try {
763
763
  const opts = Array.isArray(options) ? options : [options];
764
764
  if (opts.length === 0) {
@@ -773,9 +773,9 @@ async function build2(options) {
773
773
  executeTsup(context)
774
774
  ]);
775
775
  await reportResults(context);
776
- _chunkBNERGX6Ijs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
776
+ _chunkCSYOP22Pjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
777
777
  } catch (error) {
778
- _chunkBNERGX6Ijs.writeFatal.call(void 0,
778
+ _chunkCSYOP22Pjs.writeFatal.call(void 0,
779
779
  "Fatal errors that the build process could not recover from have occured. The build process has been terminated."
780
780
  );
781
781
  throw error;
@@ -786,7 +786,7 @@ async function build2(options) {
786
786
 
787
787
  // src/executors/esbuild/executor.ts
788
788
  async function esbuildExecutorFn(options, context, config) {
789
- _chunkBNERGX6Ijs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
789
+ _chunkCSYOP22Pjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
790
790
  if (!_optionalChain([context, 'access', _37 => _37.projectsConfigurations, 'optionalAccess', _38 => _38.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _39 => _39.projectsConfigurations, 'access', _40 => _40.projects, 'access', _41 => _41[context.projectName], 'optionalAccess', _42 => _42.root])) {
791
791
  throw new Error(
792
792
  "The Build process failed because the context is not valid. Please run this command from a workspace."
@@ -804,7 +804,7 @@ async function esbuildExecutorFn(options, context, config) {
804
804
  success: true
805
805
  };
806
806
  }
807
- var executor_default = _chunkVUSG5IWMjs.withRunExecutor.call(void 0,
807
+ var executor_default = _chunkA2XTQR6Njs.withRunExecutor.call(void 0,
808
808
  "Storm ESBuild build",
809
809
  esbuildExecutorFn,
810
810
  {
@@ -1,13 +1,13 @@
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 _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
3
+ var _chunkCSYOP22Pjs = require('./chunk-CSYOP22P.js');
4
4
 
5
5
  // ../config-tools/src/utilities/toml.ts
6
6
  var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
7
7
  function parseCargoTomlWithTree(tree, projectRoot, projectName) {
8
8
  const cargoTomlString = _optionalChain([tree, 'access', _ => _.read, 'call', _2 => _2(`${projectRoot}/Cargo.toml`), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
9
9
  if (!cargoTomlString) {
10
- _chunkBNERGX6Ijs.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
10
+ _chunkCSYOP22Pjs.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
11
11
  throw new Error();
12
12
  }
13
13
  return parseCargoToml(cargoTomlString);
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-FCRAGTW6.mjs";
3
+ } from "./chunk-7XEPEVIZ.mjs";
4
4
  import {
5
5
  writeInfo
6
- } from "./chunk-WLB7XVWW.mjs";
6
+ } from "./chunk-VWLAZOKW.mjs";
7
7
 
8
8
  // src/executors/typia/executor.ts
9
9
  import { removeSync } from "fs-extra";
@@ -4,13 +4,13 @@ import {
4
4
  } from "./chunk-3PTWOMU2.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-MLF7ZQBW.mjs";
7
+ } from "./chunk-7VBGCQH3.mjs";
8
8
  import {
9
9
  joinPaths
10
10
  } from "./chunk-U7JFVMCK.mjs";
11
11
  import {
12
12
  __dirname
13
- } from "./chunk-75RE5W2I.mjs";
13
+ } from "./chunk-AYJTBMXU.mjs";
14
14
 
15
15
  // src/generators/browser-library/generator.ts
16
16
  import {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-FCRAGTW6.mjs";
3
+ } from "./chunk-7XEPEVIZ.mjs";
4
4
  import {
5
5
  writeInfo
6
- } from "./chunk-WLB7XVWW.mjs";
6
+ } from "./chunk-VWLAZOKW.mjs";
7
7
 
8
8
  // src/executors/size-limit/executor.ts
9
9
  import { joinPathFragments } from "@nx/devkit";
@@ -4,7 +4,7 @@
4
4
  var _chunkAX3RSZT7js = require('./chunk-AX3RSZT7.js');
5
5
 
6
6
 
7
- var _chunkEDMNYJEBjs = require('./chunk-EDMNYJEB.js');
7
+ var _chunkJYCGVSCYjs = require('./chunk-JYCGVSCY.js');
8
8
 
9
9
  // src/utils/package-helpers.ts
10
10
 
@@ -24,7 +24,7 @@ var getPackageInfo = (project) => {
24
24
  ) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))) {
25
25
  return {
26
26
  type: "Cargo.toml",
27
- content: _chunkEDMNYJEBjs.parseCargoToml.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))
27
+ content: _chunkJYCGVSCYjs.parseCargoToml.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))
28
28
  };
29
29
  } else if (_chunkAX3RSZT7js.isEqualProjectTag.call(void 0,
30
30
  project,
@@ -100,7 +100,7 @@ var typescript_build_executor_untyped_default = defineUntypedSchema({
100
100
  ]
101
101
  },
102
102
  $default: "esnext",
103
- $resolve: (val = "esnext") => val.toLowerCase()
103
+ $resolve: (val = "esnext") => typeof val === "string" ? val.toLowerCase() : val
104
104
  },
105
105
  format: {
106
106
  $schema: {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  withRunGenerator
3
- } from "./chunk-MLF7ZQBW.mjs";
3
+ } from "./chunk-7VBGCQH3.mjs";
4
4
  import {
5
5
  stormWorkspaceConfigSchema,
6
6
  writeInfo,
7
7
  writeSuccess,
8
8
  writeTrace
9
- } from "./chunk-WLB7XVWW.mjs";
9
+ } from "./chunk-VWLAZOKW.mjs";
10
10
  import {
11
11
  findWorkspaceRoot
12
12
  } from "./chunk-LSF4BHCI.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-F66XEAID.mjs";
5
5
  import {
6
6
  parseCargoToml
7
- } from "./chunk-R2WP5YDO.mjs";
7
+ } from "./chunk-ZI3GFOY5.mjs";
8
8
 
9
9
  // src/utils/package-helpers.ts
10
10
  import {
@@ -4,14 +4,14 @@
4
4
  var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
5
5
 
6
6
 
7
- var _chunkVUSG5IWMjs = require('./chunk-VUSG5IWM.js');
7
+ var _chunkA2XTQR6Njs = require('./chunk-A2XTQR6N.js');
8
8
 
9
9
  // src/executors/cargo-check/executor.ts
10
10
  async function cargoCheckExecutor(options, context) {
11
11
  const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "check", options, context);
12
12
  return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
13
13
  }
14
- var executor_default = _chunkVUSG5IWMjs.withRunExecutor.call(void 0,
14
+ var executor_default = _chunkA2XTQR6Njs.withRunExecutor.call(void 0,
15
15
  "Cargo - Check",
16
16
  cargoCheckExecutor,
17
17
  {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-FCRAGTW6.mjs";
3
+ } from "./chunk-7XEPEVIZ.mjs";
4
4
  import {
5
5
  writeInfo
6
- } from "./chunk-WLB7XVWW.mjs";
6
+ } from "./chunk-VWLAZOKW.mjs";
7
7
  import {
8
8
  joinPaths
9
9
  } from "./chunk-U7JFVMCK.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-6LP3KKXE.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-FCRAGTW6.mjs";
7
+ } from "./chunk-7XEPEVIZ.mjs";
8
8
 
9
9
  // src/executors/cargo-check/executor.ts
10
10
  async function cargoCheckExecutor(options, context) {
@@ -11,7 +11,8 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
14
+
15
+ var _chunkCSYOP22Pjs = require('./chunk-CSYOP22P.js');
15
16
 
16
17
 
17
18
  var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
@@ -67,7 +68,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
67
68
  let config = result.config;
68
69
  const configFile = result.configFile;
69
70
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
70
- _chunkBNERGX6Ijs.writeTrace.call(void 0,
71
+ _chunkCSYOP22Pjs.writeTrace.call(void 0,
71
72
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
72
73
  {
73
74
  logLevel: "all"
@@ -83,7 +84,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
83
84
  for (const result2 of results) {
84
85
  if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
85
86
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
86
- _chunkBNERGX6Ijs.writeTrace.call(void 0,
87
+ _chunkCSYOP22Pjs.writeTrace.call(void 0,
87
88
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
88
89
  {
89
90
  logLevel: "all"
@@ -149,6 +150,7 @@ var getConfigEnv = () => {
149
150
  docs: process.env[`${prefix}DOCS`] || void 0,
150
151
  licensing: process.env[`${prefix}LICENSING`] || void 0,
151
152
  contact: process.env[`${prefix}CONTACT`] || void 0,
153
+ support: process.env[`${prefix}SUPPORT`] || void 0,
152
154
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
153
155
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
154
156
  configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunk53DNHF7Bjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
@@ -184,13 +186,13 @@ var getConfigEnv = () => {
184
186
  },
185
187
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
186
188
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
187
- ) ? _chunkBNERGX6Ijs.getLogLevelLabel.call(void 0,
189
+ ) ? _chunkCSYOP22Pjs.getLogLevelLabel.call(void 0,
188
190
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
189
191
  ) : process.env[`${prefix}LOG_LEVEL`] : void 0,
190
192
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
191
193
  };
192
194
  const themeNames = Object.keys(process.env).filter(
193
- (envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkBNERGX6Ijs.COLOR_KEYS.every(
195
+ (envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkCSYOP22Pjs.COLOR_KEYS.every(
194
196
  (colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
195
197
  )
196
198
  );
@@ -201,16 +203,16 @@ var getConfigEnv = () => {
201
203
  },
202
204
  {}
203
205
  ) : getThemeColorConfigEnv(prefix);
204
- if (config.docs === _chunkBNERGX6Ijs.STORM_DEFAULT_DOCS) {
205
- if (config.homepage === _chunkBNERGX6Ijs.STORM_DEFAULT_HOMEPAGE) {
206
- config.docs = `${_chunkBNERGX6Ijs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
206
+ if (config.docs === _chunkCSYOP22Pjs.STORM_DEFAULT_DOCS) {
207
+ if (config.homepage === _chunkCSYOP22Pjs.STORM_DEFAULT_HOMEPAGE) {
208
+ config.docs = `${_chunkCSYOP22Pjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
207
209
  } else {
208
210
  config.docs = `${config.homepage}/docs`;
209
211
  }
210
212
  }
211
- if (config.licensing === _chunkBNERGX6Ijs.STORM_DEFAULT_LICENSING) {
212
- if (config.homepage === _chunkBNERGX6Ijs.STORM_DEFAULT_HOMEPAGE) {
213
- config.licensing = `${_chunkBNERGX6Ijs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
213
+ if (config.licensing === _chunkCSYOP22Pjs.STORM_DEFAULT_LICENSING) {
214
+ if (config.homepage === _chunkCSYOP22Pjs.STORM_DEFAULT_HOMEPAGE) {
215
+ config.licensing = `${_chunkCSYOP22Pjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
214
216
  } else {
215
217
  config.licensing = `${config.homepage}/docs`;
216
218
  }
@@ -367,6 +369,9 @@ var setConfigEnv = (config) => {
367
369
  if (config.contact) {
368
370
  process.env[`${prefix}CONTACT`] = config.contact;
369
371
  }
372
+ if (config.support) {
373
+ process.env[`${prefix}SUPPORT`] = config.support;
374
+ }
370
375
  if (config.timezone) {
371
376
  process.env[`${prefix}TIMEZONE`] = config.timezone;
372
377
  process.env.TZ = config.timezone;
@@ -479,9 +484,9 @@ var setConfigEnv = (config) => {
479
484
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
480
485
  process.env.LOG_LEVEL = String(config.logLevel);
481
486
  process.env.NX_VERBOSE_LOGGING = String(
482
- _chunkBNERGX6Ijs.getLogLevel.call(void 0, config.logLevel) >= _chunkBNERGX6Ijs.LogLevel.DEBUG ? true : false
487
+ _chunkCSYOP22Pjs.getLogLevel.call(void 0, config.logLevel) >= _chunkCSYOP22Pjs.LogLevel.DEBUG ? true : false
483
488
  );
484
- process.env.RUST_BACKTRACE = _chunkBNERGX6Ijs.getLogLevel.call(void 0, config.logLevel) >= _chunkBNERGX6Ijs.LogLevel.DEBUG ? "full" : "none";
489
+ process.env.RUST_BACKTRACE = _chunkCSYOP22Pjs.getLogLevel.call(void 0, config.logLevel) >= _chunkCSYOP22Pjs.LogLevel.DEBUG ? "full" : "none";
485
490
  }
486
491
  if (config.skipConfigLogging !== void 0) {
487
492
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
@@ -607,7 +612,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
607
612
  const configFile = await getConfigFile(_workspaceRoot);
608
613
  if (!configFile) {
609
614
  if (!skipLogs) {
610
- _chunkBNERGX6Ijs.writeWarning.call(void 0,
615
+ _chunkCSYOP22Pjs.writeWarning.call(void 0,
611
616
  "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
612
617
  { logLevel: "all" }
613
618
  );
@@ -616,9 +621,11 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
616
621
  return void 0;
617
622
  }
618
623
  }
619
- const defaultConfig = await _chunkBNERGX6Ijs.getDefaultConfig.call(void 0, _workspaceRoot);
620
- result = await _chunkBNERGX6Ijs.stormWorkspaceConfigSchema.parseAsync(
621
- _defu2.default.call(void 0, configEnv, configFile, defaultConfig)
624
+ const defaultConfig = await _chunkCSYOP22Pjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
625
+ result = _chunkCSYOP22Pjs.applyDefaultConfig.call(void 0,
626
+ await _chunkCSYOP22Pjs.stormWorkspaceConfigSchema.parseAsync(
627
+ _defu2.default.call(void 0, configEnv, configFile, defaultConfig)
628
+ )
622
629
  );
623
630
  result.workspaceRoot ??= _workspaceRoot;
624
631
  } else {
@@ -658,9 +665,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
658
665
  );
659
666
  setConfigEnv(config);
660
667
  if (!skipLogs && !config.skipConfigLogging) {
661
- _chunkBNERGX6Ijs.writeTrace.call(void 0,
668
+ _chunkCSYOP22Pjs.writeTrace.call(void 0,
662
669
  `\u2699\uFE0F Using Storm Workspace configuration:
663
- ${_chunkBNERGX6Ijs.formatLogMessage.call(void 0, config)}`,
670
+ ${_chunkCSYOP22Pjs.formatLogMessage.call(void 0, config)}`,
664
671
  config
665
672
  );
666
673
  }
@@ -7,7 +7,7 @@ var _chunkU3YH5M4Ljs = require('./chunk-U3YH5M4L.js');
7
7
  var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
8
8
 
9
9
 
10
- var _chunkQWRE2UFSjs = require('./chunk-QWRE2UFS.js');
10
+ var _chunk4PBELSTLjs = require('./chunk-4PBELSTL.js');
11
11
 
12
12
 
13
13
  var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
@@ -59,7 +59,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
59
59
  await _devkit.formatFiles.call(void 0, tree);
60
60
  return null;
61
61
  }
62
- var generator_default = _chunkQWRE2UFSjs.withRunGenerator.call(void 0,
62
+ var generator_default = _chunk4PBELSTLjs.withRunGenerator.call(void 0,
63
63
  "TypeScript Library Creator (NodeJs Platform)",
64
64
  nodeLibraryGeneratorFn,
65
65
  {
@@ -9,10 +9,10 @@ import {
9
9
  import z from "zod";
10
10
 
11
11
  // ../config/src/constants.ts
12
- var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
12
+ var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
13
13
  var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
14
14
  var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
15
- var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
15
+ var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
16
16
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
17
17
  var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
18
18
  var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
@@ -185,10 +185,13 @@ var stormWorkspaceConfigSchema = z.object({
185
185
  organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
186
186
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
187
187
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
188
- homepage: z.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
189
- docs: z.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
190
- licensing: z.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
191
- contact: z.string().trim().url().default(STORM_DEFAULT_CONTACT).describe("The base contact site for the workspace"),
188
+ homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
189
+ docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
190
+ licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
191
+ contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
192
+ support: z.string().trim().url().optional().describe(
193
+ "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
194
+ ),
192
195
  branch: z.string().trim().default("main").describe("The branch of the workspace"),
193
196
  preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
194
197
  owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
@@ -311,9 +314,10 @@ var DEFAULT_COLOR_CONFIG = {
311
314
  negative: "#dc2626"
312
315
  }
313
316
  };
314
- var getDefaultConfig = async (root) => {
317
+ async function getPackageJsonConfig(root) {
315
318
  let license = STORM_DEFAULT_LICENSE;
316
- let homepage = STORM_DEFAULT_HOMEPAGE;
319
+ let homepage = void 0;
320
+ let support = void 0;
317
321
  let name = void 0;
318
322
  let namespace = void 0;
319
323
  let repository = void 0;
@@ -344,6 +348,13 @@ var getDefaultConfig = async (root) => {
344
348
  if (packageJson.homepage) {
345
349
  homepage = packageJson.homepage;
346
350
  }
351
+ if (packageJson.bugs) {
352
+ if (typeof packageJson.bugs === "string") {
353
+ support = packageJson.bugs;
354
+ } else if (packageJson.bugs.url) {
355
+ support = packageJson.bugs.url;
356
+ }
357
+ }
347
358
  }
348
359
  }
349
360
  return {
@@ -353,13 +364,38 @@ var getDefaultConfig = async (root) => {
353
364
  repository,
354
365
  license,
355
366
  homepage,
356
- docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
357
- licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
358
- error: {
359
- url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
360
- }
367
+ support
361
368
  };
362
- };
369
+ }
370
+ function applyDefaultConfig(config) {
371
+ if (!config.support && config.contact) {
372
+ config.support = config.contact;
373
+ }
374
+ if (!config.contact && config.support) {
375
+ config.contact = config.support;
376
+ }
377
+ if (config.homepage) {
378
+ if (!config.docs) {
379
+ config.docs = `${config.homepage}/docs`;
380
+ }
381
+ if (!config.license) {
382
+ config.license = `${config.homepage}/license`;
383
+ }
384
+ if (!config.support) {
385
+ config.support = `${config.homepage}/support`;
386
+ }
387
+ if (!config.contact) {
388
+ config.contact = `${config.homepage}/contact`;
389
+ }
390
+ if (!config.error?.codesFile || !config?.error?.url) {
391
+ config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
392
+ if (config.homepage) {
393
+ config.error.url ??= `${config.homepage}/errors`;
394
+ }
395
+ }
396
+ }
397
+ return config;
398
+ }
363
399
 
364
400
  // ../config-tools/src/logger/chalk.ts
365
401
  import chalk from "chalk";
@@ -601,7 +637,8 @@ export {
601
637
  STORM_DEFAULT_LICENSING,
602
638
  stormWorkspaceConfigSchema,
603
639
  COLOR_KEYS,
604
- getDefaultConfig,
640
+ getPackageJsonConfig,
641
+ applyDefaultConfig,
605
642
  getLogLevel,
606
643
  getLogLevelLabel,
607
644
  writeFatal,
@@ -4,7 +4,7 @@
4
4
  var _chunkU3YH5M4Ljs = require('./chunk-U3YH5M4L.js');
5
5
 
6
6
 
7
- var _chunkQWRE2UFSjs = require('./chunk-QWRE2UFS.js');
7
+ var _chunk4PBELSTLjs = require('./chunk-4PBELSTL.js');
8
8
 
9
9
 
10
10
  var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
@@ -54,7 +54,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
54
54
  await _devkit.formatFiles.call(void 0, tree);
55
55
  return null;
56
56
  }
57
- var generator_default = _chunkQWRE2UFSjs.withRunGenerator.call(void 0,
57
+ var generator_default = _chunk4PBELSTLjs.withRunGenerator.call(void 0,
58
58
  "TypeScript Library Creator (Neutral Platform)",
59
59
  neutralLibraryGeneratorFn,
60
60
  {
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-EK75QNMS.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-MLF7ZQBW.mjs";
7
+ } from "./chunk-7VBGCQH3.mjs";
8
8
  import {
9
9
  __dirname
10
- } from "./chunk-75RE5W2I.mjs";
10
+ } from "./chunk-AYJTBMXU.mjs";
11
11
 
12
12
  // src/generators/preset/generator.ts
13
13
  import {