@storm-software/workspace-tools 1.238.0 → 1.239.1

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 (83) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-6B2346NL.mjs → chunk-2BQA54CQ.mjs} +14 -14
  4. package/dist/{chunk-LZGO3TPY.mjs → chunk-3BU4E3N6.mjs} +1 -1
  5. package/dist/{chunk-EWOVTA4P.js → chunk-3W2Z7D4U.js} +2 -2
  6. package/dist/{chunk-2O5LDYTE.mjs → chunk-6SV7BVD4.mjs} +1 -1
  7. package/dist/{chunk-Z4VFGZYP.js → chunk-7DG4BPDH.js} +2 -2
  8. package/dist/{chunk-TNYOGYUG.mjs → chunk-7ZQ2E7DU.mjs} +1 -1
  9. package/dist/{chunk-GSH7T6CD.js → chunk-AMWYOBNS.js} +2 -2
  10. package/dist/{chunk-7DE63ASQ.js → chunk-B2TMWHSQ.js} +20 -18
  11. package/dist/{chunk-KPUD75QZ.js → chunk-BNVJA74D.js} +2 -2
  12. package/dist/{chunk-KJOK6J32.js → chunk-BUKUNOCV.js} +2 -2
  13. package/dist/{chunk-PNLIUJRY.js → chunk-CHBQHYNX.js} +2 -2
  14. package/dist/{chunk-HDRHANJ2.js → chunk-E42HWC4D.js} +2 -2
  15. package/dist/{chunk-NEDKAEDT.mjs → chunk-FTCEJETR.mjs} +11 -9
  16. package/dist/{chunk-RGWBBLHG.mjs → chunk-IF2P52VQ.mjs} +1 -1
  17. package/dist/{chunk-YSLPOLXZ.js → chunk-IFT7I2FJ.js} +2 -2
  18. package/dist/{chunk-MHGST32N.mjs → chunk-JES75APB.mjs} +1 -1
  19. package/dist/{chunk-XGHRUQ4Z.mjs → chunk-LQSCFXXH.mjs} +1 -1
  20. package/dist/{chunk-DVT2OFTJ.js → chunk-LSUHHBAM.js} +2 -2
  21. package/dist/{chunk-KHPR33G4.mjs → chunk-OCZKMQKV.mjs} +1 -1
  22. package/dist/{chunk-5RMB7B6I.mjs → chunk-PYLFT2B6.mjs} +1 -1
  23. package/dist/{chunk-XGCNTOTV.mjs → chunk-R4KMDDFL.mjs} +1 -1
  24. package/dist/{chunk-W4AJ2GF7.js → chunk-RER3HTR4.js} +2 -2
  25. package/dist/{chunk-EGGNN7KQ.mjs → chunk-SLVOLY6P.mjs} +1 -1
  26. package/dist/{chunk-6PYOV5GE.js → chunk-SMQLC4ZD.js} +2 -2
  27. package/dist/{chunk-YC2LJIIT.js → chunk-STENKYWN.js} +2 -2
  28. package/dist/{chunk-T72JINQH.js → chunk-TDO6POJN.js} +3 -3
  29. package/dist/{chunk-JH4GI5XO.mjs → chunk-U3DESZIP.mjs} +1 -1
  30. package/dist/{chunk-VHNRH2B6.js → chunk-UR7LTGOY.js} +2 -2
  31. package/dist/{chunk-EJEF43S7.js → chunk-VTNJFMZL.js} +2 -2
  32. package/dist/{chunk-PQEBMQKU.mjs → chunk-WO3SOZPT.mjs} +1 -1
  33. package/dist/{chunk-IO3RJNYR.js → chunk-WPLOOG3U.js} +2 -2
  34. package/dist/{chunk-WOMZ7ZQ2.mjs → chunk-X7DK54MN.mjs} +1 -1
  35. package/dist/{chunk-ZOJ5F47Z.js → chunk-XS73BPQS.js} +14 -14
  36. package/dist/{chunk-UI3N7JVE.mjs → chunk-XV2NPRXT.mjs} +1 -1
  37. package/dist/{chunk-XQMD2EHN.mjs → chunk-XV57DEOH.mjs} +1 -1
  38. package/dist/{chunk-MAXLXVJR.mjs → chunk-YP6KREBX.mjs} +1 -1
  39. package/dist/executors.js +13 -13
  40. package/dist/executors.mjs +12 -12
  41. package/dist/generators.js +8 -8
  42. package/dist/generators.mjs +7 -7
  43. package/dist/index.js +19 -19
  44. package/dist/index.mjs +18 -18
  45. package/dist/src/base/base-executor.js +3 -3
  46. package/dist/src/base/base-executor.mjs +2 -2
  47. package/dist/src/base/base-generator.js +3 -3
  48. package/dist/src/base/base-generator.mjs +2 -2
  49. package/dist/src/base/index.js +4 -4
  50. package/dist/src/base/index.mjs +3 -3
  51. package/dist/src/executors/cargo-build/executor.js +4 -4
  52. package/dist/src/executors/cargo-build/executor.mjs +3 -3
  53. package/dist/src/executors/cargo-check/executor.js +4 -4
  54. package/dist/src/executors/cargo-check/executor.mjs +3 -3
  55. package/dist/src/executors/cargo-clippy/executor.js +4 -4
  56. package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
  57. package/dist/src/executors/cargo-doc/executor.js +4 -4
  58. package/dist/src/executors/cargo-doc/executor.mjs +3 -3
  59. package/dist/src/executors/cargo-format/executor.js +4 -4
  60. package/dist/src/executors/cargo-format/executor.mjs +3 -3
  61. package/dist/src/executors/clean-package/executor.js +3 -3
  62. package/dist/src/executors/clean-package/executor.mjs +2 -2
  63. package/dist/src/executors/esbuild/executor.js +4 -4
  64. package/dist/src/executors/esbuild/executor.mjs +3 -3
  65. package/dist/src/executors/size-limit/executor.js +4 -4
  66. package/dist/src/executors/size-limit/executor.mjs +3 -3
  67. package/dist/src/executors/tsdown/executor.js +4 -4
  68. package/dist/src/executors/tsdown/executor.mjs +3 -3
  69. package/dist/src/executors/typia/executor.js +4 -4
  70. package/dist/src/executors/typia/executor.mjs +3 -3
  71. package/dist/src/executors/unbuild/executor.js +4 -4
  72. package/dist/src/executors/unbuild/executor.mjs +3 -3
  73. package/dist/src/generators/browser-library/generator.js +4 -4
  74. package/dist/src/generators/browser-library/generator.mjs +3 -3
  75. package/dist/src/generators/config-schema/generator.js +4 -4
  76. package/dist/src/generators/config-schema/generator.mjs +3 -3
  77. package/dist/src/generators/neutral-library/generator.js +4 -4
  78. package/dist/src/generators/neutral-library/generator.mjs +3 -3
  79. package/dist/src/generators/node-library/generator.js +4 -4
  80. package/dist/src/generators/node-library/generator.mjs +3 -3
  81. package/dist/src/generators/preset/generator.js +4 -4
  82. package/dist/src/generators/preset/generator.mjs +3 -3
  83. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ ## 1.239.1 (2025-01-22)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **workspace-tools:** Resolve issue applying tokens to user provided options ([ef3bad5f](https://github.com/storm-software/storm-ops/commit/ef3bad5f))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated unbuild to 0.30.1
10
+ - Updated unbuild to 0.30.1
11
+
12
+ ## 1.239.0 (2025-01-22)
13
+
14
+ ### Features
15
+
16
+ - **workspace-tools:** Enhanced option tokenization logic for executors ([14ed93d7](https://github.com/storm-software/storm-ops/commit/14ed93d7))
17
+
18
+ ### 🧱 Updated Dependencies
19
+
20
+ - Updated prettier to 0.30.0
21
+ - Updated esbuild to 0.21.0
22
+ - Updated unbuild to 0.30.0
23
+ - Updated unbuild to 0.30.0
24
+ - Updated tsdown to 0.22.0
25
+
1
26
  ## 1.238.0 (2025-01-21)
2
27
 
3
28
  ### Features
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-1.237.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.239.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -6,51 +6,51 @@ import {
6
6
  } from "./chunk-XUV4U54K.mjs";
7
7
 
8
8
  // ../config-tools/src/utilities/apply-workspace-tokens.ts
9
- var applyWorkspaceBaseTokens = /* @__PURE__ */ __name(async (option, tokenizerOptions) => {
9
+ var applyWorkspaceBaseTokens = /* @__PURE__ */ __name(async (option, tokenParams) => {
10
10
  let result = option;
11
11
  if (!result) {
12
12
  return result;
13
13
  }
14
- if (tokenizerOptions) {
15
- const optionKeys = Object.keys(tokenizerOptions);
14
+ if (tokenParams) {
15
+ const optionKeys = Object.keys(tokenParams);
16
16
  if (optionKeys.some((optionKey) => result.includes(`{${optionKey}}`))) {
17
17
  for (const optionKey of optionKeys) {
18
18
  if (result.includes(`{${optionKey}}`)) {
19
- result = result.replaceAll(`{${optionKey}}`, tokenizerOptions.config?.[optionKey] ?? "");
19
+ result = result.replaceAll(`{${optionKey}}`, tokenParams?.[optionKey] || "");
20
20
  }
21
21
  }
22
22
  }
23
23
  }
24
- if (tokenizerOptions.config) {
25
- const configKeys = Object.keys(tokenizerOptions.config);
24
+ if (tokenParams.config) {
25
+ const configKeys = Object.keys(tokenParams.config);
26
26
  if (configKeys.some((configKey) => result.includes(`{${configKey}}`))) {
27
27
  for (const configKey of configKeys) {
28
28
  if (result.includes(`{${configKey}}`)) {
29
- result = result.replaceAll(`{${configKey}}`, tokenizerOptions.config[configKey]);
29
+ result = result.replaceAll(`{${configKey}}`, tokenParams.config[configKey] || "");
30
30
  }
31
31
  }
32
32
  }
33
33
  }
34
34
  if (result.includes("{workspaceRoot}")) {
35
- result = result.replaceAll("{workspaceRoot}", tokenizerOptions.workspaceRoot ?? tokenizerOptions.config?.workspaceRoot ?? findWorkspaceRoot());
35
+ result = result.replaceAll("{workspaceRoot}", tokenParams.workspaceRoot ?? tokenParams.config?.workspaceRoot ?? findWorkspaceRoot());
36
36
  }
37
37
  return result;
38
38
  }, "applyWorkspaceBaseTokens");
39
- var applyWorkspaceProjectTokens = /* @__PURE__ */ __name((option, tokenizerOptions) => {
40
- return applyWorkspaceBaseTokens(option, tokenizerOptions);
39
+ var applyWorkspaceProjectTokens = /* @__PURE__ */ __name((option, tokenParams) => {
40
+ return applyWorkspaceBaseTokens(option, tokenParams);
41
41
  }, "applyWorkspaceProjectTokens");
42
- var applyWorkspaceTokens = /* @__PURE__ */ __name(async (options, config, tokenizerFn) => {
42
+ var applyWorkspaceTokens = /* @__PURE__ */ __name(async (options, tokenParams, tokenizerFn) => {
43
43
  if (!options) {
44
44
  return {};
45
45
  }
46
46
  const result = {};
47
47
  for (const option of Object.keys(options)) {
48
48
  if (typeof options[option] === "string") {
49
- result[option] = await Promise.resolve(tokenizerFn(options[option], config));
49
+ result[option] = await Promise.resolve(tokenizerFn(options[option], tokenParams));
50
50
  } else if (Array.isArray(options[option])) {
51
- result[option] = await Promise.all(options[option].map(async (item) => typeof item === "string" ? await Promise.resolve(tokenizerFn(item, config)) : item));
51
+ result[option] = await Promise.all(options[option].map(async (item) => typeof item === "string" ? await Promise.resolve(tokenizerFn(item, tokenParams)) : item));
52
52
  } else if (typeof options[option] === "object") {
53
- result[option] = await applyWorkspaceTokens(options[option], config, tokenizerFn);
53
+ result[option] = await applyWorkspaceTokens(options[option], tokenParams, tokenizerFn);
54
54
  } else {
55
55
  result[option] = options[option];
56
56
  }
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-EK75QNMS.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-EGGNN7KQ.mjs";
7
+ } from "./chunk-SLVOLY6P.mjs";
8
8
  import {
9
9
  __dirname,
10
10
  __name
@@ -4,7 +4,7 @@
4
4
  var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
5
5
 
6
6
 
7
- var _chunkT72JINQHjs = require('./chunk-T72JINQH.js');
7
+ var _chunkTDO6POJNjs = require('./chunk-TDO6POJN.js');
8
8
 
9
9
 
10
10
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -42,7 +42,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
42
42
  return null;
43
43
  }
44
44
  _chunk3GQAWCBQjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
45
- var generator_default = _chunkT72JINQHjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
45
+ var generator_default = _chunkTDO6POJNjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
46
46
  hooks: {
47
47
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
48
48
  options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QZHIWK5Z.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-NEDKAEDT.mjs";
7
+ } from "./chunk-FTCEJETR.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.js');
3
+ var _chunkB2TMWHSQjs = require('./chunk-B2TMWHSQ.js');
4
4
 
5
5
 
6
6
  var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
@@ -29,7 +29,7 @@ async function typiaExecutorFn(options, _, config) {
29
29
  };
30
30
  }
31
31
  _chunk3GQAWCBQjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
32
- var executor_default = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
32
+ var executor_default = _chunkB2TMWHSQjs.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
33
33
  skipReadingConfig: false,
34
34
  hooks: {
35
35
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XSRDTQ5C.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-EGGNN7KQ.mjs";
7
+ } from "./chunk-SLVOLY6P.mjs";
8
8
  import {
9
9
  __dirname,
10
10
  __name
@@ -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 _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.js');
3
+ var _chunkB2TMWHSQjs = require('./chunk-B2TMWHSQ.js');
4
4
 
5
5
 
6
6
  var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
@@ -63,7 +63,7 @@ async function unbuildExecutorFn(options, context, config) {
63
63
  };
64
64
  }
65
65
  _chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
66
- var executor_default = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
66
+ var executor_default = _chunkB2TMWHSQjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
67
67
  skipReadingConfig: false,
68
68
  hooks: {
69
69
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
@@ -1,7 +1,7 @@
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; }
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
3
 
4
- var _chunkZOJ5F47Zjs = require('./chunk-ZOJ5F47Z.js');
4
+ var _chunkXS73BPQSjs = require('./chunk-XS73BPQS.js');
5
5
 
6
6
 
7
7
 
@@ -27,16 +27,17 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
27
27
  let options = _options;
28
28
  let config = {};
29
29
  try {
30
- _chunkM3X4P6ATjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor...
31
- `, config);
32
30
  if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
33
31
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
34
32
  }
35
33
  const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
36
- const projectRoot = _nullishCoalesce(_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'access', _4 => _4.projects, 'access', _5 => _5[context.projectName], 'optionalAccess', _6 => _6.root]), () => ( workspaceRoot));
37
- const sourceRoot = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.sourceRoot]), () => ( workspaceRoot));
38
- const projectName = _nullishCoalesce(_optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.name]), () => ( context.projectName));
34
+ const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot;
35
+ const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
36
+ const projectName = context.projectName;
39
37
  config.workspaceRoot = workspaceRoot;
38
+ _chunkM3X4P6ATjs.writeInfo.call(void 0, `
39
+ \u26A1 Running the ${name} executor for ${projectName}
40
+ `, config);
40
41
  if (!executorOptions.skipReadingConfig) {
41
42
  _chunkM3X4P6ATjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
42
43
  - workspaceRoot: ${workspaceRoot}
@@ -46,7 +47,7 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
46
47
  `, config);
47
48
  config = await _chunkM3X4P6ATjs.loadStormConfig.call(void 0, workspaceRoot);
48
49
  }
49
- if (_optionalChain([executorOptions, 'optionalAccess', _15 => _15.hooks, 'optionalAccess', _16 => _16.applyDefaultOptions])) {
50
+ if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
50
51
  _chunkM3X4P6ATjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
51
52
  options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
52
53
  _chunkM3X4P6ATjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
@@ -54,36 +55,37 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
54
55
  _chunkM3X4P6ATjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
55
56
  ${_chunkM3X4P6ATjs.formatLogMessage.call(void 0, options)}
56
57
  `, config);
57
- const tokenized = await _chunkZOJ5F47Zjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
58
+ const tokenized = await _chunkXS73BPQSjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
58
59
  workspaceRoot,
59
60
  projectRoot,
60
61
  sourceRoot,
61
- projectName
62
- }, executorOptions, context.projectsConfigurations.projects[context.projectName], config), _chunkZOJ5F47Zjs.applyWorkspaceProjectTokens);
62
+ projectName,
63
+ config
64
+ }, config, context.projectsConfigurations.projects[context.projectName]), _chunkXS73BPQSjs.applyWorkspaceProjectTokens);
63
65
  _chunkM3X4P6ATjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
64
- ${_chunkM3X4P6ATjs.formatLogMessage.call(void 0, options)}
66
+ ${_chunkM3X4P6ATjs.formatLogMessage.call(void 0, tokenized)}
65
67
  `, config);
66
- if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.preProcess])) {
68
+ if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
67
69
  _chunkM3X4P6ATjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
68
70
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
69
71
  _chunkM3X4P6ATjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
70
72
  }
71
73
  const ret = executorFn(tokenized, context, config);
72
- if (_isFunction(_optionalChain([ret, 'optionalAccess', _19 => _19.next]))) {
74
+ if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
73
75
  const asyncGen = ret;
74
76
  for await (const iter of asyncGen) {
75
77
  }
76
78
  }
77
79
  const result = await Promise.resolve(ret);
78
- if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _20 => _20.error, 'optionalAccess', _21 => _21.message]) && typeof _optionalChain([result, 'optionalAccess', _22 => _22.error, 'optionalAccess', _23 => _23.message]) === "string" && _optionalChain([result, 'optionalAccess', _24 => _24.error, 'optionalAccess', _25 => _25.name]) && typeof _optionalChain([result, 'optionalAccess', _26 => _26.error, 'optionalAccess', _27 => _27.name]) === "string")) {
80
+ 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")) {
79
81
  _chunkM3X4P6ATjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
80
82
  ${_chunkM3X4P6ATjs.formatLogMessage.call(void 0, result)}`, config);
81
83
  console.error(result);
82
84
  throw new Error(`The ${name} executor failed to run`, {
83
- cause: _optionalChain([result, 'optionalAccess', _28 => _28.error])
85
+ cause: _optionalChain([result, 'optionalAccess', _16 => _16.error])
84
86
  });
85
87
  }
86
- if (_optionalChain([executorOptions, 'optionalAccess', _29 => _29.hooks, 'optionalAccess', _30 => _30.postProcess])) {
88
+ if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
87
89
  _chunkM3X4P6ATjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
88
90
  await Promise.resolve(executorOptions.hooks.postProcess(config));
89
91
  _chunkM3X4P6ATjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
@@ -107,7 +109,7 @@ ${_chunkM3X4P6ATjs.formatLogMessage.call(void 0, result)}`, config);
107
109
  }, "withRunExecutor");
108
110
  var _isFunction = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (value) => {
109
111
  try {
110
- return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _31 => _31.constructor]) && _optionalChain([value, 'optionalAccess', _32 => _32.call]) && _optionalChain([value, 'optionalAccess', _33 => _33.apply]));
112
+ return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _19 => _19.constructor]) && _optionalChain([value, 'optionalAccess', _20 => _20.call]) && _optionalChain([value, 'optionalAccess', _21 => _21.apply]));
111
113
  } catch (e) {
112
114
  return false;
113
115
  }
@@ -7,7 +7,7 @@ var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
7
7
  var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
8
8
 
9
9
 
10
- var _chunkT72JINQHjs = require('./chunk-T72JINQH.js');
10
+ var _chunkTDO6POJNjs = require('./chunk-TDO6POJN.js');
11
11
 
12
12
 
13
13
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -49,7 +49,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
49
49
  return null;
50
50
  }
51
51
  _chunk3GQAWCBQjs.__name.call(void 0, nodeLibraryGeneratorFn, "nodeLibraryGeneratorFn");
52
- var generator_default = _chunkT72JINQHjs.withRunGenerator.call(void 0, "TypeScript Library Creator (NodeJs Platform)", nodeLibraryGeneratorFn, {
52
+ var generator_default = _chunkTDO6POJNjs.withRunGenerator.call(void 0, "TypeScript Library Creator (NodeJs Platform)", nodeLibraryGeneratorFn, {
53
53
  hooks: {
54
54
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
55
55
  options.description ??= "A library used by Storm Software to support NodeJs applications";
@@ -4,7 +4,7 @@
4
4
  var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
5
5
 
6
6
 
7
- var _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.js');
7
+ var _chunkB2TMWHSQjs = require('./chunk-B2TMWHSQ.js');
8
8
 
9
9
 
10
10
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -15,7 +15,7 @@ async function cargoClippyExecutor(options, context) {
15
15
  return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
16
16
  }
17
17
  _chunk3GQAWCBQjs.__name.call(void 0, cargoClippyExecutor, "cargoClippyExecutor");
18
- var executor_default = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
18
+ var executor_default = _chunkB2TMWHSQjs.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
19
19
  skipReadingConfig: false,
20
20
  hooks: {
21
21
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -11,7 +11,7 @@
11
11
  var _chunkSEZJIRERjs = require('./chunk-SEZJIRER.js');
12
12
 
13
13
 
14
- var _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.js');
14
+ var _chunkB2TMWHSQjs = require('./chunk-B2TMWHSQ.js');
15
15
 
16
16
 
17
17
 
@@ -1025,7 +1025,7 @@ async function esbuildExecutorFn(options, context2, config) {
1025
1025
  };
1026
1026
  }
1027
1027
  _chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
1028
- var executor_default = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
1028
+ var executor_default = _chunkB2TMWHSQjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
1029
1029
  skipReadingConfig: false,
1030
1030
  hooks: {
1031
1031
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
@@ -4,7 +4,7 @@
4
4
  var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
5
5
 
6
6
 
7
- var _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.js');
7
+ var _chunkB2TMWHSQjs = require('./chunk-B2TMWHSQ.js');
8
8
 
9
9
 
10
10
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -15,7 +15,7 @@ async function cargoCheckExecutor(options, context) {
15
15
  return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
16
16
  }
17
17
  _chunk3GQAWCBQjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
18
- var executor_default = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
18
+ var executor_default = _chunkB2TMWHSQjs.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
19
19
  skipReadingConfig: false,
20
20
  hooks: {
21
21
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  applyWorkspaceProjectTokens,
3
3
  applyWorkspaceTokens
4
- } from "./chunk-6B2346NL.mjs";
4
+ } from "./chunk-2BQA54CQ.mjs";
5
5
  import {
6
6
  formatLogMessage,
7
7
  getStopwatch,
@@ -27,16 +27,17 @@ var withRunExecutor = /* @__PURE__ */ __name((name, executorFn, executorOptions
27
27
  let options = _options;
28
28
  let config = {};
29
29
  try {
30
- writeInfo(`\u26A1 Running the ${name} executor...
31
- `, config);
32
30
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
33
31
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
34
32
  }
35
33
  const workspaceRoot = findWorkspaceRoot();
36
- const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
37
- const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
38
- const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
34
+ const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot;
35
+ const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
36
+ const projectName = context.projectName;
39
37
  config.workspaceRoot = workspaceRoot;
38
+ writeInfo(`
39
+ \u26A1 Running the ${name} executor for ${projectName}
40
+ `, config);
40
41
  if (!executorOptions.skipReadingConfig) {
41
42
  writeTrace(`Loading the Storm Config from environment variables and storm.config.js file...
42
43
  - workspaceRoot: ${workspaceRoot}
@@ -58,10 +59,11 @@ ${formatLogMessage(options)}
58
59
  workspaceRoot,
59
60
  projectRoot,
60
61
  sourceRoot,
61
- projectName
62
- }, executorOptions, context.projectsConfigurations.projects[context.projectName], config), applyWorkspaceProjectTokens);
62
+ projectName,
63
+ config
64
+ }, config, context.projectsConfigurations.projects[context.projectName]), applyWorkspaceProjectTokens);
63
65
  writeTrace(`Executor schema tokenized options \u2699\uFE0F
64
- ${formatLogMessage(options)}
66
+ ${formatLogMessage(tokenized)}
65
67
  `, config);
66
68
  if (executorOptions?.hooks?.preProcess) {
67
69
  writeDebug("Running the preProcess hook...", config);
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-EK75QNMS.mjs";
8
8
  import {
9
9
  withRunGenerator
10
- } from "./chunk-EGGNN7KQ.mjs";
10
+ } from "./chunk-SLVOLY6P.mjs";
11
11
  import {
12
12
  __dirname,
13
13
  __name
@@ -1,6 +1,6 @@
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 _chunkT72JINQHjs = require('./chunk-T72JINQH.js');
3
+ var _chunkTDO6POJNjs = require('./chunk-TDO6POJN.js');
4
4
 
5
5
 
6
6
 
@@ -36,7 +36,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
36
36
  };
37
37
  }
38
38
  _chunk3GQAWCBQjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
39
- var generator_default = _chunkT72JINQHjs.withRunGenerator.call(void 0, "Configuration Schema Creator", configSchemaGeneratorFn, {
39
+ var generator_default = _chunkTDO6POJNjs.withRunGenerator.call(void 0, "Configuration Schema Creator", configSchemaGeneratorFn, {
40
40
  hooks: {
41
41
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
42
42
  options.outputFile ??= "{workspaceRoot}/storm-workspace.schema.json";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-NEDKAEDT.mjs";
3
+ } from "./chunk-FTCEJETR.mjs";
4
4
  import {
5
5
  writeInfo
6
6
  } from "./chunk-BWUHOT6F.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QZHIWK5Z.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-NEDKAEDT.mjs";
7
+ } from "./chunk-FTCEJETR.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";
@@ -4,7 +4,7 @@
4
4
  var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
5
5
 
6
6
 
7
- var _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.js');
7
+ var _chunkB2TMWHSQjs = require('./chunk-B2TMWHSQ.js');
8
8
 
9
9
 
10
10
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -15,7 +15,7 @@ async function cargoFormatExecutor(options, context) {
15
15
  return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
16
16
  }
17
17
  _chunk3GQAWCBQjs.__name.call(void 0, cargoFormatExecutor, "cargoFormatExecutor");
18
- var executor_default = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
18
+ var executor_default = _chunkB2TMWHSQjs.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
19
19
  skipReadingConfig: false,
20
20
  hooks: {
21
21
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QZHIWK5Z.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-NEDKAEDT.mjs";
7
+ } from "./chunk-FTCEJETR.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QZHIWK5Z.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-NEDKAEDT.mjs";
7
+ } from "./chunk-FTCEJETR.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-NEDKAEDT.mjs";
3
+ } from "./chunk-FTCEJETR.mjs";
4
4
  import {
5
5
  writeInfo
6
6
  } from "./chunk-BWUHOT6F.mjs";
@@ -4,7 +4,7 @@
4
4
  var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
5
5
 
6
6
 
7
- var _chunkT72JINQHjs = require('./chunk-T72JINQH.js');
7
+ var _chunkTDO6POJNjs = require('./chunk-TDO6POJN.js');
8
8
 
9
9
 
10
10
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -232,7 +232,7 @@ async function presetGeneratorFn(tree, options) {
232
232
  return null;
233
233
  }
234
234
  _chunk3GQAWCBQjs.__name.call(void 0, presetGeneratorFn, "presetGeneratorFn");
235
- var generator_default = _chunkT72JINQHjs.withRunGenerator.call(void 0, "Storm Workspace Preset Generator", presetGeneratorFn);
235
+ var generator_default = _chunkTDO6POJNjs.withRunGenerator.call(void 0, "Storm Workspace Preset Generator", presetGeneratorFn);
236
236
 
237
237
 
238
238
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  applyWorkspaceBaseTokens,
3
3
  applyWorkspaceTokens
4
- } from "./chunk-6B2346NL.mjs";
4
+ } from "./chunk-2BQA54CQ.mjs";
5
5
  import {
6
6
  getStopwatch,
7
7
  loadStormConfig,
@@ -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 _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 _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.js');
3
+ var _chunkB2TMWHSQjs = require('./chunk-B2TMWHSQ.js');
4
4
 
5
5
 
6
6
  var _chunkM3X4P6ATjs = require('./chunk-M3X4P6AT.js');
@@ -33,7 +33,7 @@ async function sizeLimitExecutorFn(options, context, config) {
33
33
  };
34
34
  }
35
35
  _chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
36
- var executor_default = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
36
+ var executor_default = _chunkB2TMWHSQjs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
37
37
  skipReadingConfig: false,
38
38
  hooks: {
39
39
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -4,7 +4,7 @@
4
4
  var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
5
5
 
6
6
 
7
- var _chunk7DE63ASQjs = require('./chunk-7DE63ASQ.js');
7
+ var _chunkB2TMWHSQjs = require('./chunk-B2TMWHSQ.js');
8
8
 
9
9
 
10
10
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -19,7 +19,7 @@ async function cargoDocExecutor(options, context) {
19
19
  return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
20
20
  }
21
21
  _chunk3GQAWCBQjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
22
- var executor_default = _chunk7DE63ASQjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
22
+ var executor_default = _chunkB2TMWHSQjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
23
23
  skipReadingConfig: false,
24
24
  hooks: {
25
25
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -1,7 +1,7 @@
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
3
 
4
- var _chunkZOJ5F47Zjs = require('./chunk-ZOJ5F47Z.js');
4
+ var _chunkXS73BPQSjs = require('./chunk-XS73BPQS.js');
5
5
 
6
6
 
7
7
 
@@ -43,10 +43,10 @@ var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (nam
43
43
  }
44
44
  _chunkM3X4P6ATjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
45
45
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
46
- const tokenized = await _chunkZOJ5F47Zjs.applyWorkspaceTokens.call(void 0, options, {
46
+ const tokenized = await _chunkXS73BPQSjs.applyWorkspaceTokens.call(void 0, options, {
47
47
  workspaceRoot: tree.root,
48
48
  config
49
- }, _chunkZOJ5F47Zjs.applyWorkspaceBaseTokens);
49
+ }, _chunkXS73BPQSjs.applyWorkspaceBaseTokens);
50
50
  if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
51
51
  _chunkM3X4P6ATjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
52
52
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-Q3EM343U.mjs";
10
10
  import {
11
11
  withRunExecutor
12
- } from "./chunk-NEDKAEDT.mjs";
12
+ } from "./chunk-FTCEJETR.mjs";
13
13
  import {
14
14
  getStopwatch,
15
15
  isVerbose,