@storm-software/workspace-tools 1.272.0 → 1.273.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +2 -1
  3. package/dist/chunk-2CZBN33P.js +685 -0
  4. package/dist/{chunk-LBAVVYKU.js → chunk-2F5TLK3C.js} +21 -19
  5. package/dist/{chunk-AHLKRK7D.mjs → chunk-33FZTHTK.mjs} +2 -2
  6. package/dist/{chunk-7RVW57VK.js → chunk-3G3HNZ22.js} +2 -2
  7. package/dist/{chunk-DCPKZRRY.js → chunk-3QD2U6SS.js} +30 -28
  8. package/dist/{chunk-EKWR7TBP.mjs → chunk-5MOK3MSQ.mjs} +1 -1
  9. package/dist/{chunk-MZSZKV4N.mjs → chunk-5XTW4576.mjs} +1 -1
  10. package/dist/{chunk-MMBLGUC3.mjs → chunk-5XYM22SB.mjs} +5 -3
  11. package/dist/{chunk-YXBFVZ3K.js → chunk-7Q2NOIDR.js} +2 -2
  12. package/dist/{chunk-4QYM3VS4.mjs → chunk-A6H2SCIM.mjs} +41 -3
  13. package/dist/{chunk-4K5FV2MH.mjs → chunk-AAQQSGPY.mjs} +1 -1
  14. package/dist/{chunk-EXYV2BKT.mjs → chunk-AW3I76E2.mjs} +1 -1
  15. package/dist/{chunk-WE4HK4RN.js → chunk-BNERGX6I.js} +1 -655
  16. package/dist/{chunk-KQBEYBS7.js → chunk-BNV64O5L.js} +2 -2
  17. package/dist/{chunk-T7BALDKJ.js → chunk-C22PXFKF.js} +5 -5
  18. package/dist/{chunk-RZVF4LHT.js → chunk-CUMWQELT.js} +41 -3
  19. package/dist/{chunk-6QZSAZZ3.mjs → chunk-DJYOYWNY.mjs} +2 -2
  20. package/dist/{chunk-Q2HYWACQ.mjs → chunk-DMJKKHEC.mjs} +2 -2
  21. package/dist/{chunk-SPXJBMLY.js → chunk-DYDIVZRW.js} +5 -5
  22. package/dist/{chunk-BWGJVRAS.js → chunk-EDMNYJEB.js} +7 -9
  23. package/dist/{chunk-SITFTWPY.mjs → chunk-EHAI3NXN.mjs} +1 -1
  24. package/dist/{chunk-AMW7VHFM.mjs → chunk-EQ3664ZD.mjs} +2 -2
  25. package/dist/{chunk-FYXWAGK3.js → chunk-F6X43VUX.js} +1 -4
  26. package/dist/{chunk-UYSJG2E5.mjs → chunk-FCRAGTW6.mjs} +4 -2
  27. package/dist/{chunk-7HWV6U3E.mjs → chunk-HLMSVHZY.mjs} +2 -2
  28. package/dist/{chunk-X5VIC7HP.js → chunk-KF6AKLGE.js} +2 -2
  29. package/dist/{chunk-MJMN2T4N.mjs → chunk-KHT5W6AJ.mjs} +0 -3
  30. package/dist/{chunk-I2GT7ECM.mjs → chunk-M6IYTP2T.mjs} +1 -1
  31. package/dist/{chunk-7CA3TDXD.js → chunk-M75P2EGZ.js} +2 -2
  32. package/dist/{chunk-5HUW3BTP.mjs → chunk-MLF7ZQBW.mjs} +4 -2
  33. package/dist/{chunk-H5NKKUPV.js → chunk-MNQIKYEB.js} +5 -5
  34. package/dist/{chunk-EYXDS7SG.js → chunk-MSCI7LQ2.js} +4 -4
  35. package/dist/chunk-N63KWRTH.mjs +685 -0
  36. package/dist/{chunk-WGDJV4SH.js → chunk-ON5324R7.js} +2 -2
  37. package/dist/{chunk-RJRBED5Q.js → chunk-QWRE2UFS.js} +17 -15
  38. package/dist/{chunk-U65XVJ4Y.mjs → chunk-R2WP5YDO.mjs} +7 -9
  39. package/dist/{chunk-S5Z4QGF3.js → chunk-S2JDNKK6.js} +9 -9
  40. package/dist/{chunk-I5MSPQMO.js → chunk-SMRFUKN7.js} +5 -5
  41. package/dist/{chunk-54FVHKCU.js → chunk-TSP73RLP.js} +2 -2
  42. package/dist/{chunk-GNOIETZR.js → chunk-TVH6TDED.js} +5 -5
  43. package/dist/{chunk-AJ3C2EDW.js → chunk-VUSG5IWM.js} +22 -20
  44. package/dist/{chunk-PCVYQGOH.mjs → chunk-W2RLHQ24.mjs} +1 -1
  45. package/dist/{chunk-2M22JVJQ.mjs → chunk-WLB7XVWW.mjs} +9 -663
  46. package/dist/{chunk-MF6VZSIO.mjs → chunk-XOKT6TQL.mjs} +2 -2
  47. package/dist/{chunk-KP4RPOBI.mjs → chunk-Y5UH66KY.mjs} +2 -2
  48. package/dist/{chunk-IZN2IVJ4.js → chunk-Y7JE33K2.js} +2 -2
  49. package/dist/{chunk-J6OXY3KI.mjs → chunk-YTHGOOKO.mjs} +5 -3
  50. package/dist/{chunk-EZPQKO5C.mjs → chunk-ZASRR3NW.mjs} +1 -1
  51. package/dist/{executor-B3lwM9GM.d.mts → executor-0ivVjqma.d.mts} +8 -0
  52. package/dist/{executor-B3lwM9GM.d.ts → executor-0ivVjqma.d.ts} +8 -0
  53. package/dist/executors.d.mts +1 -1
  54. package/dist/executors.d.ts +1 -1
  55. package/dist/executors.js +17 -16
  56. package/dist/executors.mjs +16 -15
  57. package/dist/generators.js +13 -12
  58. package/dist/generators.mjs +12 -11
  59. package/dist/index.d.mts +2 -2
  60. package/dist/index.d.ts +2 -2
  61. package/dist/index.js +29 -39
  62. package/dist/index.mjs +36 -46
  63. package/dist/src/base/base-executor.js +4 -3
  64. package/dist/src/base/base-executor.mjs +3 -2
  65. package/dist/src/base/base-generator.js +4 -3
  66. package/dist/src/base/base-generator.mjs +3 -2
  67. package/dist/src/base/index.js +7 -6
  68. package/dist/src/base/index.mjs +6 -5
  69. package/dist/src/executors/cargo-build/executor.js +5 -4
  70. package/dist/src/executors/cargo-build/executor.mjs +4 -3
  71. package/dist/src/executors/cargo-check/executor.js +5 -4
  72. package/dist/src/executors/cargo-check/executor.mjs +4 -3
  73. package/dist/src/executors/cargo-clippy/executor.js +5 -4
  74. package/dist/src/executors/cargo-clippy/executor.mjs +4 -3
  75. package/dist/src/executors/cargo-doc/executor.js +5 -4
  76. package/dist/src/executors/cargo-doc/executor.mjs +4 -3
  77. package/dist/src/executors/cargo-format/executor.js +5 -4
  78. package/dist/src/executors/cargo-format/executor.mjs +4 -3
  79. package/dist/src/executors/cargo-publish/executor.js +6 -3
  80. package/dist/src/executors/cargo-publish/executor.mjs +5 -2
  81. package/dist/src/executors/clean-package/executor.js +6 -5
  82. package/dist/src/executors/clean-package/executor.mjs +3 -2
  83. package/dist/src/executors/esbuild/executor.js +5 -4
  84. package/dist/src/executors/esbuild/executor.mjs +4 -3
  85. package/dist/src/executors/npm-publish/executor.d.mts +1 -1
  86. package/dist/src/executors/npm-publish/executor.d.ts +1 -1
  87. package/dist/src/executors/npm-publish/executor.js +3 -3
  88. package/dist/src/executors/npm-publish/executor.mjs +2 -2
  89. package/dist/src/executors/npm-publish/untyped.js +7 -0
  90. package/dist/src/executors/npm-publish/untyped.mjs +7 -0
  91. package/dist/src/executors/size-limit/executor.js +5 -4
  92. package/dist/src/executors/size-limit/executor.mjs +4 -3
  93. package/dist/src/executors/typia/executor.js +5 -4
  94. package/dist/src/executors/typia/executor.mjs +4 -3
  95. package/dist/src/executors/unbuild/executor.js +5 -4
  96. package/dist/src/executors/unbuild/executor.mjs +4 -3
  97. package/dist/src/generators/browser-library/generator.js +7 -6
  98. package/dist/src/generators/browser-library/generator.mjs +6 -5
  99. package/dist/src/generators/config-schema/generator.js +5 -4
  100. package/dist/src/generators/config-schema/generator.mjs +4 -3
  101. package/dist/src/generators/neutral-library/generator.js +7 -6
  102. package/dist/src/generators/neutral-library/generator.mjs +6 -5
  103. package/dist/src/generators/node-library/generator.js +7 -6
  104. package/dist/src/generators/node-library/generator.mjs +6 -5
  105. package/dist/src/generators/preset/generator.js +5 -4
  106. package/dist/src/generators/preset/generator.mjs +4 -3
  107. package/dist/src/generators/release-version/generator.js +5 -4
  108. package/dist/src/generators/release-version/generator.mjs +4 -3
  109. package/dist/src/utils/cargo.d.mts +1 -1
  110. package/dist/src/utils/cargo.d.ts +1 -1
  111. package/dist/src/utils/index.d.mts +1 -1
  112. package/dist/src/utils/index.d.ts +1 -1
  113. package/dist/src/utils/index.js +8 -18
  114. package/dist/src/utils/index.mjs +15 -25
  115. package/dist/src/utils/package-helpers.d.mts +1 -1
  116. package/dist/src/utils/package-helpers.d.ts +1 -1
  117. package/dist/src/utils/package-helpers.js +6 -3
  118. package/dist/src/utils/package-helpers.mjs +5 -2
  119. package/dist/src/utils/pnpm-deps-update.js +2 -2
  120. package/dist/src/utils/pnpm-deps-update.mjs +1 -1
  121. package/dist/{src/utils/toml.d.mts → toml-C0imOcwz.d.mts} +1 -8
  122. package/dist/{src/utils/toml.d.ts → toml-C0imOcwz.d.ts} +1 -8
  123. package/docs/api/executors/npm-publish/schema.md +9 -0
  124. package/package.json +4 -4
  125. package/dist/src/base/base-executor.schema.d.ts +0 -17
  126. package/dist/src/base/base-executor.schema.json +0 -19
  127. package/dist/src/base/base-executor.schema.md +0 -16
  128. package/dist/src/base/base-generator.schema.d.ts +0 -14
  129. package/dist/src/base/base-generator.schema.json +0 -15
  130. package/dist/src/base/base-generator.schema.md +0 -15
  131. package/dist/src/base/cargo-base-executor.schema.d.ts +0 -89
  132. package/dist/src/base/cargo-base-executor.schema.json +0 -88
  133. package/dist/src/base/cargo-base-executor.schema.md +0 -90
  134. package/dist/src/base/typescript-build-executor.schema.d.ts +0 -135
  135. package/dist/src/base/typescript-build-executor.schema.json +0 -178
  136. package/dist/src/base/typescript-build-executor.schema.md +0 -126
  137. package/dist/src/base/typescript-library-generator.schema.d.ts +0 -122
  138. package/dist/src/base/typescript-library-generator.schema.json +0 -119
  139. package/dist/src/base/typescript-library-generator.schema.md +0 -129
  140. package/dist/src/executors/cargo-build/schema.d.ts +0 -86
  141. package/dist/src/executors/cargo-build/schema.json +0 -85
  142. package/dist/src/executors/cargo-build/schema.md +0 -89
  143. package/dist/src/executors/cargo-check/schema.d.ts +0 -89
  144. package/dist/src/executors/cargo-check/schema.json +0 -88
  145. package/dist/src/executors/cargo-check/schema.md +0 -90
  146. package/dist/src/executors/cargo-clippy/schema.d.ts +0 -97
  147. package/dist/src/executors/cargo-clippy/schema.json +0 -94
  148. package/dist/src/executors/cargo-clippy/schema.md +0 -99
  149. package/dist/src/executors/cargo-doc/schema.d.ts +0 -125
  150. package/dist/src/executors/cargo-doc/schema.json +0 -164
  151. package/dist/src/executors/cargo-doc/schema.md +0 -130
  152. package/dist/src/executors/cargo-format/schema.d.ts +0 -89
  153. package/dist/src/executors/cargo-format/schema.json +0 -88
  154. package/dist/src/executors/cargo-format/schema.md +0 -90
  155. package/dist/src/executors/cargo-publish/schema.d.ts +0 -115
  156. package/dist/src/executors/cargo-publish/schema.json +0 -107
  157. package/dist/src/executors/cargo-publish/schema.md +0 -117
  158. package/dist/src/executors/clean-package/schema.d.ts +0 -60
  159. package/dist/src/executors/clean-package/schema.json +0 -57
  160. package/dist/src/executors/clean-package/schema.md +0 -65
  161. package/dist/src/executors/esbuild/schema.d.ts +0 -137
  162. package/dist/src/executors/esbuild/schema.json +0 -165
  163. package/dist/src/executors/esbuild/schema.md +0 -126
  164. package/dist/src/executors/npm-publish/schema.d.ts +0 -60
  165. package/dist/src/executors/npm-publish/schema.json +0 -55
  166. package/dist/src/executors/npm-publish/schema.md +0 -64
  167. package/dist/src/executors/size-limit/schema.d.ts +0 -25
  168. package/dist/src/executors/size-limit/schema.json +0 -29
  169. package/dist/src/executors/size-limit/schema.md +0 -25
  170. package/dist/src/executors/typia/schema.d.ts +0 -48
  171. package/dist/src/executors/typia/schema.json +0 -57
  172. package/dist/src/executors/typia/schema.md +0 -46
  173. package/dist/src/executors/unbuild/schema.d.ts +0 -258
  174. package/dist/src/executors/unbuild/schema.json +0 -301
  175. package/dist/src/executors/unbuild/schema.md +0 -222
  176. package/dist/src/generators/browser-library/schema.d.ts +0 -122
  177. package/dist/src/generators/browser-library/schema.json +0 -117
  178. package/dist/src/generators/browser-library/schema.md +0 -129
  179. package/dist/src/generators/config-schema/schema.d.ts +0 -23
  180. package/dist/src/generators/config-schema/schema.json +0 -24
  181. package/dist/src/generators/config-schema/schema.md +0 -25
  182. package/dist/src/generators/init/schema.d.ts +0 -14
  183. package/dist/src/generators/init/schema.json +0 -15
  184. package/dist/src/generators/init/schema.md +0 -15
  185. package/dist/src/generators/neutral-library/schema.d.ts +0 -122
  186. package/dist/src/generators/neutral-library/schema.json +0 -116
  187. package/dist/src/generators/neutral-library/schema.md +0 -129
  188. package/dist/src/generators/node-library/schema.d.ts +0 -122
  189. package/dist/src/generators/node-library/schema.json +0 -117
  190. package/dist/src/generators/node-library/schema.md +0 -129
  191. package/dist/src/generators/preset/schema.d.ts +0 -101
  192. package/dist/src/generators/preset/schema.json +0 -96
  193. package/dist/src/generators/preset/schema.md +0 -110
  194. package/dist/src/generators/release-version/schema.d.ts +0 -180
  195. package/dist/src/generators/release-version/schema.json +0 -158
  196. package/dist/src/generators/release-version/schema.md +0 -160
  197. package/dist/src/plugins/typescript/untyped-schema.ts +0 -192
  198. package/dist/src/utils/toml.js +0 -15
  199. package/dist/src/utils/toml.mjs +0 -15
  200. package/dist/{chunk-3EDSGFA5.mjs → chunk-3PTWOMU2.mjs} +3 -3
  201. package/dist/{chunk-XCVH63OO.mjs → chunk-6YZ3OUJB.mjs} +0 -0
  202. package/dist/{chunk-DO2X7OZO.js → chunk-JGP4YWZY.js} +0 -0
  203. package/dist/{chunk-J4DYXH46.js → chunk-U3YH5M4L.js} +2 -2
@@ -3,9 +3,10 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkBWGJVRASjs = require('./chunk-BWGJVRAS.js');
6
+ var _chunkEDMNYJEBjs = require('./chunk-EDMNYJEB.js');
7
7
 
8
8
 
9
+ var _chunk2CZBN33Pjs = require('./chunk-2CZBN33P.js');
9
10
 
10
11
 
11
12
 
@@ -13,7 +14,8 @@ var _chunkBWGJVRASjs = require('./chunk-BWGJVRAS.js');
13
14
 
14
15
 
15
16
 
16
- var _chunkWE4HK4RNjs = require('./chunk-WE4HK4RN.js');
17
+
18
+ var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
17
19
 
18
20
 
19
21
  var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
@@ -253,19 +255,19 @@ var _versionlegacy = require('nx/src/command-line/release/version-legacy');
253
255
  var _utils = require('nx/src/tasks-runner/utils');
254
256
  var _semver3 = require('semver');
255
257
  async function releaseVersionGeneratorFn(tree, options, config) {
256
- _chunkWE4HK4RNjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
258
+ _chunkBNERGX6Ijs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
257
259
 
258
260
  `, config);
259
- const stopwatch = _chunkWE4HK4RNjs.getStopwatch.call(void 0, "Storm Release Version generator");
261
+ const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, "Storm Release Version generator");
260
262
  try {
261
263
  const workspaceRoot = _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
262
- _chunkWE4HK4RNjs.writeDebug.call(void 0,
264
+ _chunkBNERGX6Ijs.writeDebug.call(void 0,
263
265
  `Loading the Storm Config from environment variables and storm.config.js file...
264
266
  - workspaceRoot: ${workspaceRoot}`,
265
267
  config
266
268
  );
267
- config = await _chunkWE4HK4RNjs.getConfig.call(void 0, workspaceRoot);
268
- _chunkWE4HK4RNjs.writeTrace.call(void 0,
269
+ config = await _chunk2CZBN33Pjs.getConfig.call(void 0, workspaceRoot);
270
+ _chunkBNERGX6Ijs.writeTrace.call(void 0,
269
271
  `Generator schema options \u2699\uFE0F
270
272
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).filter(
271
273
  (key) => ![
@@ -346,9 +348,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
346
348
  tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath
347
349
  );
348
350
  const log = (msg) => {
349
- _chunkWE4HK4RNjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
351
+ _chunkBNERGX6Ijs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
350
352
  };
351
- _chunkWE4HK4RNjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
353
+ _chunkBNERGX6Ijs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
352
354
  let packageName;
353
355
  let currentVersionFromDisk;
354
356
  if (tree.exists(packageJsonPath)) {
@@ -359,7 +361,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
359
361
  packageName = projectPackageJson.name;
360
362
  currentVersionFromDisk = projectPackageJson.version;
361
363
  } else if (tree.exists(cargoTomlPath)) {
362
- const cargoToml = _chunkBWGJVRASjs.parseCargoToml.call(void 0,
364
+ const cargoToml = _chunkEDMNYJEBjs.parseCargoToml.call(void 0,
363
365
  _optionalChain([tree, 'access', _10 => _10.read, 'call', _11 => _11(cargoTomlPath), 'optionalAccess', _12 => _12.toString, 'call', _13 => _13("utf-8")])
364
366
  );
365
367
  log(
@@ -630,12 +632,12 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
630
632
  version: newVersion
631
633
  });
632
634
  } else if (tree.exists(cargoTomlPath)) {
633
- const cargoToml = _chunkBWGJVRASjs.parseCargoToml.call(void 0,
635
+ const cargoToml = _chunkEDMNYJEBjs.parseCargoToml.call(void 0,
634
636
  _optionalChain([tree, 'access', _23 => _23.read, 'call', _24 => _24(cargoTomlPath), 'optionalAccess', _25 => _25.toString, 'call', _26 => _26("utf-8")])
635
637
  );
636
638
  cargoToml.package ??= {};
637
639
  cargoToml.package.version = newVersion;
638
- tree.write(cargoTomlPath, _chunkBWGJVRASjs.stringifyCargoToml.call(void 0, cargoToml));
640
+ tree.write(cargoTomlPath, _chunkEDMNYJEBjs.stringifyCargoToml.call(void 0, cargoToml));
639
641
  }
640
642
  log(
641
643
  `\u270D\uFE0F New version ${newVersion} written to ${workspaceRelativePackagePath}`
@@ -683,7 +685,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
683
685
  return json;
684
686
  });
685
687
  } else if (tree.exists(dependentCargoTomlPath)) {
686
- const dependentPkg = _chunkBWGJVRASjs.parseCargoTomlWithTree.call(void 0,
688
+ const dependentPkg = _chunkEDMNYJEBjs.parseCargoTomlWithTree.call(void 0,
687
689
  tree,
688
690
  dependentPackageRoot,
689
691
  dependentProject.source
@@ -725,18 +727,18 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
725
727
  dependentPackageRoot,
726
728
  "Cargo.toml"
727
729
  );
728
- _chunkBWGJVRASjs.modifyCargoTable.call(void 0,
730
+ _chunkEDMNYJEBjs.modifyCargoTable.call(void 0,
729
731
  dependentPkg,
730
732
  dependentProject.dependencyCollection,
731
733
  dependentProject.target,
732
734
  updatedDependencyData
733
735
  );
734
- tree.write(cargoTomlToUpdate, _chunkBWGJVRASjs.stringifyCargoToml.call(void 0, dependentPkg));
736
+ tree.write(cargoTomlToUpdate, _chunkEDMNYJEBjs.stringifyCargoToml.call(void 0, dependentPkg));
735
737
  }
736
738
  }
737
739
  }
738
740
  await _devkit.formatFiles.call(void 0, tree);
739
- _chunkWE4HK4RNjs.writeSuccess.call(void 0,
741
+ _chunkBNERGX6Ijs.writeSuccess.call(void 0,
740
742
  `Completed running the Storm Release Version generator!
741
743
  `,
742
744
  config
@@ -775,11 +777,11 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
775
777
  }
776
778
  };
777
779
  } catch (error) {
778
- _chunkWE4HK4RNjs.writeFatal.call(void 0,
780
+ _chunkBNERGX6Ijs.writeFatal.call(void 0,
779
781
  "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate",
780
782
  config
781
783
  );
782
- _chunkWE4HK4RNjs.writeError.call(void 0,
784
+ _chunkBNERGX6Ijs.writeError.call(void 0,
783
785
  `An exception was thrown in the Storm Release Version generator's process
784
786
  - Details: ${error.message}
785
787
  - Stacktrace: ${error.stack}`,
@@ -878,7 +880,7 @@ function resolveLocalPackageCargoDependencies(tree, projectGraph, filteredProjec
878
880
  `The project "${dep.target}" does not have a packageRoot available.`
879
881
  );
880
882
  }
881
- const cargoToml = _chunkBWGJVRASjs.parseCargoTomlWithTree.call(void 0,
883
+ const cargoToml = _chunkEDMNYJEBjs.parseCargoTomlWithTree.call(void 0,
882
884
  tree,
883
885
  resolvePackageRoot(projectNode),
884
886
  projectNode.name
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  normalizeOptions,
3
3
  typeScriptLibraryGeneratorFn
4
- } from "./chunk-3EDSGFA5.mjs";
4
+ } from "./chunk-3PTWOMU2.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-5HUW3BTP.mjs";
7
+ } from "./chunk-MLF7ZQBW.mjs";
8
8
  import {
9
9
  joinPaths
10
10
  } from "./chunk-U7JFVMCK.mjs";
@@ -4,14 +4,14 @@
4
4
  var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
5
5
 
6
6
 
7
- var _chunkAJ3C2EDWjs = require('./chunk-AJ3C2EDW.js');
7
+ var _chunkVUSG5IWMjs = require('./chunk-VUSG5IWM.js');
8
8
 
9
9
  // src/executors/cargo-format/executor.ts
10
10
  async function cargoFormatExecutor(options, context) {
11
11
  const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "fmt", options, context);
12
12
  return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
13
13
  }
14
- var executor_default = _chunkAJ3C2EDWjs.withRunExecutor.call(void 0,
14
+ var executor_default = _chunkVUSG5IWMjs.withRunExecutor.call(void 0,
15
15
  "Cargo - Format",
16
16
  cargoFormatExecutor,
17
17
  {
@@ -1,8 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkAJ3C2EDWjs = require('./chunk-AJ3C2EDW.js');
3
+ var _chunkVUSG5IWMjs = require('./chunk-VUSG5IWM.js');
4
4
 
5
5
 
6
+ var _chunk2CZBN33Pjs = require('./chunk-2CZBN33P.js');
6
7
 
7
8
 
8
9
 
@@ -11,7 +12,8 @@ var _chunkAJ3C2EDWjs = require('./chunk-AJ3C2EDW.js');
11
12
 
12
13
 
13
14
 
14
- var _chunkWE4HK4RNjs = require('./chunk-WE4HK4RN.js');
15
+
16
+ var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
15
17
 
16
18
 
17
19
  var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
@@ -79,7 +81,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
79
81
  output: "src/"
80
82
  });
81
83
  }
82
- _chunkWE4HK4RNjs.writeTrace.call(void 0,
84
+ _chunkBNERGX6Ijs.writeTrace.call(void 0,
83
85
  `\u{1F4DD} Copying the following assets to the output directory:
84
86
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunk53DNHF7Bjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
85
87
  config
@@ -92,7 +94,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
92
94
  });
93
95
  await assetHandler.processAllAssetsOnce();
94
96
  if (includeSrc === true) {
95
- _chunkWE4HK4RNjs.writeDebug.call(void 0,
97
+ _chunkBNERGX6Ijs.writeDebug.call(void 0,
96
98
  `\u{1F4DD} Adding banner and writing source files: ${_chunk53DNHF7Bjs.joinPaths.call(void 0,
97
99
  outputPath,
98
100
  "src"
@@ -176,7 +178,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
176
178
  }
177
179
  }
178
180
  if (localPackages.length > 0) {
179
- _chunkWE4HK4RNjs.writeTrace.call(void 0,
181
+ _chunkBNERGX6Ijs.writeTrace.call(void 0,
180
182
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
181
183
  );
182
184
  const projectJsonFile = await _promises.readFile.call(void 0,
@@ -224,7 +226,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
224
226
  return ret;
225
227
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
226
228
  } else {
227
- _chunkWE4HK4RNjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
229
+ _chunkBNERGX6Ijs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
228
230
  }
229
231
  return packageJson;
230
232
  };
@@ -301,11 +303,11 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
301
303
  // ../esbuild/src/assets.ts
302
304
  async function copyBuildAssets(context) {
303
305
  if (_optionalChain([context, 'access', _24 => _24.result, 'optionalAccess', _25 => _25.errors, 'access', _26 => _26.length]) === 0) {
304
- _chunkWE4HK4RNjs.writeDebug.call(void 0,
306
+ _chunkBNERGX6Ijs.writeDebug.call(void 0,
305
307
  ` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`,
306
308
  context.workspaceConfig
307
309
  );
308
- const stopwatch = _chunkWE4HK4RNjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
310
+ const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
309
311
  await copyAssets(
310
312
  context.workspaceConfig,
311
313
  _nullishCoalesce(context.options.assets, () => ( [])),
@@ -388,11 +390,11 @@ async function resolveContext(userOptions) {
388
390
  if (!workspaceRoot) {
389
391
  throw new Error("Cannot find Nx workspace root");
390
392
  }
391
- const workspaceConfig = await _chunkWE4HK4RNjs.getWorkspaceConfig.call(void 0, true, {
393
+ const workspaceConfig = await _chunk2CZBN33Pjs.getWorkspaceConfig.call(void 0, true, {
392
394
  workspaceRoot: workspaceRoot.dir
393
395
  });
394
- _chunkWE4HK4RNjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
395
- const stopwatch = _chunkWE4HK4RNjs.getStopwatch.call(void 0, "Build options resolution");
396
+ _chunkBNERGX6Ijs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
397
+ const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, "Build options resolution");
396
398
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
397
399
  exitOnError: true
398
400
  });
@@ -470,8 +472,8 @@ async function resolveContext(userOptions) {
470
472
 
471
473
  async function generatePackageJson(context) {
472
474
  if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk53DNHF7Bjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
473
- _chunkWE4HK4RNjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
474
- const stopwatch = _chunkWE4HK4RNjs.getStopwatch.call(void 0, "Write package.json file");
475
+ _chunkBNERGX6Ijs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
476
+ const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, "Write package.json file");
475
477
  const packageJsonPath = _chunk53DNHF7Bjs.joinPaths.call(void 0,
476
478
  context.options.projectRoot,
477
479
  "project.json"
@@ -661,10 +663,10 @@ var depsCheckPlugin = (bundle) => ({
661
663
  const filteredMissingDeps = missingDependencies.filter((dep) => {
662
664
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
663
665
  });
664
- _chunkWE4HK4RNjs.writeWarning.call(void 0,
666
+ _chunkBNERGX6Ijs.writeWarning.call(void 0,
665
667
  `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
666
668
  );
667
- _chunkWE4HK4RNjs.writeError.call(void 0,
669
+ _chunkBNERGX6Ijs.writeError.call(void 0,
668
670
  `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
669
671
  );
670
672
  if (filteredMissingDeps.length > 0) {
@@ -679,11 +681,11 @@ ${JSON.stringify(filteredMissingDeps)}
679
681
  // ../esbuild/src/tsup.ts
680
682
  var _tsup = require('tsup');
681
683
  async function executeTsup(context) {
682
- _chunkWE4HK4RNjs.writeDebug.call(void 0,
684
+ _chunkBNERGX6Ijs.writeDebug.call(void 0,
683
685
  ` \u{1F680} Running ${context.options.name} build`,
684
686
  context.workspaceConfig
685
687
  );
686
- const stopwatch = _chunkWE4HK4RNjs.getStopwatch.call(void 0, `${context.options.name} build`);
688
+ const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, `${context.options.name} build`);
687
689
  await _tsup.build.call(void 0, {
688
690
  ...context.options,
689
691
  outDir: context.options.distDir ? _chunk53DNHF7Bjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
@@ -697,17 +699,17 @@ async function executeTsup(context) {
697
699
  async function reportResults(context) {
698
700
  if (_optionalChain([context, 'access', _29 => _29.result, 'optionalAccess', _30 => _30.errors, 'access', _31 => _31.length]) === 0) {
699
701
  if (context.result.warnings.length > 0) {
700
- _chunkWE4HK4RNjs.writeWarning.call(void 0,
702
+ _chunkBNERGX6Ijs.writeWarning.call(void 0,
701
703
  ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
702
704
  context.workspaceConfig
703
705
  );
704
706
  }
705
- _chunkWE4HK4RNjs.writeSuccess.call(void 0,
707
+ _chunkBNERGX6Ijs.writeSuccess.call(void 0,
706
708
  ` \u{1F4E6} The ${context.options.name} build completed successfully`,
707
709
  context.workspaceConfig
708
710
  );
709
711
  } else if (_optionalChain([context, 'access', _32 => _32.result, 'optionalAccess', _33 => _33.errors]) && _optionalChain([context, 'access', _34 => _34.result, 'optionalAccess', _35 => _35.errors, 'access', _36 => _36.length]) > 0) {
710
- _chunkWE4HK4RNjs.writeError.call(void 0,
712
+ _chunkBNERGX6Ijs.writeError.call(void 0,
711
713
  ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
712
714
  context.workspaceConfig
713
715
  );
@@ -744,19 +746,19 @@ async function dependencyCheck(options) {
744
746
  }
745
747
  async function cleanOutputPath(context) {
746
748
  if (context.clean !== false && context.outputPath) {
747
- _chunkWE4HK4RNjs.writeDebug.call(void 0,
749
+ _chunkBNERGX6Ijs.writeDebug.call(void 0,
748
750
  ` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
749
751
  context.workspaceConfig
750
752
  );
751
- const stopwatch = _chunkWE4HK4RNjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
753
+ const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, `${context.options.name} output clean`);
752
754
  await cleanDirectories(context.outputPath);
753
755
  stopwatch();
754
756
  }
755
757
  return context;
756
758
  }
757
759
  async function build2(options) {
758
- _chunkWE4HK4RNjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
759
- const stopwatch = _chunkWE4HK4RNjs.getStopwatch.call(void 0, "ESBuild pipeline");
760
+ _chunkBNERGX6Ijs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
761
+ const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, "ESBuild pipeline");
760
762
  try {
761
763
  const opts = Array.isArray(options) ? options : [options];
762
764
  if (opts.length === 0) {
@@ -771,9 +773,9 @@ async function build2(options) {
771
773
  executeTsup(context)
772
774
  ]);
773
775
  await reportResults(context);
774
- _chunkWE4HK4RNjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
776
+ _chunkBNERGX6Ijs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
775
777
  } catch (error) {
776
- _chunkWE4HK4RNjs.writeFatal.call(void 0,
778
+ _chunkBNERGX6Ijs.writeFatal.call(void 0,
777
779
  "Fatal errors that the build process could not recover from have occured. The build process has been terminated."
778
780
  );
779
781
  throw error;
@@ -784,7 +786,7 @@ async function build2(options) {
784
786
 
785
787
  // src/executors/esbuild/executor.ts
786
788
  async function esbuildExecutorFn(options, context, config) {
787
- _chunkWE4HK4RNjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
789
+ _chunkBNERGX6Ijs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
788
790
  if (!_optionalChain([context, 'access', _37 => _37.projectsConfigurations, 'optionalAccess', _38 => _38.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _39 => _39.projectsConfigurations, 'access', _40 => _40.projects, 'access', _41 => _41[context.projectName], 'optionalAccess', _42 => _42.root])) {
789
791
  throw new Error(
790
792
  "The Build process failed because the context is not valid. Please run this command from a workspace."
@@ -802,7 +804,7 @@ async function esbuildExecutorFn(options, context, config) {
802
804
  success: true
803
805
  };
804
806
  }
805
- var executor_default = _chunkAJ3C2EDWjs.withRunExecutor.call(void 0,
807
+ var executor_default = _chunkVUSG5IWMjs.withRunExecutor.call(void 0,
806
808
  "Storm ESBuild build",
807
809
  esbuildExecutorFn,
808
810
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseCargoToml
3
- } from "./chunk-U65XVJ4Y.mjs";
3
+ } from "./chunk-R2WP5YDO.mjs";
4
4
 
5
5
  // src/executors/cargo-publish/executor.ts
6
6
  import { joinPathFragments } from "@nx/devkit";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-F66XEAID.mjs";
5
5
  import {
6
6
  parseCargoToml
7
- } from "./chunk-U65XVJ4Y.mjs";
7
+ } from "./chunk-R2WP5YDO.mjs";
8
8
 
9
9
  // src/utils/package-helpers.ts
10
10
  import {
@@ -3,9 +3,11 @@ import {
3
3
  parseCargoToml,
4
4
  parseCargoTomlWithTree,
5
5
  stringifyCargoToml
6
- } from "./chunk-U65XVJ4Y.mjs";
6
+ } from "./chunk-R2WP5YDO.mjs";
7
+ import {
8
+ getConfig
9
+ } from "./chunk-N63KWRTH.mjs";
7
10
  import {
8
- getConfig,
9
11
  getStopwatch,
10
12
  writeDebug,
11
13
  writeError,
@@ -13,7 +15,7 @@ import {
13
15
  writeInfo,
14
16
  writeSuccess,
15
17
  writeTrace
16
- } from "./chunk-2M22JVJQ.mjs";
18
+ } from "./chunk-WLB7XVWW.mjs";
17
19
  import {
18
20
  findWorkspaceRoot
19
21
  } from "./chunk-LSF4BHCI.mjs";
@@ -4,7 +4,7 @@
4
4
  var _chunkAX3RSZT7js = require('./chunk-AX3RSZT7.js');
5
5
 
6
6
 
7
- var _chunkBWGJVRASjs = require('./chunk-BWGJVRAS.js');
7
+ var _chunkEDMNYJEBjs = require('./chunk-EDMNYJEB.js');
8
8
 
9
9
  // src/utils/package-helpers.ts
10
10
 
@@ -24,7 +24,7 @@ var getPackageInfo = (project) => {
24
24
  ) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))) {
25
25
  return {
26
26
  type: "Cargo.toml",
27
- content: _chunkBWGJVRASjs.parseCargoToml.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))
27
+ content: _chunkEDMNYJEBjs.parseCargoToml.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))
28
28
  };
29
29
  } else if (_chunkAX3RSZT7js.isEqualProjectTag.call(void 0,
30
30
  project,
@@ -1,13 +1,14 @@
1
1
  import {
2
2
  pnpmUpdate
3
- } from "./chunk-MJMN2T4N.mjs";
3
+ } from "./chunk-KHT5W6AJ.mjs";
4
4
  import {
5
5
  joinPaths
6
6
  } from "./chunk-U7JFVMCK.mjs";
7
7
 
8
8
  // src/executors/npm-publish/executor.ts
9
9
  import { execSync } from "node:child_process";
10
- import { readFile } from "node:fs/promises";
10
+ import { readFile, writeFile } from "node:fs/promises";
11
+ import { format } from "prettier";
11
12
  var LARGE_BUFFER = 1024 * 1e6;
12
13
  async function npmPublishExecutorFn(options, context) {
13
14
  const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
@@ -24,12 +25,49 @@ async function npmPublishExecutorFn(options, context) {
24
25
  context.root,
25
26
  options.packageRoot || joinPaths("dist", projectConfig.root)
26
27
  );
28
+ const projectRoot = context.projectsConfigurations.projects[context.projectName].root ? joinPaths(
29
+ context.root,
30
+ context.projectsConfigurations.projects[context.projectName].root
31
+ ) : packageRoot;
27
32
  const packageJsonPath = joinPaths(packageRoot, "package.json");
28
33
  const packageJsonFile = await readFile(packageJsonPath, "utf8");
29
34
  if (!packageJsonFile) {
30
35
  throw new Error(`Could not find \`package.json\` at ${packageJsonPath}`);
31
36
  }
32
37
  const packageJson = JSON.parse(packageJsonFile);
38
+ const projectPackageJsonPath = joinPaths(projectRoot, "package.json");
39
+ const projectPackageJsonFile = await readFile(projectPackageJsonPath, "utf8");
40
+ if (!projectPackageJsonFile) {
41
+ throw new Error(
42
+ `Could not find \`package.json\` at ${projectPackageJsonPath}`
43
+ );
44
+ }
45
+ const projectPackageJson = JSON.parse(projectPackageJsonFile);
46
+ if (packageJson.version !== projectPackageJson.version) {
47
+ 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 writeFile(
52
+ packageJsonPath,
53
+ await format(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
+ })
69
+ );
70
+ }
33
71
  const packageName = packageJson.name;
34
72
  console.info(
35
73
  `\u{1F680} Running Storm NPM Publish executor on the ${packageName} package`
@@ -79,7 +117,7 @@ async function npmPublishExecutorFn(options, context) {
79
117
  npmPublishCommandSegments.push(`--tag="${tag}" `);
80
118
  }
81
119
  if (!isDryRun) {
82
- const currentVersion = packageJson.version;
120
+ const currentVersion = options.version || packageJson.version;
83
121
  try {
84
122
  try {
85
123
  const result = execSync(npmViewCommandSegments.join(" "), {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-6LP3KKXE.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-UYSJG2E5.mjs";
7
+ } from "./chunk-FCRAGTW6.mjs";
8
8
 
9
9
  // src/executors/cargo-format/executor.ts
10
10
  async function cargoFormatExecutor(options, context) {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-6LP3KKXE.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-UYSJG2E5.mjs";
7
+ } from "./chunk-FCRAGTW6.mjs";
8
8
 
9
9
  // src/executors/cargo-doc/executor.ts
10
10
  async function cargoDocExecutor(options, context) {