@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
@@ -4,6 +4,7 @@
4
4
  var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
5
5
 
6
6
 
7
+ var _chunk2CZBN33Pjs = require('./chunk-2CZBN33P.js');
7
8
 
8
9
 
9
10
 
@@ -11,7 +12,8 @@ var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.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');
@@ -20,30 +22,30 @@ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
20
22
  var withRunGenerator = (name, generatorFn, generatorOptions = {
21
23
  skipReadingConfig: false
22
24
  }) => async (tree, _options) => {
23
- const stopwatch = _chunkWE4HK4RNjs.getStopwatch.call(void 0, name);
25
+ const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, name);
24
26
  let options = _options;
25
27
  let config;
26
28
  try {
27
- _chunkWE4HK4RNjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
29
+ _chunkBNERGX6Ijs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
28
30
 
29
31
  `, config);
30
32
  const workspaceRoot = _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
31
33
  if (!generatorOptions.skipReadingConfig) {
32
- _chunkWE4HK4RNjs.writeDebug.call(void 0,
34
+ _chunkBNERGX6Ijs.writeDebug.call(void 0,
33
35
  `Loading the Storm Config from environment variables and storm.config.js file...
34
36
  - workspaceRoot: ${workspaceRoot}`,
35
37
  config
36
38
  );
37
- config = await _chunkWE4HK4RNjs.getConfig.call(void 0, workspaceRoot);
39
+ config = await _chunk2CZBN33Pjs.getConfig.call(void 0, workspaceRoot);
38
40
  }
39
41
  if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
40
- _chunkWE4HK4RNjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
42
+ _chunkBNERGX6Ijs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
41
43
  options = await Promise.resolve(
42
44
  generatorOptions.hooks.applyDefaultOptions(options, config)
43
45
  );
44
- _chunkWE4HK4RNjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
46
+ _chunkBNERGX6Ijs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
45
47
  }
46
- _chunkWE4HK4RNjs.writeTrace.call(void 0,
48
+ _chunkBNERGX6Ijs.writeTrace.call(void 0,
47
49
  `Generator schema options \u2699\uFE0F
48
50
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
49
51
  config
@@ -54,11 +56,11 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
54
56
  _chunkJ2Z4WP3Ejs.applyWorkspaceBaseTokens
55
57
  );
56
58
  if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
57
- _chunkWE4HK4RNjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
59
+ _chunkBNERGX6Ijs.writeDebug.call(void 0, "Running the preProcess hook...", config);
58
60
  await Promise.resolve(
59
61
  generatorOptions.hooks.preProcess(tokenized, config)
60
62
  );
61
- _chunkWE4HK4RNjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
63
+ _chunkBNERGX6Ijs.writeDebug.call(void 0, "Completed the preProcess hook", config);
62
64
  }
63
65
  const result = await Promise.resolve(
64
66
  generatorFn(tree, tokenized, config)
@@ -73,21 +75,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
73
75
  }
74
76
  }
75
77
  if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
76
- _chunkWE4HK4RNjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
78
+ _chunkBNERGX6Ijs.writeDebug.call(void 0, "Running the postProcess hook...", config);
77
79
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
78
- _chunkWE4HK4RNjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
80
+ _chunkBNERGX6Ijs.writeDebug.call(void 0, "Completed the postProcess hook", config);
79
81
  }
80
82
  return () => {
81
- _chunkWE4HK4RNjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
83
+ _chunkBNERGX6Ijs.writeSuccess.call(void 0, `Completed running the ${name} generator!
82
84
  `, config);
83
85
  };
84
86
  } catch (error) {
85
87
  return () => {
86
- _chunkWE4HK4RNjs.writeFatal.call(void 0,
88
+ _chunkBNERGX6Ijs.writeFatal.call(void 0,
87
89
  "A fatal error occurred while running the generator - the process was forced to terminate",
88
90
  config
89
91
  );
90
- _chunkWE4HK4RNjs.writeError.call(void 0,
92
+ _chunkBNERGX6Ijs.writeError.call(void 0,
91
93
  `An exception was thrown in the generator's process
92
94
  - Details: ${error.message}
93
95
  - Stacktrace: ${error.stack}`,
@@ -1,10 +1,13 @@
1
- // src/utils/toml.ts
1
+ import {
2
+ writeError
3
+ } from "./chunk-WLB7XVWW.mjs";
4
+
5
+ // ../config-tools/src/utilities/toml.ts
2
6
  import TOML from "@ltd/j-toml";
3
- import { logger } from "@nx/devkit";
4
7
  function parseCargoTomlWithTree(tree, projectRoot, projectName) {
5
8
  const cargoTomlString = tree.read(`${projectRoot}/Cargo.toml`)?.toString();
6
9
  if (!cargoTomlString) {
7
- logger.error(`Cannot find a Cargo.toml file in the ${projectName}`);
10
+ writeError(`Cannot find a Cargo.toml file in the ${projectName}`);
8
11
  throw new Error();
9
12
  }
10
13
  return parseCargoToml(cargoTomlString);
@@ -30,15 +33,10 @@ function modifyCargoTable(toml, section, key, value) {
30
33
  toml[section] ??= TOML.Section({});
31
34
  toml[section][key] = typeof value === "object" && !Array.isArray(value) ? TOML.inline(value) : typeof value === "function" ? value() : value;
32
35
  }
33
- function modifyCargoNestedTable(toml, section, key, value) {
34
- toml[section] ??= {};
35
- toml[section][key] = TOML.Section(value);
36
- }
37
36
 
38
37
  export {
39
38
  parseCargoTomlWithTree,
40
39
  parseCargoToml,
41
40
  stringifyCargoToml,
42
- modifyCargoTable,
43
- modifyCargoNestedTable
41
+ modifyCargoTable
44
42
  };
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkRJRBED5Qjs = require('./chunk-RJRBED5Q.js');
3
+ var _chunkQWRE2UFSjs = require('./chunk-QWRE2UFS.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _chunkWE4HK4RNjs = require('./chunk-WE4HK4RN.js');
9
+ var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
10
10
 
11
11
 
12
12
  var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
@@ -15,29 +15,29 @@ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
15
15
  var _devkit = require('@nx/devkit');
16
16
  var _zodtojsonschema = require('zod-to-json-schema');
17
17
  async function configSchemaGeneratorFn(tree, options, config) {
18
- _chunkWE4HK4RNjs.writeInfo.call(void 0,
18
+ _chunkBNERGX6Ijs.writeInfo.call(void 0,
19
19
  "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
20
20
  config
21
21
  );
22
- _chunkWE4HK4RNjs.writeTrace.call(void 0,
22
+ _chunkBNERGX6Ijs.writeTrace.call(void 0,
23
23
  `Determining the Storm Workspace Configuration JSON Schema...`,
24
24
  config
25
25
  );
26
- const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkWE4HK4RNjs.stormWorkspaceConfigSchema, {
26
+ const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkBNERGX6Ijs.stormWorkspaceConfigSchema, {
27
27
  name: "StormWorkspaceConfiguration"
28
28
  });
29
- _chunkWE4HK4RNjs.writeTrace.call(void 0, jsonSchema, config);
29
+ _chunkBNERGX6Ijs.writeTrace.call(void 0, jsonSchema, config);
30
30
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
31
31
  _nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, ))),
32
32
  _optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./"
33
33
  );
34
- _chunkWE4HK4RNjs.writeTrace.call(void 0,
34
+ _chunkBNERGX6Ijs.writeTrace.call(void 0,
35
35
  `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
36
36
  config
37
37
  );
38
38
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
39
39
  await _devkit.formatFiles.call(void 0, tree);
40
- _chunkWE4HK4RNjs.writeSuccess.call(void 0,
40
+ _chunkBNERGX6Ijs.writeSuccess.call(void 0,
41
41
  "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
42
42
  config
43
43
  );
@@ -45,7 +45,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
45
45
  success: true
46
46
  };
47
47
  }
48
- var generator_default = _chunkRJRBED5Qjs.withRunGenerator.call(void 0,
48
+ var generator_default = _chunkQWRE2UFSjs.withRunGenerator.call(void 0,
49
49
  "Configuration Schema Creator",
50
50
  configSchemaGeneratorFn,
51
51
  {
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkJ4DYXH46js = require('./chunk-J4DYXH46.js');
4
+ var _chunkU3YH5M4Ljs = require('./chunk-U3YH5M4L.js');
5
5
 
6
6
 
7
- var _chunkRJRBED5Qjs = require('./chunk-RJRBED5Q.js');
7
+ var _chunkQWRE2UFSjs = require('./chunk-QWRE2UFS.js');
8
8
 
9
9
 
10
10
  var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
@@ -48,7 +48,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
48
48
  description: schema.description,
49
49
  directory: schema.directory
50
50
  };
51
- const options = await _chunkJ4DYXH46js.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
51
+ const options = await _chunkU3YH5M4Ljs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
52
52
  const { className, name, propertyName } = _devkit.names.call(void 0,
53
53
  options.projectNames.projectFileName
54
54
  );
@@ -78,11 +78,11 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
78
78
  }
79
79
  }
80
80
  });
81
- await _chunkJ4DYXH46js.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
81
+ await _chunkU3YH5M4Ljs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
82
82
  await _devkit.formatFiles.call(void 0, tree);
83
83
  return null;
84
84
  }
85
- var generator_default = _chunkRJRBED5Qjs.withRunGenerator.call(void 0,
85
+ var generator_default = _chunkQWRE2UFSjs.withRunGenerator.call(void 0,
86
86
  "TypeScript Library Creator (Browser Platform)",
87
87
  browserLibraryGeneratorFn,
88
88
  {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkBWGJVRASjs = require('./chunk-BWGJVRAS.js');
3
+ var _chunkEDMNYJEBjs = require('./chunk-EDMNYJEB.js');
4
4
 
5
5
  // src/executors/cargo-publish/executor.ts
6
6
  var _devkit = require('@nx/devkit');
@@ -25,7 +25,7 @@ async function runExecutor(options, context) {
25
25
  context.root,
26
26
  options.packageRoot ? options.packageRoot : root
27
27
  );
28
- const cargoToml = _chunkBWGJVRASjs.parseCargoToml.call(void 0,
28
+ const cargoToml = _chunkEDMNYJEBjs.parseCargoToml.call(void 0,
29
29
  _fs.readFileSync.call(void 0, _devkit.joinPathFragments.call(void 0, packageRoot, "Cargo.toml"), "utf-8")
30
30
  );
31
31
  try {
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkJ4DYXH46js = require('./chunk-J4DYXH46.js');
4
+ var _chunkU3YH5M4Ljs = require('./chunk-U3YH5M4L.js');
5
5
 
6
6
 
7
7
  var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
8
8
 
9
9
 
10
- var _chunkRJRBED5Qjs = require('./chunk-RJRBED5Q.js');
10
+ var _chunkQWRE2UFSjs = require('./chunk-QWRE2UFS.js');
11
11
 
12
12
 
13
13
  var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
@@ -37,7 +37,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
37
37
  directory: schema.directory,
38
38
  description: schema.description
39
39
  };
40
- const options = await _chunkJ4DYXH46js.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
40
+ const options = await _chunkU3YH5M4Ljs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
41
41
  const { className, name, propertyName } = _devkit.names.call(void 0, options.name);
42
42
  _devkit.generateFiles.call(void 0, tree, filesDir, options.projectRoot, {
43
43
  ...schema,
@@ -55,11 +55,11 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
55
55
  buildable: options.bundler && options.bundler !== "none",
56
56
  hasUnitTestRunner: options.unitTestRunner !== "none"
57
57
  });
58
- await _chunkJ4DYXH46js.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
58
+ await _chunkU3YH5M4Ljs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
59
59
  await _devkit.formatFiles.call(void 0, tree);
60
60
  return null;
61
61
  }
62
- var generator_default = _chunkRJRBED5Qjs.withRunGenerator.call(void 0,
62
+ var generator_default = _chunkQWRE2UFSjs.withRunGenerator.call(void 0,
63
63
  "TypeScript Library Creator (NodeJs Platform)",
64
64
  nodeLibraryGeneratorFn,
65
65
  {
@@ -4,6 +4,7 @@
4
4
  var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
5
5
 
6
6
 
7
+ var _chunk2CZBN33Pjs = require('./chunk-2CZBN33P.js');
7
8
 
8
9
 
9
10
 
@@ -12,7 +13,8 @@ var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
12
13
 
13
14
 
14
15
 
15
- var _chunkWE4HK4RNjs = require('./chunk-WE4HK4RN.js');
16
+
17
+ var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
16
18
 
17
19
 
18
20
  var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
@@ -20,7 +22,7 @@ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
20
22
  // src/base/base-executor.ts
21
23
  var _defu = require('defu');
22
24
  var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
23
- const stopwatch = _chunkWE4HK4RNjs.getStopwatch.call(void 0, name);
25
+ const stopwatch = _chunkBNERGX6Ijs.getStopwatch.call(void 0, name);
24
26
  let options = _options;
25
27
  let config = {};
26
28
  try {
@@ -34,9 +36,9 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
34
36
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
35
37
  const projectName = context.projectName;
36
38
  config.workspaceRoot = workspaceRoot;
37
- _chunkWE4HK4RNjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
39
+ _chunkBNERGX6Ijs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
38
40
  if (!executorOptions.skipReadingConfig) {
39
- _chunkWE4HK4RNjs.writeTrace.call(void 0,
41
+ _chunkBNERGX6Ijs.writeTrace.call(void 0,
40
42
  `Loading the Storm Config from environment variables and storm.config.js file...
41
43
  - workspaceRoot: ${workspaceRoot}
42
44
  - projectRoot: ${projectRoot}
@@ -45,18 +47,18 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
45
47
  `,
46
48
  config
47
49
  );
48
- config = await _chunkWE4HK4RNjs.getConfig.call(void 0, workspaceRoot);
50
+ config = await _chunk2CZBN33Pjs.getConfig.call(void 0, workspaceRoot);
49
51
  }
50
52
  if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
51
- _chunkWE4HK4RNjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
53
+ _chunkBNERGX6Ijs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
52
54
  options = await Promise.resolve(
53
55
  executorOptions.hooks.applyDefaultOptions(options, config)
54
56
  );
55
- _chunkWE4HK4RNjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
57
+ _chunkBNERGX6Ijs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
56
58
  }
57
- _chunkWE4HK4RNjs.writeTrace.call(void 0,
59
+ _chunkBNERGX6Ijs.writeTrace.call(void 0,
58
60
  `Executor schema options \u2699\uFE0F
59
- ${_chunkWE4HK4RNjs.formatLogMessage.call(void 0, options)}
61
+ ${_chunkBNERGX6Ijs.formatLogMessage.call(void 0, options)}
60
62
  `,
61
63
  config
62
64
  );
@@ -69,18 +71,18 @@ ${_chunkWE4HK4RNjs.formatLogMessage.call(void 0, options)}
69
71
  ),
70
72
  _chunkJ2Z4WP3Ejs.applyWorkspaceProjectTokens
71
73
  );
72
- _chunkWE4HK4RNjs.writeTrace.call(void 0,
74
+ _chunkBNERGX6Ijs.writeTrace.call(void 0,
73
75
  `Executor schema tokenized options \u2699\uFE0F
74
- ${_chunkWE4HK4RNjs.formatLogMessage.call(void 0, tokenized)}
76
+ ${_chunkBNERGX6Ijs.formatLogMessage.call(void 0, tokenized)}
75
77
  `,
76
78
  config
77
79
  );
78
80
  if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
79
- _chunkWE4HK4RNjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
81
+ _chunkBNERGX6Ijs.writeDebug.call(void 0, "Running the preProcess hook...", config);
80
82
  await Promise.resolve(
81
83
  executorOptions.hooks.preProcess(tokenized, config)
82
84
  );
83
- _chunkWE4HK4RNjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
85
+ _chunkBNERGX6Ijs.writeDebug.call(void 0, "Completed the preProcess hook", config);
84
86
  }
85
87
  const ret = executorFn(tokenized, context, config);
86
88
  if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
@@ -93,9 +95,9 @@ ${_chunkWE4HK4RNjs.formatLogMessage.call(void 0, tokenized)}
93
95
  ret
94
96
  );
95
97
  if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _8 => _8.error, 'optionalAccess', _9 => _9.message]) && typeof _optionalChain([result, 'optionalAccess', _10 => _10.error, 'optionalAccess', _11 => _11.message]) === "string" && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.name]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.name]) === "string")) {
96
- _chunkWE4HK4RNjs.writeTrace.call(void 0,
98
+ _chunkBNERGX6Ijs.writeTrace.call(void 0,
97
99
  `Failure determined by the ${name} executor
98
- ${_chunkWE4HK4RNjs.formatLogMessage.call(void 0, result)}`,
100
+ ${_chunkBNERGX6Ijs.formatLogMessage.call(void 0, result)}`,
99
101
  config
100
102
  );
101
103
  console.error(result);
@@ -104,21 +106,21 @@ ${_chunkWE4HK4RNjs.formatLogMessage.call(void 0, result)}`,
104
106
  });
105
107
  }
106
108
  if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
107
- _chunkWE4HK4RNjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
109
+ _chunkBNERGX6Ijs.writeDebug.call(void 0, "Running the postProcess hook...", config);
108
110
  await Promise.resolve(executorOptions.hooks.postProcess(config));
109
- _chunkWE4HK4RNjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
111
+ _chunkBNERGX6Ijs.writeDebug.call(void 0, "Completed the postProcess hook", config);
110
112
  }
111
- _chunkWE4HK4RNjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
113
+ _chunkBNERGX6Ijs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
112
114
  `, config);
113
115
  return {
114
116
  success: true
115
117
  };
116
118
  } catch (error) {
117
- _chunkWE4HK4RNjs.writeFatal.call(void 0,
119
+ _chunkBNERGX6Ijs.writeFatal.call(void 0,
118
120
  "A fatal error occurred while running the executor - the process was forced to terminate",
119
121
  config
120
122
  );
121
- _chunkWE4HK4RNjs.writeError.call(void 0,
123
+ _chunkBNERGX6Ijs.writeError.call(void 0,
122
124
  `An exception was thrown in the executor's process
123
125
  - Details: ${error.message}
124
126
  - Stacktrace: ${error.stack}`,
@@ -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-clippy/executor.ts
10
10
  async function cargoClippyExecutor(options, context) {