@storm-software/workspace-tools 1.273.7 → 1.273.10

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 (211) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -1
  3. package/config/base.json +1 -0
  4. package/dist/{chunk-Y7JE33K2.js → chunk-222WOWGJ.js} +2 -2
  5. package/dist/{chunk-ON5324R7.js → chunk-2443J2PM.js} +2 -2
  6. package/dist/{chunk-A6H2SCIM.mjs → chunk-2PZQYXN7.mjs} +25 -22
  7. package/dist/{chunk-3G3HNZ22.js → chunk-2XAKOAWZ.js} +2 -2
  8. package/dist/{chunk-ZASRR3NW.mjs → chunk-33SPJY5N.mjs} +1 -1
  9. package/dist/{chunk-UQJ4W5YX.mjs → chunk-4F35W2XF.mjs} +2 -2
  10. package/dist/{chunk-QWRE2UFS.js → chunk-4PBELSTL.js} +16 -16
  11. package/dist/{chunk-AAQQSGPY.mjs → chunk-5E6PGJFN.mjs} +1 -1
  12. package/dist/{chunk-TSP73RLP.js → chunk-6X3ZLBG2.js} +2 -2
  13. package/dist/{chunk-MLF7ZQBW.mjs → chunk-7VBGCQH3.mjs} +2 -2
  14. package/dist/{chunk-FCRAGTW6.mjs → chunk-7XEPEVIZ.mjs} +2 -2
  15. package/dist/{chunk-VUSG5IWM.js → chunk-A2XTQR6N.js} +21 -21
  16. package/dist/{chunk-DYDIVZRW.js → chunk-AALD7ZEV.js} +5 -5
  17. package/dist/{chunk-75RE5W2I.mjs → chunk-AYJTBMXU.mjs} +1 -1
  18. package/dist/{chunk-5XYM22SB.mjs → chunk-BAZRQFS5.mjs} +3 -3
  19. package/dist/{chunk-SMRFUKN7.js → chunk-BVE3BYKP.js} +2 -2
  20. package/dist/{chunk-N63KWRTH.mjs → chunk-C4XOCICR.mjs} +12 -5
  21. package/dist/{chunk-BNERGX6I.js → chunk-CSYOP22P.js} +55 -18
  22. package/dist/{chunk-C22PXFKF.js → chunk-CTWNTX3J.js} +5 -5
  23. package/dist/{chunk-EGPDUUWX.mjs → chunk-D6P2STPQ.mjs} +2 -2
  24. package/dist/{chunk-AW3I76E2.mjs → chunk-EEHAAR36.mjs} +1 -1
  25. package/dist/{chunk-5MOK3MSQ.mjs → chunk-EO5BEDAY.mjs} +1 -1
  26. package/dist/{chunk-2F5TLK3C.js → chunk-F6TLFN34.js} +20 -20
  27. package/dist/{chunk-MSCI7LQ2.js → chunk-FG3RQ2OV.js} +4 -4
  28. package/dist/{chunk-S2JDNKK6.js → chunk-FOCRXFSZ.js} +9 -9
  29. package/dist/{chunk-2PZOGRBP.mjs → chunk-HSBG3ZLM.mjs} +4 -4
  30. package/dist/{chunk-CUMWQELT.js → chunk-J43B54ZW.js} +32 -29
  31. package/dist/{chunk-KF6AKLGE.js → chunk-JMRTB4ST.js} +2 -2
  32. package/dist/{chunk-3QD2U6SS.js → chunk-JQE6CQLQ.js} +29 -29
  33. package/dist/{chunk-EDMNYJEB.js → chunk-JYCGVSCY.js} +2 -2
  34. package/dist/{chunk-DMJKKHEC.mjs → chunk-K3NTMKCM.mjs} +2 -2
  35. package/dist/{chunk-6L7JKV7E.mjs → chunk-M2NVA6UP.mjs} +2 -2
  36. package/dist/{chunk-EQ3664ZD.mjs → chunk-MAJJATNY.mjs} +2 -2
  37. package/dist/{chunk-7Q2NOIDR.js → chunk-MBEN52II.js} +2 -2
  38. package/dist/{chunk-DJYOYWNY.mjs → chunk-NDUYSOQT.mjs} +2 -2
  39. package/dist/{chunk-5XTW4576.mjs → chunk-NTDTTTFS.mjs} +1 -1
  40. package/dist/{chunk-M75P2EGZ.js → chunk-QBVFFRGM.js} +2 -2
  41. package/dist/{chunk-Y5UH66KY.mjs → chunk-R4DNKY7G.mjs} +2 -2
  42. package/dist/{chunk-M6IYTP2T.mjs → chunk-TITVB67A.mjs} +1 -1
  43. package/dist/{chunk-2CZBN33P.js → chunk-TP4TN5V3.js} +26 -19
  44. package/dist/{chunk-TVH6TDED.js → chunk-VF5EUZOL.js} +2 -2
  45. package/dist/{chunk-WLB7XVWW.mjs → chunk-VWLAZOKW.mjs} +52 -15
  46. package/dist/{chunk-MNQIKYEB.js → chunk-WJDCZZ4L.js} +2 -2
  47. package/dist/{chunk-6QQQU5ES.mjs → chunk-XMLAOOM7.mjs} +2 -2
  48. package/dist/{chunk-W2RLHQ24.mjs → chunk-YRKPABVG.mjs} +1 -1
  49. package/dist/{chunk-BNV64O5L.js → chunk-ZCP6KEZ3.js} +2 -2
  50. package/dist/{chunk-R2WP5YDO.mjs → chunk-ZI3GFOY5.mjs} +1 -1
  51. package/dist/{executor-BB2ETtRv.d.mts → executor--mlxAMR_.d.mts} +1 -1
  52. package/dist/{executor-B64kh1oi.d.mts → executor-BAnuLY62.d.mts} +1 -1
  53. package/dist/{executor-iAEPRwdw.d.mts → executor-BGlIYFTt.d.mts} +1 -1
  54. package/dist/{executor-BoDeD560.d.ts → executor-BS6HK_i-.d.ts} +1 -1
  55. package/dist/{executor-DweIL90b.d.ts → executor-CmMXt0ZL.d.ts} +1 -1
  56. package/dist/{executor-DQYta-Bm.d.mts → executor-D-oX5X59.d.mts} +1 -1
  57. package/dist/{executor-DGI7S1K6.d.ts → executor-VvboSWN6.d.ts} +1 -1
  58. package/dist/{executor-DJnjBsHi.d.ts → executor-YXD16-Jl.d.ts} +1 -1
  59. package/dist/executors.d.mts +5 -5
  60. package/dist/executors.d.ts +5 -5
  61. package/dist/executors.js +16 -16
  62. package/dist/executors.mjs +16 -16
  63. package/dist/{generator-DkZ7aOcA.d.ts → generator-B0Jsp2ju.d.ts} +2 -2
  64. package/dist/{generator-Dgh8EO8f.d.mts → generator-B0UkDTyO.d.mts} +2 -2
  65. package/dist/{generator-Di06Xw7z.d.mts → generator-B4_Po-mX.d.mts} +1 -1
  66. package/dist/{generator-Bjo526Ot.d.ts → generator-BkkCO0DX.d.ts} +1 -1
  67. package/dist/{generator-DK9vOp3f.d.mts → generator-CjXWOnnK.d.mts} +2 -2
  68. package/dist/{generator-BHwTuGoc.d.ts → generator-CsmV6snI.d.ts} +2 -2
  69. package/dist/{generator-PTy4kTc1.d.ts → generator-CuNtuEDC.d.ts} +2 -2
  70. package/dist/{generator-BqKMXZ9U.d.mts → generator-DP4Yjbo_.d.mts} +2 -2
  71. package/dist/{generator-qr528Z40.d.ts → generator-DVfwgNrx.d.ts} +2 -2
  72. package/dist/{generator-DMoR2v0k.d.mts → generator-DvREvLTF.d.mts} +2 -2
  73. package/dist/{generator-iNjBgmgt.d.mts → generator-UHjIhmN1.d.mts} +1 -1
  74. package/dist/{generator-DRa-qwNt.d.ts → generator-lfLl3DXf.d.ts} +1 -1
  75. package/dist/generators.d.mts +8 -8
  76. package/dist/generators.d.ts +8 -8
  77. package/dist/generators.js +12 -12
  78. package/dist/generators.mjs +13 -13
  79. package/dist/index.d.mts +12 -12
  80. package/dist/index.d.ts +12 -12
  81. package/dist/index.js +25 -25
  82. package/dist/index.mjs +26 -26
  83. package/dist/src/base/base-executor.d.mts +2 -2
  84. package/dist/src/base/base-executor.d.ts +2 -2
  85. package/dist/src/base/base-executor.js +4 -4
  86. package/dist/src/base/base-executor.mjs +4 -4
  87. package/dist/src/base/base-executor.untyped.mjs +1 -1
  88. package/dist/src/base/base-generator.d.mts +2 -2
  89. package/dist/src/base/base-generator.d.ts +2 -2
  90. package/dist/src/base/base-generator.js +4 -4
  91. package/dist/src/base/base-generator.mjs +4 -4
  92. package/dist/src/base/base-generator.untyped.mjs +1 -1
  93. package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
  94. package/dist/src/base/index.d.mts +2 -2
  95. package/dist/src/base/index.d.ts +2 -2
  96. package/dist/src/base/index.js +5 -5
  97. package/dist/src/base/index.mjs +5 -5
  98. package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
  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.mjs +1 -1
  128. package/dist/src/executors/npm-publish/executor.js +2 -2
  129. package/dist/src/executors/npm-publish/executor.mjs +2 -2
  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.mjs +1 -1
  146. package/dist/src/generators/browser-library/generator.d.mts +3 -3
  147. package/dist/src/generators/browser-library/generator.d.ts +3 -3
  148. package/dist/src/generators/browser-library/generator.js +5 -5
  149. package/dist/src/generators/browser-library/generator.mjs +5 -5
  150. package/dist/src/generators/browser-library/untyped.mjs +1 -1
  151. package/dist/src/generators/config-schema/generator.d.mts +3 -3
  152. package/dist/src/generators/config-schema/generator.d.ts +3 -3
  153. package/dist/src/generators/config-schema/generator.js +5 -5
  154. package/dist/src/generators/config-schema/generator.mjs +5 -5
  155. package/dist/src/generators/config-schema/untyped.mjs +1 -1
  156. package/dist/src/generators/init/init.mjs +1 -1
  157. package/dist/src/generators/init/untyped.mjs +1 -1
  158. package/dist/src/generators/neutral-library/generator.d.mts +3 -3
  159. package/dist/src/generators/neutral-library/generator.d.ts +3 -3
  160. package/dist/src/generators/neutral-library/generator.js +5 -5
  161. package/dist/src/generators/neutral-library/generator.mjs +5 -5
  162. package/dist/src/generators/neutral-library/untyped.mjs +1 -1
  163. package/dist/src/generators/node-library/generator.d.mts +3 -3
  164. package/dist/src/generators/node-library/generator.d.ts +3 -3
  165. package/dist/src/generators/node-library/generator.js +5 -5
  166. package/dist/src/generators/node-library/generator.mjs +5 -5
  167. package/dist/src/generators/node-library/untyped.mjs +1 -1
  168. package/dist/src/generators/preset/generator.d.mts +3 -3
  169. package/dist/src/generators/preset/generator.d.ts +3 -3
  170. package/dist/src/generators/preset/generator.js +5 -5
  171. package/dist/src/generators/preset/generator.mjs +5 -5
  172. package/dist/src/generators/preset/untyped.mjs +1 -1
  173. package/dist/src/generators/release-version/generator.d.mts +2 -2
  174. package/dist/src/generators/release-version/generator.d.ts +2 -2
  175. package/dist/src/generators/release-version/generator.js +5 -5
  176. package/dist/src/generators/release-version/generator.mjs +5 -5
  177. package/dist/src/generators/release-version/untyped.mjs +1 -1
  178. package/dist/src/plugins/rust/cargo-toml.mjs +1 -1
  179. package/dist/src/plugins/rust/index.mjs +1 -1
  180. package/dist/src/plugins/typescript/index.mjs +1 -1
  181. package/dist/src/plugins/typescript/project-config.mjs +1 -1
  182. package/dist/src/plugins/typescript/tsup.mjs +1 -1
  183. package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
  184. package/dist/src/types.d.mts +2 -2
  185. package/dist/src/types.d.ts +2 -2
  186. package/dist/src/types.mjs +1 -1
  187. package/dist/src/utils/apply-workspace-tokens.d.mts +1 -1
  188. package/dist/src/utils/apply-workspace-tokens.d.ts +1 -1
  189. package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
  190. package/dist/src/utils/cargo.mjs +1 -1
  191. package/dist/src/utils/create-cli-options.mjs +1 -1
  192. package/dist/src/utils/get-project-configurations.mjs +1 -1
  193. package/dist/src/utils/index.d.mts +2 -2
  194. package/dist/src/utils/index.d.ts +2 -2
  195. package/dist/src/utils/index.js +4 -4
  196. package/dist/src/utils/index.mjs +4 -4
  197. package/dist/src/utils/lock-file.mjs +1 -1
  198. package/dist/src/utils/package-helpers.js +4 -4
  199. package/dist/src/utils/package-helpers.mjs +4 -4
  200. package/dist/src/utils/plugin-helpers.mjs +1 -1
  201. package/dist/src/utils/pnpm-deps-update.mjs +1 -1
  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/src/utils/project-tags.mjs +1 -1
  205. package/dist/src/utils/typia-transform.mjs +1 -1
  206. package/dist/src/utils/versions.mjs +1 -1
  207. package/dist/{types-TCjBSz49.d.mts → types-C3bmMIQz.d.mts} +11 -8
  208. package/dist/{types-TCjBSz49.d.ts → types-C3bmMIQz.d.ts} +11 -8
  209. package/dist/{types-DrIOVAV9.d.ts → types-U3fABbAy.d.ts} +1 -1
  210. package/dist/{types-J0DsoZaH.d.mts → types-jbWdA7g_.d.mts} +1 -1
  211. package/package.json +4 -4
@@ -9,10 +9,10 @@ var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
9
9
  var _zod = require('zod'); var _zod2 = _interopRequireDefault(_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 = _zod2.default.object({
185
185
  organization: _zod2.default.string().trim().default("storm-software").describe("The organization of the workspace"),
186
186
  repository: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
187
187
  license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
188
- homepage: _zod2.default.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
189
- docs: _zod2.default.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
190
- licensing: _zod2.default.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
191
- contact: _zod2.default.string().trim().url().default(STORM_DEFAULT_CONTACT).describe("The base contact site for the workspace"),
188
+ homepage: _zod2.default.string().trim().url().optional().describe("The homepage of the workspace"),
189
+ docs: _zod2.default.string().trim().url().optional().describe("The documentation site for the workspace"),
190
+ licensing: _zod2.default.string().trim().url().optional().describe("The licensing site for the workspace"),
191
+ contact: _zod2.default.string().trim().url().optional().describe("The contact site for the workspace"),
192
+ support: _zod2.default.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: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
193
196
  preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
194
197
  owner: _zod2.default.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 (!_optionalChain([config, 'access', _2 => _2.error, 'optionalAccess', _3 => _3.codesFile]) || !_optionalChain([config, 'optionalAccess', _4 => _4.error, 'optionalAccess', _5 => _5.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
  var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
@@ -384,7 +420,7 @@ var chalkDefault = {
384
420
  };
385
421
  var getChalk = () => {
386
422
  let _chalk = _chalk3.default;
387
- if (!_optionalChain([_chalk, 'optionalAccess', _2 => _2.hex]) || !_optionalChain([_chalk, 'optionalAccess', _3 => _3.bold, 'optionalAccess', _4 => _4.hex]) || !_optionalChain([_chalk, 'optionalAccess', _5 => _5.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _6 => _6.whiteBright])) {
423
+ if (!_optionalChain([_chalk, 'optionalAccess', _6 => _6.hex]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.bold, 'optionalAccess', _8 => _8.hex]) || !_optionalChain([_chalk, 'optionalAccess', _9 => _9.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _10 => _10.whiteBright])) {
388
424
  _chalk = chalkDefault;
389
425
  }
390
426
  return _chalk;
@@ -472,7 +508,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
472
508
 
473
509
  // ../config-tools/src/logger/console.ts
474
510
  var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
475
- const colors = !_optionalChain([config, 'access', _7 => _7.colors, 'optionalAccess', _8 => _8.dark]) && !_optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10["base"]]) && !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20["base"]]) ? _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"]]) : DEFAULT_COLOR_CONFIG;
511
+ const colors = !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12.dark]) && !_optionalChain([config, 'access', _13 => _13.colors, 'optionalAccess', _14 => _14["base"]]) && !_optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16["base"], 'optionalAccess', _17 => _17.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24["base"]]) ? _optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26["base"]]) : DEFAULT_COLOR_CONFIG;
476
512
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
477
513
  if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
478
514
  return (_) => {
@@ -588,7 +624,7 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
588
624
  };
589
625
  var _isFunction = (value) => {
590
626
  try {
591
- return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _23 => _23.constructor]) && _optionalChain([value, 'optionalAccess', _24 => _24.call]) && _optionalChain([value, 'optionalAccess', _25 => _25.apply]));
627
+ return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _27 => _27.constructor]) && _optionalChain([value, 'optionalAccess', _28 => _28.call]) && _optionalChain([value, 'optionalAccess', _29 => _29.apply]));
592
628
  } catch (e) {
593
629
  return false;
594
630
  }
@@ -613,4 +649,5 @@ var _isFunction = (value) => {
613
649
 
614
650
 
615
651
 
616
- exports.LogLevel = LogLevel; exports.STORM_DEFAULT_DOCS = STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSING = STORM_DEFAULT_LICENSING; exports.stormWorkspaceConfigSchema = stormWorkspaceConfigSchema; exports.COLOR_KEYS = COLOR_KEYS; exports.getDefaultConfig = getDefaultConfig; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage;
652
+
653
+ exports.LogLevel = LogLevel; exports.STORM_DEFAULT_DOCS = STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSING = STORM_DEFAULT_LICENSING; exports.stormWorkspaceConfigSchema = stormWorkspaceConfigSchema; exports.COLOR_KEYS = COLOR_KEYS; exports.getPackageJsonConfig = getPackageJsonConfig; exports.applyDefaultConfig = applyDefaultConfig; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage;
@@ -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 _chunkVUSG5IWMjs = require('./chunk-VUSG5IWM.js');
3
+ var _chunkA2XTQR6Njs = require('./chunk-A2XTQR6N.js');
4
4
 
5
5
 
6
- var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
6
+ var _chunkCSYOP22Pjs = require('./chunk-CSYOP22P.js');
7
7
 
8
8
  // src/executors/size-limit/executor.ts
9
9
  var _devkit = require('@nx/devkit');
@@ -17,14 +17,14 @@ 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
- _chunkBNERGX6Ijs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
20
+ _chunkCSYOP22Pjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
21
21
  _sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
22
22
  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,
23
23
  _nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")),
24
24
  "src"
25
25
  )))
26
26
  }).then((result) => {
27
- _chunkBNERGX6Ijs.writeInfo.call(void 0,
27
+ _chunkCSYOP22Pjs.writeInfo.call(void 0,
28
28
  `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
29
29
  config
30
30
  );
@@ -33,7 +33,7 @@ async function sizeLimitExecutorFn(options, context, config) {
33
33
  success: true
34
34
  };
35
35
  }
36
- var executor_default = _chunkVUSG5IWMjs.withRunExecutor.call(void 0,
36
+ var executor_default = _chunkA2XTQR6Njs.withRunExecutor.call(void 0,
37
37
  "Size-Limit Performance Test Executor",
38
38
  sizeLimitExecutorFn,
39
39
  {
@@ -7,13 +7,13 @@ import {
7
7
  } from "./chunk-EK75QNMS.mjs";
8
8
  import {
9
9
  withRunGenerator
10
- } from "./chunk-MLF7ZQBW.mjs";
10
+ } from "./chunk-7VBGCQH3.mjs";
11
11
  import {
12
12
  joinPaths
13
13
  } from "./chunk-U7JFVMCK.mjs";
14
14
  import {
15
15
  __dirname
16
- } from "./chunk-75RE5W2I.mjs";
16
+ } from "./chunk-AYJTBMXU.mjs";
17
17
 
18
18
  // src/generators/node-library/generator.ts
19
19
  import {
@@ -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-doc/executor.ts
10
10
  async function cargoDocExecutor(options, context) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseCargoToml
3
- } from "./chunk-R2WP5YDO.mjs";
3
+ } from "./chunk-ZI3GFOY5.mjs";
4
4
 
5
5
  // src/executors/cargo-publish/executor.ts
6
6
  import { joinPathFragments } from "@nx/devkit";
@@ -3,10 +3,10 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkEDMNYJEBjs = require('./chunk-EDMNYJEB.js');
6
+ var _chunkJYCGVSCYjs = require('./chunk-JYCGVSCY.js');
7
7
 
8
8
 
9
- var _chunk2CZBN33Pjs = require('./chunk-2CZBN33P.js');
9
+ var _chunkTP4TN5V3js = require('./chunk-TP4TN5V3.js');
10
10
 
11
11
 
12
12
 
@@ -15,7 +15,7 @@ var _chunk2CZBN33Pjs = require('./chunk-2CZBN33P.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
18
+ var _chunkCSYOP22Pjs = require('./chunk-CSYOP22P.js');
19
19
 
20
20
 
21
21
  var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
@@ -255,19 +255,19 @@ var _versionlegacy = require('nx/src/command-line/release/version-legacy');
255
255
  var _utils = require('nx/src/tasks-runner/utils');
256
256
  var _semver3 = require('semver');
257
257
  async function releaseVersionGeneratorFn(tree, options, config) {
258
- _chunkBNERGX6Ijs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
258
+ _chunkCSYOP22Pjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
259
259
 
260
260
  `, config);
261
- const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, "Storm Release Version generator");
261
+ const stopwatch = _chunkCSYOP22Pjs.getStopwatch.call(void 0, "Storm Release Version generator");
262
262
  try {
263
263
  const workspaceRoot = _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
264
- _chunkBNERGX6Ijs.writeDebug.call(void 0,
264
+ _chunkCSYOP22Pjs.writeDebug.call(void 0,
265
265
  `Loading the Storm Config from environment variables and storm.config.js file...
266
266
  - workspaceRoot: ${workspaceRoot}`,
267
267
  config
268
268
  );
269
- config = await _chunk2CZBN33Pjs.getConfig.call(void 0, workspaceRoot);
270
- _chunkBNERGX6Ijs.writeTrace.call(void 0,
269
+ config = await _chunkTP4TN5V3js.getConfig.call(void 0, workspaceRoot);
270
+ _chunkCSYOP22Pjs.writeTrace.call(void 0,
271
271
  `Generator schema options \u2699\uFE0F
272
272
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).filter(
273
273
  (key) => ![
@@ -348,9 +348,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
348
348
  tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath
349
349
  );
350
350
  const log = (msg) => {
351
- _chunkBNERGX6Ijs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
351
+ _chunkCSYOP22Pjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
352
352
  };
353
- _chunkBNERGX6Ijs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
353
+ _chunkCSYOP22Pjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
354
354
  let packageName;
355
355
  let currentVersionFromDisk;
356
356
  if (tree.exists(packageJsonPath)) {
@@ -361,7 +361,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
361
361
  packageName = projectPackageJson.name;
362
362
  currentVersionFromDisk = projectPackageJson.version;
363
363
  } else if (tree.exists(cargoTomlPath)) {
364
- const cargoToml = _chunkEDMNYJEBjs.parseCargoToml.call(void 0,
364
+ const cargoToml = _chunkJYCGVSCYjs.parseCargoToml.call(void 0,
365
365
  _optionalChain([tree, 'access', _10 => _10.read, 'call', _11 => _11(cargoTomlPath), 'optionalAccess', _12 => _12.toString, 'call', _13 => _13("utf-8")])
366
366
  );
367
367
  log(
@@ -632,12 +632,12 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
632
632
  version: newVersion
633
633
  });
634
634
  } else if (tree.exists(cargoTomlPath)) {
635
- const cargoToml = _chunkEDMNYJEBjs.parseCargoToml.call(void 0,
635
+ const cargoToml = _chunkJYCGVSCYjs.parseCargoToml.call(void 0,
636
636
  _optionalChain([tree, 'access', _23 => _23.read, 'call', _24 => _24(cargoTomlPath), 'optionalAccess', _25 => _25.toString, 'call', _26 => _26("utf-8")])
637
637
  );
638
638
  cargoToml.package ??= {};
639
639
  cargoToml.package.version = newVersion;
640
- tree.write(cargoTomlPath, _chunkEDMNYJEBjs.stringifyCargoToml.call(void 0, cargoToml));
640
+ tree.write(cargoTomlPath, _chunkJYCGVSCYjs.stringifyCargoToml.call(void 0, cargoToml));
641
641
  }
642
642
  log(
643
643
  `\u270D\uFE0F New version ${newVersion} written to ${workspaceRelativePackagePath}`
@@ -685,7 +685,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
685
685
  return json;
686
686
  });
687
687
  } else if (tree.exists(dependentCargoTomlPath)) {
688
- const dependentPkg = _chunkEDMNYJEBjs.parseCargoTomlWithTree.call(void 0,
688
+ const dependentPkg = _chunkJYCGVSCYjs.parseCargoTomlWithTree.call(void 0,
689
689
  tree,
690
690
  dependentPackageRoot,
691
691
  dependentProject.source
@@ -727,18 +727,18 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
727
727
  dependentPackageRoot,
728
728
  "Cargo.toml"
729
729
  );
730
- _chunkEDMNYJEBjs.modifyCargoTable.call(void 0,
730
+ _chunkJYCGVSCYjs.modifyCargoTable.call(void 0,
731
731
  dependentPkg,
732
732
  dependentProject.dependencyCollection,
733
733
  dependentProject.target,
734
734
  updatedDependencyData
735
735
  );
736
- tree.write(cargoTomlToUpdate, _chunkEDMNYJEBjs.stringifyCargoToml.call(void 0, dependentPkg));
736
+ tree.write(cargoTomlToUpdate, _chunkJYCGVSCYjs.stringifyCargoToml.call(void 0, dependentPkg));
737
737
  }
738
738
  }
739
739
  }
740
740
  await _devkit.formatFiles.call(void 0, tree);
741
- _chunkBNERGX6Ijs.writeSuccess.call(void 0,
741
+ _chunkCSYOP22Pjs.writeSuccess.call(void 0,
742
742
  `Completed running the Storm Release Version generator!
743
743
  `,
744
744
  config
@@ -777,11 +777,11 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
777
777
  }
778
778
  };
779
779
  } catch (error) {
780
- _chunkBNERGX6Ijs.writeFatal.call(void 0,
780
+ _chunkCSYOP22Pjs.writeFatal.call(void 0,
781
781
  "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate",
782
782
  config
783
783
  );
784
- _chunkBNERGX6Ijs.writeError.call(void 0,
784
+ _chunkCSYOP22Pjs.writeError.call(void 0,
785
785
  `An exception was thrown in the Storm Release Version generator's process
786
786
  - Details: ${error.message}
787
787
  - Stacktrace: ${error.stack}`,
@@ -880,7 +880,7 @@ function resolveLocalPackageCargoDependencies(tree, projectGraph, filteredProjec
880
880
  `The project "${dep.target}" does not have a packageRoot available.`
881
881
  );
882
882
  }
883
- const cargoToml = _chunkEDMNYJEBjs.parseCargoTomlWithTree.call(void 0,
883
+ const cargoToml = _chunkJYCGVSCYjs.parseCargoTomlWithTree.call(void 0,
884
884
  tree,
885
885
  resolvePackageRoot(projectNode),
886
886
  projectNode.name
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkVUSG5IWMjs = require('./chunk-VUSG5IWM.js');
3
+ var _chunkA2XTQR6Njs = require('./chunk-A2XTQR6N.js');
4
4
 
5
5
 
6
- var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
6
+ var _chunkCSYOP22Pjs = require('./chunk-CSYOP22P.js');
7
7
 
8
8
 
9
9
  var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
@@ -12,7 +12,7 @@ var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
12
12
  var _defu = require('defu');
13
13
  var _jiti = require('jiti');
14
14
  async function unbuildExecutorFn(options, context, config) {
15
- _chunkBNERGX6Ijs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
15
+ _chunkCSYOP22Pjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
16
16
  if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
17
17
  throw new Error(
18
18
  "The Build process failed because the context is not valid. Please run this command from a workspace root directory."
@@ -80,7 +80,7 @@ async function unbuildExecutorFn(options, context, config) {
80
80
  success: true
81
81
  };
82
82
  }
83
- var executor_default = _chunkVUSG5IWMjs.withRunExecutor.call(void 0,
83
+ var executor_default = _chunkA2XTQR6Njs.withRunExecutor.call(void 0,
84
84
  "TypeScript Unbuild build",
85
85
  unbuildExecutorFn,
86
86
  {
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkQWRE2UFSjs = require('./chunk-QWRE2UFS.js');
3
+ var _chunk4PBELSTLjs = require('./chunk-4PBELSTL.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
9
+ var _chunkCSYOP22Pjs = require('./chunk-CSYOP22P.js');
10
10
 
11
11
 
12
12
  var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
@@ -15,29 +15,29 @@ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
15
15
  var _devkit = require('@nx/devkit');
16
16
  var _zodtojsonschema = require('zod-to-json-schema');
17
17
  async function configSchemaGeneratorFn(tree, options, config) {
18
- _chunkBNERGX6Ijs.writeInfo.call(void 0,
18
+ _chunkCSYOP22Pjs.writeInfo.call(void 0,
19
19
  "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
20
20
  config
21
21
  );
22
- _chunkBNERGX6Ijs.writeTrace.call(void 0,
22
+ _chunkCSYOP22Pjs.writeTrace.call(void 0,
23
23
  `Determining the Storm Workspace Configuration JSON Schema...`,
24
24
  config
25
25
  );
26
- const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkBNERGX6Ijs.stormWorkspaceConfigSchema, {
26
+ const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkCSYOP22Pjs.stormWorkspaceConfigSchema, {
27
27
  name: "StormWorkspaceConfiguration"
28
28
  });
29
- _chunkBNERGX6Ijs.writeTrace.call(void 0, jsonSchema, config);
29
+ _chunkCSYOP22Pjs.writeTrace.call(void 0, jsonSchema, config);
30
30
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
31
31
  _nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, ))),
32
32
  _optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./"
33
33
  );
34
- _chunkBNERGX6Ijs.writeTrace.call(void 0,
34
+ _chunkCSYOP22Pjs.writeTrace.call(void 0,
35
35
  `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
36
36
  config
37
37
  );
38
38
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
39
39
  await _devkit.formatFiles.call(void 0, tree);
40
- _chunkBNERGX6Ijs.writeSuccess.call(void 0,
40
+ _chunkCSYOP22Pjs.writeSuccess.call(void 0,
41
41
  "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
42
42
  config
43
43
  );
@@ -45,7 +45,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
45
45
  success: true
46
46
  };
47
47
  }
48
- var generator_default = _chunkQWRE2UFSjs.withRunGenerator.call(void 0,
48
+ var generator_default = _chunk4PBELSTLjs.withRunGenerator.call(void 0,
49
49
  "Configuration Schema Creator",
50
50
  configSchemaGeneratorFn,
51
51
  {
@@ -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
  getWorkspaceConfig
6
- } from "./chunk-N63KWRTH.mjs";
6
+ } from "./chunk-C4XOCICR.mjs";
7
7
  import {
8
8
  getStopwatch,
9
9
  writeDebug,
@@ -13,7 +13,7 @@ import {
13
13
  writeSuccess,
14
14
  writeTrace,
15
15
  writeWarning
16
- } from "./chunk-WLB7XVWW.mjs";
16
+ } from "./chunk-VWLAZOKW.mjs";
17
17
  import {
18
18
  findWorkspaceRoot
19
19
  } from "./chunk-LSF4BHCI.mjs";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-U7JFVMCK.mjs";
23
23
  import {
24
24
  __require
25
- } from "./chunk-75RE5W2I.mjs";
25
+ } from "./chunk-AYJTBMXU.mjs";
26
26
 
27
27
  // ../esbuild/src/build.ts
28
28
  import * as esbuild from "esbuild";
@@ -25,8 +25,9 @@ async function npmPublishExecutorFn(options, context) {
25
25
  context.root,
26
26
  options.packageRoot || _chunk53DNHF7Bjs.joinPaths.call(void 0, "dist", projectConfig.root)
27
27
  );
28
- const projectRoot = context.projectsConfigurations.projects[context.projectName].root ? _chunk53DNHF7Bjs.joinPaths.call(void 0,
28
+ const projectRoot = _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.root]) ? _chunk53DNHF7Bjs.joinPaths.call(void 0,
29
29
  context.root,
30
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
30
31
  context.projectsConfigurations.projects[context.projectName].root
31
32
  ) : packageRoot;
32
33
  const packageJsonPath = _chunk53DNHF7Bjs.joinPaths.call(void 0, packageRoot, "package.json");
@@ -45,28 +46,30 @@ async function npmPublishExecutorFn(options, context) {
45
46
  const projectPackageJson = JSON.parse(projectPackageJsonFile);
46
47
  if (packageJson.version !== projectPackageJson.version) {
47
48
  console.warn(
48
- `The version in the package.json file at ${packageJsonPath} does not match the version in the package.json file at ${projectPackageJsonPath}. This file will be updated to match the version in the project package.json file.`
49
- );
50
- packageJson.version = projectPackageJson.version;
51
- await _promises.writeFile.call(void 0,
52
- packageJsonPath,
53
- await _prettier.format.call(void 0, JSON.stringify(packageJson), {
54
- parser: "json",
55
- proseWrap: "always",
56
- trailingComma: "none",
57
- tabWidth: 2,
58
- semi: true,
59
- singleQuote: false,
60
- quoteProps: "as-needed",
61
- insertPragma: false,
62
- bracketSameLine: true,
63
- printWidth: 80,
64
- bracketSpacing: true,
65
- arrowParens: "avoid",
66
- endOfLine: "lf",
67
- plugins: ["prettier-plugin-pkg"]
68
- })
49
+ `The version in the package.json file at ${packageJsonPath} (current: ${packageJson.version}) does not match the version in the package.json file at ${projectPackageJsonPath} (current: ${projectPackageJson.version}). This file will be updated to match the version in the project package.json file.`
69
50
  );
51
+ if (projectPackageJson.version) {
52
+ packageJson.version = projectPackageJson.version;
53
+ await _promises.writeFile.call(void 0,
54
+ packageJsonPath,
55
+ await _prettier.format.call(void 0, JSON.stringify(packageJson), {
56
+ parser: "json",
57
+ proseWrap: "always",
58
+ trailingComma: "none",
59
+ tabWidth: 2,
60
+ semi: true,
61
+ singleQuote: false,
62
+ quoteProps: "as-needed",
63
+ insertPragma: false,
64
+ bracketSameLine: true,
65
+ printWidth: 80,
66
+ bracketSpacing: true,
67
+ arrowParens: "avoid",
68
+ endOfLine: "lf",
69
+ plugins: ["prettier-plugin-pkg"]
70
+ })
71
+ );
72
+ }
70
73
  }
71
74
  const packageName = packageJson.name;
72
75
  console.info(
@@ -195,16 +198,16 @@ Note: If this is the first time this package has been published to NPM, this can
195
198
  `
196
199
  );
197
200
  console.info("");
198
- const stdoutData = JSON.parse(_optionalChain([err, 'access', _4 => _4.stdout, 'optionalAccess', _5 => _5.toString, 'call', _6 => _6()]) || "{}");
199
- if (_optionalChain([stdoutData, 'optionalAccess', _7 => _7.error]) && !(_optionalChain([stdoutData, 'access', _8 => _8.error, 'optionalAccess', _9 => _9.code, 'optionalAccess', _10 => _10.includes, 'call', _11 => _11("E404")]) && _optionalChain([stdoutData, 'access', _12 => _12.error, 'optionalAccess', _13 => _13.summary, 'optionalAccess', _14 => _14.includes, 'call', _15 => _15("no such package available")])) && !(_optionalChain([err, 'access', _16 => _16.stderr, 'optionalAccess', _17 => _17.toString, 'call', _18 => _18(), 'access', _19 => _19.includes, 'call', _20 => _20("E404")]) && _optionalChain([err, 'access', _21 => _21.stderr, 'optionalAccess', _22 => _22.toString, 'call', _23 => _23(), 'access', _24 => _24.includes, 'call', _25 => _25("no such package available")]))) {
201
+ const stdoutData = JSON.parse(_optionalChain([err, 'access', _8 => _8.stdout, 'optionalAccess', _9 => _9.toString, 'call', _10 => _10()]) || "{}");
202
+ if (_optionalChain([stdoutData, 'optionalAccess', _11 => _11.error]) && !(_optionalChain([stdoutData, 'access', _12 => _12.error, 'optionalAccess', _13 => _13.code, 'optionalAccess', _14 => _14.includes, 'call', _15 => _15("E404")]) && _optionalChain([stdoutData, 'access', _16 => _16.error, 'optionalAccess', _17 => _17.summary, 'optionalAccess', _18 => _18.includes, 'call', _19 => _19("no such package available")])) && !(_optionalChain([err, 'access', _20 => _20.stderr, 'optionalAccess', _21 => _21.toString, 'call', _22 => _22(), 'access', _23 => _23.includes, 'call', _24 => _24("E404")]) && _optionalChain([err, 'access', _25 => _25.stderr, 'optionalAccess', _26 => _26.toString, 'call', _27 => _27(), 'access', _28 => _28.includes, 'call', _29 => _29("no such package available")]))) {
200
203
  console.error(
201
204
  "npm dist-tag add error please see below for more information:"
202
205
  );
203
206
  if (stdoutData.error.summary) {
204
- console.error(_optionalChain([stdoutData, 'access', _26 => _26.error, 'optionalAccess', _27 => _27.summary]));
207
+ console.error(_optionalChain([stdoutData, 'access', _30 => _30.error, 'optionalAccess', _31 => _31.summary]));
205
208
  }
206
209
  if (stdoutData.error.detail) {
207
- console.error(_optionalChain([stdoutData, 'access', _28 => _28.error, 'optionalAccess', _29 => _29.detail]));
210
+ console.error(_optionalChain([stdoutData, 'access', _32 => _32.error, 'optionalAccess', _33 => _33.detail]));
208
211
  }
209
212
  if (context.isVerbose) {
210
213
  console.error(
@@ -233,8 +236,8 @@ ${JSON.stringify(err2)}`
233
236
  );
234
237
  console.error(error);
235
238
  console.info("");
236
- const stdoutData = JSON.parse(_optionalChain([err, 'access', _30 => _30.stdout, 'optionalAccess', _31 => _31.toString, 'call', _32 => _32()]) || "{}");
237
- if (!(_optionalChain([stdoutData, 'access', _33 => _33.error, 'optionalAccess', _34 => _34.code, 'optionalAccess', _35 => _35.includes, 'call', _36 => _36("E404")]) && _optionalChain([stdoutData, 'access', _37 => _37.error, 'optionalAccess', _38 => _38.summary, 'optionalAccess', _39 => _39.toLowerCase, 'call', _40 => _40(), 'access', _41 => _41.includes, 'call', _42 => _42("not found")])) && !(_optionalChain([err, 'access', _43 => _43.stderr, 'optionalAccess', _44 => _44.toString, 'call', _45 => _45(), 'access', _46 => _46.includes, 'call', _47 => _47("E404")]) && _optionalChain([err, 'access', _48 => _48.stderr, 'optionalAccess', _49 => _49.toString, 'call', _50 => _50(), 'access', _51 => _51.toLowerCase, 'call', _52 => _52(), 'access', _53 => _53.includes, 'call', _54 => _54("not found")]))) {
239
+ const stdoutData = JSON.parse(_optionalChain([err, 'access', _34 => _34.stdout, 'optionalAccess', _35 => _35.toString, 'call', _36 => _36()]) || "{}");
240
+ if (!(_optionalChain([stdoutData, 'access', _37 => _37.error, 'optionalAccess', _38 => _38.code, 'optionalAccess', _39 => _39.includes, 'call', _40 => _40("E404")]) && _optionalChain([stdoutData, 'access', _41 => _41.error, 'optionalAccess', _42 => _42.summary, 'optionalAccess', _43 => _43.toLowerCase, 'call', _44 => _44(), 'access', _45 => _45.includes, 'call', _46 => _46("not found")])) && !(_optionalChain([err, 'access', _47 => _47.stderr, 'optionalAccess', _48 => _48.toString, 'call', _49 => _49(), 'access', _50 => _50.includes, 'call', _51 => _51("E404")]) && _optionalChain([err, 'access', _52 => _52.stderr, 'optionalAccess', _53 => _53.toString, 'call', _54 => _54(), 'access', _55 => _55.toLowerCase, 'call', _56 => _56(), 'access', _57 => _57.includes, 'call', _58 => _58("not found")]))) {
238
241
  console.error(
239
242
  `Something unexpected went wrong when checking for existing dist-tags.
240
243
 
@@ -281,7 +284,7 @@ Execution response: ${result.toString()}` : ""}
281
284
  console.error("An error occured running npm publish.");
282
285
  console.error("Please see below for more information:");
283
286
  console.info("");
284
- const stdoutData = JSON.parse(_optionalChain([err, 'access', _55 => _55.stdout, 'optionalAccess', _56 => _56.toString, 'call', _57 => _57()]) || "{}");
287
+ const stdoutData = JSON.parse(_optionalChain([err, 'access', _59 => _59.stdout, 'optionalAccess', _60 => _60.toString, 'call', _61 => _61()]) || "{}");
285
288
  if (stdoutData.error.summary) {
286
289
  console.error(stdoutData.error.summary);
287
290
  console.error(stdoutData.error.summary);
@@ -4,7 +4,7 @@
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-doc/executor.ts
10
10
  async function cargoDocExecutor(options, context) {
@@ -14,7 +14,7 @@ async function cargoDocExecutor(options, context) {
14
14
  const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "doc", options, context);
15
15
  return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
16
16
  }
17
- var executor_default = _chunkVUSG5IWMjs.withRunExecutor.call(void 0,
17
+ var executor_default = _chunkA2XTQR6Njs.withRunExecutor.call(void 0,
18
18
  "Cargo - Doc",
19
19
  cargoDocExecutor,
20
20
  {