@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
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkAJ3C2EDWjs = require('./chunk-AJ3C2EDW.js');
3
+ var _chunkVUSG5IWMjs = require('./chunk-VUSG5IWM.js');
4
4
 
5
5
 
6
- var _chunkWE4HK4RNjs = require('./chunk-WE4HK4RN.js');
6
+ var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
7
7
 
8
8
  // src/executors/size-limit/executor.ts
9
9
  var _devkit = require('@nx/devkit');
@@ -17,14 +17,14 @@ async function sizeLimitExecutorFn(options, context, config) {
17
17
  "The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
18
18
  );
19
19
  }
20
- _chunkWE4HK4RNjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
20
+ _chunkBNERGX6Ijs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
21
21
  _sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
22
22
  checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
23
23
  _nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")),
24
24
  "src"
25
25
  )))
26
26
  }).then((result) => {
27
- _chunkWE4HK4RNjs.writeInfo.call(void 0,
27
+ _chunkBNERGX6Ijs.writeInfo.call(void 0,
28
28
  `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
29
29
  config
30
30
  );
@@ -33,7 +33,7 @@ async function sizeLimitExecutorFn(options, context, config) {
33
33
  success: true
34
34
  };
35
35
  }
36
- var executor_default = _chunkAJ3C2EDWjs.withRunExecutor.call(void 0,
36
+ var executor_default = _chunkVUSG5IWMjs.withRunExecutor.call(void 0,
37
37
  "Size-Limit Performance Test Executor",
38
38
  sizeLimitExecutorFn,
39
39
  {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkFYXWAGK3js = require('./chunk-FYXWAGK3.js');
3
+ var _chunkF6X43VUXjs = require('./chunk-F6X43VUX.js');
4
4
 
5
5
 
6
6
  var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
@@ -8,6 +8,7 @@ var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
8
8
  // src/executors/npm-publish/executor.ts
9
9
  var _child_process = require('child_process');
10
10
  var _promises = require('fs/promises');
11
+ var _prettier = require('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 || _chunk53DNHF7Bjs.joinPaths.call(void 0, "dist", projectConfig.root)
26
27
  );
28
+ const projectRoot = context.projectsConfigurations.projects[context.projectName].root ? _chunk53DNHF7Bjs.joinPaths.call(void 0,
29
+ context.root,
30
+ context.projectsConfigurations.projects[context.projectName].root
31
+ ) : packageRoot;
27
32
  const packageJsonPath = _chunk53DNHF7Bjs.joinPaths.call(void 0, packageRoot, "package.json");
28
33
  const packageJsonFile = await _promises.readFile.call(void 0, 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 = _chunk53DNHF7Bjs.joinPaths.call(void 0, projectRoot, "package.json");
39
+ const projectPackageJsonFile = await _promises.readFile.call(void 0, 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 _promises.writeFile.call(void 0,
52
+ packageJsonPath,
53
+ await _prettier.format.call(void 0, JSON.stringify(packageJson), {
54
+ parser: "json",
55
+ proseWrap: "always",
56
+ trailingComma: "none",
57
+ tabWidth: 2,
58
+ semi: true,
59
+ singleQuote: false,
60
+ quoteProps: "as-needed",
61
+ insertPragma: false,
62
+ bracketSameLine: true,
63
+ printWidth: 80,
64
+ bracketSpacing: true,
65
+ arrowParens: "avoid",
66
+ endOfLine: "lf",
67
+ plugins: ["prettier-plugin-pkg"]
68
+ })
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`
@@ -41,7 +79,7 @@ async function npmPublishExecutorFn(options, context) {
41
79
  );
42
80
  return { success: true };
43
81
  }
44
- await _chunkFYXWAGK3js.pnpmUpdate.call(void 0, packageRoot, context.root);
82
+ await _chunkF6X43VUXjs.pnpmUpdate.call(void 0, packageRoot, context.root);
45
83
  const npmPublishCommandSegments = [`npm publish --json`];
46
84
  const npmViewCommandSegments = [
47
85
  `npm view ${packageName} versions dist-tags --json`
@@ -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 = _child_process.execSync.call(void 0, npmViewCommandSegments.join(" "), {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  withRunGenerator
3
- } from "./chunk-5HUW3BTP.mjs";
3
+ } from "./chunk-MLF7ZQBW.mjs";
4
4
  import {
5
5
  stormWorkspaceConfigSchema,
6
6
  writeInfo,
7
7
  writeSuccess,
8
8
  writeTrace
9
- } from "./chunk-2M22JVJQ.mjs";
9
+ } from "./chunk-WLB7XVWW.mjs";
10
10
  import {
11
11
  findWorkspaceRoot
12
12
  } from "./chunk-LSF4BHCI.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-UYSJG2E5.mjs";
3
+ } from "./chunk-FCRAGTW6.mjs";
4
4
  import {
5
5
  writeInfo
6
- } from "./chunk-2M22JVJQ.mjs";
6
+ } from "./chunk-WLB7XVWW.mjs";
7
7
 
8
8
  // src/executors/typia/executor.ts
9
9
  import { removeSync } from "fs-extra";
@@ -1,21 +1,21 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkAJ3C2EDWjs = require('./chunk-AJ3C2EDW.js');
3
+ var _chunkVUSG5IWMjs = require('./chunk-VUSG5IWM.js');
4
4
 
5
5
 
6
- var _chunkWE4HK4RNjs = require('./chunk-WE4HK4RN.js');
6
+ var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
7
7
 
8
8
  // src/executors/typia/executor.ts
9
9
  var _fsextra = require('fs-extra');
10
10
  var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
11
11
  async function typiaExecutorFn(options, _, config) {
12
12
  if (options.clean !== false) {
13
- _chunkWE4HK4RNjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
13
+ _chunkBNERGX6Ijs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
14
14
  _fsextra.removeSync.call(void 0, options.outputPath);
15
15
  }
16
16
  await Promise.all(
17
17
  options.entry.map((entry) => {
18
- _chunkWE4HK4RNjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
18
+ _chunkBNERGX6Ijs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
19
19
  return _TypiaProgrammerjs.TypiaProgrammer.build({
20
20
  input: entry,
21
21
  output: options.outputPath,
@@ -27,7 +27,7 @@ async function typiaExecutorFn(options, _, config) {
27
27
  success: true
28
28
  };
29
29
  }
30
- var executor_default = _chunkAJ3C2EDWjs.withRunExecutor.call(void 0,
30
+ var executor_default = _chunkVUSG5IWMjs.withRunExecutor.call(void 0,
31
31
  "Typia runtime validation generator",
32
32
  typiaExecutorFn,
33
33
  {
@@ -1,10 +1,13 @@
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; }// src/utils/toml.ts
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
+
3
+ var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
4
+
5
+ // ../config-tools/src/utilities/toml.ts
2
6
  var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
3
- var _devkit = require('@nx/devkit');
4
7
  function parseCargoTomlWithTree(tree, projectRoot, projectName) {
5
8
  const cargoTomlString = _optionalChain([tree, 'access', _ => _.read, 'call', _2 => _2(`${projectRoot}/Cargo.toml`), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
6
9
  if (!cargoTomlString) {
7
- _devkit.logger.error(`Cannot find a Cargo.toml file in the ${projectName}`);
10
+ _chunkBNERGX6Ijs.writeError.call(void 0, `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] ??= _jtoml2.default.Section({});
31
34
  toml[section][key] = typeof value === "object" && !Array.isArray(value) ? _jtoml2.default.inline(value) : typeof value === "function" ? value() : value;
32
35
  }
33
- function modifyCargoNestedTable(toml, section, key, value) {
34
- toml[section] ??= {};
35
- toml[section][key] = _jtoml2.default.Section(value);
36
- }
37
-
38
36
 
39
37
 
40
38
 
41
39
 
42
40
 
43
41
 
44
- exports.parseCargoTomlWithTree = parseCargoTomlWithTree; exports.parseCargoToml = parseCargoToml; exports.stringifyCargoToml = stringifyCargoToml; exports.modifyCargoTable = modifyCargoTable; exports.modifyCargoNestedTable = modifyCargoNestedTable;
42
+ exports.parseCargoTomlWithTree = parseCargoTomlWithTree; exports.parseCargoToml = parseCargoToml; exports.stringifyCargoToml = stringifyCargoToml; exports.modifyCargoTable = modifyCargoTable;
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-EK75QNMS.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-5HUW3BTP.mjs";
7
+ } from "./chunk-MLF7ZQBW.mjs";
8
8
  import {
9
9
  __dirname
10
10
  } from "./chunk-IEZKYJSF.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-UYSJG2E5.mjs";
3
+ } from "./chunk-FCRAGTW6.mjs";
4
4
  import {
5
5
  writeInfo
6
- } from "./chunk-2M22JVJQ.mjs";
6
+ } from "./chunk-WLB7XVWW.mjs";
7
7
 
8
8
  // src/executors/size-limit/executor.ts
9
9
  import { joinPathFragments } from "@nx/devkit";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
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
3
  var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
4
4
 
@@ -22,9 +22,6 @@ async function pnpmCatalogUpdate(packageJson, workspaceRoot = process.cwd()) {
22
22
  return packageJson;
23
23
  }
24
24
  const pnpmWorkspaceYaml = await _readyamlfile2.default.call(void 0, pnpmWorkspacePath);
25
- console.info(
26
- `pnpmWorkspaceYaml: ${JSON.stringify(_nullishCoalesce(pnpmWorkspaceYaml, () => ( {})))}`
27
- );
28
25
  if (_optionalChain([pnpmWorkspaceYaml, 'optionalAccess', _ => _.catalog])) {
29
26
  pnpmCatalog = pnpmWorkspaceYaml.catalog;
30
27
  } else {
@@ -2,9 +2,11 @@ import {
2
2
  applyWorkspaceProjectTokens,
3
3
  applyWorkspaceTokens
4
4
  } from "./chunk-X6PHOMFB.mjs";
5
+ import {
6
+ getConfig
7
+ } from "./chunk-N63KWRTH.mjs";
5
8
  import {
6
9
  formatLogMessage,
7
- getConfig,
8
10
  getStopwatch,
9
11
  writeDebug,
10
12
  writeError,
@@ -12,7 +14,7 @@ import {
12
14
  writeInfo,
13
15
  writeSuccess,
14
16
  writeTrace
15
- } from "./chunk-2M22JVJQ.mjs";
17
+ } from "./chunk-WLB7XVWW.mjs";
16
18
  import {
17
19
  findWorkspaceRoot
18
20
  } from "./chunk-LSF4BHCI.mjs";
@@ -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,7 +4,7 @@
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-doc/executor.ts
10
10
  async function cargoDocExecutor(options, context) {
@@ -14,7 +14,7 @@ async function cargoDocExecutor(options, context) {
14
14
  const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "doc", options, context);
15
15
  return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
16
16
  }
17
- var executor_default = _chunkAJ3C2EDWjs.withRunExecutor.call(void 0,
17
+ var executor_default = _chunkVUSG5IWMjs.withRunExecutor.call(void 0,
18
18
  "Cargo - Doc",
19
19
  cargoDocExecutor,
20
20
  {
@@ -22,9 +22,6 @@ async function pnpmCatalogUpdate(packageJson, workspaceRoot = process.cwd()) {
22
22
  return packageJson;
23
23
  }
24
24
  const pnpmWorkspaceYaml = await readYamlFile(pnpmWorkspacePath);
25
- console.info(
26
- `pnpmWorkspaceYaml: ${JSON.stringify(pnpmWorkspaceYaml ?? {})}`
27
- );
28
25
  if (pnpmWorkspaceYaml?.catalog) {
29
26
  pnpmCatalog = pnpmWorkspaceYaml.catalog;
30
27
  } else {
@@ -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-check/executor.ts
10
10
  async function cargoCheckExecutor(options, context) {
@@ -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-check/executor.ts
10
10
  async function cargoCheckExecutor(options, context) {
11
11
  const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "check", options, context);
12
12
  return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
13
13
  }
14
- var executor_default = _chunkAJ3C2EDWjs.withRunExecutor.call(void 0,
14
+ var executor_default = _chunkVUSG5IWMjs.withRunExecutor.call(void 0,
15
15
  "Cargo - Check",
16
16
  cargoCheckExecutor,
17
17
  {
@@ -3,7 +3,9 @@ import {
3
3
  applyWorkspaceTokens
4
4
  } from "./chunk-X6PHOMFB.mjs";
5
5
  import {
6
- getConfig,
6
+ getConfig
7
+ } from "./chunk-N63KWRTH.mjs";
8
+ import {
7
9
  getStopwatch,
8
10
  writeDebug,
9
11
  writeError,
@@ -11,7 +13,7 @@ import {
11
13
  writeInfo,
12
14
  writeSuccess,
13
15
  writeTrace
14
- } from "./chunk-2M22JVJQ.mjs";
16
+ } from "./chunk-WLB7XVWW.mjs";
15
17
  import {
16
18
  findWorkspaceRoot
17
19
  } from "./chunk-LSF4BHCI.mjs";
@@ -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');
@@ -30,7 +30,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
30
30
  devDependencies: {},
31
31
  buildExecutor: "@storm-software/workspace-tools:unbuild"
32
32
  };
33
- const options = await _chunkJ4DYXH46js.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
33
+ const options = await _chunkU3YH5M4Ljs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
34
34
  const { className, name, propertyName } = _devkit.names.call(void 0,
35
35
  options.projectNames.projectFileName
36
36
  );
@@ -50,11 +50,11 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
50
50
  buildable: options.bundler && options.bundler !== "none",
51
51
  hasUnitTestRunner: options.unitTestRunner !== "none"
52
52
  });
53
- await _chunkJ4DYXH46js.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
53
+ await _chunkU3YH5M4Ljs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
54
54
  await _devkit.formatFiles.call(void 0, tree);
55
55
  return null;
56
56
  }
57
- var generator_default = _chunkRJRBED5Qjs.withRunGenerator.call(void 0,
57
+ var generator_default = _chunkQWRE2UFSjs.withRunGenerator.call(void 0,
58
58
  "TypeScript Library Creator (Neutral Platform)",
59
59
  neutralLibraryGeneratorFn,
60
60
  {
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkAJ3C2EDWjs = require('./chunk-AJ3C2EDW.js');
3
+ var _chunkVUSG5IWMjs = require('./chunk-VUSG5IWM.js');
4
4
 
5
5
 
6
- var _chunkWE4HK4RNjs = require('./chunk-WE4HK4RN.js');
6
+ var _chunkBNERGX6Ijs = require('./chunk-BNERGX6I.js');
7
7
 
8
8
 
9
9
  var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
@@ -12,7 +12,7 @@ var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
12
12
  var _defu = require('defu');
13
13
  var _jiti = require('jiti');
14
14
  async function unbuildExecutorFn(options, context, config) {
15
- _chunkWE4HK4RNjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
15
+ _chunkBNERGX6Ijs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
16
16
  if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
17
17
  throw new Error(
18
18
  "The Build process failed because the context is not valid. Please run this command from a workspace root directory."
@@ -80,7 +80,7 @@ async function unbuildExecutorFn(options, context, config) {
80
80
  success: true
81
81
  };
82
82
  }
83
- var executor_default = _chunkAJ3C2EDWjs.withRunExecutor.call(void 0,
83
+ var executor_default = _chunkVUSG5IWMjs.withRunExecutor.call(void 0,
84
84
  "TypeScript Unbuild build",
85
85
  unbuildExecutorFn,
86
86
  {