@storm-software/workspace-tools 1.264.23 → 1.264.24

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 (149) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-IWTY5YHA.js → chunk-26KLH7BI.js} +4 -4
  4. package/dist/{chunk-H7R5WWWN.mjs → chunk-32XQSY3C.mjs} +2 -2
  5. package/dist/{chunk-IVVMLTAZ.mjs → chunk-4LIIIWIV.mjs} +1 -1
  6. package/dist/{chunk-YEAEA7VH.js → chunk-5DQCVP4N.js} +5 -5
  7. package/dist/{chunk-VIYVUTPL.mjs → chunk-7P2LGXFI.mjs} +1 -1
  8. package/dist/{chunk-JGBWUIDB.js → chunk-7YVMI4XM.js} +2 -2
  9. package/dist/{chunk-SYVKCVS5.js → chunk-ACBRXFBB.js} +2 -2
  10. package/dist/{chunk-JIEME4DE.mjs → chunk-AVC6Y5IR.mjs} +1 -1
  11. package/dist/{chunk-2VGQHNUI.mjs → chunk-CD3W3HIC.mjs} +2 -2
  12. package/dist/{chunk-PKZ57ZT3.mjs → chunk-CIHS3V6E.mjs} +1 -1
  13. package/dist/{chunk-7D54ET5P.js → chunk-DNYOACHD.js} +11 -11
  14. package/dist/{chunk-3CMQVIZF.js → chunk-E4TBRQDJ.js} +2 -2
  15. package/dist/{chunk-OOKKGQYY.mjs → chunk-FCGFBNCJ.mjs} +1 -1
  16. package/dist/{chunk-LCEW4RCH.mjs → chunk-GGSDFI6U.mjs} +2 -2
  17. package/dist/{chunk-S672NL5L.js → chunk-IPBHTVKW.js} +2 -2
  18. package/dist/{chunk-2JMPJLUY.mjs → chunk-IQQERPIV.mjs} +1 -1
  19. package/dist/{chunk-HAR2JAKF.js → chunk-JCJHSN67.js} +5 -5
  20. package/dist/{chunk-WKHNKMGG.mjs → chunk-JWFYDYKI.mjs} +1 -1
  21. package/dist/{chunk-XL2QCC3O.mjs → chunk-KQMGKHXU.mjs} +2 -2
  22. package/dist/{chunk-GIHDKGOW.js → chunk-LRLMU4QV.js} +2 -2
  23. package/dist/{chunk-ACGR2DGA.mjs → chunk-MMPXE2KD.mjs} +1 -1
  24. package/dist/{chunk-WSYNUVFE.js → chunk-N4STCLGJ.js} +9 -9
  25. package/dist/{chunk-ZQM46HJL.mjs → chunk-NODM27UV.mjs} +18 -2
  26. package/dist/{chunk-2JSGLAYY.js → chunk-NQ4W3N7O.js} +15 -15
  27. package/dist/{chunk-W6XC45WY.js → chunk-P6PFHXHQ.js} +20 -20
  28. package/dist/{chunk-CO3WS2F5.mjs → chunk-P7UUSOFW.mjs} +1 -1
  29. package/dist/{chunk-6TELW6SY.mjs → chunk-PHVGSPP3.mjs} +1 -1
  30. package/dist/{chunk-Q2HDALQQ.js → chunk-QPJ4XTDX.js} +2 -2
  31. package/dist/{chunk-Z7QQFXLC.js → chunk-SKMT7WD5.js} +18 -2
  32. package/dist/{chunk-5HKVKVGO.js → chunk-T42YSSIT.js} +43 -43
  33. package/dist/{chunk-Y4DQH7H3.mjs → chunk-UMFP6PYU.mjs} +1 -1
  34. package/dist/{chunk-B7OV5XTN.js → chunk-USJX4BPD.js} +2 -2
  35. package/dist/{chunk-UBQVODWE.mjs → chunk-VTRSAQHO.mjs} +1 -1
  36. package/dist/{chunk-KZEIFYBW.mjs → chunk-YDDVJHQ4.mjs} +11 -11
  37. package/dist/{chunk-D2B7RMJY.js → chunk-Z2GBHTLH.js} +2 -2
  38. package/dist/{chunk-OE5D5OX2.js → chunk-ZGMV4YJL.js} +2 -2
  39. package/dist/{executor-Cfnvj_UD.d.ts → executor-21QQWs8J.d.ts} +1 -1
  40. package/dist/{executor-Z5RZ_Cc7.d.ts → executor-BD4gkr4O.d.ts} +1 -1
  41. package/dist/{executor-Bl_R7eWL.d.mts → executor-BYcX7bg8.d.mts} +1 -1
  42. package/dist/{executor-CkpY6Cn6.d.ts → executor-BvnlpAbd.d.ts} +1 -1
  43. package/dist/{executor-jhLTqjwT.d.ts → executor-CLYItx2J.d.ts} +1 -1
  44. package/dist/{executor-D7Jon7YZ.d.mts → executor-CsTGaThv.d.mts} +1 -1
  45. package/dist/{executor-CQREXH1r.d.mts → executor-DpaKJJUo.d.mts} +1 -1
  46. package/dist/{executor-FnV7Zyhi.d.mts → executor-FYb5cygt.d.mts} +1 -1
  47. package/dist/executors.d.mts +5 -5
  48. package/dist/executors.d.ts +5 -5
  49. package/dist/executors.js +14 -14
  50. package/dist/executors.mjs +16 -16
  51. package/dist/{generator-m71zZSnI.d.ts → generator-BMY6LGPc.d.ts} +1 -1
  52. package/dist/{generator-CDN_7s1G.d.mts → generator-BPz6wkk9.d.mts} +2 -2
  53. package/dist/{generator-BzokTeDK.d.ts → generator-BXJFXwbk.d.ts} +2 -2
  54. package/dist/{generator-Cp27CDI2.d.mts → generator-Bw4on8nq.d.mts} +2 -2
  55. package/dist/{generator-DYKOkcwS.d.mts → generator-D3Kl6o6G.d.mts} +2 -2
  56. package/dist/{generator-DewOeQFs.d.ts → generator-D4IATDWn.d.ts} +2 -2
  57. package/dist/{generator-D2sZ7Ie-.d.ts → generator-DPRJ4mde.d.ts} +2 -2
  58. package/dist/{generator-DpjwOis-.d.ts → generator-EapPsEII.d.ts} +2 -2
  59. package/dist/{generator-DWD1hj3X.d.ts → generator-UGJuBE-5.d.ts} +1 -1
  60. package/dist/{generator-hhjMvDQ2.d.mts → generator-UekCwik8.d.mts} +1 -1
  61. package/dist/{generator-ciGwzWek.d.mts → generator-_OZvHhIS.d.mts} +1 -1
  62. package/dist/{generator-BxNcUEBh.d.mts → generator-gUQuyamW.d.mts} +2 -2
  63. package/dist/generators.d.mts +8 -8
  64. package/dist/generators.d.ts +8 -8
  65. package/dist/generators.js +10 -10
  66. package/dist/generators.mjs +12 -12
  67. package/dist/index.d.mts +12 -12
  68. package/dist/index.d.ts +12 -12
  69. package/dist/index.js +22 -22
  70. package/dist/index.mjs +27 -27
  71. package/dist/src/base/base-executor.d.mts +2 -2
  72. package/dist/src/base/base-executor.d.ts +2 -2
  73. package/dist/src/base/base-executor.js +3 -3
  74. package/dist/src/base/base-executor.mjs +2 -2
  75. package/dist/src/base/base-generator.d.mts +2 -2
  76. package/dist/src/base/base-generator.d.ts +2 -2
  77. package/dist/src/base/base-generator.js +3 -3
  78. package/dist/src/base/base-generator.mjs +2 -2
  79. package/dist/src/base/index.d.mts +2 -2
  80. package/dist/src/base/index.d.ts +2 -2
  81. package/dist/src/base/index.js +4 -4
  82. package/dist/src/base/index.mjs +3 -3
  83. package/dist/src/executors/cargo-build/executor.js +4 -4
  84. package/dist/src/executors/cargo-build/executor.mjs +3 -3
  85. package/dist/src/executors/cargo-check/executor.js +4 -4
  86. package/dist/src/executors/cargo-check/executor.mjs +3 -3
  87. package/dist/src/executors/cargo-clippy/executor.js +4 -4
  88. package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
  89. package/dist/src/executors/cargo-doc/executor.js +4 -4
  90. package/dist/src/executors/cargo-doc/executor.mjs +3 -3
  91. package/dist/src/executors/cargo-format/executor.js +4 -4
  92. package/dist/src/executors/cargo-format/executor.mjs +3 -3
  93. package/dist/src/executors/clean-package/executor.d.mts +1 -1
  94. package/dist/src/executors/clean-package/executor.d.ts +1 -1
  95. package/dist/src/executors/clean-package/executor.js +5 -5
  96. package/dist/src/executors/clean-package/executor.mjs +2 -2
  97. package/dist/src/executors/esbuild/executor.d.mts +2 -2
  98. package/dist/src/executors/esbuild/executor.d.ts +2 -2
  99. package/dist/src/executors/esbuild/executor.js +4 -4
  100. package/dist/src/executors/esbuild/executor.mjs +3 -3
  101. package/dist/src/executors/size-limit/executor.d.mts +2 -2
  102. package/dist/src/executors/size-limit/executor.d.ts +2 -2
  103. package/dist/src/executors/size-limit/executor.js +4 -4
  104. package/dist/src/executors/size-limit/executor.mjs +3 -3
  105. package/dist/src/executors/typia/executor.d.mts +2 -2
  106. package/dist/src/executors/typia/executor.d.ts +2 -2
  107. package/dist/src/executors/typia/executor.js +4 -4
  108. package/dist/src/executors/typia/executor.mjs +3 -3
  109. package/dist/src/executors/unbuild/executor.d.mts +2 -2
  110. package/dist/src/executors/unbuild/executor.d.ts +2 -2
  111. package/dist/src/executors/unbuild/executor.js +4 -4
  112. package/dist/src/executors/unbuild/executor.mjs +3 -3
  113. package/dist/src/generators/browser-library/generator.d.mts +3 -3
  114. package/dist/src/generators/browser-library/generator.d.ts +3 -3
  115. package/dist/src/generators/browser-library/generator.js +4 -4
  116. package/dist/src/generators/browser-library/generator.mjs +3 -3
  117. package/dist/src/generators/config-schema/generator.d.mts +3 -3
  118. package/dist/src/generators/config-schema/generator.d.ts +3 -3
  119. package/dist/src/generators/config-schema/generator.js +4 -4
  120. package/dist/src/generators/config-schema/generator.mjs +3 -3
  121. package/dist/src/generators/neutral-library/generator.d.mts +3 -3
  122. package/dist/src/generators/neutral-library/generator.d.ts +3 -3
  123. package/dist/src/generators/neutral-library/generator.js +4 -4
  124. package/dist/src/generators/neutral-library/generator.mjs +3 -3
  125. package/dist/src/generators/node-library/generator.d.mts +3 -3
  126. package/dist/src/generators/node-library/generator.d.ts +3 -3
  127. package/dist/src/generators/node-library/generator.js +4 -4
  128. package/dist/src/generators/node-library/generator.mjs +3 -3
  129. package/dist/src/generators/preset/generator.d.mts +3 -3
  130. package/dist/src/generators/preset/generator.d.ts +3 -3
  131. package/dist/src/generators/preset/generator.js +4 -4
  132. package/dist/src/generators/preset/generator.mjs +3 -3
  133. package/dist/src/generators/release-version/generator.d.mts +2 -2
  134. package/dist/src/generators/release-version/generator.d.ts +2 -2
  135. package/dist/src/generators/release-version/generator.js +3 -3
  136. package/dist/src/generators/release-version/generator.mjs +2 -2
  137. package/dist/src/types.d.mts +2 -2
  138. package/dist/src/types.d.ts +2 -2
  139. package/dist/src/utils/apply-workspace-tokens.d.mts +1 -1
  140. package/dist/src/utils/apply-workspace-tokens.d.ts +1 -1
  141. package/dist/src/utils/index.d.mts +2 -2
  142. package/dist/src/utils/index.d.ts +2 -2
  143. package/dist/src/utils/project-tags.d.mts +2 -2
  144. package/dist/src/utils/project-tags.d.ts +2 -2
  145. package/dist/{types-DK9-a60Q.d.mts → types-C3URiht7.d.mts} +20 -2
  146. package/dist/{types-DK9-a60Q.d.ts → types-C3URiht7.d.ts} +20 -2
  147. package/dist/{types-DvN-p7Ms.d.ts → types-CUnUfpKk.d.ts} +1 -1
  148. package/dist/{types-CbF567tH.d.mts → types-dNjhGseA.d.mts} +1 -1
  149. package/package.json +1 -1
@@ -12,7 +12,7 @@ var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkZ7QQFXLCjs = require('./chunk-Z7QQFXLC.js');
15
+ var _chunkSKMT7WD5js = require('./chunk-SKMT7WD5.js');
16
16
 
17
17
 
18
18
  var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
@@ -23,7 +23,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
23
23
  // src/base/base-executor.ts
24
24
  var _defu = require('defu');
25
25
  var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
26
- const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, name);
26
+ const stopwatch = _chunkSKMT7WD5js.getStopwatch.call(void 0, name);
27
27
  let options = _options;
28
28
  let config = {};
29
29
  try {
@@ -35,23 +35,23 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
35
35
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
36
36
  const projectName = context.projectName;
37
37
  config.workspaceRoot = workspaceRoot;
38
- _chunkZ7QQFXLCjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
38
+ _chunkSKMT7WD5js.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
39
39
  if (!executorOptions.skipReadingConfig) {
40
- _chunkZ7QQFXLCjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
40
+ _chunkSKMT7WD5js.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
41
41
  - workspaceRoot: ${workspaceRoot}
42
42
  - projectRoot: ${projectRoot}
43
43
  - sourceRoot: ${sourceRoot}
44
44
  - projectName: ${projectName}
45
45
  `, config);
46
- config = await _chunkZ7QQFXLCjs.getConfig.call(void 0, workspaceRoot);
46
+ config = await _chunkSKMT7WD5js.getConfig.call(void 0, workspaceRoot);
47
47
  }
48
48
  if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
49
- _chunkZ7QQFXLCjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
49
+ _chunkSKMT7WD5js.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
50
50
  options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
51
- _chunkZ7QQFXLCjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
51
+ _chunkSKMT7WD5js.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
52
52
  }
53
- _chunkZ7QQFXLCjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
54
- ${_chunkZ7QQFXLCjs.formatLogMessage.call(void 0, options)}
53
+ _chunkSKMT7WD5js.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
54
+ ${_chunkSKMT7WD5js.formatLogMessage.call(void 0, options)}
55
55
  `, config);
56
56
  const tokenized = await _chunkUALZJZUKjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
57
57
  workspaceRoot,
@@ -60,13 +60,13 @@ ${_chunkZ7QQFXLCjs.formatLogMessage.call(void 0, options)}
60
60
  projectName,
61
61
  config
62
62
  }, config, context.projectsConfigurations.projects[context.projectName]), _chunkUALZJZUKjs.applyWorkspaceProjectTokens);
63
- _chunkZ7QQFXLCjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
64
- ${_chunkZ7QQFXLCjs.formatLogMessage.call(void 0, tokenized)}
63
+ _chunkSKMT7WD5js.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
64
+ ${_chunkSKMT7WD5js.formatLogMessage.call(void 0, tokenized)}
65
65
  `, config);
66
66
  if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
67
- _chunkZ7QQFXLCjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
67
+ _chunkSKMT7WD5js.writeDebug.call(void 0, "Running the preProcess hook...", config);
68
68
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
69
- _chunkZ7QQFXLCjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
69
+ _chunkSKMT7WD5js.writeDebug.call(void 0, "Completed the preProcess hook", config);
70
70
  }
71
71
  const ret = executorFn(tokenized, context, config);
72
72
  if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
@@ -76,26 +76,26 @@ ${_chunkZ7QQFXLCjs.formatLogMessage.call(void 0, tokenized)}
76
76
  }
77
77
  const result = await Promise.resolve(ret);
78
78
  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
- _chunkZ7QQFXLCjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
80
- ${_chunkZ7QQFXLCjs.formatLogMessage.call(void 0, result)}`, config);
79
+ _chunkSKMT7WD5js.writeTrace.call(void 0, `Failure determined by the ${name} executor
80
+ ${_chunkSKMT7WD5js.formatLogMessage.call(void 0, result)}`, config);
81
81
  console.error(result);
82
82
  throw new Error(`The ${name} executor failed to run`, {
83
83
  cause: _optionalChain([result, 'optionalAccess', _16 => _16.error])
84
84
  });
85
85
  }
86
86
  if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
87
- _chunkZ7QQFXLCjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
87
+ _chunkSKMT7WD5js.writeDebug.call(void 0, "Running the postProcess hook...", config);
88
88
  await Promise.resolve(executorOptions.hooks.postProcess(config));
89
- _chunkZ7QQFXLCjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
89
+ _chunkSKMT7WD5js.writeDebug.call(void 0, "Completed the postProcess hook", config);
90
90
  }
91
- _chunkZ7QQFXLCjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
91
+ _chunkSKMT7WD5js.writeSuccess.call(void 0, `Completed running the ${name} task executor!
92
92
  `, config);
93
93
  return {
94
94
  success: true
95
95
  };
96
96
  } catch (error) {
97
- _chunkZ7QQFXLCjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
98
- _chunkZ7QQFXLCjs.writeError.call(void 0, `An exception was thrown in the executor's process
97
+ _chunkSKMT7WD5js.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
98
+ _chunkSKMT7WD5js.writeError.call(void 0, `An exception was thrown in the executor's process
99
99
  - Details: ${error.message}
100
100
  - Stacktrace: ${error.stack}`, config);
101
101
  return {
@@ -13,7 +13,7 @@ import {
13
13
  writeInfo,
14
14
  writeSuccess,
15
15
  writeTrace
16
- } from "./chunk-ZQM46HJL.mjs";
16
+ } from "./chunk-NODM27UV.mjs";
17
17
  import {
18
18
  findWorkspaceRoot
19
19
  } from "./chunk-FR3YQN55.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-YZLAY7R4.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-IVVMLTAZ.mjs";
7
+ } from "./chunk-4LIIIWIV.mjs";
8
8
  import {
9
9
  joinPaths
10
10
  } from "./chunk-ATIBREWM.mjs";
@@ -4,7 +4,7 @@
4
4
  var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
5
5
 
6
6
 
7
- var _chunkW6XC45WYjs = require('./chunk-W6XC45WY.js');
7
+ var _chunkP6PFHXHQjs = require('./chunk-P6PFHXHQ.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 = _chunkW6XC45WYjs.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
18
+ var executor_default = _chunkP6PFHXHQjs.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
19
19
  skipReadingConfig: false,
20
20
  hooks: {
21
21
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -142,6 +142,10 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
142
142
  log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
143
143
  build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
144
144
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
145
+ var errorConfigSchema = _zod2.default.object({
146
+ codesFile: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
147
+ url: _zod2.default.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
148
+ }).describe("The workspace's error config used during the error process");
145
149
  var stormWorkspaceConfigSchema = _zod2.default.object({
146
150
  $schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
147
151
  extends: ExtendsSchema.optional(),
@@ -160,6 +164,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
160
164
  bot: WorkspaceBotConfigSchema,
161
165
  release: WorkspaceReleaseConfigSchema,
162
166
  account: WorkspaceAccountConfigSchema,
167
+ error: errorConfigSchema,
163
168
  mode: _zod2.default.enum([
164
169
  "development",
165
170
  "staging",
@@ -310,7 +315,10 @@ var getDefaultConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asyn
310
315
  license,
311
316
  homepage,
312
317
  docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
313
- licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`
318
+ licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
319
+ error: {
320
+ url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
321
+ }
314
322
  };
315
323
  }, "getDefaultConfig");
316
324
 
@@ -624,6 +632,10 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
624
632
  header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
625
633
  footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
626
634
  },
635
+ error: {
636
+ codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
637
+ url: process.env[`${prefix}ERROR_URL`] || void 0
638
+ },
627
639
  account: {
628
640
  twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
629
641
  discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
@@ -797,6 +809,10 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
797
809
  process.env[`${prefix}BOT_NAME`] = config.bot.name;
798
810
  process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
799
811
  }
812
+ if (config.error) {
813
+ process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
814
+ process.env[`${prefix}ERROR_URL`] = config.error.url;
815
+ }
800
816
  if (config.release) {
801
817
  process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
802
818
  process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
@@ -927,7 +943,7 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
927
943
  process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
928
944
  }
929
945
  if (config.registry.container) {
930
- process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.cyclone);
946
+ process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
931
947
  }
932
948
  }
933
949
  if (config.logLevel) {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkW6XC45WYjs = require('./chunk-W6XC45WY.js');
3
+ var _chunkP6PFHXHQjs = require('./chunk-P6PFHXHQ.js');
4
4
 
5
5
 
6
6
 
@@ -13,7 +13,7 @@ var _chunkW6XC45WYjs = require('./chunk-W6XC45WY.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkZ7QQFXLCjs = require('./chunk-Z7QQFXLC.js');
16
+ var _chunkSKMT7WD5js = require('./chunk-SKMT7WD5.js');
17
17
 
18
18
 
19
19
  var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
@@ -83,7 +83,7 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
83
83
  output: "src/"
84
84
  });
85
85
  }
86
- _chunkZ7QQFXLCjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
86
+ _chunkSKMT7WD5js.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
87
87
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkJTAXCQX6js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
88
88
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
89
89
  projectDir: projectRoot,
@@ -93,7 +93,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
93
93
  });
94
94
  await assetHandler.processAllAssetsOnce();
95
95
  if (includeSrc === true) {
96
- _chunkZ7QQFXLCjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkJTAXCQX6js.joinPaths.call(void 0, outputPath, "src")}`, config);
96
+ _chunkSKMT7WD5js.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkJTAXCQX6js.joinPaths.call(void 0, outputPath, "src")}`, config);
97
97
  const files = await _glob.glob.call(void 0, [
98
98
  _chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
99
99
  _chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
@@ -132,7 +132,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
132
132
  }
133
133
  }
134
134
  if (localPackages.length > 0) {
135
- _chunkZ7QQFXLCjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
135
+ _chunkSKMT7WD5js.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
136
136
  const projectJsonFile = await _promises.readFile.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
137
137
  const projectJson = JSON.parse(projectJsonFile);
138
138
  const projectName2 = projectJson.name;
@@ -166,7 +166,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
166
166
  return ret;
167
167
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
168
168
  } else {
169
- _chunkZ7QQFXLCjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
169
+ _chunkSKMT7WD5js.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
170
170
  }
171
171
  return packageJson;
172
172
  }, "addPackageDependencies");
@@ -264,7 +264,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
264
264
  paths.push(...files.reduce((ret, filePath) => {
265
265
  const result = _chunkJTAXCQX6js.correctPaths.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, projectRoot), ""));
266
266
  if (result) {
267
- _chunkZ7QQFXLCjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkJTAXCQX6js.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
267
+ _chunkSKMT7WD5js.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkJTAXCQX6js.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
268
268
  if (!paths.includes(result)) {
269
269
  paths.push(result);
270
270
  }
@@ -272,10 +272,9 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
272
272
  return ret;
273
273
  }, []));
274
274
  } else {
275
- const result = _chunkJTAXCQX6js.correctPaths.call(void 0, entryPoint.replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, projectRoot), ""));
276
- _chunkZ7QQFXLCjs.writeDebug.call(void 0, `Trying to add entry point ${result}"`, config);
277
- if (!paths.includes(result)) {
278
- paths.push(result);
275
+ _chunkSKMT7WD5js.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
276
+ if (!paths.includes(entryPoint)) {
277
+ paths.push(entryPoint);
279
278
  }
280
279
  }
281
280
  return paths;
@@ -588,7 +587,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
588
587
  setup(build4) {
589
588
  build4.onEnd((result) => {
590
589
  if (result.errors.length > 0 && process.env.WATCH !== "true") {
591
- _chunkZ7QQFXLCjs.writeError.call(void 0, `The following errors occurred during the build:
590
+ _chunkSKMT7WD5js.writeError.call(void 0, `The following errors occurred during the build:
592
591
  ${result.errors.map((error) => error.text).join("\n")}
593
592
 
594
593
  `, resolvedOptions.config);
@@ -697,7 +696,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
697
696
  localBuild: true
698
697
  });
699
698
  if (extractorResult.succeeded === false) {
700
- _chunkZ7QQFXLCjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
699
+ _chunkSKMT7WD5js.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
701
700
  throw new Error("API Extractor completed with errors");
702
701
  }
703
702
  }
@@ -885,8 +884,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bund
885
884
  const filteredMissingDeps = missingDependencies.filter((dep) => {
886
885
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
887
886
  });
888
- _chunkZ7QQFXLCjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
889
- _chunkZ7QQFXLCjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
887
+ _chunkSKMT7WD5js.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
888
+ _chunkSKMT7WD5js.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
890
889
  if (filteredMissingDeps.length > 0) {
891
890
  throw new Error(`Missing dependencies detected - please install them:
892
891
  ${JSON.stringify(filteredMissingDeps)}
@@ -980,9 +979,9 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
980
979
  if (!workspaceRoot) {
981
980
  throw new Error("Cannot find Nx workspace root");
982
981
  }
983
- const config = await _chunkZ7QQFXLCjs.getConfig.call(void 0, workspaceRoot.dir);
984
- _chunkZ7QQFXLCjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
985
- const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, "Build options resolution");
982
+ const config = await _chunkSKMT7WD5js.getConfig.call(void 0, workspaceRoot.dir);
983
+ _chunkSKMT7WD5js.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
984
+ const stopwatch = _chunkSKMT7WD5js.getStopwatch.call(void 0, "Build options resolution");
986
985
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
987
986
  exitOnError: true
988
987
  });
@@ -1019,7 +1018,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1019
1018
  ...userOptions,
1020
1019
  tsconfig: _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1021
1020
  format: options.format || "cjs",
1022
- entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), userOptions.emitOnAll === true),
1021
+ entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), false),
1023
1022
  outdir: userOptions.outputPath || _chunkJTAXCQX6js.joinPaths.call(void 0, "dist", projectRoot),
1024
1023
  distDir: userOptions.distDir || "dist",
1025
1024
  plugins: [],
@@ -1029,12 +1028,11 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1029
1028
  projectGraph,
1030
1029
  sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "src"),
1031
1030
  minify: userOptions.minify || !userOptions.debug,
1032
- verbose: userOptions.verbose || _chunkZ7QQFXLCjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1031
+ verbose: userOptions.verbose || _chunkSKMT7WD5js.isVerbose.call(void 0, ) || userOptions.debug === true,
1033
1032
  includeSrc: userOptions.includeSrc === true,
1034
1033
  metafile: userOptions.metafile !== false,
1035
1034
  generatePackageJson: userOptions.generatePackageJson !== false,
1036
1035
  clean: userOptions.clean !== false,
1037
- emitOnAll: userOptions.emitOnAll === true,
1038
1036
  assets: _nullishCoalesce(userOptions.assets, () => ( [])),
1039
1037
  injectShims: userOptions.injectShims !== true,
1040
1038
  bundle: userOptions.bundle !== false,
@@ -1085,8 +1083,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1085
1083
  }, "resolveOptions");
1086
1084
  async function generatePackageJson(context2) {
1087
1085
  if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1088
- _chunkZ7QQFXLCjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1089
- const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, "Write package.json file");
1086
+ _chunkSKMT7WD5js.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1087
+ const stopwatch = _chunkSKMT7WD5js.getStopwatch.call(void 0, "Write package.json file");
1090
1088
  const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1091
1089
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1092
1090
  throw new Error("Cannot find package.json configuration");
@@ -1111,7 +1109,7 @@ async function generatePackageJson(context2) {
1111
1109
  if (Array.isArray(context2.options.entryPoints)) {
1112
1110
  entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
1113
1111
  in: entryPoint,
1114
- out: entryPoint
1112
+ out: _chunkJTAXCQX6js.correctPaths.call(void 0, entryPoint.replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, context2.options.config.workspaceRoot), "").replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, context2.options.projectRoot), ""))
1115
1113
  } : entryPoint);
1116
1114
  }
1117
1115
  for (const entryPoint of entryPoints) {
@@ -1159,8 +1157,8 @@ async function generateContext(getOptions) {
1159
1157
  }
1160
1158
  _chunk3GQAWCBQjs.__name.call(void 0, generateContext, "generateContext");
1161
1159
  async function executeEsBuild(context2) {
1162
- _chunkZ7QQFXLCjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1163
- const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, `${context2.options.name} build`);
1160
+ _chunkSKMT7WD5js.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1161
+ const stopwatch = _chunkSKMT7WD5js.getStopwatch.call(void 0, `${context2.options.name} build`);
1164
1162
  if (process.env.STORM_WATCH) {
1165
1163
  const ctx = await esbuild2.context(context2.options);
1166
1164
  watch(ctx, context2.options);
@@ -1182,7 +1180,6 @@ async function executeEsBuild(context2) {
1182
1180
  delete options.clean;
1183
1181
  delete options.debug;
1184
1182
  delete options.generatePackageJson;
1185
- delete options.emitOnAll;
1186
1183
  delete options.distDir;
1187
1184
  delete options.includeSrc;
1188
1185
  delete options.verbose;
@@ -1194,8 +1191,11 @@ async function executeEsBuild(context2) {
1194
1191
  delete options.config;
1195
1192
  delete options.injectShims;
1196
1193
  delete options.external;
1197
- _chunkZ7QQFXLCjs.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
1198
- ${_chunkZ7QQFXLCjs.formatLogMessage.call(void 0, options)}`, context2.options.config);
1194
+ _chunkSKMT7WD5js.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
1195
+ ${_chunkSKMT7WD5js.formatLogMessage.call(void 0, {
1196
+ ...options,
1197
+ define: "<Hidden>"
1198
+ })}`, context2.options.config);
1199
1199
  const result = await esbuild2.build(options);
1200
1200
  await esbuild2.stop();
1201
1201
  if (result.metafile) {
@@ -1208,8 +1208,8 @@ ${_chunkZ7QQFXLCjs.formatLogMessage.call(void 0, options)}`, context2.options.co
1208
1208
  _chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1209
1209
  async function copyBuildAssets(context2) {
1210
1210
  if (_optionalChain([context2, 'access', _49 => _49.result, 'optionalAccess', _50 => _50.errors, 'access', _51 => _51.length]) === 0) {
1211
- _chunkZ7QQFXLCjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1212
- const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1211
+ _chunkSKMT7WD5js.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1212
+ const stopwatch = _chunkSKMT7WD5js.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1213
1213
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
1214
1214
  stopwatch();
1215
1215
  }
@@ -1219,9 +1219,9 @@ _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1219
1219
  async function reportResults(context2) {
1220
1220
  if (_optionalChain([context2, 'access', _52 => _52.result, 'optionalAccess', _53 => _53.errors, 'access', _54 => _54.length]) === 0) {
1221
1221
  if (context2.result.warnings.length > 0) {
1222
- _chunkZ7QQFXLCjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
1222
+ _chunkSKMT7WD5js.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
1223
1223
  }
1224
- _chunkZ7QQFXLCjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1224
+ _chunkSKMT7WD5js.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1225
1225
  }
1226
1226
  }
1227
1227
  _chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
@@ -1257,8 +1257,8 @@ async function dependencyCheck(options) {
1257
1257
  _chunk3GQAWCBQjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
1258
1258
  async function cleanOutputPath(context2) {
1259
1259
  if (context2.options.clean !== false && context2.options.outdir) {
1260
- _chunkZ7QQFXLCjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1261
- const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
1260
+ _chunkSKMT7WD5js.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1261
+ const stopwatch = _chunkSKMT7WD5js.getStopwatch.call(void 0, `${context2.options.name} output clean`);
1262
1262
  await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
1263
1263
  stopwatch();
1264
1264
  }
@@ -1266,8 +1266,8 @@ async function cleanOutputPath(context2) {
1266
1266
  }
1267
1267
  _chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
1268
1268
  async function build3(options) {
1269
- _chunkZ7QQFXLCjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1270
- const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, "ESBuild pipeline");
1269
+ _chunkSKMT7WD5js.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1270
+ const stopwatch = _chunkSKMT7WD5js.getStopwatch.call(void 0, "ESBuild pipeline");
1271
1271
  try {
1272
1272
  const opts = Array.isArray(options) ? options : [
1273
1273
  options
@@ -1277,9 +1277,9 @@ async function build3(options) {
1277
1277
  }
1278
1278
  void transduce.async(opts, dependencyCheck);
1279
1279
  await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
1280
- _chunkZ7QQFXLCjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1280
+ _chunkSKMT7WD5js.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1281
1281
  } catch (error) {
1282
- _chunkZ7QQFXLCjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
1282
+ _chunkSKMT7WD5js.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
1283
1283
  throw error;
1284
1284
  } finally {
1285
1285
  stopwatch();
@@ -1307,9 +1307,9 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
1307
1307
  return context2.rebuild();
1308
1308
  });
1309
1309
  if (rebuildResult instanceof Error) {
1310
- _chunkZ7QQFXLCjs.writeError.call(void 0, rebuildResult.message);
1310
+ _chunkSKMT7WD5js.writeError.call(void 0, rebuildResult.message);
1311
1311
  }
1312
- _chunkZ7QQFXLCjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1312
+ _chunkSKMT7WD5js.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1313
1313
  }, 10);
1314
1314
  changeWatcher.on("change", fastRebuild);
1315
1315
  return void 0;
@@ -1317,7 +1317,7 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
1317
1317
 
1318
1318
  // src/executors/esbuild/executor.ts
1319
1319
  async function esbuildExecutorFn(options, context2, config) {
1320
- _chunkZ7QQFXLCjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1320
+ _chunkSKMT7WD5js.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1321
1321
  if (!_optionalChain([context2, 'access', _55 => _55.projectsConfigurations, 'optionalAccess', _56 => _56.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _57 => _57.projectsConfigurations, 'access', _58 => _58.projects, 'access', _59 => _59[context2.projectName], 'optionalAccess', _60 => _60.root])) {
1322
1322
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1323
1323
  }
@@ -1334,7 +1334,7 @@ async function esbuildExecutorFn(options, context2, config) {
1334
1334
  };
1335
1335
  }
1336
1336
  _chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
1337
- var executor_default = _chunkW6XC45WYjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
1337
+ var executor_default = _chunkP6PFHXHQjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
1338
1338
  skipReadingConfig: false,
1339
1339
  hooks: {
1340
1340
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-JIAGNEII.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-VIYVUTPL.mjs";
7
+ } from "./chunk-7P2LGXFI.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-2BPV2XV2.mjs";
@@ -4,7 +4,7 @@
4
4
  var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
5
5
 
6
6
 
7
- var _chunk2JSGLAYYjs = require('./chunk-2JSGLAYY.js');
7
+ var _chunkNQ4W3N7Ojs = require('./chunk-NQ4W3N7O.js');
8
8
 
9
9
 
10
10
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -229,7 +229,7 @@ async function presetGeneratorFn(tree, options) {
229
229
  return null;
230
230
  }
231
231
  _chunk3GQAWCBQjs.__name.call(void 0, presetGeneratorFn, "presetGeneratorFn");
232
- var generator_default = _chunk2JSGLAYYjs.withRunGenerator.call(void 0, "Storm Workspace Preset Generator", presetGeneratorFn);
232
+ var generator_default = _chunkNQ4W3N7Ojs.withRunGenerator.call(void 0, "Storm Workspace Preset Generator", presetGeneratorFn);
233
233
 
234
234
 
235
235
 
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-JIAGNEII.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-VIYVUTPL.mjs";
7
+ } from "./chunk-7P2LGXFI.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-2BPV2XV2.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-VIYVUTPL.mjs";
3
+ } from "./chunk-7P2LGXFI.mjs";
4
4
  import {
5
5
  formatLogMessage,
6
6
  getConfig,
@@ -13,7 +13,7 @@ import {
13
13
  writeSuccess,
14
14
  writeTrace,
15
15
  writeWarning
16
- } from "./chunk-ZQM46HJL.mjs";
16
+ } from "./chunk-NODM27UV.mjs";
17
17
  import {
18
18
  findWorkspaceRoot
19
19
  } from "./chunk-FR3YQN55.mjs";
@@ -273,10 +273,9 @@ var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRo
273
273
  return ret;
274
274
  }, []));
275
275
  } else {
276
- const result = correctPaths(entryPoint.replaceAll(correctPaths(workspaceRoot), "").replaceAll(correctPaths(projectRoot), ""));
277
- writeDebug(`Trying to add entry point ${result}"`, config);
278
- if (!paths.includes(result)) {
279
- paths.push(result);
276
+ writeDebug(`Trying to add entry point ${entryPoint}"`, config);
277
+ if (!paths.includes(entryPoint)) {
278
+ paths.push(entryPoint);
280
279
  }
281
280
  }
282
281
  return paths;
@@ -1020,7 +1019,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1020
1019
  ...userOptions,
1021
1020
  tsconfig: joinPaths(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1022
1021
  format: options.format || "cjs",
1023
- entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry ?? "./src/index.ts", userOptions.emitOnAll === true),
1022
+ entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry ?? "./src/index.ts", false),
1024
1023
  outdir: userOptions.outputPath || joinPaths("dist", projectRoot),
1025
1024
  distDir: userOptions.distDir || "dist",
1026
1025
  plugins: [],
@@ -1035,7 +1034,6 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1035
1034
  metafile: userOptions.metafile !== false,
1036
1035
  generatePackageJson: userOptions.generatePackageJson !== false,
1037
1036
  clean: userOptions.clean !== false,
1038
- emitOnAll: userOptions.emitOnAll === true,
1039
1037
  assets: userOptions.assets ?? [],
1040
1038
  injectShims: userOptions.injectShims !== true,
1041
1039
  bundle: userOptions.bundle !== false,
@@ -1112,7 +1110,7 @@ async function generatePackageJson(context2) {
1112
1110
  if (Array.isArray(context2.options.entryPoints)) {
1113
1111
  entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
1114
1112
  in: entryPoint,
1115
- out: entryPoint
1113
+ out: correctPaths(entryPoint.replaceAll(correctPaths(context2.options.config.workspaceRoot), "").replaceAll(correctPaths(context2.options.projectRoot), ""))
1116
1114
  } : entryPoint);
1117
1115
  }
1118
1116
  for (const entryPoint of entryPoints) {
@@ -1183,7 +1181,6 @@ async function executeEsBuild(context2) {
1183
1181
  delete options.clean;
1184
1182
  delete options.debug;
1185
1183
  delete options.generatePackageJson;
1186
- delete options.emitOnAll;
1187
1184
  delete options.distDir;
1188
1185
  delete options.includeSrc;
1189
1186
  delete options.verbose;
@@ -1196,7 +1193,10 @@ async function executeEsBuild(context2) {
1196
1193
  delete options.injectShims;
1197
1194
  delete options.external;
1198
1195
  writeTrace(`Run esbuild (${context2.options.name}) with the following options:
1199
- ${formatLogMessage(options)}`, context2.options.config);
1196
+ ${formatLogMessage({
1197
+ ...options,
1198
+ define: "<Hidden>"
1199
+ })}`, context2.options.config);
1200
1200
  const result = await esbuild2.build(options);
1201
1201
  await esbuild2.stop();
1202
1202
  if (result.metafile) {
@@ -4,7 +4,7 @@
4
4
  var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
5
5
 
6
6
 
7
- var _chunkW6XC45WYjs = require('./chunk-W6XC45WY.js');
7
+ var _chunkP6PFHXHQjs = require('./chunk-P6PFHXHQ.js');
8
8
 
9
9
 
10
10
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -20,7 +20,7 @@ async function cargoDocExecutor(options, context) {
20
20
  return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
21
21
  }
22
22
  _chunk3GQAWCBQjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
23
- var executor_default = _chunkW6XC45WYjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
23
+ var executor_default = _chunkP6PFHXHQjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
24
24
  skipReadingConfig: false,
25
25
  hooks: {
26
26
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -4,7 +4,7 @@
4
4
  var _chunkRBU35LQWjs = require('./chunk-RBU35LQW.js');
5
5
 
6
6
 
7
- var _chunk2JSGLAYYjs = require('./chunk-2JSGLAYY.js');
7
+ var _chunkNQ4W3N7Ojs = require('./chunk-NQ4W3N7O.js');
8
8
 
9
9
 
10
10
  var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
@@ -45,7 +45,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
45
45
  return null;
46
46
  }
47
47
  _chunk3GQAWCBQjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
48
- var generator_default = _chunk2JSGLAYYjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
48
+ var generator_default = _chunkNQ4W3N7Ojs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
49
49
  hooks: {
50
50
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
51
51
  options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
@@ -1,6 +1,6 @@
1
1
  import * as _nx_devkit from '@nx/devkit';
2
2
  import { ExecutorContext } from '@nx/devkit';
3
- import { S as StormWorkspaceConfig } from './types-DK9-a60Q.js';
3
+ import { S as StormWorkspaceConfig } from './types-C3URiht7.js';
4
4
 
5
5
  // Generated by @storm-software/untyped
6
6
  // Do not edit this file directly