@storm-software/workspace-tools 1.264.22 → 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 +17 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-TFNKD3A2.js → chunk-26KLH7BI.js} +4 -4
  4. package/dist/{chunk-Q6PB2D4O.mjs → chunk-32XQSY3C.mjs} +2 -2
  5. package/dist/{chunk-4UTIWEDA.mjs → chunk-4LIIIWIV.mjs} +1 -1
  6. package/dist/{chunk-EEMX5TF7.js → chunk-5DQCVP4N.js} +5 -5
  7. package/dist/{chunk-5QWEZQFR.mjs → chunk-7P2LGXFI.mjs} +1 -1
  8. package/dist/{chunk-I44JBB55.js → chunk-7YVMI4XM.js} +2 -2
  9. package/dist/{chunk-IRPD2M2I.js → chunk-ACBRXFBB.js} +2 -2
  10. package/dist/{chunk-PUW5GKBJ.mjs → chunk-AVC6Y5IR.mjs} +1 -1
  11. package/dist/{chunk-IRSGGDCX.mjs → chunk-CD3W3HIC.mjs} +2 -2
  12. package/dist/{chunk-CEK44GFG.mjs → chunk-CIHS3V6E.mjs} +1 -1
  13. package/dist/{chunk-W25HMODD.js → chunk-DNYOACHD.js} +11 -11
  14. package/dist/{chunk-VGWC25SX.js → chunk-E4TBRQDJ.js} +2 -2
  15. package/dist/{chunk-7A34G3TI.mjs → chunk-FCGFBNCJ.mjs} +1 -1
  16. package/dist/{chunk-WCGJHQTH.mjs → chunk-GGSDFI6U.mjs} +2 -2
  17. package/dist/{chunk-KFT2TAHE.js → chunk-IPBHTVKW.js} +2 -2
  18. package/dist/{chunk-TYTLMYMZ.mjs → chunk-IQQERPIV.mjs} +1 -1
  19. package/dist/{chunk-ASBO74YM.js → chunk-JCJHSN67.js} +5 -5
  20. package/dist/{chunk-NW4PIBL2.mjs → chunk-JWFYDYKI.mjs} +1 -1
  21. package/dist/{chunk-K5XDKCHY.mjs → chunk-KQMGKHXU.mjs} +4 -4
  22. package/dist/{chunk-DYKPDBZQ.js → chunk-LRLMU4QV.js} +2 -2
  23. package/dist/{chunk-FQSPQRIB.mjs → chunk-MMPXE2KD.mjs} +1 -1
  24. package/dist/{chunk-YCDNXKRB.js → chunk-N4STCLGJ.js} +9 -9
  25. package/dist/{chunk-AUU7AFJV.mjs → chunk-NODM27UV.mjs} +27 -11
  26. package/dist/{chunk-SWKSEHJV.js → chunk-NQ4W3N7O.js} +15 -15
  27. package/dist/{chunk-IVNDY2FE.js → chunk-P6PFHXHQ.js} +20 -20
  28. package/dist/{chunk-5OWPWITA.mjs → chunk-P7UUSOFW.mjs} +1 -1
  29. package/dist/{chunk-AWUOBB3R.mjs → chunk-PHVGSPP3.mjs} +1 -1
  30. package/dist/{chunk-DJJEQUOE.js → chunk-QPJ4XTDX.js} +2 -2
  31. package/dist/{chunk-SPRQWSBE.js → chunk-SKMT7WD5.js} +27 -11
  32. package/dist/{chunk-KFDASQGA.js → chunk-T42YSSIT.js} +64 -60
  33. package/dist/{chunk-5M3R4RLA.mjs → chunk-UMFP6PYU.mjs} +1 -1
  34. package/dist/{chunk-IFB5HNMT.js → chunk-USJX4BPD.js} +2 -2
  35. package/dist/{chunk-MHZ6V7XS.mjs → chunk-VTRSAQHO.mjs} +1 -1
  36. package/dist/{chunk-L56XXV3B.mjs → chunk-YDDVJHQ4.mjs} +15 -11
  37. package/dist/{chunk-3MWOC5X7.js → chunk-Z2GBHTLH.js} +2 -2
  38. package/dist/{chunk-P5WJDR64.js → chunk-ZGMV4YJL.js} +2 -2
  39. package/dist/{executor-CqRyjFhC.d.mts → executor-21QQWs8J.d.ts} +2 -2
  40. package/dist/{executor-BSdK3i-c.d.ts → executor-BD4gkr4O.d.ts} +2 -2
  41. package/dist/{executor-BHZDUmGV.d.ts → executor-BYcX7bg8.d.mts} +2 -2
  42. package/dist/{executor-Ba3sXm2v.d.ts → executor-BvnlpAbd.d.ts} +2 -2
  43. package/dist/{executor-D8PlrGW7.d.mts → executor-CLYItx2J.d.ts} +2 -2
  44. package/dist/{executor-aaNF3iYy.d.mts → executor-CsTGaThv.d.mts} +2 -2
  45. package/dist/{executor-BeYtFLmD.d.mts → executor-DpaKJJUo.d.mts} +2 -2
  46. package/dist/{executor-C5FcAd29.d.ts → executor-FYb5cygt.d.mts} +2 -2
  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-C8vM6WVl.d.ts → generator-BMY6LGPc.d.ts} +1 -1
  52. package/dist/{generator-ieAZPSV9.d.ts → generator-BPz6wkk9.d.mts} +3 -3
  53. package/dist/{generator-BN20pTlZ.d.mts → generator-BXJFXwbk.d.ts} +3 -3
  54. package/dist/{generator-CDWEbKl9.d.ts → generator-Bw4on8nq.d.mts} +3 -3
  55. package/dist/{generator-D1KDMMWv.d.ts → generator-D3Kl6o6G.d.mts} +3 -3
  56. package/dist/{generator-CDFD9683.d.mts → generator-D4IATDWn.d.ts} +3 -3
  57. package/dist/{generator-CO80PAYg.d.mts → generator-DPRJ4mde.d.ts} +3 -3
  58. package/dist/{generator-C77-chd9.d.mts → generator-EapPsEII.d.ts} +3 -3
  59. package/dist/{generator-CPOA4iOa.d.mts → generator-UGJuBE-5.d.ts} +2 -2
  60. package/dist/{generator-CwtaXN68.d.mts → generator-UekCwik8.d.mts} +1 -1
  61. package/dist/{generator-DHaTv11N.d.ts → generator-_OZvHhIS.d.mts} +2 -2
  62. package/dist/{generator-PWtPKnX3.d.ts → generator-gUQuyamW.d.mts} +3 -3
  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 +3 -3
  72. package/dist/src/base/base-executor.d.ts +3 -3
  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 +3 -3
  76. package/dist/src/base/base-generator.d.ts +3 -3
  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 +4 -4
  80. package/dist/src/base/index.d.ts +4 -4
  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 +2 -2
  94. package/dist/src/executors/clean-package/executor.d.ts +2 -2
  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 +2 -2
  140. package/dist/src/utils/apply-workspace-tokens.d.ts +2 -2
  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-DdLUCAjP.d.ts → types-C3URiht7.d.mts} +41 -7
  146. package/dist/{types-DdLUCAjP.d.mts → types-C3URiht7.d.ts} +41 -7
  147. package/dist/{types-DAkcs-RD.d.mts → types-CUnUfpKk.d.ts} +4 -4
  148. package/dist/{types-BhjX7nv_.d.ts → types-dNjhGseA.d.mts} +4 -4
  149. package/package.json +1 -1
@@ -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 _chunkIVNDY2FEjs = require('./chunk-IVNDY2FE.js');
3
+ var _chunkP6PFHXHQjs = require('./chunk-P6PFHXHQ.js');
4
4
 
5
5
 
6
6
 
@@ -13,7 +13,7 @@ var _chunkIVNDY2FEjs = require('./chunk-IVNDY2FE.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkSPRQWSBEjs = require('./chunk-SPRQWSBE.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
- _chunkSPRQWSBEjs.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
- _chunkSPRQWSBEjs.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
- _chunkSPRQWSBEjs.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;
@@ -154,19 +154,19 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
154
154
  return ret;
155
155
  }, [])]);
156
156
  packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
157
- if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _17 => _17.includes, 'call', _18 => _18(localPackage.name)])) {
158
- ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
157
+ if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _17 => _17.includes, 'call', _18 => _18(localPackage.name)]) && _optionalChain([packageJson, 'access', _19 => _19.devDependencies, 'optionalAccess', _20 => _20[localPackage.name]]) === void 0) {
158
+ ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
159
159
  }
160
160
  return ret;
161
161
  }, _nullishCoalesce(packageJson.dependencies, () => ( {})));
162
162
  packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
163
- if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _19 => _19.includes, 'call', _20 => _20(localPackage.name)])) {
163
+ if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _21 => _21.includes, 'call', _22 => _22(localPackage.name)]) && _optionalChain([packageJson, 'access', _23 => _23.dependencies, 'optionalAccess', _24 => _24[localPackage.name]]) === void 0) {
164
164
  ret[localPackage.name] = localPackage.version || "0.0.1";
165
165
  }
166
166
  return ret;
167
167
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
168
168
  } else {
169
- _chunkSPRQWSBEjs.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
- _chunkSPRQWSBEjs.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,7 +272,10 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
272
272
  return ret;
273
273
  }, []));
274
274
  } else {
275
- paths.push(entryPoint);
275
+ _chunkSKMT7WD5js.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
276
+ if (!paths.includes(entryPoint)) {
277
+ paths.push(entryPoint);
278
+ }
276
279
  }
277
280
  return paths;
278
281
  }));
@@ -384,15 +387,15 @@ var RendererEngine = class {
384
387
  if (!relativePath.startsWith("\\\\?\\")) {
385
388
  relativePath = relativePath.replace(/\\/g, "/");
386
389
  }
387
- const meta = _optionalChain([metafile, 'optionalAccess', _21 => _21.outputs, 'access', _22 => _22[relativePath]]);
390
+ const meta = _optionalChain([metafile, 'optionalAccess', _25 => _25.outputs, 'access', _26 => _26[relativePath]]);
388
391
  return {
389
392
  type: "chunk",
390
393
  path: file.path,
391
394
  code: file.text,
392
- map: _optionalChain([outputFiles, 'access', _23 => _23.find, 'call', _24 => _24((f) => f.path === `${file.path}.map`), 'optionalAccess', _25 => _25.text]),
393
- entryPoint: _optionalChain([meta, 'optionalAccess', _26 => _26.entryPoint]),
394
- exports: _optionalChain([meta, 'optionalAccess', _27 => _27.exports]),
395
- imports: _optionalChain([meta, 'optionalAccess', _28 => _28.imports])
395
+ map: _optionalChain([outputFiles, 'access', _27 => _27.find, 'call', _28 => _28((f) => f.path === `${file.path}.map`), 'optionalAccess', _29 => _29.text]),
396
+ entryPoint: _optionalChain([meta, 'optionalAccess', _30 => _30.entryPoint]),
397
+ exports: _optionalChain([meta, 'optionalAccess', _31 => _31.exports]),
398
+ imports: _optionalChain([meta, 'optionalAccess', _32 => _32.imports])
396
399
  };
397
400
  } else {
398
401
  return {
@@ -475,7 +478,7 @@ var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void
475
478
  name: "storm:esm-split-code-to-cjs",
476
479
  setup(build4) {
477
480
  build4.onEnd(async (result) => {
478
- const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _29 => _29.metafile, 'optionalAccess', _30 => _30.outputs]), () => ( {})));
481
+ const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _33 => _33.metafile, 'optionalAccess', _34 => _34.outputs]), () => ( {})));
479
482
  const jsFiles = outFiles.filter((f) => f.endsWith("js"));
480
483
  await esbuild.build({
481
484
  outdir: resolvedOptions.outdir,
@@ -584,7 +587,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
584
587
  setup(build4) {
585
588
  build4.onEnd((result) => {
586
589
  if (result.errors.length > 0 && process.env.WATCH !== "true") {
587
- _chunkSPRQWSBEjs.writeError.call(void 0, `The following errors occurred during the build:
590
+ _chunkSKMT7WD5js.writeError.call(void 0, `The following errors occurred during the build:
588
591
  ${result.errors.map((error) => error.text).join("\n")}
589
592
 
590
593
  `, resolvedOptions.config);
@@ -597,7 +600,7 @@ ${result.errors.map((error) => error.text).join("\n")}
597
600
  // ../esbuild/src/plugins/resolve-paths.ts
598
601
 
599
602
  function resolvePathsConfig(options, cwd) {
600
- if (_optionalChain([options, 'optionalAccess', _31 => _31.compilerOptions, 'optionalAccess', _32 => _32.paths])) {
603
+ if (_optionalChain([options, 'optionalAccess', _35 => _35.compilerOptions, 'optionalAccess', _36 => _36.paths])) {
601
604
  const paths = Object.entries(options.compilerOptions.paths);
602
605
  const resolvedPaths = paths.map(([key, paths2]) => {
603
606
  return [
@@ -625,7 +628,7 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (o
625
628
  build4.onResolve({
626
629
  filter: packagesRegex
627
630
  }, (args) => {
628
- if (_optionalChain([build4, 'access', _33 => _33.initialOptions, 'access', _34 => _34.external, 'optionalAccess', _35 => _35.includes, 'call', _36 => _36(args.path)])) {
631
+ if (_optionalChain([build4, 'access', _37 => _37.initialOptions, 'access', _38 => _38.external, 'optionalAccess', _39 => _39.includes, 'call', _40 => _40(args.path)])) {
629
632
  return {
630
633
  path: args.path,
631
634
  external: true
@@ -693,7 +696,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
693
696
  localBuild: true
694
697
  });
695
698
  if (extractorResult.succeeded === false) {
696
- _chunkSPRQWSBEjs.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"}`);
697
700
  throw new Error("API Extractor completed with errors");
698
701
  }
699
702
  }
@@ -734,7 +737,7 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, r
734
737
  function getTypeDependencyPackageName(npmPackage) {
735
738
  if (npmPackage.startsWith("@")) {
736
739
  const [scope, name] = npmPackage.split("/");
737
- return `@types/${_optionalChain([scope, 'optionalAccess', _37 => _37.slice, 'call', _38 => _38(1)])}__${name}`;
740
+ return `@types/${_optionalChain([scope, 'optionalAccess', _41 => _41.slice, 'call', _42 => _42(1)])}__${name}`;
738
741
  }
739
742
  return `@types/${npmPackage}`;
740
743
  }
@@ -881,8 +884,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bund
881
884
  const filteredMissingDeps = missingDependencies.filter((dep) => {
882
885
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
883
886
  });
884
- _chunkSPRQWSBEjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
885
- _chunkSPRQWSBEjs.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)}`);
886
889
  if (filteredMissingDeps.length > 0) {
887
890
  throw new Error(`Missing dependencies detected - please install them:
888
891
  ${JSON.stringify(filteredMissingDeps)}
@@ -950,7 +953,7 @@ function pipeSync(fn, ...fns) {
950
953
  return (...args) => {
951
954
  let result = fn(...args);
952
955
  for (let i = 0; result !== skip && i < fns.length; ++i) {
953
- result = _optionalChain([fns, 'access', _39 => _39[i], 'optionalCall', _40 => _40(result)]);
956
+ result = _optionalChain([fns, 'access', _43 => _43[i], 'optionalCall', _44 => _44(result)]);
954
957
  }
955
958
  return result;
956
959
  };
@@ -960,7 +963,7 @@ function pipeAsync(fn, ...fns) {
960
963
  return async (...args) => {
961
964
  let result = await fn(...args);
962
965
  for (let i = 0; result !== skip && i < fns.length; ++i) {
963
- result = await _optionalChain([fns, 'access', _41 => _41[i], 'optionalCall', _42 => _42(result)]);
966
+ result = await _optionalChain([fns, 'access', _45 => _45[i], 'optionalCall', _46 => _46(result)]);
964
967
  }
965
968
  return result;
966
969
  };
@@ -976,9 +979,9 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
976
979
  if (!workspaceRoot) {
977
980
  throw new Error("Cannot find Nx workspace root");
978
981
  }
979
- const config = await _chunkSPRQWSBEjs.getConfig.call(void 0, workspaceRoot.dir);
980
- _chunkSPRQWSBEjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
981
- const stopwatch = _chunkSPRQWSBEjs.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");
982
985
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
983
986
  exitOnError: true
984
987
  });
@@ -990,7 +993,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
990
993
  const projectJson = JSON.parse(projectJsonFile);
991
994
  const projectName = projectJson.name;
992
995
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
993
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _43 => _43.projects, 'optionalAccess', _44 => _44[projectName]])) {
996
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _47 => _47.projects, 'optionalAccess', _48 => _48[projectName]])) {
994
997
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
995
998
  }
996
999
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
@@ -1015,7 +1018,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1015
1018
  ...userOptions,
1016
1019
  tsconfig: _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1017
1020
  format: options.format || "cjs",
1018
- 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),
1019
1022
  outdir: userOptions.outputPath || _chunkJTAXCQX6js.joinPaths.call(void 0, "dist", projectRoot),
1020
1023
  distDir: userOptions.distDir || "dist",
1021
1024
  plugins: [],
@@ -1025,12 +1028,11 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1025
1028
  projectGraph,
1026
1029
  sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "src"),
1027
1030
  minify: userOptions.minify || !userOptions.debug,
1028
- verbose: userOptions.verbose || _chunkSPRQWSBEjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1031
+ verbose: userOptions.verbose || _chunkSKMT7WD5js.isVerbose.call(void 0, ) || userOptions.debug === true,
1029
1032
  includeSrc: userOptions.includeSrc === true,
1030
1033
  metafile: userOptions.metafile !== false,
1031
1034
  generatePackageJson: userOptions.generatePackageJson !== false,
1032
1035
  clean: userOptions.clean !== false,
1033
- emitOnAll: userOptions.emitOnAll === true,
1034
1036
  assets: _nullishCoalesce(userOptions.assets, () => ( [])),
1035
1037
  injectShims: userOptions.injectShims !== true,
1036
1038
  bundle: userOptions.bundle !== false,
@@ -1081,8 +1083,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
1081
1083
  }, "resolveOptions");
1082
1084
  async function generatePackageJson(context2) {
1083
1085
  if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1084
- _chunkSPRQWSBEjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1085
- const stopwatch = _chunkSPRQWSBEjs.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");
1086
1088
  const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1087
1089
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1088
1090
  throw new Error("Cannot find package.json configuration");
@@ -1107,7 +1109,7 @@ async function generatePackageJson(context2) {
1107
1109
  if (Array.isArray(context2.options.entryPoints)) {
1108
1110
  entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
1109
1111
  in: entryPoint,
1110
- 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), ""))
1111
1113
  } : entryPoint);
1112
1114
  }
1113
1115
  for (const entryPoint of entryPoints) {
@@ -1155,8 +1157,8 @@ async function generateContext(getOptions) {
1155
1157
  }
1156
1158
  _chunk3GQAWCBQjs.__name.call(void 0, generateContext, "generateContext");
1157
1159
  async function executeEsBuild(context2) {
1158
- _chunkSPRQWSBEjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1159
- const stopwatch = _chunkSPRQWSBEjs.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`);
1160
1162
  if (process.env.STORM_WATCH) {
1161
1163
  const ctx = await esbuild2.context(context2.options);
1162
1164
  watch(ctx, context2.options);
@@ -1178,7 +1180,6 @@ async function executeEsBuild(context2) {
1178
1180
  delete options.clean;
1179
1181
  delete options.debug;
1180
1182
  delete options.generatePackageJson;
1181
- delete options.emitOnAll;
1182
1183
  delete options.distDir;
1183
1184
  delete options.includeSrc;
1184
1185
  delete options.verbose;
@@ -1190,8 +1191,11 @@ async function executeEsBuild(context2) {
1190
1191
  delete options.config;
1191
1192
  delete options.injectShims;
1192
1193
  delete options.external;
1193
- _chunkSPRQWSBEjs.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
1194
- ${_chunkSPRQWSBEjs.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);
1195
1199
  const result = await esbuild2.build(options);
1196
1200
  await esbuild2.stop();
1197
1201
  if (result.metafile) {
@@ -1203,9 +1207,9 @@ ${_chunkSPRQWSBEjs.formatLogMessage.call(void 0, options)}`, context2.options.co
1203
1207
  }
1204
1208
  _chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1205
1209
  async function copyBuildAssets(context2) {
1206
- if (_optionalChain([context2, 'access', _45 => _45.result, 'optionalAccess', _46 => _46.errors, 'access', _47 => _47.length]) === 0) {
1207
- _chunkSPRQWSBEjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1208
- const stopwatch = _chunkSPRQWSBEjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1210
+ if (_optionalChain([context2, 'access', _49 => _49.result, 'optionalAccess', _50 => _50.errors, 'access', _51 => _51.length]) === 0) {
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`);
1209
1213
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
1210
1214
  stopwatch();
1211
1215
  }
@@ -1213,11 +1217,11 @@ async function copyBuildAssets(context2) {
1213
1217
  }
1214
1218
  _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1215
1219
  async function reportResults(context2) {
1216
- if (_optionalChain([context2, 'access', _48 => _48.result, 'optionalAccess', _49 => _49.errors, 'access', _50 => _50.length]) === 0) {
1220
+ if (_optionalChain([context2, 'access', _52 => _52.result, 'optionalAccess', _53 => _53.errors, 'access', _54 => _54.length]) === 0) {
1217
1221
  if (context2.result.warnings.length > 0) {
1218
- _chunkSPRQWSBEjs.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);
1219
1223
  }
1220
- _chunkSPRQWSBEjs.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);
1221
1225
  }
1222
1226
  }
1223
1227
  _chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
@@ -1253,8 +1257,8 @@ async function dependencyCheck(options) {
1253
1257
  _chunk3GQAWCBQjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
1254
1258
  async function cleanOutputPath(context2) {
1255
1259
  if (context2.options.clean !== false && context2.options.outdir) {
1256
- _chunkSPRQWSBEjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1257
- const stopwatch = _chunkSPRQWSBEjs.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`);
1258
1262
  await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
1259
1263
  stopwatch();
1260
1264
  }
@@ -1262,8 +1266,8 @@ async function cleanOutputPath(context2) {
1262
1266
  }
1263
1267
  _chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
1264
1268
  async function build3(options) {
1265
- _chunkSPRQWSBEjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1266
- const stopwatch = _chunkSPRQWSBEjs.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");
1267
1271
  try {
1268
1272
  const opts = Array.isArray(options) ? options : [
1269
1273
  options
@@ -1273,9 +1277,9 @@ async function build3(options) {
1273
1277
  }
1274
1278
  void transduce.async(opts, dependencyCheck);
1275
1279
  await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
1276
- _chunkSPRQWSBEjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1280
+ _chunkSKMT7WD5js.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1277
1281
  } catch (error) {
1278
- _chunkSPRQWSBEjs.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.");
1279
1283
  throw error;
1280
1284
  } finally {
1281
1285
  stopwatch();
@@ -1303,9 +1307,9 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
1303
1307
  return context2.rebuild();
1304
1308
  });
1305
1309
  if (rebuildResult instanceof Error) {
1306
- _chunkSPRQWSBEjs.writeError.call(void 0, rebuildResult.message);
1310
+ _chunkSKMT7WD5js.writeError.call(void 0, rebuildResult.message);
1307
1311
  }
1308
- _chunkSPRQWSBEjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1312
+ _chunkSKMT7WD5js.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1309
1313
  }, 10);
1310
1314
  changeWatcher.on("change", fastRebuild);
1311
1315
  return void 0;
@@ -1313,15 +1317,15 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
1313
1317
 
1314
1318
  // src/executors/esbuild/executor.ts
1315
1319
  async function esbuildExecutorFn(options, context2, config) {
1316
- _chunkSPRQWSBEjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1317
- if (!_optionalChain([context2, 'access', _51 => _51.projectsConfigurations, 'optionalAccess', _52 => _52.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _53 => _53.projectsConfigurations, 'access', _54 => _54.projects, 'access', _55 => _55[context2.projectName], 'optionalAccess', _56 => _56.root])) {
1320
+ _chunkSKMT7WD5js.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
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])) {
1318
1322
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1319
1323
  }
1320
1324
  await build3({
1321
1325
  ...options,
1322
- projectRoot: _optionalChain([context2, 'access', _57 => _57.projectsConfigurations, 'access', _58 => _58.projects, 'optionalAccess', _59 => _59[context2.projectName], 'access', _60 => _60.root]),
1326
+ projectRoot: _optionalChain([context2, 'access', _61 => _61.projectsConfigurations, 'access', _62 => _62.projects, 'optionalAccess', _63 => _63[context2.projectName], 'access', _64 => _64.root]),
1323
1327
  projectName: context2.projectName,
1324
- sourceRoot: _optionalChain([context2, 'access', _61 => _61.projectsConfigurations, 'access', _62 => _62.projects, 'optionalAccess', _63 => _63[context2.projectName], 'optionalAccess', _64 => _64.sourceRoot]),
1328
+ sourceRoot: _optionalChain([context2, 'access', _65 => _65.projectsConfigurations, 'access', _66 => _66.projects, 'optionalAccess', _67 => _67[context2.projectName], 'optionalAccess', _68 => _68.sourceRoot]),
1325
1329
  format: options.format,
1326
1330
  platform: options.format
1327
1331
  });
@@ -1330,7 +1334,7 @@ async function esbuildExecutorFn(options, context2, config) {
1330
1334
  };
1331
1335
  }
1332
1336
  _chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
1333
- var executor_default = _chunkIVNDY2FEjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
1337
+ var executor_default = _chunkP6PFHXHQjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
1334
1338
  skipReadingConfig: false,
1335
1339
  hooks: {
1336
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-5QWEZQFR.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 _chunkSWKSEHJVjs = require('./chunk-SWKSEHJV.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 = _chunkSWKSEHJVjs.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-5QWEZQFR.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-5QWEZQFR.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-AUU7AFJV.mjs";
16
+ } from "./chunk-NODM27UV.mjs";
17
17
  import {
18
18
  findWorkspaceRoot
19
19
  } from "./chunk-FR3YQN55.mjs";
@@ -155,13 +155,13 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projec
155
155
  return ret;
156
156
  }, []);
157
157
  packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
158
- if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name)) {
159
- ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
158
+ if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name) && packageJson.devDependencies?.[localPackage.name] === void 0) {
159
+ ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
160
160
  }
161
161
  return ret;
162
162
  }, packageJson.dependencies ?? {});
163
163
  packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
164
- if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name)) {
164
+ if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name) && packageJson.dependencies?.[localPackage.name] === void 0) {
165
165
  ret[localPackage.name] = localPackage.version || "0.0.1";
166
166
  }
167
167
  return ret;
@@ -273,7 +273,10 @@ var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRo
273
273
  return ret;
274
274
  }, []));
275
275
  } else {
276
- paths.push(entryPoint);
276
+ writeDebug(`Trying to add entry point ${entryPoint}"`, config);
277
+ if (!paths.includes(entryPoint)) {
278
+ paths.push(entryPoint);
279
+ }
277
280
  }
278
281
  return paths;
279
282
  }));
@@ -1016,7 +1019,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1016
1019
  ...userOptions,
1017
1020
  tsconfig: joinPaths(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1018
1021
  format: options.format || "cjs",
1019
- 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),
1020
1023
  outdir: userOptions.outputPath || joinPaths("dist", projectRoot),
1021
1024
  distDir: userOptions.distDir || "dist",
1022
1025
  plugins: [],
@@ -1031,7 +1034,6 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1031
1034
  metafile: userOptions.metafile !== false,
1032
1035
  generatePackageJson: userOptions.generatePackageJson !== false,
1033
1036
  clean: userOptions.clean !== false,
1034
- emitOnAll: userOptions.emitOnAll === true,
1035
1037
  assets: userOptions.assets ?? [],
1036
1038
  injectShims: userOptions.injectShims !== true,
1037
1039
  bundle: userOptions.bundle !== false,
@@ -1108,7 +1110,7 @@ async function generatePackageJson(context2) {
1108
1110
  if (Array.isArray(context2.options.entryPoints)) {
1109
1111
  entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
1110
1112
  in: entryPoint,
1111
- out: entryPoint
1113
+ out: correctPaths(entryPoint.replaceAll(correctPaths(context2.options.config.workspaceRoot), "").replaceAll(correctPaths(context2.options.projectRoot), ""))
1112
1114
  } : entryPoint);
1113
1115
  }
1114
1116
  for (const entryPoint of entryPoints) {
@@ -1179,7 +1181,6 @@ async function executeEsBuild(context2) {
1179
1181
  delete options.clean;
1180
1182
  delete options.debug;
1181
1183
  delete options.generatePackageJson;
1182
- delete options.emitOnAll;
1183
1184
  delete options.distDir;
1184
1185
  delete options.includeSrc;
1185
1186
  delete options.verbose;
@@ -1192,7 +1193,10 @@ async function executeEsBuild(context2) {
1192
1193
  delete options.injectShims;
1193
1194
  delete options.external;
1194
1195
  writeTrace(`Run esbuild (${context2.options.name}) with the following options:
1195
- ${formatLogMessage(options)}`, context2.options.config);
1196
+ ${formatLogMessage({
1197
+ ...options,
1198
+ define: "<Hidden>"
1199
+ })}`, context2.options.config);
1196
1200
  const result = await esbuild2.build(options);
1197
1201
  await esbuild2.stop();
1198
1202
  if (result.metafile) {
@@ -4,7 +4,7 @@
4
4
  var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
5
5
 
6
6
 
7
- var _chunkIVNDY2FEjs = require('./chunk-IVNDY2FE.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 = _chunkIVNDY2FEjs.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 _chunkSWKSEHJVjs = require('./chunk-SWKSEHJV.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 = _chunkSWKSEHJVjs.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 StormConfig } from './types-DdLUCAjP.mjs';
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
@@ -250,7 +250,7 @@ interface UnbuildExecutorSchema {
250
250
  },
251
251
  }
252
252
 
253
- declare function unbuildExecutorFn(options: UnbuildExecutorSchema, context: ExecutorContext, config: StormConfig): Promise<{
253
+ declare function unbuildExecutorFn(options: UnbuildExecutorSchema, context: ExecutorContext, config: StormWorkspaceConfig): Promise<{
254
254
  success: boolean;
255
255
  }>;
256
256
  declare const _default: _nx_devkit.PromiseExecutor<UnbuildExecutorSchema>;
@@ -1,6 +1,6 @@
1
1
  import * as _nx_devkit from '@nx/devkit';
2
2
  import { ExecutorContext } from '@nx/devkit';
3
- import { S as StormConfig } from './types-DdLUCAjP.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
@@ -49,7 +49,7 @@ interface TypiaExecutorSchema {
49
49
  clean?: boolean,
50
50
  }
51
51
 
52
- declare function typiaExecutorFn(options: TypiaExecutorSchema, _: ExecutorContext, config: StormConfig): Promise<{
52
+ declare function typiaExecutorFn(options: TypiaExecutorSchema, _: ExecutorContext, config: StormWorkspaceConfig): Promise<{
53
53
  success: boolean;
54
54
  }>;
55
55
  declare const _default: _nx_devkit.PromiseExecutor<TypiaExecutorSchema>;
@@ -1,6 +1,6 @@
1
1
  import * as _nx_devkit from '@nx/devkit';
2
2
  import { ExecutorContext } from '@nx/devkit';
3
- import { S as StormConfig } from './types-DdLUCAjP.js';
3
+ import { S as StormWorkspaceConfig } from './types-C3URiht7.mjs';
4
4
 
5
5
  // Generated by @storm-software/untyped
6
6
  // Do not edit this file directly
@@ -250,7 +250,7 @@ interface UnbuildExecutorSchema {
250
250
  },
251
251
  }
252
252
 
253
- declare function unbuildExecutorFn(options: UnbuildExecutorSchema, context: ExecutorContext, config: StormConfig): Promise<{
253
+ declare function unbuildExecutorFn(options: UnbuildExecutorSchema, context: ExecutorContext, config: StormWorkspaceConfig): Promise<{
254
254
  success: boolean;
255
255
  }>;
256
256
  declare const _default: _nx_devkit.PromiseExecutor<UnbuildExecutorSchema>;
@@ -1,6 +1,6 @@
1
1
  import * as _nx_devkit from '@nx/devkit';
2
2
  import { ExecutorContext } from '@nx/devkit';
3
- import { S as StormConfig } from './types-DdLUCAjP.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
@@ -138,7 +138,7 @@ interface ESBuildExecutorSchema {
138
138
  env?: Record<string, string>,
139
139
  }
140
140
 
141
- declare function esbuildExecutorFn(options: ESBuildExecutorSchema, context: ExecutorContext, config?: StormConfig): Promise<{
141
+ declare function esbuildExecutorFn(options: ESBuildExecutorSchema, context: ExecutorContext, config?: StormWorkspaceConfig): Promise<{
142
142
  success: boolean;
143
143
  }>;
144
144
  declare const _default: _nx_devkit.PromiseExecutor<ESBuildExecutorSchema>;