@storm-software/workspace-tools 1.267.19 → 1.267.21

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 (255) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +1 -1
  3. package/dist/chunk-22UY7NFX.js +41 -0
  4. package/dist/chunk-23BZQTB2.mjs +425 -0
  5. package/dist/{chunk-7O34DHUG.js → chunk-2AVWFUXP.js} +4 -19
  6. package/dist/{chunk-VW3PZOJ4.mjs → chunk-2M22JVJQ.mjs} +307 -192
  7. package/dist/{chunk-5RJOBRYL.mjs → chunk-3EDSGFA5.mjs} +63 -54
  8. package/dist/chunk-3RG5ZIWI.js +10 -0
  9. package/dist/{chunk-AC5SI4YZ.js → chunk-3TYXXJKV.js} +11 -8
  10. package/dist/{chunk-QSB5SLZS.mjs → chunk-3ZBMLG4D.mjs} +17 -14
  11. package/dist/chunk-437WGH2M.mjs +32 -0
  12. package/dist/{chunk-ULBTYC2B.js → chunk-4BECJRPP.js} +13 -42
  13. package/dist/chunk-4QRA66TH.mjs +379 -0
  14. package/dist/chunk-4S66IYQF.mjs +31 -0
  15. package/dist/{chunk-4JOIS7WW.js → chunk-4WHSR4FK.js} +24 -14
  16. package/dist/{chunk-JTAXCQX6.js → chunk-53DNHF7B.js} +7 -13
  17. package/dist/{chunk-GGGO542M.js → chunk-54FVHKCU.js} +36 -24
  18. package/dist/{chunk-B67R3JAF.mjs → chunk-5HUW3BTP.mjs} +37 -21
  19. package/dist/{chunk-GWYZDAH6.mjs → chunk-5LB2F3L4.mjs} +80 -65
  20. package/dist/{chunk-UF6KFXG5.js → chunk-5VY5IBBQ.js} +20 -17
  21. package/dist/{chunk-6QO3KMZA.js → chunk-5ZFTWEKB.js} +2 -16
  22. package/dist/chunk-6EMYX25V.js +7 -0
  23. package/dist/chunk-6QZSAZZ3.mjs +64 -0
  24. package/dist/{chunk-2JA7WAH7.mjs → chunk-7AN4JMFC.mjs} +2 -16
  25. package/dist/{chunk-N7XIQOHR.mjs → chunk-7HWV6U3E.mjs} +33 -18
  26. package/dist/{chunk-GKL4BY2Y.js → chunk-A5CKB6IJ.js} +7 -8
  27. package/dist/{chunk-Y5WKYMQB.mjs → chunk-ABE7UOMX.mjs} +24 -21
  28. package/dist/{chunk-L3WQZ3LY.mjs → chunk-AHLKRK7D.mjs} +33 -18
  29. package/dist/{chunk-6CGAYKQL.js → chunk-AJ3C2EDW.js} +69 -44
  30. package/dist/chunk-AMW7VHFM.mjs +52 -0
  31. package/dist/chunk-AOFWKOAI.js +31 -0
  32. package/dist/{chunk-7YRW5HNX.js → chunk-AX3RSZT7.js} +42 -31
  33. package/dist/chunk-BFD7HHVZ.mjs +32 -0
  34. package/dist/{chunk-ZMFVKBRM.js → chunk-BWGJVRAS.js} +2 -13
  35. package/dist/{chunk-M6NHJNGU.js → chunk-CWBHZBTN.js} +277 -169
  36. package/dist/{chunk-VGE6EHYW.mjs → chunk-EKWR7TBP.mjs} +36 -24
  37. package/dist/chunk-EU6N7QT3.js +32 -0
  38. package/dist/chunk-EYXDS7SG.js +105 -0
  39. package/dist/chunk-F66XEAID.mjs +113 -0
  40. package/dist/chunk-FOFNKU5G.js +379 -0
  41. package/dist/{chunk-7NNHBZC5.js → chunk-GNOIETZR.js} +28 -17
  42. package/dist/chunk-GQQLBQPQ.mjs +32 -0
  43. package/dist/{chunk-7PRHEOCT.js → chunk-H5NKKUPV.js} +31 -18
  44. package/dist/{chunk-5SVLMXLH.mjs → chunk-HMJTTE4A.mjs} +39 -30
  45. package/dist/{chunk-ZKMIASDR.mjs → chunk-HY3ZC5EZ.mjs} +10 -31
  46. package/dist/{chunk-OQPX75CG.js → chunk-I5MSPQMO.js} +31 -18
  47. package/dist/{chunk-L2DHGVS5.mjs → chunk-IEZKYJSF.mjs} +3 -6
  48. package/dist/{chunk-IWCQL3AQ.js → chunk-IL3R5ZVS.js} +10 -31
  49. package/dist/{chunk-P4OVFIT6.js → chunk-IZN2IVJ4.js} +19 -6
  50. package/dist/{chunk-UALZJZUK.js → chunk-J2Z4WP3E.js} +32 -16
  51. package/dist/{chunk-RBU35LQW.js → chunk-J4DYXH46.js} +70 -61
  52. package/dist/chunk-KP4RPOBI.mjs +105 -0
  53. package/dist/chunk-KR72GKIT.mjs +7 -0
  54. package/dist/chunk-L4NCVOB5.mjs +17 -0
  55. package/dist/{chunk-4Y6B6JDH.js → chunk-LBAVVYKU.js} +315 -136
  56. package/dist/{chunk-WMTEZ2PV.mjs → chunk-LSF4BHCI.mjs} +24 -14
  57. package/dist/chunk-M725BO42.mjs +32 -0
  58. package/dist/{chunk-7IAGL37F.mjs → chunk-MF6VZSIO.mjs} +30 -17
  59. package/dist/{chunk-7OOYI33U.mjs → chunk-MMBLGUC3.mjs} +311 -132
  60. package/dist/chunk-MZSZKV4N.mjs +47 -0
  61. package/dist/chunk-O6RRIC6I.js +32 -0
  62. package/dist/chunk-OKSECMVK.js +32 -0
  63. package/dist/chunk-Q2HYWACQ.mjs +50 -0
  64. package/dist/{chunk-62XRHQ44.mjs → chunk-QFWQZOVG.mjs} +14 -43
  65. package/dist/{chunk-DHGZTMND.js → chunk-QVYCDING.js} +4 -7
  66. package/dist/{chunk-Z4NKRWWJ.js → chunk-RJRBED5Q.js} +48 -32
  67. package/dist/chunk-S5Z4QGF3.js +64 -0
  68. package/dist/{chunk-CSHHIGIV.mjs → chunk-SITFTWPY.mjs} +23 -8
  69. package/dist/chunk-SNMXP6JV.mjs +41 -0
  70. package/dist/chunk-SPXJBMLY.js +50 -0
  71. package/dist/{chunk-7TLYMNLD.mjs → chunk-SW2E5MQJ.mjs} +4 -19
  72. package/dist/{chunk-OKW5O5P4.js → chunk-T7BALDKJ.js} +26 -22
  73. package/dist/chunk-TSYIV33W.js +32 -0
  74. package/dist/{chunk-H72YBOLR.mjs → chunk-U65XVJ4Y.mjs} +1 -12
  75. package/dist/{chunk-AVJVDD4L.mjs → chunk-U7JFVMCK.mjs} +6 -12
  76. package/dist/chunk-UIPUSUAB.js +425 -0
  77. package/dist/{chunk-LSG534D5.mjs → chunk-UYSJG2E5.mjs} +56 -31
  78. package/dist/{chunk-EHXSPF7W.mjs → chunk-VLOTOQYE.mjs} +11 -8
  79. package/dist/{chunk-EULJEPPD.mjs → chunk-W2C5IGWW.mjs} +3 -6
  80. package/dist/{chunk-G4QFSE5B.js → chunk-WE4HK4RN.js} +327 -212
  81. package/dist/{chunk-SUQKASD7.js → chunk-X2VJXJEF.js} +82 -67
  82. package/dist/{chunk-GY4AEA7P.mjs → chunk-X6PHOMFB.mjs} +32 -16
  83. package/dist/{chunk-PK2SUBWI.js → chunk-XZSS3YAB.js} +19 -16
  84. package/dist/chunk-YXBFVZ3K.js +47 -0
  85. package/dist/{chunk-CUPARBOS.js → chunk-ZP76EMBE.js} +41 -32
  86. package/dist/{chunk-HAXYCYZE.mjs → chunk-ZT4IIRQF.mjs} +254 -146
  87. package/dist/executors.js +21 -21
  88. package/dist/executors.mjs +20 -20
  89. package/dist/generators.js +17 -17
  90. package/dist/generators.mjs +18 -18
  91. package/dist/index.js +41 -41
  92. package/dist/index.mjs +42 -42
  93. package/dist/src/base/base-executor.js +7 -7
  94. package/dist/src/base/base-executor.mjs +6 -6
  95. package/dist/src/base/base-executor.untyped.js +1 -1
  96. package/dist/src/base/base-executor.untyped.mjs +1 -1
  97. package/dist/src/base/base-generator.js +7 -7
  98. package/dist/src/base/base-generator.mjs +6 -6
  99. package/dist/src/base/base-generator.untyped.js +1 -1
  100. package/dist/src/base/base-generator.untyped.mjs +1 -1
  101. package/dist/src/base/cargo-base-executor.untyped.js +3 -3
  102. package/dist/src/base/cargo-base-executor.untyped.mjs +2 -2
  103. package/dist/src/base/index.js +13 -13
  104. package/dist/src/base/index.mjs +12 -12
  105. package/dist/src/base/typescript-build-executor.untyped.js +3 -3
  106. package/dist/src/base/typescript-build-executor.untyped.mjs +2 -2
  107. package/dist/src/base/typescript-library-generator.untyped.js +3 -3
  108. package/dist/src/base/typescript-library-generator.untyped.mjs +2 -2
  109. package/dist/src/executors/cargo-build/executor.js +9 -9
  110. package/dist/src/executors/cargo-build/executor.mjs +8 -8
  111. package/dist/src/executors/cargo-build/untyped.js +3 -3
  112. package/dist/src/executors/cargo-build/untyped.mjs +2 -2
  113. package/dist/src/executors/cargo-check/executor.js +9 -9
  114. package/dist/src/executors/cargo-check/executor.mjs +8 -8
  115. package/dist/src/executors/cargo-check/untyped.js +3 -3
  116. package/dist/src/executors/cargo-check/untyped.mjs +2 -2
  117. package/dist/src/executors/cargo-clippy/executor.js +9 -9
  118. package/dist/src/executors/cargo-clippy/executor.mjs +8 -8
  119. package/dist/src/executors/cargo-clippy/untyped.js +3 -3
  120. package/dist/src/executors/cargo-clippy/untyped.mjs +2 -2
  121. package/dist/src/executors/cargo-doc/executor.js +9 -9
  122. package/dist/src/executors/cargo-doc/executor.mjs +8 -8
  123. package/dist/src/executors/cargo-doc/untyped.js +3 -3
  124. package/dist/src/executors/cargo-doc/untyped.mjs +2 -2
  125. package/dist/src/executors/cargo-format/executor.js +9 -9
  126. package/dist/src/executors/cargo-format/executor.mjs +8 -8
  127. package/dist/src/executors/cargo-format/untyped.js +3 -3
  128. package/dist/src/executors/cargo-format/untyped.mjs +2 -2
  129. package/dist/src/executors/cargo-publish/executor.js +4 -4
  130. package/dist/src/executors/cargo-publish/executor.mjs +3 -3
  131. package/dist/src/executors/cargo-publish/untyped.js +3 -3
  132. package/dist/src/executors/cargo-publish/untyped.mjs +2 -2
  133. package/dist/src/executors/clean-package/executor.js +84 -62
  134. package/dist/src/executors/clean-package/executor.mjs +84 -62
  135. package/dist/src/executors/clean-package/untyped.js +2 -4
  136. package/dist/src/executors/clean-package/untyped.mjs +2 -4
  137. package/dist/src/executors/esbuild/executor.js +8 -8
  138. package/dist/src/executors/esbuild/executor.mjs +7 -7
  139. package/dist/src/executors/esbuild/untyped.js +4 -8
  140. package/dist/src/executors/esbuild/untyped.mjs +3 -7
  141. package/dist/src/executors/npm-publish/executor.js +5 -5
  142. package/dist/src/executors/npm-publish/executor.mjs +4 -4
  143. package/dist/src/executors/npm-publish/untyped.js +1 -1
  144. package/dist/src/executors/npm-publish/untyped.mjs +1 -1
  145. package/dist/src/executors/size-limit/executor.js +8 -8
  146. package/dist/src/executors/size-limit/executor.mjs +7 -7
  147. package/dist/src/executors/size-limit/untyped.js +1 -1
  148. package/dist/src/executors/size-limit/untyped.mjs +1 -1
  149. package/dist/src/executors/typia/executor.js +8 -8
  150. package/dist/src/executors/typia/executor.mjs +7 -7
  151. package/dist/src/executors/typia/untyped.js +4 -12
  152. package/dist/src/executors/typia/untyped.mjs +4 -12
  153. package/dist/src/executors/unbuild/executor.js +8 -8
  154. package/dist/src/executors/unbuild/executor.mjs +7 -7
  155. package/dist/src/executors/unbuild/untyped.js +6 -13
  156. package/dist/src/executors/unbuild/untyped.mjs +5 -12
  157. package/dist/src/generators/browser-library/generator.js +10 -10
  158. package/dist/src/generators/browser-library/generator.mjs +9 -9
  159. package/dist/src/generators/browser-library/untyped.js +5 -11
  160. package/dist/src/generators/browser-library/untyped.mjs +4 -10
  161. package/dist/src/generators/config-schema/generator.js +8 -8
  162. package/dist/src/generators/config-schema/generator.mjs +7 -7
  163. package/dist/src/generators/config-schema/untyped.js +1 -1
  164. package/dist/src/generators/config-schema/untyped.mjs +1 -1
  165. package/dist/src/generators/init/init.js +3 -3
  166. package/dist/src/generators/init/init.mjs +2 -2
  167. package/dist/src/generators/init/untyped.js +1 -1
  168. package/dist/src/generators/init/untyped.mjs +1 -1
  169. package/dist/src/generators/neutral-library/generator.js +10 -10
  170. package/dist/src/generators/neutral-library/generator.mjs +9 -9
  171. package/dist/src/generators/neutral-library/untyped.js +5 -10
  172. package/dist/src/generators/neutral-library/untyped.mjs +4 -9
  173. package/dist/src/generators/node-library/generator.js +10 -10
  174. package/dist/src/generators/node-library/generator.mjs +9 -9
  175. package/dist/src/generators/node-library/untyped.js +5 -11
  176. package/dist/src/generators/node-library/untyped.mjs +4 -10
  177. package/dist/src/generators/preset/generator.js +8 -8
  178. package/dist/src/generators/preset/generator.mjs +7 -7
  179. package/dist/src/generators/preset/untyped.js +3 -11
  180. package/dist/src/generators/preset/untyped.mjs +3 -11
  181. package/dist/src/generators/release-version/generator.js +7 -7
  182. package/dist/src/generators/release-version/generator.mjs +6 -6
  183. package/dist/src/generators/release-version/untyped.js +3 -14
  184. package/dist/src/generators/release-version/untyped.mjs +3 -14
  185. package/dist/src/plugins/rust/cargo-toml.js +5 -5
  186. package/dist/src/plugins/rust/cargo-toml.mjs +4 -4
  187. package/dist/src/plugins/rust/index.js +5 -5
  188. package/dist/src/plugins/rust/index.mjs +4 -4
  189. package/dist/src/plugins/typescript/index.js +5 -5
  190. package/dist/src/plugins/typescript/index.mjs +4 -4
  191. package/dist/src/plugins/typescript/project-config.js +5 -5
  192. package/dist/src/plugins/typescript/project-config.mjs +4 -4
  193. package/dist/src/plugins/typescript/tsup.js +114 -109
  194. package/dist/src/plugins/typescript/tsup.mjs +116 -111
  195. package/dist/src/plugins/typescript/untyped-schema.js +93 -77
  196. package/dist/src/plugins/typescript/untyped-schema.mjs +96 -80
  197. package/dist/src/types.js +1 -1
  198. package/dist/src/types.mjs +1 -1
  199. package/dist/src/utils/apply-workspace-tokens.js +5 -5
  200. package/dist/src/utils/apply-workspace-tokens.mjs +4 -4
  201. package/dist/src/utils/cargo.js +3 -3
  202. package/dist/src/utils/cargo.mjs +2 -2
  203. package/dist/src/utils/create-cli-options.js +3 -3
  204. package/dist/src/utils/create-cli-options.mjs +2 -2
  205. package/dist/src/utils/get-project-configurations.js +5 -5
  206. package/dist/src/utils/get-project-configurations.mjs +4 -4
  207. package/dist/src/utils/index.js +15 -15
  208. package/dist/src/utils/index.mjs +14 -14
  209. package/dist/src/utils/lock-file.js +3 -3
  210. package/dist/src/utils/lock-file.mjs +2 -2
  211. package/dist/src/utils/package-helpers.js +5 -5
  212. package/dist/src/utils/package-helpers.mjs +4 -4
  213. package/dist/src/utils/plugin-helpers.js +4 -4
  214. package/dist/src/utils/plugin-helpers.mjs +3 -3
  215. package/dist/src/utils/pnpm-deps-update.js +4 -4
  216. package/dist/src/utils/pnpm-deps-update.mjs +3 -3
  217. package/dist/src/utils/project-tags.js +3 -3
  218. package/dist/src/utils/project-tags.mjs +2 -2
  219. package/dist/src/utils/toml.js +3 -3
  220. package/dist/src/utils/toml.mjs +2 -2
  221. package/dist/src/utils/typia-transform.js +3 -3
  222. package/dist/src/utils/typia-transform.mjs +2 -2
  223. package/dist/src/utils/versions.js +1 -1
  224. package/dist/src/utils/versions.mjs +1 -1
  225. package/package.json +1 -1
  226. package/dist/chunk-3GQAWCBQ.js +0 -13
  227. package/dist/chunk-3IZ3O4OK.js +0 -30
  228. package/dist/chunk-6JJB5AYA.js +0 -51
  229. package/dist/chunk-6JTXR7YX.mjs +0 -18
  230. package/dist/chunk-6RHWGD7G.mjs +0 -48
  231. package/dist/chunk-7AXFMX2T.js +0 -37
  232. package/dist/chunk-A77TLQ44.mjs +0 -32
  233. package/dist/chunk-B3DVFXXD.js +0 -32
  234. package/dist/chunk-BC7L3S46.mjs +0 -51
  235. package/dist/chunk-BNMJYJOZ.mjs +0 -446
  236. package/dist/chunk-CUWWZLK7.mjs +0 -37
  237. package/dist/chunk-HOXPAVCL.js +0 -32
  238. package/dist/chunk-ICPUM2HS.js +0 -50
  239. package/dist/chunk-JJ4PSTY4.mjs +0 -32
  240. package/dist/chunk-JMCJJNBJ.mjs +0 -102
  241. package/dist/chunk-KEBNU3P2.js +0 -446
  242. package/dist/chunk-KTRA4YQT.mjs +0 -32
  243. package/dist/chunk-M2VZ44W7.mjs +0 -13
  244. package/dist/chunk-NG7BO4BF.mjs +0 -468
  245. package/dist/chunk-NSCWEC2S.js +0 -32
  246. package/dist/chunk-OQTJDGUH.js +0 -468
  247. package/dist/chunk-ORWCIVMB.mjs +0 -30
  248. package/dist/chunk-RUKOOSWL.js +0 -31
  249. package/dist/chunk-T6VIUVAL.mjs +0 -43
  250. package/dist/chunk-TET4GF3D.js +0 -43
  251. package/dist/chunk-XITP2BX2.js +0 -13
  252. package/dist/chunk-YMGMEPP5.mjs +0 -86
  253. package/dist/chunk-YW4UN25U.js +0 -86
  254. package/dist/chunk-ZJZOACSR.mjs +0 -31
  255. package/dist/chunk-ZTVHEV5N.mjs +0 -50
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkZMFVKBRMjs = require('./chunk-ZMFVKBRM.js');
6
+ var _chunkBWGJVRASjs = require('./chunk-BWGJVRAS.js');
7
7
 
8
8
 
9
9
 
@@ -13,15 +13,19 @@ var _chunkZMFVKBRMjs = require('./chunk-ZMFVKBRM.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkG4QFSE5Bjs = require('./chunk-G4QFSE5B.js');
16
+ var _chunkWE4HK4RNjs = require('./chunk-WE4HK4RN.js');
17
+
18
+
19
+ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
20
+
21
+ // src/generators/release-version/generator.ts
22
+
23
+
17
24
 
18
25
 
19
- var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
20
26
 
21
27
 
22
- var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
23
28
 
24
- // src/generators/release-version/generator.ts
25
29
  var _devkit = require('@nx/devkit');
26
30
  var _resolvelocalpackagedependencies = require('@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies');
27
31
  var _updatelockfile = require('@nx/js/src/release/utils/update-lock-file');
@@ -161,7 +165,9 @@ var DEFAULT_COMMIT_QUESTIONS = {
161
165
  type: "select",
162
166
  title: "Commit Type",
163
167
  description: "Select the commit type that best describes your changes",
164
- enum: Object.keys(DEFAULT_COMMIT_TYPES).filter((type) => DEFAULT_COMMIT_TYPES[type].hidden !== true).reduce((ret, type) => {
168
+ enum: Object.keys(DEFAULT_COMMIT_TYPES).filter(
169
+ (type) => DEFAULT_COMMIT_TYPES[type].hidden !== true
170
+ ).reduce((ret, type) => {
165
171
  ret[type] = DEFAULT_COMMIT_TYPES[type];
166
172
  return ret;
167
173
  }, {}),
@@ -201,7 +207,7 @@ var DEFAULT_COMMIT_QUESTIONS = {
201
207
  type: "input",
202
208
  title: "Breaking Changes (Details)",
203
209
  description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself",
204
- when: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (answers) => answers.isBreaking === true, "when"),
210
+ when: (answers) => answers.isBreaking === true,
205
211
  maxLength: 600,
206
212
  minLength: 3
207
213
  },
@@ -215,17 +221,11 @@ var DEFAULT_COMMIT_QUESTIONS = {
215
221
  type: "input",
216
222
  title: "Open Issue Affected (Details)",
217
223
  description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself",
218
- when: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (answers) => answers.isIssueAffected === true, "when"),
224
+ when: (answers) => answers.isIssueAffected === true,
219
225
  maxLength: 600,
220
226
  minLength: 3
221
227
  }
222
228
  };
223
- var RuleConfigSeverity;
224
- (function(RuleConfigSeverity2) {
225
- RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
226
- RuleConfigSeverity2[RuleConfigSeverity2["Warning"] = 1] = "Warning";
227
- RuleConfigSeverity2[RuleConfigSeverity2["Error"] = 2] = "Error";
228
- })(RuleConfigSeverity || (RuleConfigSeverity = {}));
229
229
 
230
230
  // ../git-tools/src/release/config.ts
231
231
  var DEFAULT_CONVENTIONAL_COMMITS_CONFIG = {
@@ -237,47 +237,70 @@ var DEFAULT_CONVENTIONAL_COMMITS_CONFIG = {
237
237
  var _child_process = require('child_process');
238
238
  var _path = require('path');
239
239
  var _config = require('nx/src/command-line/release/config/config');
240
+
241
+
242
+
240
243
  var _git = require('nx/src/command-line/release/utils/git');
244
+
245
+
246
+
241
247
  var _resolvesemverspecifier = require('nx/src/command-line/release/utils/resolve-semver-specifier');
242
248
  var _semver = require('nx/src/command-line/release/utils/semver');
249
+
250
+
251
+
243
252
  var _versionlegacy = require('nx/src/command-line/release/version-legacy');
244
253
  var _utils = require('nx/src/tasks-runner/utils');
245
254
  var _semver3 = require('semver');
246
255
  async function releaseVersionGeneratorFn(tree, options, config) {
247
- _chunkG4QFSE5Bjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
256
+ _chunkWE4HK4RNjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
248
257
 
249
258
  `, config);
250
- const stopwatch = _chunkG4QFSE5Bjs.getStopwatch.call(void 0, "Storm Release Version generator");
259
+ const stopwatch = _chunkWE4HK4RNjs.getStopwatch.call(void 0, "Storm Release Version generator");
251
260
  try {
252
- const workspaceRoot = _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, );
253
- _chunkG4QFSE5Bjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
254
- - workspaceRoot: ${workspaceRoot}`, config);
255
- config = await _chunkG4QFSE5Bjs.getConfig.call(void 0, workspaceRoot);
256
- _chunkG4QFSE5Bjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
257
- ${Object.keys(_nullishCoalesce(options, () => ( {}))).filter((key) => ![
258
- "projects",
259
- "releaseGroup",
260
- "projectGraph",
261
- "currentVersionResolverMetadata"
262
- ].includes(key)).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
261
+ const workspaceRoot = _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
262
+ _chunkWE4HK4RNjs.writeDebug.call(void 0,
263
+ `Loading the Storm Config from environment variables and storm.config.js file...
264
+ - workspaceRoot: ${workspaceRoot}`,
265
+ config
266
+ );
267
+ config = await _chunkWE4HK4RNjs.getConfig.call(void 0, workspaceRoot);
268
+ _chunkWE4HK4RNjs.writeTrace.call(void 0,
269
+ `Generator schema options \u2699\uFE0F
270
+ ${Object.keys(_nullishCoalesce(options, () => ( {}))).filter(
271
+ (key) => ![
272
+ "projects",
273
+ "releaseGroup",
274
+ "projectGraph",
275
+ "currentVersionResolverMetadata"
276
+ ].includes(key)
277
+ ).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
278
+ config
279
+ );
263
280
  const versionData = {};
264
281
  if (options.specifier) {
265
282
  if (!_semver.isValidSemverSpecifier.call(void 0, options.specifier)) {
266
- throw new Error(`The given version specifier "${options.specifier}" is not valid. You provide an exact version or a valid semver keyword such as "major", "minor", "patch", etc.`);
283
+ throw new Error(
284
+ `The given version specifier "${options.specifier}" is not valid. You provide an exact version or a valid semver keyword such as "major", "minor", "patch", etc.`
285
+ );
267
286
  }
268
287
  options.specifier = options.specifier.replace(/^v/, "");
269
288
  }
270
- if (options.versionPrefix && _versionlegacy.validReleaseVersionPrefixes.indexOf(options.versionPrefix) === -1) {
271
- throw new Error(`Invalid value for version.generatorOptions.versionPrefix: "${options.versionPrefix}"
289
+ if (options.versionPrefix && _versionlegacy.validReleaseVersionPrefixes.indexOf(
290
+ options.versionPrefix
291
+ ) === -1) {
292
+ throw new Error(
293
+ `Invalid value for version.generatorOptions.versionPrefix: "${options.versionPrefix}"
272
294
 
273
- Valid values are: ${_versionlegacy.validReleaseVersionPrefixes.map((s) => `"${s}"`).join(", ")}`);
295
+ Valid values are: ${_versionlegacy.validReleaseVersionPrefixes.map((s) => `"${s}"`).join(", ")}`
296
+ );
274
297
  }
275
298
  options.fallbackCurrentVersionResolver ??= "disk";
276
299
  options.currentVersionResolver ??= "git-tag";
277
300
  const projects = options.projects;
278
- const createResolvePackageRoot = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (customPackageRoot) => (projectNode) => {
301
+ const createResolvePackageRoot = (customPackageRoot) => (projectNode) => {
279
302
  if (_optionalChain([projectNode, 'optionalAccess', _3 => _3.data, 'optionalAccess', _4 => _4.root]) === _optionalChain([config, 'optionalAccess', _5 => _5.workspaceRoot]) || _optionalChain([projectNode, 'optionalAccess', _6 => _6.data, 'optionalAccess', _7 => _7.root]) === ".") {
280
- return _nullishCoalesce(_optionalChain([config, 'optionalAccess', _8 => _8.workspaceRoot]), () => ( _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, )));
303
+ return _nullishCoalesce(_optionalChain([config, 'optionalAccess', _8 => _8.workspaceRoot]), () => ( _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, )));
281
304
  }
282
305
  if (!customPackageRoot) {
283
306
  return projectNode.data.root;
@@ -287,11 +310,14 @@ Valid values are: ${_versionlegacy.validReleaseVersionPrefixes.map((s) => `"${s}
287
310
  projectRoot: projectNode.data.root,
288
311
  projectName: projectNode.name
289
312
  });
290
- }, "createResolvePackageRoot");
313
+ };
291
314
  const resolvePackageRoot = createResolvePackageRoot(options.packageRoot);
292
315
  const projectNameToPackageRootMap = /* @__PURE__ */ new Map();
293
316
  for (const project of projects) {
294
- projectNameToPackageRootMap.set(project.name, resolvePackageRoot(project));
317
+ projectNameToPackageRootMap.set(
318
+ project.name,
319
+ resolvePackageRoot(project)
320
+ );
295
321
  }
296
322
  let currentVersion = null;
297
323
  let currentVersionResolvedFromFallback = false;
@@ -300,37 +326,56 @@ Valid values are: ${_versionlegacy.validReleaseVersionPrefixes.map((s) => `"${s}
300
326
  for (const project of projects) {
301
327
  const projectName = project.name;
302
328
  const packageRoot = projectNameToPackageRootMap.get(projectName);
303
- const packageJsonPath = _devkit.joinPathFragments.call(void 0, _nullishCoalesce(packageRoot, () => ( "./")), "package.json");
304
- const cargoTomlPath = _devkit.joinPathFragments.call(void 0, _nullishCoalesce(packageRoot, () => ( "./")), "Cargo.toml");
329
+ const packageJsonPath = _devkit.joinPathFragments.call(void 0,
330
+ _nullishCoalesce(packageRoot, () => ( "./")),
331
+ "package.json"
332
+ );
333
+ const cargoTomlPath = _devkit.joinPathFragments.call(void 0,
334
+ _nullishCoalesce(packageRoot, () => ( "./")),
335
+ "Cargo.toml"
336
+ );
305
337
  if (!tree.exists(packageJsonPath) && !tree.exists(cargoTomlPath)) {
306
- throw new Error(`The project "${projectName}" does not have a package.json available at ${packageJsonPath} or a Cargo.toml file available at ${cargoTomlPath}.
338
+ throw new Error(
339
+ `The project "${projectName}" does not have a package.json available at ${packageJsonPath} or a Cargo.toml file available at ${cargoTomlPath}.
307
340
 
308
- To fix this you will either need to add a package.json or Cargo.toml file at that location, or configure "release" within your nx.json to exclude "${projectName}" from the current release group, or amend the packageRoot configuration to point to where the package.json should be.`);
341
+ To fix this you will either need to add a package.json or Cargo.toml file at that location, or configure "release" within your nx.json to exclude "${projectName}" from the current release group, or amend the packageRoot configuration to point to where the package.json should be.`
342
+ );
309
343
  }
310
- const workspaceRelativePackagePath = _path.relative.call(void 0, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => ( _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, ))), tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath);
311
- const log = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (msg) => {
312
- _chunkG4QFSE5Bjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
313
- }, "log");
314
- _chunkG4QFSE5Bjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
344
+ const workspaceRelativePackagePath = _path.relative.call(void 0,
345
+ _nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => ( _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, ))),
346
+ tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath
347
+ );
348
+ const log = (msg) => {
349
+ _chunkWE4HK4RNjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
350
+ };
351
+ _chunkWE4HK4RNjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
315
352
  let packageName;
316
353
  let currentVersionFromDisk;
317
354
  if (tree.exists(packageJsonPath)) {
318
355
  const projectPackageJson = _devkit.readJson.call(void 0, tree, packageJsonPath);
319
- log(`\u{1F50D} Reading data for package "${projectPackageJson.name}" from ${workspaceRelativePackagePath}`);
356
+ log(
357
+ `\u{1F50D} Reading data for package "${projectPackageJson.name}" from ${workspaceRelativePackagePath}`
358
+ );
320
359
  packageName = projectPackageJson.name;
321
360
  currentVersionFromDisk = projectPackageJson.version;
322
361
  } else if (tree.exists(cargoTomlPath)) {
323
- const cargoToml = _chunkZMFVKBRMjs.parseCargoToml.call(void 0, _optionalChain([tree, 'access', _10 => _10.read, 'call', _11 => _11(cargoTomlPath), 'optionalAccess', _12 => _12.toString, 'call', _13 => _13("utf-8")]));
324
- log(`\u{1F50D} Reading data for package "${cargoToml.package.name}" from ${workspaceRelativePackagePath}`);
362
+ const cargoToml = _chunkBWGJVRASjs.parseCargoToml.call(void 0,
363
+ _optionalChain([tree, 'access', _10 => _10.read, 'call', _11 => _11(cargoTomlPath), 'optionalAccess', _12 => _12.toString, 'call', _13 => _13("utf-8")])
364
+ );
365
+ log(
366
+ `\u{1F50D} Reading data for package "${cargoToml.package.name}" from ${workspaceRelativePackagePath}`
367
+ );
325
368
  packageName = cargoToml.package.name;
326
369
  currentVersionFromDisk = cargoToml.package.version;
327
370
  if (options.currentVersionResolver === "registry") {
328
371
  options.currentVersionResolver = "disk";
329
372
  }
330
373
  } else {
331
- throw new Error(`The project "${projectName}" does not have a package.json available at ${workspaceRelativePackagePath} or a Cargo.toml file available at ${cargoTomlPath}.
374
+ throw new Error(
375
+ `The project "${projectName}" does not have a package.json available at ${workspaceRelativePackagePath} or a Cargo.toml file available at ${cargoTomlPath}.
332
376
 
333
- To fix this you will either need to add a package.json or Cargo.toml file at that location, or configure "release" within your nx.json to exclude "${projectName}" from the current release group, or amend the packageRoot configuration to point to where the package.json should be.`);
377
+ To fix this you will either need to add a package.json or Cargo.toml file at that location, or configure "release" within your nx.json to exclude "${projectName}" from the current release group, or amend the packageRoot configuration to point to where the package.json should be.`
378
+ );
334
379
  }
335
380
  switch (options.currentVersionResolver) {
336
381
  case "registry": {
@@ -341,21 +386,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
341
386
  if (options.releaseGroup.projectsRelationship === "independent") {
342
387
  try {
343
388
  currentVersion = await new Promise((resolve, reject) => {
344
- _child_process.exec.call(void 0, `npm view ${packageName} version --registry=${npmRegistry} --tag=${tag}`, (error, stdout, stderr) => {
345
- if (error) {
346
- return reject(error);
347
- }
348
- if (stderr) {
349
- return reject(stderr);
350
- }
351
- return resolve(stdout.trim());
352
- });
353
- });
354
- log(`\u{1F4C4} Resolved the current version as ${currentVersion} for tag "${tag}" from registry ${npmRegistry}`);
355
- } catch (_) {
356
- try {
357
- currentVersion = await new Promise((resolve, reject) => {
358
- _child_process.exec.call(void 0, `npm view ${packageName} version --registry=${githubRegistry} --tag=${tag}`, (error, stdout, stderr) => {
389
+ _child_process.exec.call(void 0,
390
+ `npm view ${packageName} version --registry=${npmRegistry} --tag=${tag}`,
391
+ (error, stdout, stderr) => {
359
392
  if (error) {
360
393
  return reject(error);
361
394
  }
@@ -363,31 +396,65 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
363
396
  return reject(stderr);
364
397
  }
365
398
  return resolve(stdout.trim());
366
- });
367
- });
368
- log(`\u{1F4C4} Resolved the current version as ${currentVersion} for tag "${tag}" from registry ${githubRegistry}`);
399
+ }
400
+ );
401
+ });
402
+ log(
403
+ `\u{1F4C4} Resolved the current version as ${currentVersion} for tag "${tag}" from registry ${npmRegistry}`
404
+ );
405
+ } catch (_) {
406
+ try {
407
+ currentVersion = await new Promise(
408
+ (resolve, reject) => {
409
+ _child_process.exec.call(void 0,
410
+ `npm view ${packageName} version --registry=${githubRegistry} --tag=${tag}`,
411
+ (error, stdout, stderr) => {
412
+ if (error) {
413
+ return reject(error);
414
+ }
415
+ if (stderr) {
416
+ return reject(stderr);
417
+ }
418
+ return resolve(stdout.trim());
419
+ }
420
+ );
421
+ }
422
+ );
423
+ log(
424
+ `\u{1F4C4} Resolved the current version as ${currentVersion} for tag "${tag}" from registry ${githubRegistry}`
425
+ );
369
426
  } catch (_2) {
370
427
  if (options.fallbackCurrentVersionResolver === "disk") {
371
- log(`\u{1F4C4} Unable to resolve the current version from the registry ${npmRegistry}${githubRegistry ? ` or ${githubRegistry}` : ""}. Falling back to the version on disk of ${currentVersionFromDisk}`);
428
+ log(
429
+ `\u{1F4C4} Unable to resolve the current version from the registry ${npmRegistry}${githubRegistry ? ` or ${githubRegistry}` : ""}. Falling back to the version on disk of ${currentVersionFromDisk}`
430
+ );
372
431
  currentVersion = currentVersionFromDisk;
373
432
  currentVersionResolvedFromFallback = true;
374
433
  } else {
375
- throw new Error(`Unable to resolve the current version from the registry ${npmRegistry}${githubRegistry ? ` or ${githubRegistry}` : ""}. Please ensure that the package exists in the registry in order to use the "registry" currentVersionResolver. Alternatively, you can use the --first-release option or set "release.version.generatorOptions.fallbackCurrentVersionResolver" to "disk" in order to fallback to the version on disk when the registry lookup fails.`);
434
+ throw new Error(
435
+ `Unable to resolve the current version from the registry ${npmRegistry}${githubRegistry ? ` or ${githubRegistry}` : ""}. Please ensure that the package exists in the registry in order to use the "registry" currentVersionResolver. Alternatively, you can use the --first-release option or set "release.version.generatorOptions.fallbackCurrentVersionResolver" to "disk" in order to fallback to the version on disk when the registry lookup fails.`
436
+ );
376
437
  }
377
438
  }
378
439
  }
379
440
  } else {
380
441
  if (currentVersionResolvedFromFallback) {
381
- log(`\u{1F4C4} Using the current version ${currentVersion} already resolved from disk fallback.`);
442
+ log(
443
+ `\u{1F4C4} Using the current version ${currentVersion} already resolved from disk fallback.`
444
+ );
382
445
  } else {
383
- log(`\u{1F4C4} Using the current version ${currentVersion} already resolved from the registry ${_nullishCoalesce(npmRegistry, () => ( githubRegistry))}`);
446
+ log(
447
+ `\u{1F4C4} Using the current version ${currentVersion} already resolved from the registry ${_nullishCoalesce(npmRegistry, () => ( githubRegistry))}`
448
+ );
384
449
  }
385
450
  }
386
451
  break;
387
452
  }
388
453
  case "disk":
389
454
  currentVersion = currentVersionFromDisk;
390
- log(`\u{1F4C4} Resolved the current version as ${currentVersion} from ${packageJsonPath}`);
455
+ log(
456
+ `\u{1F4C4} Resolved the current version as ${currentVersion} from ${packageJsonPath}`
457
+ );
391
458
  break;
392
459
  case "git-tag": {
393
460
  if (
@@ -395,33 +462,48 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
395
462
  options.releaseGroup.projectsRelationship === "independent"
396
463
  ) {
397
464
  const releaseTagPattern = options.releaseGroup.releaseTagPattern;
398
- latestMatchingGitTag = await _git.getLatestGitTagForPattern.call(void 0, releaseTagPattern, {
399
- projectName: project.name
400
- });
465
+ latestMatchingGitTag = await _git.getLatestGitTagForPattern.call(void 0,
466
+ releaseTagPattern,
467
+ {
468
+ projectName: project.name
469
+ }
470
+ );
401
471
  if (!latestMatchingGitTag) {
402
472
  if (currentVersionFromDisk) {
403
- log(`\u{1F4C4} Unable to resolve the current version from git tag using pattern "${releaseTagPattern}". Falling back to the version on disk of ${currentVersionFromDisk}`);
473
+ log(
474
+ `\u{1F4C4} Unable to resolve the current version from git tag using pattern "${releaseTagPattern}". Falling back to the version on disk of ${currentVersionFromDisk}`
475
+ );
404
476
  currentVersion = currentVersionFromDisk;
405
477
  } else {
406
- log(`No git tags matching pattern "${releaseTagPattern}" for project "${project.name}" were found. This process also could not determine the version by checking the package files on disk, so we will attempt to use the default version value: "0.0.1".`);
478
+ log(
479
+ `No git tags matching pattern "${releaseTagPattern}" for project "${project.name}" were found. This process also could not determine the version by checking the package files on disk, so we will attempt to use the default version value: "0.0.1".`
480
+ );
407
481
  currentVersion = "0.0.1";
408
482
  }
409
483
  currentVersionResolvedFromFallback = true;
410
484
  } else {
411
485
  currentVersion = latestMatchingGitTag.extractedVersion;
412
- log(`\u{1F4C4} Resolved the current version as ${currentVersion} from git tag "${latestMatchingGitTag.tag}".`);
486
+ log(
487
+ `\u{1F4C4} Resolved the current version as ${currentVersion} from git tag "${latestMatchingGitTag.tag}".`
488
+ );
413
489
  }
414
490
  } else {
415
491
  if (currentVersionResolvedFromFallback) {
416
- log(`\u{1F4C4} Using the current version ${currentVersion} already resolved from disk fallback.`);
492
+ log(
493
+ `\u{1F4C4} Using the current version ${currentVersion} already resolved from disk fallback.`
494
+ );
417
495
  } else {
418
- log(`\u{1F4C4} Using the current version ${currentVersion} already resolved from git tag "${latestMatchingGitTag.tag}".`);
496
+ log(
497
+ `\u{1F4C4} Using the current version ${currentVersion} already resolved from git tag "${latestMatchingGitTag.tag}".`
498
+ );
419
499
  }
420
500
  }
421
501
  break;
422
502
  }
423
503
  default:
424
- throw new Error(`Invalid value for options.currentVersionResolver: ${options.currentVersionResolver}`);
504
+ throw new Error(
505
+ `Invalid value for options.currentVersionResolver: ${options.currentVersionResolver}`
506
+ );
425
507
  }
426
508
  if (options.specifier) {
427
509
  log(`\u{1F4C4} Using the provided version specifier "${options.specifier}".`);
@@ -431,51 +513,82 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
431
513
  switch (specifierSource) {
432
514
  case "conventional-commits": {
433
515
  if (options.currentVersionResolver !== "git-tag") {
434
- throw new Error(`Invalid currentVersionResolver "${options.currentVersionResolver}" provided for release group "${options.releaseGroup.name}". Must be "git-tag" when "specifierSource" is "conventional-commits"`);
516
+ throw new Error(
517
+ `Invalid currentVersionResolver "${options.currentVersionResolver}" provided for release group "${options.releaseGroup.name}". Must be "git-tag" when "specifierSource" is "conventional-commits"`
518
+ );
435
519
  }
436
- const affectedProjects = options.releaseGroup.projectsRelationship === "independent" ? [
437
- projectName
438
- ] : projects.map((p) => p.name);
520
+ const affectedProjects = options.releaseGroup.projectsRelationship === "independent" ? [projectName] : projects.map((p) => p.name);
439
521
  let previousVersionRef = _optionalChain([latestMatchingGitTag, 'optionalAccess', _17 => _17.tag]) ? latestMatchingGitTag.tag : await _git.getFirstGitCommit.call(void 0, );
440
522
  if (!previousVersionRef) {
441
- log(`Unable to determine previous version ref for the projects ${affectedProjects.join(", ")}. This is likely a bug in Storm's Release Versioning. We will attempt to use the default version value "0.0.1" and continue with the process.`);
523
+ log(
524
+ `Unable to determine previous version ref for the projects ${affectedProjects.join(
525
+ ", "
526
+ )}. This is likely a bug in Storm's Release Versioning. We will attempt to use the default version value "0.0.1" and continue with the process.`
527
+ );
442
528
  previousVersionRef = "0.0.1";
443
529
  }
444
- specifier = await _asyncNullishCoalesce(await _resolvesemverspecifier.resolveSemverSpecifierFromConventionalCommits.call(void 0, previousVersionRef, options.projectGraph, affectedProjects, DEFAULT_CONVENTIONAL_COMMITS_CONFIG), async () => ( void 0));
530
+ specifier = await _asyncNullishCoalesce(await _resolvesemverspecifier.resolveSemverSpecifierFromConventionalCommits.call(void 0,
531
+ previousVersionRef,
532
+ options.projectGraph,
533
+ affectedProjects,
534
+ DEFAULT_CONVENTIONAL_COMMITS_CONFIG
535
+ ), async () => ( void 0));
445
536
  if (!specifier) {
446
- log("\u{1F6AB} No changes were detected using git history and the conventional commits standard.");
537
+ log(
538
+ "\u{1F6AB} No changes were detected using git history and the conventional commits standard."
539
+ );
447
540
  break;
448
541
  }
449
542
  if (currentVersion && _semver3.prerelease.call(void 0, currentVersion)) {
450
543
  specifier = "prerelease";
451
- log(`\u{1F4C4} Resolved the specifier as "${specifier}" since the current version is a prerelease.`);
544
+ log(
545
+ `\u{1F4C4} Resolved the specifier as "${specifier}" since the current version is a prerelease.`
546
+ );
452
547
  } else {
453
- log(`\u{1F4C4} Resolved the specifier as "${specifier}" using git history and the conventional commits standard.`);
548
+ log(
549
+ `\u{1F4C4} Resolved the specifier as "${specifier}" using git history and the conventional commits standard.`
550
+ );
454
551
  }
455
552
  break;
456
553
  }
457
554
  case "prompt": {
458
- const maybeLogReleaseGroup = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (log2) => {
555
+ const maybeLogReleaseGroup = (log2) => {
459
556
  if (options.releaseGroup.name === _config.IMPLICIT_DEFAULT_RELEASE_GROUP) {
460
557
  return log2;
461
558
  }
462
559
  return `${log2} within release group "${options.releaseGroup.name}"`;
463
- }, "maybeLogReleaseGroup");
560
+ };
464
561
  if (options.releaseGroup.projectsRelationship === "independent") {
465
- specifier = await _resolvesemverspecifier.resolveSemverSpecifierFromPrompt.call(void 0, `${maybeLogReleaseGroup(`What kind of change is this for project "${projectName}"`)}?`, `${maybeLogReleaseGroup(`What is the exact version for project "${projectName}"`)}?`);
562
+ specifier = await _resolvesemverspecifier.resolveSemverSpecifierFromPrompt.call(void 0,
563
+ `${maybeLogReleaseGroup(
564
+ `What kind of change is this for project "${projectName}"`
565
+ )}?`,
566
+ `${maybeLogReleaseGroup(`What is the exact version for project "${projectName}"`)}?`
567
+ );
466
568
  } else {
467
- specifier = await _resolvesemverspecifier.resolveSemverSpecifierFromPrompt.call(void 0, `${maybeLogReleaseGroup(`What kind of change is this for the ${projects.length} matched projects(s)`)}?`, `${maybeLogReleaseGroup(`What is the exact version for the ${projects.length} matched project(s)`)}?`);
569
+ specifier = await _resolvesemverspecifier.resolveSemverSpecifierFromPrompt.call(void 0,
570
+ `${maybeLogReleaseGroup(
571
+ `What kind of change is this for the ${projects.length} matched projects(s)`
572
+ )}?`,
573
+ `${maybeLogReleaseGroup(
574
+ `What is the exact version for the ${projects.length} matched project(s)`
575
+ )}?`
576
+ );
468
577
  }
469
578
  break;
470
579
  }
471
580
  default:
472
- throw new Error(`Invalid specifierSource "${specifierSource}" provided. Must be one of "prompt" or "conventional-commits"`);
581
+ throw new Error(
582
+ `Invalid specifierSource "${specifierSource}" provided. Must be one of "prompt" or "conventional-commits"`
583
+ );
473
584
  }
474
585
  }
475
586
  const localPackageDependencies = resolveLocalPackageDependencies(
476
587
  tree,
477
588
  options.projectGraph,
478
- projects.filter((project2) => _optionalChain([project2, 'optionalAccess', _18 => _18.data, 'optionalAccess', _19 => _19.root]) && _optionalChain([project2, 'optionalAccess', _20 => _20.data, 'optionalAccess', _21 => _21.root]) !== _optionalChain([config, 'optionalAccess', _22 => _22.workspaceRoot])),
589
+ projects.filter(
590
+ (project2) => _optionalChain([project2, 'optionalAccess', _18 => _18.data, 'optionalAccess', _19 => _19.root]) && _optionalChain([project2, 'optionalAccess', _20 => _20.data, 'optionalAccess', _21 => _21.root]) !== _optionalChain([config, 'optionalAccess', _22 => _22.workspaceRoot])
591
+ ),
479
592
  projectNameToPackageRootMap,
480
593
  resolvePackageRoot,
481
594
  // includeAll when the release group is independent, as we may be filtering to a specific subset of projects, but we still want to update their dependents
@@ -486,7 +599,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
486
599
  return localPackageDependency.target === project.name;
487
600
  });
488
601
  if (!currentVersion) {
489
- throw new Error(`Unable to determine the current version for project "${projectName}"`);
602
+ throw new Error(
603
+ `Unable to determine the current version for project "${projectName}"`
604
+ );
490
605
  }
491
606
  versionData[projectName] = {
492
607
  currentVersion: currentVersion ? currentVersion : "0.0.1",
@@ -495,10 +610,16 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
495
610
  // will stay as null in the final result in the case that no changes are detected
496
611
  };
497
612
  if (!specifier) {
498
- log(`\u{1F6AB} Skipping versioning "${packageName}" as no changes were detected.`);
613
+ log(
614
+ `\u{1F6AB} Skipping versioning "${packageName}" as no changes were detected.`
615
+ );
499
616
  continue;
500
617
  }
501
- const newVersion = _versionlegacy.deriveNewSemverVersion.call(void 0, currentVersion, specifier, options.preid);
618
+ const newVersion = _versionlegacy.deriveNewSemverVersion.call(void 0,
619
+ currentVersion,
620
+ specifier,
621
+ options.preid
622
+ );
502
623
  if (versionData[projectName]) {
503
624
  versionData[projectName].newVersion = newVersion;
504
625
  }
@@ -509,24 +630,40 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
509
630
  version: newVersion
510
631
  });
511
632
  } else if (tree.exists(cargoTomlPath)) {
512
- const cargoToml = _chunkZMFVKBRMjs.parseCargoToml.call(void 0, _optionalChain([tree, 'access', _23 => _23.read, 'call', _24 => _24(cargoTomlPath), 'optionalAccess', _25 => _25.toString, 'call', _26 => _26("utf-8")]));
633
+ const cargoToml = _chunkBWGJVRASjs.parseCargoToml.call(void 0,
634
+ _optionalChain([tree, 'access', _23 => _23.read, 'call', _24 => _24(cargoTomlPath), 'optionalAccess', _25 => _25.toString, 'call', _26 => _26("utf-8")])
635
+ );
513
636
  cargoToml.package ??= {};
514
637
  cargoToml.package.version = newVersion;
515
- tree.write(cargoTomlPath, _chunkZMFVKBRMjs.stringifyCargoToml.call(void 0, cargoToml));
638
+ tree.write(cargoTomlPath, _chunkBWGJVRASjs.stringifyCargoToml.call(void 0, cargoToml));
516
639
  }
517
- log(`\u270D\uFE0F New version ${newVersion} written to ${workspaceRelativePackagePath}`);
640
+ log(
641
+ `\u270D\uFE0F New version ${newVersion} written to ${workspaceRelativePackagePath}`
642
+ );
518
643
  if (dependentProjects.length > 0) {
519
- log(`\u270D\uFE0F Applying new version ${newVersion} to ${dependentProjects.length} ${dependentProjects.length > 1 ? "packages which depend" : "package which depends"} on ${project.name}`);
644
+ log(
645
+ `\u270D\uFE0F Applying new version ${newVersion} to ${dependentProjects.length} ${dependentProjects.length > 1 ? "packages which depend" : "package which depends"} on ${project.name}`
646
+ );
520
647
  }
521
648
  for (const dependentProject of dependentProjects) {
522
- const dependentPackageRoot = projectNameToPackageRootMap.get(dependentProject.source);
649
+ const dependentPackageRoot = projectNameToPackageRootMap.get(
650
+ dependentProject.source
651
+ );
523
652
  if (!dependentPackageRoot) {
524
- throw new Error(`The dependent project "${dependentProject.source}" does not have a packageRoot available.
653
+ throw new Error(
654
+ `The dependent project "${dependentProject.source}" does not have a packageRoot available.
525
655
 
526
- Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.keys()).join(", ")}`);
656
+ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.keys()).join(", ")}`
657
+ );
527
658
  }
528
- const dependentPackageJsonPath = _devkit.joinPathFragments.call(void 0, dependentPackageRoot, "package.json");
529
- const dependentCargoTomlPath = _devkit.joinPathFragments.call(void 0, dependentPackageRoot, "Cargo.toml");
659
+ const dependentPackageJsonPath = _devkit.joinPathFragments.call(void 0,
660
+ dependentPackageRoot,
661
+ "package.json"
662
+ );
663
+ const dependentCargoTomlPath = _devkit.joinPathFragments.call(void 0,
664
+ dependentPackageRoot,
665
+ "Cargo.toml"
666
+ );
530
667
  if (tree.exists(dependentPackageJsonPath)) {
531
668
  _devkit.updateJson.call(void 0, tree, dependentPackageJsonPath, (json) => {
532
669
  let versionPrefix = _nullishCoalesce(options.versionPrefix, () => ( "auto"));
@@ -546,10 +683,16 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
546
683
  return json;
547
684
  });
548
685
  } else if (tree.exists(dependentCargoTomlPath)) {
549
- const dependentPkg = _chunkZMFVKBRMjs.parseCargoTomlWithTree.call(void 0, tree, dependentPackageRoot, dependentProject.source);
686
+ const dependentPkg = _chunkBWGJVRASjs.parseCargoTomlWithTree.call(void 0,
687
+ tree,
688
+ dependentPackageRoot,
689
+ dependentProject.source
690
+ );
550
691
  let versionPrefix = _nullishCoalesce(options.versionPrefix, () => ( "auto"));
551
692
  let updatedDependencyData = "";
552
- for (const dependency of Object.entries(_nullishCoalesce(dependentPkg[dependentProject.dependencyCollection], () => ( {})))) {
693
+ for (const dependency of Object.entries(
694
+ _nullishCoalesce(dependentPkg[dependentProject.dependencyCollection], () => ( {}))
695
+ )) {
553
696
  const [dependencyName, dependencyData] = dependency;
554
697
  if (dependencyName !== dependentProject.target) {
555
698
  continue;
@@ -578,23 +721,36 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
578
721
  };
579
722
  break;
580
723
  }
581
- const cargoTomlToUpdate = _devkit.joinPathFragments.call(void 0, dependentPackageRoot, "Cargo.toml");
582
- _chunkZMFVKBRMjs.modifyCargoTable.call(void 0, dependentPkg, dependentProject.dependencyCollection, dependentProject.target, updatedDependencyData);
583
- tree.write(cargoTomlToUpdate, _chunkZMFVKBRMjs.stringifyCargoToml.call(void 0, dependentPkg));
724
+ const cargoTomlToUpdate = _devkit.joinPathFragments.call(void 0,
725
+ dependentPackageRoot,
726
+ "Cargo.toml"
727
+ );
728
+ _chunkBWGJVRASjs.modifyCargoTable.call(void 0,
729
+ dependentPkg,
730
+ dependentProject.dependencyCollection,
731
+ dependentProject.target,
732
+ updatedDependencyData
733
+ );
734
+ tree.write(cargoTomlToUpdate, _chunkBWGJVRASjs.stringifyCargoToml.call(void 0, dependentPkg));
584
735
  }
585
736
  }
586
737
  }
587
738
  await _devkit.formatFiles.call(void 0, tree);
588
- _chunkG4QFSE5Bjs.writeSuccess.call(void 0, `Completed running the Storm Release Version generator!
589
- `, config);
739
+ _chunkWE4HK4RNjs.writeSuccess.call(void 0,
740
+ `Completed running the Storm Release Version generator!
741
+ `,
742
+ config
743
+ );
590
744
  return {
591
745
  data: versionData,
592
- callback: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (tree2, opts) => {
746
+ callback: async (tree2, opts) => {
593
747
  _devkit.output.logSingleLine("Updating Cargo.lock file");
594
748
  const cwd = tree2.root;
595
749
  const updatedFiles = await _asyncNullishCoalesce(await _updatelockfile.updateLockFile.call(void 0, cwd, opts), async () => ( []));
596
750
  const updatedCargoPackages = [];
597
- for (const [projectName, projectVersionData] of Object.entries(versionData)) {
751
+ for (const [projectName, projectVersionData] of Object.entries(
752
+ versionData
753
+ )) {
598
754
  const project = projects.find((proj) => proj.name === projectName);
599
755
  if (projectVersionData.newVersion && _optionalChain([project, 'optionalAccess', _32 => _32.name]) && projectNameToPackageRootMap.get(project.name)) {
600
756
  const projectRoot = projectNameToPackageRootMap.get(project.name);
@@ -616,22 +772,28 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
616
772
  }
617
773
  }
618
774
  return updatedFiles;
619
- }, "callback")
775
+ }
620
776
  };
621
777
  } catch (error) {
622
- _chunkG4QFSE5Bjs.writeFatal.call(void 0, "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate", config);
623
- _chunkG4QFSE5Bjs.writeError.call(void 0, `An exception was thrown in the Storm Release Version generator's process
778
+ _chunkWE4HK4RNjs.writeFatal.call(void 0,
779
+ "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate",
780
+ config
781
+ );
782
+ _chunkWE4HK4RNjs.writeError.call(void 0,
783
+ `An exception was thrown in the Storm Release Version generator's process
624
784
  - Details: ${error.message}
625
- - Stacktrace: ${error.stack}`, config);
626
- throw new Error(`An exception was thrown in the Storm Release Version generator's process
627
- - Details: ${error.message}`, {
628
- cause: error
629
- });
785
+ - Stacktrace: ${error.stack}`,
786
+ config
787
+ );
788
+ throw new Error(
789
+ `An exception was thrown in the Storm Release Version generator's process
790
+ - Details: ${error.message}`,
791
+ { cause: error }
792
+ );
630
793
  } finally {
631
794
  stopwatch();
632
795
  }
633
796
  }
634
- _chunk3GQAWCBQjs.__name.call(void 0, releaseVersionGeneratorFn, "releaseVersionGeneratorFn");
635
797
  var generator_default = releaseVersionGeneratorFn;
636
798
  async function getNpmRegistry() {
637
799
  if (process.env.STORM_REGISTRY_NPM) {
@@ -650,14 +812,12 @@ async function getNpmRegistry() {
650
812
  });
651
813
  return registry ? registry : "https://registry.npmjs.org";
652
814
  }
653
- _chunk3GQAWCBQjs.__name.call(void 0, getNpmRegistry, "getNpmRegistry");
654
815
  function getGitHubRegistry() {
655
816
  if (process.env.STORM_REGISTRY_GITHUB) {
656
817
  return process.env.STORM_REGISTRY_GITHUB;
657
818
  }
658
819
  return "https://npm.pkg.github.com";
659
820
  }
660
- _chunk3GQAWCBQjs.__name.call(void 0, getGitHubRegistry, "getGitHubRegistry");
661
821
  function hasGitDiff(filePath) {
662
822
  try {
663
823
  const result = _child_process.execSync.call(void 0, `git diff --name-only "${filePath}"`).toString();
@@ -666,14 +826,26 @@ function hasGitDiff(filePath) {
666
826
  return false;
667
827
  }
668
828
  }
669
- _chunk3GQAWCBQjs.__name.call(void 0, hasGitDiff, "hasGitDiff");
670
829
  function resolveLocalPackageDependencies(tree, projectGraph, filteredProjects, projectNameToPackageRootMap, resolvePackageRoot, includeAll = false, isNodeProject = true) {
671
830
  if (isNodeProject) {
672
- return _resolvelocalpackagedependencies.resolveLocalPackageDependencies.call(void 0, tree, projectGraph, filteredProjects, projectNameToPackageRootMap, resolvePackageRoot, includeAll);
831
+ return _resolvelocalpackagedependencies.resolveLocalPackageDependencies.call(void 0,
832
+ tree,
833
+ projectGraph,
834
+ filteredProjects,
835
+ projectNameToPackageRootMap,
836
+ resolvePackageRoot,
837
+ includeAll
838
+ );
673
839
  }
674
- return resolveLocalPackageCargoDependencies(tree, projectGraph, filteredProjects, projectNameToPackageRootMap, resolvePackageRoot, includeAll);
840
+ return resolveLocalPackageCargoDependencies(
841
+ tree,
842
+ projectGraph,
843
+ filteredProjects,
844
+ projectNameToPackageRootMap,
845
+ resolvePackageRoot,
846
+ includeAll
847
+ );
675
848
  }
676
- _chunk3GQAWCBQjs.__name.call(void 0, resolveLocalPackageDependencies, "resolveLocalPackageDependencies");
677
849
  function resolveLocalPackageCargoDependencies(tree, projectGraph, filteredProjects, projectNameToPackageRootMap, resolvePackageRoot, includeAll = false) {
678
850
  const localPackageDependencies = {};
679
851
  const projects = includeAll ? Object.values(projectGraph.nodes) : filteredProjects;
@@ -702,14 +874,22 @@ function resolveLocalPackageCargoDependencies(tree, projectGraph, filteredProjec
702
874
  }
703
875
  const depProjectRoot = projectNameToPackageRootMap.get(dep.target);
704
876
  if (!depProjectRoot) {
705
- throw new Error(`The project "${dep.target}" does not have a packageRoot available.`);
877
+ throw new Error(
878
+ `The project "${dep.target}" does not have a packageRoot available.`
879
+ );
706
880
  }
707
- const cargoToml = _chunkZMFVKBRMjs.parseCargoTomlWithTree.call(void 0, tree, resolvePackageRoot(projectNode), projectNode.name);
881
+ const cargoToml = _chunkBWGJVRASjs.parseCargoTomlWithTree.call(void 0,
882
+ tree,
883
+ resolvePackageRoot(projectNode),
884
+ projectNode.name
885
+ );
708
886
  const dependencies = _nullishCoalesce(cargoToml.dependencies, () => ( {}));
709
887
  const devDependencies = _nullishCoalesce(cargoToml["dev-dependencies"], () => ( {}));
710
888
  const dependencyCollection = dependencies[depProject.name] ? "dependencies" : devDependencies[depProject.name] ? "dev-dependencies" : null;
711
889
  if (!dependencyCollection) {
712
- throw new Error(`The project "${projectNode.name}" does not have a local dependency on "${depProject.name}" in its Cargo.toml`);
890
+ throw new Error(
891
+ `The project "${projectNode.name}" does not have a local dependency on "${depProject.name}" in its Cargo.toml`
892
+ );
713
893
  }
714
894
  localPackageDepsForProject.push({
715
895
  ...dep,
@@ -720,7 +900,6 @@ function resolveLocalPackageCargoDependencies(tree, projectGraph, filteredProjec
720
900
  }
721
901
  return localPackageDependencies;
722
902
  }
723
- _chunk3GQAWCBQjs.__name.call(void 0, resolveLocalPackageCargoDependencies, "resolveLocalPackageCargoDependencies");
724
903
 
725
904
 
726
905