@storm-software/cloudflare-tools 0.53.0 → 0.53.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-ISVNV2UX.mjs → chunk-3D3WO4IH.mjs} +15 -8
  4. package/dist/{chunk-TOEMUWVP.mjs → chunk-6H63LE3D.mjs} +1 -1
  5. package/dist/{chunk-42I5F5WI.mjs → chunk-BGWUN6JU.mjs} +3 -3
  6. package/dist/{chunk-TYN4EHRJ.js → chunk-CCD6A6BN.js} +1 -1
  7. package/dist/{chunk-76BYR6TF.js → chunk-FBY3RXBP.js} +12 -12
  8. package/dist/{chunk-YG677AGI.js → chunk-GY2PQXHH.js} +217 -222
  9. package/dist/{chunk-AZ4TIZKT.js → chunk-H63GI4CR.js} +3 -3
  10. package/dist/{chunk-IU4KGUV4.mjs → chunk-KVL4WOIH.mjs} +1 -1
  11. package/dist/{chunk-M5TEDDIW.mjs → chunk-L6Z7B2FZ.mjs} +1 -1
  12. package/dist/{chunk-7PSAJH4G.mjs → chunk-O4TNQIAD.mjs} +3 -3
  13. package/dist/{chunk-AYOTXPQJ.mjs → chunk-RA7URPJI.mjs} +20 -25
  14. package/dist/{chunk-OQPC7VB6.js → chunk-THKJZT32.js} +41 -41
  15. package/dist/{chunk-YVLGBYMR.js → chunk-U6QKP7CG.js} +16 -16
  16. package/dist/{chunk-343PZDII.js → chunk-W6YNIJQD.js} +15 -8
  17. package/dist/executors.js +5 -5
  18. package/dist/executors.mjs +5 -5
  19. package/dist/generators.js +5 -5
  20. package/dist/generators.mjs +4 -4
  21. package/dist/index.js +8 -8
  22. package/dist/index.mjs +7 -7
  23. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  24. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  25. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  26. package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
  27. package/dist/src/executors/serve/executor.js +4 -4
  28. package/dist/src/executors/serve/executor.mjs +3 -3
  29. package/dist/src/generators/init/generator.js +2 -2
  30. package/dist/src/generators/init/generator.mjs +1 -1
  31. package/dist/src/generators/worker/generator.js +5 -5
  32. package/dist/src/generators/worker/generator.mjs +4 -4
  33. package/dist/src/utils/index.js +3 -3
  34. package/dist/src/utils/index.mjs +2 -2
  35. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  36. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  37. package/package.json +1 -1
@@ -4,7 +4,7 @@
4
4
  var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
5
5
 
6
6
 
7
- var _chunkOQPC7VB6js = require('./chunk-OQPC7VB6.js');
7
+ var _chunkTHKJZT32js = require('./chunk-THKJZT32.js');
8
8
 
9
9
 
10
10
 
@@ -20,7 +20,7 @@ var _chunkOQPC7VB6js = require('./chunk-OQPC7VB6.js');
20
20
 
21
21
 
22
22
 
23
- var _chunk343PZDIIjs = require('./chunk-343PZDII.js');
23
+ var _chunkW6YNIJQDjs = require('./chunk-W6YNIJQD.js');
24
24
 
25
25
 
26
26
 
@@ -53,7 +53,7 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void
53
53
  }
54
54
  }
55
55
  if (result.includes("{workspaceRoot}")) {
56
- result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _optionalChain([tokenizerOptions, 'access', _4 => _4.config, 'optionalAccess', _5 => _5.workspaceRoot]))), () => ( _chunk343PZDIIjs.findWorkspaceRoot.call(void 0, ))));
56
+ result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _optionalChain([tokenizerOptions, 'access', _4 => _4.config, 'optionalAccess', _5 => _5.workspaceRoot]))), () => ( _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, ))));
57
57
  }
58
58
  return result;
59
59
  }, "applyWorkspaceBaseTokens");
@@ -139,42 +139,42 @@ var applyWorkspaceExecutorTokens = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(
139
139
  result = result.replaceAll("{sourceRoot}", sourceRoot);
140
140
  }
141
141
  if (result.includes("{workspaceRoot}")) {
142
- result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunk343PZDIIjs.findWorkspaceRoot.call(void 0, ))));
142
+ result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, ))));
143
143
  }
144
144
  return result;
145
145
  }, "applyWorkspaceExecutorTokens");
146
146
 
147
147
  // ../workspace-tools/src/base/base-executor.ts
148
148
  var withRunExecutor = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context2) => {
149
- const stopwatch = _chunk343PZDIIjs.getStopwatch.call(void 0, name);
149
+ const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, name);
150
150
  let options = _options;
151
151
  let config = {};
152
152
  try {
153
- _chunk343PZDIIjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor...
153
+ _chunkW6YNIJQDjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor...
154
154
  `, config);
155
155
  if (!_optionalChain([context2, 'access', _7 => _7.projectsConfigurations, 'optionalAccess', _8 => _8.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
156
156
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
157
157
  }
158
- const workspaceRoot3 = _chunk343PZDIIjs.findWorkspaceRoot.call(void 0, );
158
+ const workspaceRoot3 = _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, );
159
159
  const projectRoot = _nullishCoalesce(_optionalChain([context2, 'access', _9 => _9.projectsConfigurations, 'access', _10 => _10.projects, 'access', _11 => _11[context2.projectName], 'optionalAccess', _12 => _12.root]), () => ( workspaceRoot3));
160
160
  const sourceRoot = _nullishCoalesce(_optionalChain([context2, 'access', _13 => _13.projectsConfigurations, 'access', _14 => _14.projects, 'access', _15 => _15[context2.projectName], 'optionalAccess', _16 => _16.sourceRoot]), () => ( workspaceRoot3));
161
161
  const projectName = _nullishCoalesce(_optionalChain([context2, 'access', _17 => _17.projectsConfigurations, 'access', _18 => _18.projects, 'access', _19 => _19[context2.projectName], 'optionalAccess', _20 => _20.name]), () => ( context2.projectName));
162
162
  config.workspaceRoot = workspaceRoot3;
163
163
  if (!executorOptions.skipReadingConfig) {
164
- _chunk343PZDIIjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
164
+ _chunkW6YNIJQDjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
165
165
  - workspaceRoot: ${workspaceRoot3}
166
166
  - projectRoot: ${projectRoot}
167
167
  - sourceRoot: ${sourceRoot}
168
168
  - projectName: ${projectName}
169
169
  `, config);
170
- config = await _chunkOQPC7VB6js.loadStormConfig.call(void 0, workspaceRoot3);
170
+ config = await _chunkTHKJZT32js.loadStormConfig.call(void 0, workspaceRoot3);
171
171
  }
172
172
  if (_optionalChain([executorOptions, 'optionalAccess', _21 => _21.hooks, 'optionalAccess', _22 => _22.applyDefaultOptions])) {
173
- _chunk343PZDIIjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
173
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
174
174
  options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
175
- _chunk343PZDIIjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
175
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
176
176
  }
177
- _chunk343PZDIIjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
177
+ _chunkW6YNIJQDjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
178
178
  ${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`).join("\n")}`, config);
179
179
  const tokenized = await applyWorkspaceTokens(options, {
180
180
  config,
@@ -186,9 +186,9 @@ ${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<f
186
186
  ...executorOptions
187
187
  }, applyWorkspaceExecutorTokens);
188
188
  if (_optionalChain([executorOptions, 'optionalAccess', _23 => _23.hooks, 'optionalAccess', _24 => _24.preProcess])) {
189
- _chunk343PZDIIjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
189
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
190
190
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
191
- _chunk343PZDIIjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
191
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
192
192
  }
193
193
  const ret = executorFn(tokenized, context2, config);
194
194
  if (_isFunction(_optionalChain([ret, 'optionalAccess', _25 => _25.next]))) {
@@ -198,26 +198,26 @@ ${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<f
198
198
  }
199
199
  const result = await Promise.resolve(ret);
200
200
  if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _26 => _26.error, 'optionalAccess', _27 => _27.message]) && typeof _optionalChain([result, 'optionalAccess', _28 => _28.error, 'optionalAccess', _29 => _29.message]) === "string" && _optionalChain([result, 'optionalAccess', _30 => _30.error, 'optionalAccess', _31 => _31.name]) && typeof _optionalChain([result, 'optionalAccess', _32 => _32.error, 'optionalAccess', _33 => _33.name]) === "string")) {
201
- _chunk343PZDIIjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
202
- ${_chunk343PZDIIjs.formatLogMessage.call(void 0, result)}`, config);
201
+ _chunkW6YNIJQDjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
202
+ ${_chunkW6YNIJQDjs.formatLogMessage.call(void 0, result)}`, config);
203
203
  console.error(result);
204
204
  throw new Error(`The ${name} executor failed to run`, {
205
205
  cause: _optionalChain([result, 'optionalAccess', _34 => _34.error])
206
206
  });
207
207
  }
208
208
  if (_optionalChain([executorOptions, 'optionalAccess', _35 => _35.hooks, 'optionalAccess', _36 => _36.postProcess])) {
209
- _chunk343PZDIIjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
209
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
210
210
  await Promise.resolve(executorOptions.hooks.postProcess(config));
211
- _chunk343PZDIIjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
211
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
212
212
  }
213
- _chunk343PZDIIjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
213
+ _chunkW6YNIJQDjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
214
214
  `, config);
215
215
  return {
216
216
  success: true
217
217
  };
218
218
  } catch (error) {
219
- _chunk343PZDIIjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
220
- _chunk343PZDIIjs.writeError.call(void 0, `An exception was thrown in the executor's process
219
+ _chunkW6YNIJQDjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
220
+ _chunkW6YNIJQDjs.writeError.call(void 0, `An exception was thrown in the executor's process
221
221
  - Details: ${error.message}
222
222
  - Stacktrace: ${error.stack}`, config);
223
223
  return {
@@ -502,10 +502,10 @@ var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(
502
502
  var readNxConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (workspaceRoot3) => {
503
503
  let rootDir = workspaceRoot3;
504
504
  if (!rootDir) {
505
- const config = await _chunkOQPC7VB6js.loadStormConfig.call(void 0, );
505
+ const config = await _chunkTHKJZT32js.loadStormConfig.call(void 0, );
506
506
  rootDir = config.workspaceRoot;
507
507
  }
508
- const nxJsonPath = _chunk343PZDIIjs.joinPaths.call(void 0, rootDir, "nx.json");
508
+ const nxJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, rootDir, "nx.json");
509
509
  if (!_fs.existsSync.call(void 0, nxJsonPath)) {
510
510
  throw new Error("Cannot find project.json configuration");
511
511
  }
@@ -516,27 +516,23 @@ var readNxConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (w
516
516
  // ../build-tools/src/utilities/copy-assets.ts
517
517
  var copyAssets = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
518
518
  const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
519
- if (!_optionalChain([pendingAssets, 'optionalAccess', _43 => _43.some, 'call', _44 => _44((asset) => _optionalChain([asset, 'optionalAccess', _45 => _45.glob]) === "*.md")])) {
520
- pendingAssets.push({
521
- input: projectRoot,
522
- glob: "*.md",
523
- output: "/"
524
- });
525
- }
519
+ pendingAssets.push({
520
+ input: projectRoot,
521
+ glob: "*.md",
522
+ output: "."
523
+ });
524
+ pendingAssets.push({
525
+ input: config.workspaceRoot,
526
+ glob: "LICENSE",
527
+ output: "."
528
+ });
526
529
  if (generatePackageJson3 === false) {
527
530
  pendingAssets.push({
528
- input: sourceRoot,
531
+ input: projectRoot,
529
532
  glob: "package.json",
530
533
  output: "."
531
534
  });
532
535
  }
533
- if (!_optionalChain([pendingAssets, 'optionalAccess', _46 => _46.some, 'call', _47 => _47((asset) => _optionalChain([asset, 'optionalAccess', _48 => _48.glob]) === "LICENSE")])) {
534
- pendingAssets.push({
535
- input: "",
536
- glob: "LICENSE",
537
- output: "."
538
- });
539
- }
540
536
  if (includeSrc === true) {
541
537
  pendingAssets.push({
542
538
  input: sourceRoot,
@@ -547,12 +543,12 @@ var copyAssets = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (con
547
543
  const nxJson = readNxConfig(config.workspaceRoot);
548
544
  const projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
549
545
  const projectsConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
550
- if (!_optionalChain([projectsConfigurations, 'optionalAccess', _49 => _49.projects, 'optionalAccess', _50 => _50[projectName]])) {
546
+ if (!_optionalChain([projectsConfigurations, 'optionalAccess', _43 => _43.projects, 'optionalAccess', _44 => _44[projectName]])) {
551
547
  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.");
552
548
  }
553
- const buildTarget = _optionalChain([projectsConfigurations, 'access', _51 => _51.projects, 'access', _52 => _52[projectName], 'access', _53 => _53.targets, 'optionalAccess', _54 => _54.build]);
549
+ const buildTarget = _optionalChain([projectsConfigurations, 'access', _45 => _45.projects, 'access', _46 => _46[projectName], 'access', _47 => _47.targets, 'optionalAccess', _48 => _48.build]);
554
550
  if (!buildTarget) {
555
- throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunk343PZDIIjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
551
+ throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkW6YNIJQDjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
556
552
  }
557
553
  const result = await _js.copyAssets.call(void 0, {
558
554
  assets,
@@ -567,18 +563,18 @@ var copyAssets = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (con
567
563
  projectsConfigurations,
568
564
  nxJsonConfiguration: nxJson,
569
565
  cwd: config.workspaceRoot,
570
- isVerbose: _chunk343PZDIIjs.isVerbose.call(void 0, config.logLevel)
566
+ isVerbose: _chunkW6YNIJQDjs.isVerbose.call(void 0, config.logLevel)
571
567
  });
572
568
  if (!result.success) {
573
569
  throw new Error("The Build process failed trying to copy assets");
574
570
  }
575
571
  if (includeSrc === true) {
576
- _chunk343PZDIIjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunk343PZDIIjs.joinPaths.call(void 0, outputPath, "src")}`, config);
572
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkW6YNIJQDjs.joinPaths.call(void 0, outputPath, "src")}`, config);
577
573
  const files = await _glob.glob.call(void 0, [
578
- _chunk343PZDIIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
579
- _chunk343PZDIIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
580
- _chunk343PZDIIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
581
- _chunk343PZDIIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
574
+ _chunkW6YNIJQDjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
575
+ _chunkW6YNIJQDjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
576
+ _chunkW6YNIJQDjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
577
+ _chunkW6YNIJQDjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
582
578
  ]);
583
579
  await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
584
580
 
@@ -600,7 +596,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
600
596
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
601
597
  const projectNode = project.node;
602
598
  if (projectNode.data.root) {
603
- const projectPackageJsonPath = _chunk343PZDIIjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
599
+ const projectPackageJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
604
600
  if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
605
601
  const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
606
602
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
@@ -611,7 +607,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
611
607
  }
612
608
  }
613
609
  if (localPackages.length > 0) {
614
- _chunk343PZDIIjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
610
+ _chunkW6YNIJQDjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
615
611
  packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
616
612
  if (!ret[localPackage.name]) {
617
613
  ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
@@ -633,13 +629,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
633
629
  return ret;
634
630
  }, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
635
631
  } else {
636
- _chunk343PZDIIjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
632
+ _chunkW6YNIJQDjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
637
633
  }
638
634
  return packageJson;
639
635
  }, "addPackageDependencies");
640
636
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
641
- const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunk343PZDIIjs.findWorkspaceRoot.call(void 0, );
642
- const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunk343PZDIIjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
637
+ const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, );
638
+ const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkW6YNIJQDjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
643
639
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
644
640
  packageJson.type ??= "module";
645
641
  packageJson.sideEffects ??= false;
@@ -648,7 +644,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call
648
644
  if (distSrc.startsWith("/")) {
649
645
  distSrc = distSrc.substring(1);
650
646
  }
651
- packageJson.source ??= `${_chunk343PZDIIjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
647
+ packageJson.source ??= `${_chunkW6YNIJQDjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
652
648
  }
653
649
  packageJson.files ??= [
654
650
  "dist/**/*"
@@ -679,7 +675,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call
679
675
  ];
680
676
  }
681
677
  packageJson.repository ??= workspacePackageJson.repository;
682
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunk343PZDIIjs.joinPaths.call(void 0, "packages", projectName);
678
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkW6YNIJQDjs.joinPaths.call(void 0, "packages", projectName);
683
679
  return packageJson;
684
680
  }, "addWorkspacePackageJsonFields");
685
681
  var addPackageJsonExport = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (file, type = "module", sourceRoot) => {
@@ -706,7 +702,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0,
706
702
  // ../build-tools/src/utilities/get-entry-points.ts
707
703
 
708
704
  var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
709
- const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunk343PZDIIjs.findWorkspaceRoot.call(void 0, );
705
+ const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, );
710
706
  const entryPoints = [];
711
707
  if (entry) {
712
708
  if (Array.isArray(entry)) {
@@ -718,7 +714,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
718
714
  }
719
715
  }
720
716
  if (emitOnAll) {
721
- entryPoints.push(_chunk343PZDIIjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
717
+ entryPoints.push(_chunkW6YNIJQDjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
722
718
  }
723
719
  const results = [];
724
720
  for (const entryPoint in entryPoints) {
@@ -727,9 +723,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
727
723
  withFileTypes: true
728
724
  });
729
725
  results.push(...files.reduce((ret, filePath) => {
730
- const result = _chunk343PZDIIjs.correctPaths.call(void 0, _chunk343PZDIIjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunk343PZDIIjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunk343PZDIIjs.correctPaths.call(void 0, projectRoot), ""));
726
+ const result = _chunkW6YNIJQDjs.correctPaths.call(void 0, _chunkW6YNIJQDjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkW6YNIJQDjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkW6YNIJQDjs.correctPaths.call(void 0, projectRoot), ""));
731
727
  if (result) {
732
- _chunk343PZDIIjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunk343PZDIIjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
728
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkW6YNIJQDjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
733
729
  if (!results.includes(result)) {
734
730
  results.push(result);
735
731
  }
@@ -857,15 +853,15 @@ var RendererEngine = class {
857
853
  if (!relativePath.startsWith("\\\\?\\")) {
858
854
  relativePath = relativePath.replace(/\\/g, "/");
859
855
  }
860
- const meta = _optionalChain([metafile, 'optionalAccess', _55 => _55.outputs, 'access', _56 => _56[relativePath]]);
856
+ const meta = _optionalChain([metafile, 'optionalAccess', _49 => _49.outputs, 'access', _50 => _50[relativePath]]);
861
857
  return {
862
858
  type: "chunk",
863
859
  path: file.path,
864
860
  code: file.text,
865
- map: _optionalChain([outputFiles, 'access', _57 => _57.find, 'call', _58 => _58((f) => f.path === `${file.path}.map`), 'optionalAccess', _59 => _59.text]),
866
- entryPoint: _optionalChain([meta, 'optionalAccess', _60 => _60.entryPoint]),
867
- exports: _optionalChain([meta, 'optionalAccess', _61 => _61.exports]),
868
- imports: _optionalChain([meta, 'optionalAccess', _62 => _62.imports])
861
+ map: _optionalChain([outputFiles, 'access', _51 => _51.find, 'call', _52 => _52((f) => f.path === `${file.path}.map`), 'optionalAccess', _53 => _53.text]),
862
+ entryPoint: _optionalChain([meta, 'optionalAccess', _54 => _54.entryPoint]),
863
+ exports: _optionalChain([meta, 'optionalAccess', _55 => _55.exports]),
864
+ imports: _optionalChain([meta, 'optionalAccess', _56 => _56.imports])
869
865
  };
870
866
  } else {
871
867
  return {
@@ -935,8 +931,8 @@ var RendererEngine = class {
935
931
  // ../esbuild/src/clean.ts
936
932
 
937
933
  async function clean(name = "ESBuild", directory, config) {
938
- _chunk343PZDIIjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
939
- const stopwatch = _chunk343PZDIIjs.getStopwatch.call(void 0, `${name} output clean`);
934
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
935
+ const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, `${name} output clean`);
940
936
  await _node.hfs.deleteAll(directory);
941
937
  stopwatch();
942
938
  }
@@ -948,7 +944,7 @@ var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void
948
944
  name: "storm:esm-split-code-to-cjs",
949
945
  setup(build5) {
950
946
  build5.onEnd(async (result) => {
951
- const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _63 => _63.metafile, 'optionalAccess', _64 => _64.outputs]), () => ( {})));
947
+ const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _57 => _57.metafile, 'optionalAccess', _58 => _58.outputs]), () => ( {})));
952
948
  const jsFiles = outFiles.filter((f) => f.endsWith("js"));
953
949
  await esbuild.build({
954
950
  outdir: resolvedOptions.outdir,
@@ -1057,7 +1053,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (option
1057
1053
  setup(build5) {
1058
1054
  build5.onEnd((result) => {
1059
1055
  if (result.errors.length > 0 && process.env.WATCH !== "true") {
1060
- _chunk343PZDIIjs.writeError.call(void 0, `The following errors occurred during the build:
1056
+ _chunkW6YNIJQDjs.writeError.call(void 0, `The following errors occurred during the build:
1061
1057
  ${result.errors.map((error) => error.text).join("\n")}
1062
1058
 
1063
1059
  `, resolvedOptions.config);
@@ -1070,7 +1066,7 @@ ${result.errors.map((error) => error.text).join("\n")}
1070
1066
  // ../esbuild/src/plugins/resolve-paths.ts
1071
1067
 
1072
1068
  function resolvePathsConfig(options, cwd) {
1073
- if (_optionalChain([options, 'optionalAccess', _65 => _65.compilerOptions, 'optionalAccess', _66 => _66.paths])) {
1069
+ if (_optionalChain([options, 'optionalAccess', _59 => _59.compilerOptions, 'optionalAccess', _60 => _60.paths])) {
1074
1070
  const paths = Object.entries(options.compilerOptions.paths);
1075
1071
  const resolvedPaths = paths.map(([key, paths2]) => {
1076
1072
  return [
@@ -1092,13 +1088,13 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
1092
1088
  var resolvePathsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, resolvedOptions) => ({
1093
1089
  name: "storm:resolve-paths",
1094
1090
  setup(build5) {
1095
- const parentTsConfig = build5.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0, _chunk343PZDIIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build5.initialOptions.tsconfig)) : _chunkJ5SB6L2Ljs.__require.call(void 0, _chunk343PZDIIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
1091
+ const parentTsConfig = build5.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkW6YNIJQDjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build5.initialOptions.tsconfig)) : _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkW6YNIJQDjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
1096
1092
  const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
1097
1093
  const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
1098
1094
  build5.onResolve({
1099
1095
  filter: packagesRegex
1100
1096
  }, (args) => {
1101
- if (_optionalChain([build5, 'access', _67 => _67.initialOptions, 'access', _68 => _68.external, 'optionalAccess', _69 => _69.includes, 'call', _70 => _70(args.path)])) {
1097
+ if (_optionalChain([build5, 'access', _61 => _61.initialOptions, 'access', _62 => _62.external, 'optionalAccess', _63 => _63.includes, 'call', _64 => _64(args.path)])) {
1102
1098
  return {
1103
1099
  path: args.path,
1104
1100
  external: true
@@ -1115,7 +1111,7 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (o
1115
1111
 
1116
1112
  var _apiextractor = require('@microsoft/api-extractor');
1117
1113
  function bundleTypeDefinitions(filename, outfile, externals, options) {
1118
- const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0, _chunk343PZDIIjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
1114
+ const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
1119
1115
  const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
1120
1116
  p,
1121
1117
  getTypeDependencyPackageName(p)
@@ -1151,13 +1147,13 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
1151
1147
  },
1152
1148
  dtsRollup: {
1153
1149
  enabled: true,
1154
- untrimmedFilePath: _chunk343PZDIIjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
1150
+ untrimmedFilePath: _chunkW6YNIJQDjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
1155
1151
  },
1156
1152
  tsdocMetadata: {
1157
1153
  enabled: false
1158
1154
  }
1159
1155
  },
1160
- packageJsonFullPath: _chunk343PZDIIjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
1156
+ packageJsonFullPath: _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
1161
1157
  configObjectFullPath: void 0
1162
1158
  });
1163
1159
  const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
@@ -1165,7 +1161,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
1165
1161
  localBuild: true
1166
1162
  });
1167
1163
  if (extractorResult.succeeded === false) {
1168
- _chunk343PZDIIjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
1164
+ _chunkW6YNIJQDjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
1169
1165
  throw new Error("API Extractor completed with errors");
1170
1166
  }
1171
1167
  }
@@ -1184,12 +1180,12 @@ var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, r
1184
1180
  const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
1185
1181
  const typeOutDir = resolvedOptions.outdir;
1186
1182
  const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
1187
- const bundlePath = _chunk343PZDIIjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
1183
+ const bundlePath = _chunkW6YNIJQDjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
1188
1184
  let dtsPath;
1189
- if (await _node.hfs.isFile(_chunk343PZDIIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1190
- dtsPath = _chunk343PZDIIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
1191
- } else if (await _node.hfs.isFile(_chunk343PZDIIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1192
- dtsPath = _chunk343PZDIIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
1185
+ if (await _node.hfs.isFile(_chunkW6YNIJQDjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1186
+ dtsPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
1187
+ } else if (await _node.hfs.isFile(_chunkW6YNIJQDjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1188
+ dtsPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
1193
1189
  }
1194
1190
  const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
1195
1191
  if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
@@ -1206,7 +1202,7 @@ var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, r
1206
1202
  function getTypeDependencyPackageName(npmPackage) {
1207
1203
  if (npmPackage.startsWith("@")) {
1208
1204
  const [scope, name] = npmPackage.split("/");
1209
- return `@types/${_optionalChain([scope, 'optionalAccess', _71 => _71.slice, 'call', _72 => _72(1)])}__${name}`;
1205
+ return `@types/${_optionalChain([scope, 'optionalAccess', _65 => _65.slice, 'call', _66 => _66(1)])}__${name}`;
1210
1206
  }
1211
1207
  return `@types/${npmPackage}`;
1212
1208
  }
@@ -1344,8 +1340,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (bund
1344
1340
  const filteredMissingDeps = missingDependencies.filter((dep) => {
1345
1341
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
1346
1342
  });
1347
- _chunk343PZDIIjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1348
- _chunk343PZDIIjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1343
+ _chunkW6YNIJQDjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1344
+ _chunkW6YNIJQDjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1349
1345
  if (filteredMissingDeps.length > 0) {
1350
1346
  throw new Error(`Missing dependencies detected - please install them:
1351
1347
  ${JSON.stringify(filteredMissingDeps)}
@@ -1413,7 +1409,7 @@ function pipeSync(fn, ...fns) {
1413
1409
  return (...args) => {
1414
1410
  let result = fn(...args);
1415
1411
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1416
- result = _optionalChain([fns, 'access', _73 => _73[i], 'optionalCall', _74 => _74(result)]);
1412
+ result = _optionalChain([fns, 'access', _67 => _67[i], 'optionalCall', _68 => _68(result)]);
1417
1413
  }
1418
1414
  return result;
1419
1415
  };
@@ -1423,7 +1419,7 @@ function pipeAsync(fn, ...fns) {
1423
1419
  return async (...args) => {
1424
1420
  let result = await fn(...args);
1425
1421
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1426
- result = await _optionalChain([fns, 'access', _75 => _75[i], 'optionalCall', _76 => _76(result)]);
1422
+ result = await _optionalChain([fns, 'access', _69 => _69[i], 'optionalCall', _70 => _70(result)]);
1427
1423
  }
1428
1424
  return result;
1429
1425
  };
@@ -1439,26 +1435,26 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1439
1435
  if (!workspaceRoot3) {
1440
1436
  throw new Error("Cannot find Nx workspace root");
1441
1437
  }
1442
- const config = await _chunkOQPC7VB6js.loadStormConfig.call(void 0, workspaceRoot3.dir);
1443
- _chunk343PZDIIjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1444
- const stopwatch = _chunk343PZDIIjs.getStopwatch.call(void 0, "Build options resolution");
1438
+ const config = await _chunkTHKJZT32js.loadStormConfig.call(void 0, workspaceRoot3.dir);
1439
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1440
+ const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, "Build options resolution");
1445
1441
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
1446
1442
  exitOnError: true
1447
1443
  });
1448
- const projectJsonPath = _chunk343PZDIIjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1444
+ const projectJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1449
1445
  if (!await _node.hfs.isFile(projectJsonPath)) {
1450
1446
  throw new Error("Cannot find project.json configuration");
1451
1447
  }
1452
1448
  const projectJson = await _node.hfs.json(projectJsonPath);
1453
1449
  const projectName = projectJson.name;
1454
1450
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1455
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _77 => _77.projects, 'optionalAccess', _78 => _78[projectName]])) {
1451
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _71 => _71.projects, 'optionalAccess', _72 => _72[projectName]])) {
1456
1452
  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.");
1457
1453
  }
1458
1454
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
1459
1455
  options.name ??= `${projectName}-${options.format}`;
1460
1456
  options.target ??= DEFAULT_TARGET;
1461
- const packageJsonPath = _chunk343PZDIIjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1457
+ const packageJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1462
1458
  if (!await _node.hfs.isFile(packageJsonPath)) {
1463
1459
  throw new Error("Cannot find package.json configuration");
1464
1460
  }
@@ -1482,20 +1478,20 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1482
1478
  ".node"
1483
1479
  ],
1484
1480
  ...userOptions,
1485
- tsconfig: _chunk343PZDIIjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1481
+ tsconfig: _chunkW6YNIJQDjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1486
1482
  format: options.format || "cjs",
1487
1483
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
1488
1484
  "./src/index.ts"
1489
1485
  ], userOptions.emitOnAll),
1490
- outdir: userOptions.outputPath || _chunk343PZDIIjs.joinPaths.call(void 0, "dist", projectRoot),
1486
+ outdir: userOptions.outputPath || _chunkW6YNIJQDjs.joinPaths.call(void 0, "dist", projectRoot),
1491
1487
  plugins: [],
1492
1488
  name: userOptions.name || projectName,
1493
1489
  projectConfigurations,
1494
1490
  projectName,
1495
1491
  projectGraph,
1496
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunk343PZDIIjs.joinPaths.call(void 0, projectRoot, "src"),
1492
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkW6YNIJQDjs.joinPaths.call(void 0, projectRoot, "src"),
1497
1493
  minify: userOptions.minify || !userOptions.debug,
1498
- verbose: userOptions.verbose || _chunk343PZDIIjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1494
+ verbose: userOptions.verbose || _chunkW6YNIJQDjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1499
1495
  includeSrc: userOptions.includeSrc === true,
1500
1496
  metafile: userOptions.metafile !== false,
1501
1497
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -1531,8 +1527,8 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1531
1527
  }, {})
1532
1528
  },
1533
1529
  inject: [
1534
- options.format === "cjs" && options.injectShims ? _chunk343PZDIIjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
1535
- options.format === "esm" && options.injectShims && options.platform === "node" ? _chunk343PZDIIjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
1530
+ options.format === "cjs" && options.injectShims ? _chunkW6YNIJQDjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
1531
+ options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkW6YNIJQDjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
1536
1532
  ..._nullishCoalesce(options.inject, () => ( []))
1537
1533
  ].filter(Boolean)
1538
1534
  };
@@ -1541,14 +1537,14 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1541
1537
  return result;
1542
1538
  }, "resolveOptions");
1543
1539
  async function generatePackageJson(context2) {
1544
- if (context2.options.generatePackageJson !== false && await _node.hfs.isFile(_chunk343PZDIIjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1545
- _chunk343PZDIIjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1546
- const stopwatch = _chunk343PZDIIjs.getStopwatch.call(void 0, "Write package.json file");
1547
- const packageJsonPath = _chunk343PZDIIjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1540
+ if (context2.options.generatePackageJson !== false && await _node.hfs.isFile(_chunkW6YNIJQDjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1541
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1542
+ const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, "Write package.json file");
1543
+ const packageJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1548
1544
  if (!await _node.hfs.isFile(packageJsonPath)) {
1549
1545
  throw new Error("Cannot find package.json configuration");
1550
1546
  }
1551
- let packageJson = await _node.hfs.json(_chunk343PZDIIjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"));
1547
+ let packageJson = await _node.hfs.json(_chunkW6YNIJQDjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"));
1552
1548
  if (!packageJson) {
1553
1549
  throw new Error("Cannot find package.json configuration file");
1554
1550
  }
@@ -1586,7 +1582,7 @@ async function generatePackageJson(context2) {
1586
1582
  }
1587
1583
  return ret;
1588
1584
  }, packageJson.exports);
1589
- await _devkit.writeJsonFile.call(void 0, _chunk343PZDIIjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1585
+ await _devkit.writeJsonFile.call(void 0, _chunkW6YNIJQDjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1590
1586
  stopwatch();
1591
1587
  }
1592
1588
  return context2;
@@ -1612,8 +1608,8 @@ async function generateContext(getOptions) {
1612
1608
  }
1613
1609
  _chunkJ5SB6L2Ljs.__name.call(void 0, generateContext, "generateContext");
1614
1610
  async function executeEsBuild(context2) {
1615
- _chunk343PZDIIjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1616
- const stopwatch = _chunk343PZDIIjs.getStopwatch.call(void 0, `${context2.options.name} build`);
1611
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1612
+ const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, `${context2.options.name} build`);
1617
1613
  if (process.env.WATCH === "true") {
1618
1614
  const ctx = await esbuild2.context(context2.options);
1619
1615
  watch(ctx, context2.options);
@@ -1628,9 +1624,9 @@ async function executeEsBuild(context2) {
1628
1624
  }
1629
1625
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1630
1626
  async function copyBuildAssets(context2) {
1631
- if (_optionalChain([context2, 'access', _79 => _79.result, 'optionalAccess', _80 => _80.errors, 'access', _81 => _81.length]) === 0) {
1632
- _chunk343PZDIIjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1633
- const stopwatch = _chunk343PZDIIjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1627
+ if (_optionalChain([context2, 'access', _73 => _73.result, 'optionalAccess', _74 => _74.errors, 'access', _75 => _75.length]) === 0) {
1628
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1629
+ const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1634
1630
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.projectName, context2.options.sourceRoot, true, false);
1635
1631
  stopwatch();
1636
1632
  }
@@ -1638,11 +1634,11 @@ async function copyBuildAssets(context2) {
1638
1634
  }
1639
1635
  _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1640
1636
  async function reportResults(context2) {
1641
- if (_optionalChain([context2, 'access', _82 => _82.result, 'optionalAccess', _83 => _83.errors, 'access', _84 => _84.length]) === 0) {
1637
+ if (_optionalChain([context2, 'access', _76 => _76.result, 'optionalAccess', _77 => _77.errors, 'access', _78 => _78.length]) === 0) {
1642
1638
  if (context2.result.warnings.length > 0) {
1643
- _chunk343PZDIIjs.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);
1639
+ _chunkW6YNIJQDjs.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);
1644
1640
  }
1645
- _chunk343PZDIIjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1641
+ _chunkW6YNIJQDjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1646
1642
  }
1647
1643
  }
1648
1644
  _chunkJ5SB6L2Ljs.__name.call(void 0, reportResults, "reportResults");
@@ -1684,8 +1680,8 @@ async function cleanOutputPath(context2) {
1684
1680
  }
1685
1681
  _chunkJ5SB6L2Ljs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
1686
1682
  async function build3(options) {
1687
- _chunk343PZDIIjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1688
- const stopwatch = _chunk343PZDIIjs.getStopwatch.call(void 0, "ESBuild pipeline");
1683
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1684
+ const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, "ESBuild pipeline");
1689
1685
  try {
1690
1686
  const opts = Array.isArray(options) ? options : [
1691
1687
  options
@@ -1695,9 +1691,9 @@ async function build3(options) {
1695
1691
  }
1696
1692
  void transduce.async(opts, dependencyCheck);
1697
1693
  await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
1698
- _chunk343PZDIIjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1694
+ _chunkW6YNIJQDjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1699
1695
  } catch (error) {
1700
- _chunk343PZDIIjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1696
+ _chunkW6YNIJQDjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1701
1697
  throw error;
1702
1698
  } finally {
1703
1699
  stopwatch();
@@ -1725,9 +1721,9 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1725
1721
  return context2.rebuild();
1726
1722
  });
1727
1723
  if (rebuildResult instanceof Error) {
1728
- _chunk343PZDIIjs.writeError.call(void 0, rebuildResult.message);
1724
+ _chunkW6YNIJQDjs.writeError.call(void 0, rebuildResult.message);
1729
1725
  }
1730
- _chunk343PZDIIjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1726
+ _chunkW6YNIJQDjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1731
1727
  }, 10);
1732
1728
  changeWatcher.on("change", fastRebuild);
1733
1729
  return void 0;
@@ -1735,15 +1731,15 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1735
1731
 
1736
1732
  // ../workspace-tools/src/executors/esbuild/executor.ts
1737
1733
  async function esbuildExecutorFn(options, context2, config) {
1738
- _chunk343PZDIIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1739
- if (!_optionalChain([context2, 'access', _85 => _85.projectsConfigurations, 'optionalAccess', _86 => _86.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _87 => _87.projectsConfigurations, 'access', _88 => _88.projects, 'access', _89 => _89[context2.projectName], 'optionalAccess', _90 => _90.root])) {
1734
+ _chunkW6YNIJQDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1735
+ if (!_optionalChain([context2, 'access', _79 => _79.projectsConfigurations, 'optionalAccess', _80 => _80.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _81 => _81.projectsConfigurations, 'access', _82 => _82.projects, 'access', _83 => _83[context2.projectName], 'optionalAccess', _84 => _84.root])) {
1740
1736
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1741
1737
  }
1742
1738
  await build3({
1743
1739
  ...options,
1744
- projectRoot: _optionalChain([context2, 'access', _91 => _91.projectsConfigurations, 'access', _92 => _92.projects, 'optionalAccess', _93 => _93[context2.projectName], 'access', _94 => _94.root]),
1740
+ projectRoot: _optionalChain([context2, 'access', _85 => _85.projectsConfigurations, 'access', _86 => _86.projects, 'optionalAccess', _87 => _87[context2.projectName], 'access', _88 => _88.root]),
1745
1741
  projectName: context2.projectName,
1746
- sourceRoot: _optionalChain([context2, 'access', _95 => _95.projectsConfigurations, 'access', _96 => _96.projects, 'optionalAccess', _97 => _97[context2.projectName], 'optionalAccess', _98 => _98.sourceRoot]),
1742
+ sourceRoot: _optionalChain([context2, 'access', _89 => _89.projectsConfigurations, 'access', _90 => _90.projects, 'optionalAccess', _91 => _91[context2.projectName], 'optionalAccess', _92 => _92.sourceRoot]),
1747
1743
  format: options.format,
1748
1744
  platform: options.format
1749
1745
  });
@@ -1786,18 +1782,18 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
1786
1782
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
1787
1783
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
1788
1784
  async function sizeLimitExecutorFn(options, context2, config) {
1789
- if (!_optionalChain([context2, 'optionalAccess', _99 => _99.projectName]) || !_optionalChain([context2, 'access', _100 => _100.projectsConfigurations, 'optionalAccess', _101 => _101.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1785
+ if (!_optionalChain([context2, 'optionalAccess', _93 => _93.projectName]) || !_optionalChain([context2, 'access', _94 => _94.projectsConfigurations, 'optionalAccess', _95 => _95.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1790
1786
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
1791
1787
  }
1792
- _chunk343PZDIIjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1788
+ _chunkW6YNIJQDjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1793
1789
  _sizelimit2.default.call(void 0, [
1794
1790
  _file2.default,
1795
1791
  _esbuild3.default,
1796
1792
  _esbuildwhy2.default
1797
1793
  ], {
1798
- checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _102 => _102.projectsConfigurations, 'access', _103 => _103.projects, 'access', _104 => _104[context2.projectName], 'optionalAccess', _105 => _105.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _106 => _106.projectsConfigurations, 'access', _107 => _107.projects, 'access', _108 => _108[context2.projectName], 'optionalAccess', _109 => _109.root]), () => ( "./")), "src")))
1794
+ checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _96 => _96.projectsConfigurations, 'access', _97 => _97.projects, 'access', _98 => _98[context2.projectName], 'optionalAccess', _99 => _99.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _100 => _100.projectsConfigurations, 'access', _101 => _101.projects, 'access', _102 => _102[context2.projectName], 'optionalAccess', _103 => _103.root]), () => ( "./")), "src")))
1799
1795
  }).then((result) => {
1800
- _chunk343PZDIIjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1796
+ _chunkW6YNIJQDjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1801
1797
  });
1802
1798
  return {
1803
1799
  success: true
@@ -1823,8 +1819,8 @@ var _tsdown = require('tsdown');
1823
1819
  // ../tsdown/src/clean.ts
1824
1820
 
1825
1821
  async function clean2(name = "ESBuild", directory, config) {
1826
- _chunk343PZDIIjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
1827
- const stopwatch = _chunk343PZDIIjs.getStopwatch.call(void 0, `${name} output clean`);
1822
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
1823
+ const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, `${name} output clean`);
1828
1824
  await _node.hfs.deleteAll(directory);
1829
1825
  stopwatch();
1830
1826
  }
@@ -1859,26 +1855,26 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1859
1855
  if (!workspaceRoot3) {
1860
1856
  throw new Error("Cannot find Nx workspace root");
1861
1857
  }
1862
- const config = await _chunkOQPC7VB6js.loadStormConfig.call(void 0, workspaceRoot3.dir);
1863
- _chunk343PZDIIjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1864
- const stopwatch = _chunk343PZDIIjs.getStopwatch.call(void 0, "Build options resolution");
1858
+ const config = await _chunkTHKJZT32js.loadStormConfig.call(void 0, workspaceRoot3.dir);
1859
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1860
+ const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, "Build options resolution");
1865
1861
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
1866
1862
  exitOnError: true
1867
1863
  });
1868
- const projectJsonPath = _chunk343PZDIIjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1864
+ const projectJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1869
1865
  if (!await _node.hfs.isFile(projectJsonPath)) {
1870
1866
  throw new Error("Cannot find project.json configuration");
1871
1867
  }
1872
1868
  const projectJson = await _node.hfs.json(projectJsonPath);
1873
1869
  const projectName = projectJson.name;
1874
1870
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1875
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _110 => _110.projects, 'optionalAccess', _111 => _111[projectName]])) {
1871
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _104 => _104.projects, 'optionalAccess', _105 => _105[projectName]])) {
1876
1872
  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.");
1877
1873
  }
1878
1874
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS2);
1879
1875
  options.name ??= `${projectName}-${options.format}`;
1880
1876
  options.target ??= DEFAULT_TARGET;
1881
- const packageJsonPath = _chunk343PZDIIjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1877
+ const packageJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1882
1878
  if (!await _node.hfs.isFile(packageJsonPath)) {
1883
1879
  throw new Error("Cannot find package.json configuration");
1884
1880
  }
@@ -1887,20 +1883,20 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1887
1883
  ...options,
1888
1884
  config,
1889
1885
  ...userOptions,
1890
- tsconfig: _chunk343PZDIIjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1886
+ tsconfig: _chunkW6YNIJQDjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1891
1887
  format: options.format || "cjs",
1892
1888
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
1893
1889
  "./src/index.ts"
1894
1890
  ], userOptions.emitOnAll),
1895
- outdir: userOptions.outputPath || _chunk343PZDIIjs.joinPaths.call(void 0, "dist", projectRoot),
1891
+ outdir: userOptions.outputPath || _chunkW6YNIJQDjs.joinPaths.call(void 0, "dist", projectRoot),
1896
1892
  plugins: [],
1897
1893
  name: userOptions.name || projectName,
1898
1894
  projectConfigurations,
1899
1895
  projectName,
1900
1896
  projectGraph,
1901
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunk343PZDIIjs.joinPaths.call(void 0, projectRoot, "src"),
1897
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkW6YNIJQDjs.joinPaths.call(void 0, projectRoot, "src"),
1902
1898
  minify: userOptions.minify || !userOptions.debug,
1903
- verbose: userOptions.verbose || _chunk343PZDIIjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1899
+ verbose: userOptions.verbose || _chunkW6YNIJQDjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1904
1900
  includeSrc: userOptions.includeSrc === true,
1905
1901
  metafile: userOptions.metafile !== false,
1906
1902
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -1934,14 +1930,14 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1934
1930
  return result;
1935
1931
  }, "resolveOptions");
1936
1932
  async function generatePackageJson2(options) {
1937
- if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunk343PZDIIjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1938
- _chunk343PZDIIjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1939
- const stopwatch = _chunk343PZDIIjs.getStopwatch.call(void 0, "Write package.json file");
1940
- const packageJsonPath = _chunk343PZDIIjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1933
+ if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1934
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1935
+ const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, "Write package.json file");
1936
+ const packageJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1941
1937
  if (!await _node.hfs.isFile(packageJsonPath)) {
1942
1938
  throw new Error("Cannot find package.json configuration");
1943
1939
  }
1944
- let packageJson = await _node.hfs.json(_chunk343PZDIIjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
1940
+ let packageJson = await _node.hfs.json(_chunkW6YNIJQDjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
1945
1941
  if (!packageJson) {
1946
1942
  throw new Error("Cannot find package.json configuration file");
1947
1943
  }
@@ -1979,15 +1975,15 @@ async function generatePackageJson2(options) {
1979
1975
  }
1980
1976
  return ret;
1981
1977
  }, packageJson.exports);
1982
- await _devkit.writeJsonFile.call(void 0, _chunk343PZDIIjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1978
+ await _devkit.writeJsonFile.call(void 0, _chunkW6YNIJQDjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1983
1979
  stopwatch();
1984
1980
  }
1985
1981
  return options;
1986
1982
  }
1987
1983
  _chunkJ5SB6L2Ljs.__name.call(void 0, generatePackageJson2, "generatePackageJson");
1988
1984
  async function executeTSDown(options) {
1989
- _chunk343PZDIIjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1990
- const stopwatch = _chunk343PZDIIjs.getStopwatch.call(void 0, `${options.name} build`);
1985
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1986
+ const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, `${options.name} build`);
1991
1987
  await _tsdown.build.call(void 0, {
1992
1988
  ...options,
1993
1989
  entry: options.entryPoints,
@@ -1999,15 +1995,15 @@ async function executeTSDown(options) {
1999
1995
  }
2000
1996
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeTSDown, "executeTSDown");
2001
1997
  async function copyBuildAssets2(options) {
2002
- _chunk343PZDIIjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
2003
- const stopwatch = _chunk343PZDIIjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1998
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1999
+ const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, `${options.name} asset copy`);
2004
2000
  await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
2005
2001
  stopwatch();
2006
2002
  return options;
2007
2003
  }
2008
2004
  _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets2, "copyBuildAssets");
2009
2005
  async function reportResults2(options) {
2010
- _chunk343PZDIIjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
2006
+ _chunkW6YNIJQDjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
2011
2007
  }
2012
2008
  _chunkJ5SB6L2Ljs.__name.call(void 0, reportResults2, "reportResults");
2013
2009
  async function cleanOutputPath2(options) {
@@ -2018,8 +2014,8 @@ async function cleanOutputPath2(options) {
2018
2014
  }
2019
2015
  _chunkJ5SB6L2Ljs.__name.call(void 0, cleanOutputPath2, "cleanOutputPath");
2020
2016
  async function build4(options) {
2021
- _chunk343PZDIIjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
2022
- const stopwatch = _chunk343PZDIIjs.getStopwatch.call(void 0, "TSDown pipeline");
2017
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
2018
+ const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, "TSDown pipeline");
2023
2019
  try {
2024
2020
  const opts = Array.isArray(options) ? options : [
2025
2021
  options
@@ -2037,11 +2033,11 @@ async function build4(options) {
2037
2033
  await reportResults2(opt);
2038
2034
  }));
2039
2035
  } else {
2040
- _chunk343PZDIIjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
2036
+ _chunkW6YNIJQDjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
2041
2037
  }
2042
- _chunk343PZDIIjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
2038
+ _chunkW6YNIJQDjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
2043
2039
  } catch (error) {
2044
- _chunk343PZDIIjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
2040
+ _chunkW6YNIJQDjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
2045
2041
  throw error;
2046
2042
  } finally {
2047
2043
  stopwatch();
@@ -2051,15 +2047,15 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, build4, "build");
2051
2047
 
2052
2048
  // ../workspace-tools/src/executors/tsdown/executor.ts
2053
2049
  async function tsdownExecutorFn(options, context2, config) {
2054
- _chunk343PZDIIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
2055
- if (!_optionalChain([context2, 'access', _112 => _112.projectsConfigurations, 'optionalAccess', _113 => _113.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _114 => _114.projectsConfigurations, 'access', _115 => _115.projects, 'access', _116 => _116[context2.projectName], 'optionalAccess', _117 => _117.root])) {
2050
+ _chunkW6YNIJQDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
2051
+ if (!_optionalChain([context2, 'access', _106 => _106.projectsConfigurations, 'optionalAccess', _107 => _107.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _108 => _108.projectsConfigurations, 'access', _109 => _109.projects, 'access', _110 => _110[context2.projectName], 'optionalAccess', _111 => _111.root])) {
2056
2052
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
2057
2053
  }
2058
2054
  await build4({
2059
2055
  ...options,
2060
- projectRoot: _optionalChain([context2, 'access', _118 => _118.projectsConfigurations, 'access', _119 => _119.projects, 'optionalAccess', _120 => _120[context2.projectName], 'access', _121 => _121.root]),
2056
+ projectRoot: _optionalChain([context2, 'access', _112 => _112.projectsConfigurations, 'access', _113 => _113.projects, 'optionalAccess', _114 => _114[context2.projectName], 'access', _115 => _115.root]),
2061
2057
  projectName: context2.projectName,
2062
- sourceRoot: _optionalChain([context2, 'access', _122 => _122.projectsConfigurations, 'access', _123 => _123.projects, 'optionalAccess', _124 => _124[context2.projectName], 'optionalAccess', _125 => _125.sourceRoot]),
2058
+ sourceRoot: _optionalChain([context2, 'access', _116 => _116.projectsConfigurations, 'access', _117 => _117.projects, 'optionalAccess', _118 => _118[context2.projectName], 'optionalAccess', _119 => _119.sourceRoot]),
2063
2059
  format: options.format,
2064
2060
  platform: options.platform
2065
2061
  });
@@ -2087,11 +2083,11 @@ var _fsextra = require('fs-extra');
2087
2083
  var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
2088
2084
  async function typiaExecutorFn(options, _, config) {
2089
2085
  if (options.clean !== false) {
2090
- _chunk343PZDIIjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
2086
+ _chunkW6YNIJQDjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
2091
2087
  _fsextra.removeSync.call(void 0, options.outputPath);
2092
2088
  }
2093
2089
  await Promise.all(options.entry.map((entry) => {
2094
- _chunk343PZDIIjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
2090
+ _chunkW6YNIJQDjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
2095
2091
  return _TypiaProgrammerjs.TypiaProgrammer.build({
2096
2092
  input: entry,
2097
2093
  output: options.outputPath,
@@ -2122,20 +2118,20 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
2122
2118
 
2123
2119
  var _jiti = require('jiti');
2124
2120
  async function unbuildExecutorFn(options, context2, config) {
2125
- _chunk343PZDIIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
2126
- if (!_optionalChain([context2, 'access', _126 => _126.projectsConfigurations, 'optionalAccess', _127 => _127.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _128 => _128.projectsConfigurations, 'access', _129 => _129.projects, 'access', _130 => _130[context2.projectName], 'optionalAccess', _131 => _131.root])) {
2121
+ _chunkW6YNIJQDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
2122
+ if (!_optionalChain([context2, 'access', _120 => _120.projectsConfigurations, 'optionalAccess', _121 => _121.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _122 => _122.projectsConfigurations, 'access', _123 => _123.projects, 'access', _124 => _124[context2.projectName], 'optionalAccess', _125 => _125.root])) {
2127
2123
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
2128
2124
  }
2129
2125
  const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
2130
- fsCache: config.skipCache ? false : _chunk343PZDIIjs.joinPaths.call(void 0, config.directories.cache || "node_modules/.cache/storm", "jiti"),
2126
+ fsCache: config.skipCache ? false : _chunkW6YNIJQDjs.joinPaths.call(void 0, config.directories.cache || "node_modules/.cache/storm", "jiti"),
2131
2127
  interopDefault: true
2132
2128
  });
2133
2129
  const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
2134
2130
  await stormUnbuild.build(_defu.defu.call(void 0, {
2135
2131
  ...options,
2136
- projectRoot: _optionalChain([context2, 'access', _132 => _132.projectsConfigurations, 'access', _133 => _133.projects, 'optionalAccess', _134 => _134[context2.projectName], 'access', _135 => _135.root]),
2132
+ projectRoot: _optionalChain([context2, 'access', _126 => _126.projectsConfigurations, 'access', _127 => _127.projects, 'optionalAccess', _128 => _128[context2.projectName], 'access', _129 => _129.root]),
2137
2133
  projectName: context2.projectName,
2138
- sourceRoot: _optionalChain([context2, 'access', _136 => _136.projectsConfigurations, 'access', _137 => _137.projects, 'optionalAccess', _138 => _138[context2.projectName], 'optionalAccess', _139 => _139.sourceRoot]),
2134
+ sourceRoot: _optionalChain([context2, 'access', _130 => _130.projectsConfigurations, 'access', _131 => _131.projects, 'optionalAccess', _132 => _132[context2.projectName], 'optionalAccess', _133 => _133.sourceRoot]),
2139
2135
  platform: options.platform,
2140
2136
  name: context2.projectName
2141
2137
  }, {
@@ -2174,6 +2170,9 @@ var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExec
2174
2170
  skipReadingConfig: false,
2175
2171
  hooks: {
2176
2172
  applyDefaultOptions: /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (options, config) => {
2173
+ options.debug ??= false;
2174
+ options.treeShaking ??= true;
2175
+ options.platform ??= "neutral";
2177
2176
  options.entry ??= [
2178
2177
  "{sourceRoot}"
2179
2178
  ];
@@ -2191,58 +2190,58 @@ var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExec
2191
2190
  var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name, generatorFn, generatorOptions = {
2192
2191
  skipReadingConfig: false
2193
2192
  }) => async (tree, _options) => {
2194
- const stopwatch = _chunk343PZDIIjs.getStopwatch.call(void 0, name);
2193
+ const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, name);
2195
2194
  let options = _options;
2196
2195
  let config;
2197
2196
  try {
2198
- _chunk343PZDIIjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
2197
+ _chunkW6YNIJQDjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
2199
2198
 
2200
2199
  `, config);
2201
- const workspaceRoot3 = _chunk343PZDIIjs.findWorkspaceRoot.call(void 0, );
2200
+ const workspaceRoot3 = _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, );
2202
2201
  if (!generatorOptions.skipReadingConfig) {
2203
- _chunk343PZDIIjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
2202
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
2204
2203
  - workspaceRoot: ${workspaceRoot3}`, config);
2205
- config = await _chunkOQPC7VB6js.loadStormConfig.call(void 0, workspaceRoot3);
2204
+ config = await _chunkTHKJZT32js.loadStormConfig.call(void 0, workspaceRoot3);
2206
2205
  }
2207
- if (_optionalChain([generatorOptions, 'optionalAccess', _140 => _140.hooks, 'optionalAccess', _141 => _141.applyDefaultOptions])) {
2208
- _chunk343PZDIIjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
2206
+ if (_optionalChain([generatorOptions, 'optionalAccess', _134 => _134.hooks, 'optionalAccess', _135 => _135.applyDefaultOptions])) {
2207
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
2209
2208
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
2210
- _chunk343PZDIIjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
2209
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
2211
2210
  }
2212
- _chunk343PZDIIjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
2211
+ _chunkW6YNIJQDjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
2213
2212
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
2214
2213
  const tokenized = await applyWorkspaceTokens(options, {
2215
2214
  workspaceRoot: tree.root,
2216
2215
  config
2217
2216
  }, applyWorkspaceBaseTokens);
2218
- if (_optionalChain([generatorOptions, 'optionalAccess', _142 => _142.hooks, 'optionalAccess', _143 => _143.preProcess])) {
2219
- _chunk343PZDIIjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
2217
+ if (_optionalChain([generatorOptions, 'optionalAccess', _136 => _136.hooks, 'optionalAccess', _137 => _137.preProcess])) {
2218
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
2220
2219
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
2221
- _chunk343PZDIIjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
2220
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
2222
2221
  }
2223
2222
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
2224
2223
  if (result) {
2225
- if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _144 => _144.error, 'optionalAccess', _145 => _145.message]) && typeof _optionalChain([result, 'optionalAccess', _146 => _146.error, 'optionalAccess', _147 => _147.message]) === "string" && _optionalChain([result, 'optionalAccess', _148 => _148.error, 'optionalAccess', _149 => _149.name]) && typeof _optionalChain([result, 'optionalAccess', _150 => _150.error, 'optionalAccess', _151 => _151.name]) === "string") {
2224
+ if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _138 => _138.error, 'optionalAccess', _139 => _139.message]) && typeof _optionalChain([result, 'optionalAccess', _140 => _140.error, 'optionalAccess', _141 => _141.message]) === "string" && _optionalChain([result, 'optionalAccess', _142 => _142.error, 'optionalAccess', _143 => _143.name]) && typeof _optionalChain([result, 'optionalAccess', _144 => _144.error, 'optionalAccess', _145 => _145.name]) === "string") {
2226
2225
  throw new Error(`The ${name} generator failed to run`, {
2227
- cause: _optionalChain([result, 'optionalAccess', _152 => _152.error])
2226
+ cause: _optionalChain([result, 'optionalAccess', _146 => _146.error])
2228
2227
  });
2229
2228
  } else if (result.success && result.data) {
2230
2229
  return result;
2231
2230
  }
2232
2231
  }
2233
- if (_optionalChain([generatorOptions, 'optionalAccess', _153 => _153.hooks, 'optionalAccess', _154 => _154.postProcess])) {
2234
- _chunk343PZDIIjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2232
+ if (_optionalChain([generatorOptions, 'optionalAccess', _147 => _147.hooks, 'optionalAccess', _148 => _148.postProcess])) {
2233
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2235
2234
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
2236
- _chunk343PZDIIjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
2235
+ _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
2237
2236
  }
2238
2237
  return () => {
2239
- _chunk343PZDIIjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
2238
+ _chunkW6YNIJQDjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
2240
2239
  `, config);
2241
2240
  };
2242
2241
  } catch (error) {
2243
2242
  return () => {
2244
- _chunk343PZDIIjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
2245
- _chunk343PZDIIjs.writeError.call(void 0, `An exception was thrown in the generator's process
2243
+ _chunkW6YNIJQDjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
2244
+ _chunkW6YNIJQDjs.writeError.call(void 0, `An exception was thrown in the generator's process
2246
2245
  - Details: ${error.message}
2247
2246
  - Stacktrace: ${error.stack}`, config);
2248
2247
  };
@@ -2288,7 +2287,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
2288
2287
  const projectConfig = {
2289
2288
  root: options.directory,
2290
2289
  projectType: "library",
2291
- sourceRoot: _chunk343PZDIIjs.joinPaths.call(void 0, _nullishCoalesce(options.directory, () => ( "")), "src"),
2290
+ sourceRoot: _chunkW6YNIJQDjs.joinPaths.call(void 0, _nullishCoalesce(options.directory, () => ( "")), "src"),
2292
2291
  targets: {
2293
2292
  build: {
2294
2293
  executor: schema.buildExecutor,
@@ -2297,11 +2296,11 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
2297
2296
  ],
2298
2297
  options: {
2299
2298
  entry: [
2300
- _chunk343PZDIIjs.joinPaths.call(void 0, options.projectRoot, "src", "index.ts")
2299
+ _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "src", "index.ts")
2301
2300
  ],
2302
2301
  outputPath: getOutputPath(options),
2303
- tsconfig: _chunk343PZDIIjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
2304
- project: _chunk343PZDIIjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
2302
+ tsconfig: _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
2303
+ project: _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
2305
2304
  defaultConfiguration: "production",
2306
2305
  platform: "neutral",
2307
2306
  assets: [
@@ -2340,22 +2339,22 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
2340
2339
  _devkit.addProjectConfiguration.call(void 0, tree, options.name, projectConfig);
2341
2340
  let repository = {
2342
2341
  type: "github",
2343
- url: _optionalChain([config, 'optionalAccess', _155 => _155.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _156 => _156.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _157 => _157.namespace]) || _optionalChain([config, 'optionalAccess', _158 => _158.name]) || "repository"}.git`
2342
+ url: _optionalChain([config, 'optionalAccess', _149 => _149.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _150 => _150.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _151 => _151.namespace]) || _optionalChain([config, 'optionalAccess', _152 => _152.name]) || "repository"}.git`
2344
2343
  };
2345
2344
  let description = schema.description || "A package developed by Storm Software used to create modern, scalable web applications.";
2346
2345
  if (tree.exists("package.json")) {
2347
2346
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2348
- if (_optionalChain([packageJson, 'optionalAccess', _159 => _159.repository])) {
2347
+ if (_optionalChain([packageJson, 'optionalAccess', _153 => _153.repository])) {
2349
2348
  repository = packageJson.repository;
2350
2349
  }
2351
- if (_optionalChain([packageJson, 'optionalAccess', _160 => _160.description])) {
2350
+ if (_optionalChain([packageJson, 'optionalAccess', _154 => _154.description])) {
2352
2351
  description = packageJson.description;
2353
2352
  }
2354
2353
  }
2355
2354
  if (!options.importPath) {
2356
2355
  options.importPath = options.name;
2357
2356
  }
2358
- const packageJsonPath = _chunk343PZDIIjs.joinPaths.call(void 0, options.projectRoot, "package.json");
2357
+ const packageJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "package.json");
2359
2358
  if (tree.exists(packageJsonPath)) {
2360
2359
  _devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
2361
2360
  if (!options.importPath) {
@@ -2403,30 +2402,30 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
2403
2402
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
2404
2403
  ...json,
2405
2404
  pnpm: {
2406
- ..._optionalChain([json, 'optionalAccess', _161 => _161.pnpm]),
2405
+ ..._optionalChain([json, 'optionalAccess', _155 => _155.pnpm]),
2407
2406
  overrides: {
2408
- ..._optionalChain([json, 'optionalAccess', _162 => _162.pnpm, 'optionalAccess', _163 => _163.overrides]),
2407
+ ..._optionalChain([json, 'optionalAccess', _156 => _156.pnpm, 'optionalAccess', _157 => _157.overrides]),
2409
2408
  [_nullishCoalesce(options.importPath, () => ( ""))]: "workspace:*"
2410
2409
  }
2411
2410
  }
2412
2411
  }));
2413
2412
  }
2414
2413
  _js.addTsConfigPath.call(void 0, tree, options.importPath, [
2415
- _chunk343PZDIIjs.joinPaths.call(void 0, options.projectRoot, "./src", `index.${options.js ? "js" : "ts"}`)
2414
+ _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "./src", `index.${options.js ? "js" : "ts"}`)
2416
2415
  ]);
2417
- _js.addTsConfigPath.call(void 0, tree, _chunk343PZDIIjs.joinPaths.call(void 0, options.importPath, "/*"), [
2418
- _chunk343PZDIIjs.joinPaths.call(void 0, options.projectRoot, "./src", "/*")
2416
+ _js.addTsConfigPath.call(void 0, tree, _chunkW6YNIJQDjs.joinPaths.call(void 0, options.importPath, "/*"), [
2417
+ _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "./src", "/*")
2419
2418
  ]);
2420
2419
  if (tree.exists("package.json")) {
2421
2420
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2422
- if (_optionalChain([packageJson, 'optionalAccess', _164 => _164.repository])) {
2421
+ if (_optionalChain([packageJson, 'optionalAccess', _158 => _158.repository])) {
2423
2422
  repository = packageJson.repository;
2424
2423
  }
2425
- if (_optionalChain([packageJson, 'optionalAccess', _165 => _165.description])) {
2424
+ if (_optionalChain([packageJson, 'optionalAccess', _159 => _159.description])) {
2426
2425
  description = packageJson.description;
2427
2426
  }
2428
2427
  }
2429
- const tsconfigPath = _chunk343PZDIIjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json");
2428
+ const tsconfigPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json");
2430
2429
  if (tree.exists(tsconfigPath)) {
2431
2430
  _devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
2432
2431
  json.composite ??= true;
@@ -2464,36 +2463,36 @@ function getOutputPath(options) {
2464
2463
  } else {
2465
2464
  parts.push(options.projectRoot);
2466
2465
  }
2467
- return _chunk343PZDIIjs.joinPaths.call(void 0, ...parts);
2466
+ return _chunkW6YNIJQDjs.joinPaths.call(void 0, ...parts);
2468
2467
  }
2469
2468
  _chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
2470
2469
  function createProjectTsConfigJson(tree, options) {
2471
2470
  const tsconfig = {
2472
2471
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
2473
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _166 => _166.tsconfigOptions]), () => ( {})),
2472
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _160 => _160.tsconfigOptions]), () => ( {})),
2474
2473
  compilerOptions: {
2475
2474
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
2476
- outDir: _chunk343PZDIIjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2475
+ outDir: _chunkW6YNIJQDjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2477
2476
  noEmit: true,
2478
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _167 => _167.tsconfigOptions, 'optionalAccess', _168 => _168.compilerOptions]), () => ( {}))
2477
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _161 => _161.tsconfigOptions, 'optionalAccess', _162 => _162.compilerOptions]), () => ( {}))
2479
2478
  },
2480
2479
  files: [
2481
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _169 => _169.tsconfigOptions, 'optionalAccess', _170 => _170.files]), () => ( []))
2480
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _163 => _163.tsconfigOptions, 'optionalAccess', _164 => _164.files]), () => ( []))
2482
2481
  ],
2483
2482
  include: [
2484
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _171 => _171.tsconfigOptions, 'optionalAccess', _172 => _172.include]), () => ( [])),
2483
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _165 => _165.tsconfigOptions, 'optionalAccess', _166 => _166.include]), () => ( [])),
2485
2484
  "src/**/*.ts",
2486
2485
  "src/**/*.js",
2487
2486
  "bin/**/*"
2488
2487
  ],
2489
2488
  exclude: [
2490
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _173 => _173.tsconfigOptions, 'optionalAccess', _174 => _174.exclude]), () => ( [])),
2489
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _167 => _167.tsconfigOptions, 'optionalAccess', _168 => _168.exclude]), () => ( [])),
2491
2490
  "jest.config.ts",
2492
2491
  "src/**/*.spec.ts",
2493
2492
  "src/**/*.test.ts"
2494
2493
  ]
2495
2494
  };
2496
- _devkit.writeJson.call(void 0, tree, _chunk343PZDIIjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2495
+ _devkit.writeJson.call(void 0, tree, _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2497
2496
  }
2498
2497
  _chunkJ5SB6L2Ljs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
2499
2498
  async function normalizeOptions(tree, options) {
@@ -2619,19 +2618,19 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
2619
2618
 
2620
2619
  var _zodtojsonschema = require('zod-to-json-schema');
2621
2620
  async function configSchemaGeneratorFn(tree, options, config) {
2622
- _chunk343PZDIIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
2623
- _chunk343PZDIIjs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
2624
- const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunk343PZDIIjs.StormConfigSchema, {
2621
+ _chunkW6YNIJQDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
2622
+ _chunkW6YNIJQDjs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
2623
+ const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkW6YNIJQDjs.StormConfigSchema, {
2625
2624
  name: "StormWorkspaceConfiguration"
2626
2625
  });
2627
- _chunk343PZDIIjs.writeTrace.call(void 0, jsonSchema, config);
2628
- const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _175 => _175.workspaceRoot]), () => ( _chunk343PZDIIjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _176 => _176.outputFile, 'optionalAccess', _177 => _177.startsWith, 'call', _178 => _178("./")]) ? "" : "./");
2629
- _chunk343PZDIIjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2626
+ _chunkW6YNIJQDjs.writeTrace.call(void 0, jsonSchema, config);
2627
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _169 => _169.workspaceRoot]), () => ( _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _170 => _170.outputFile, 'optionalAccess', _171 => _171.startsWith, 'call', _172 => _172("./")]) ? "" : "./");
2628
+ _chunkW6YNIJQDjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2630
2629
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
2631
2630
  spaces: 2
2632
2631
  });
2633
2632
  await _devkit.formatFiles.call(void 0, tree);
2634
- _chunk343PZDIIjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2633
+ _chunkW6YNIJQDjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2635
2634
  return {
2636
2635
  success: true
2637
2636
  };
@@ -3154,32 +3153,28 @@ var typescript_build_executor_untyped_default = _untyped.defineUntypedSchema.cal
3154
3153
  title: "Bundle",
3155
3154
  type: "boolean",
3156
3155
  description: "Bundle the output"
3157
- },
3158
- $default: false
3156
+ }
3159
3157
  },
3160
3158
  minify: {
3161
3159
  $schema: {
3162
3160
  title: "Minify",
3163
3161
  type: "boolean",
3164
3162
  description: "Minify the output"
3165
- },
3166
- $default: false
3163
+ }
3167
3164
  },
3168
3165
  debug: {
3169
3166
  $schema: {
3170
3167
  title: "Debug",
3171
3168
  type: "boolean",
3172
3169
  description: "Debug the output"
3173
- },
3174
- $default: false
3170
+ }
3175
3171
  },
3176
3172
  sourcemap: {
3177
3173
  $schema: {
3178
3174
  title: "Sourcemap",
3179
3175
  type: "boolean",
3180
3176
  description: "Generate a sourcemap"
3181
- },
3182
- $default: false
3177
+ }
3183
3178
  },
3184
3179
  silent: {
3185
3180
  $schema: {