@storm-software/cloudflare-tools 0.55.18 → 0.55.20

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 (43) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-JYGVCUHY.mjs → chunk-AHEAMC5D.mjs} +5 -5
  4. package/dist/{chunk-OO2KFXL5.js → chunk-BRNE2OJC.js} +52 -46
  5. package/dist/{chunk-UYVVVI5O.mjs → chunk-C7LFNTNE.mjs} +40 -26
  6. package/dist/{chunk-EY654AX3.mjs → chunk-IMI2SM4Q.mjs} +27 -16
  7. package/dist/{chunk-XU6MTFCV.mjs → chunk-KFNKJP2U.mjs} +1 -1
  8. package/dist/{chunk-FUEYDPCD.mjs → chunk-LH3QKSDK.mjs} +2 -2
  9. package/dist/{chunk-CH4HU3UC.mjs → chunk-LI7SJBJ3.mjs} +17 -11
  10. package/dist/{chunk-23PVXPM6.js → chunk-MUNYIY4Y.js} +16 -16
  11. package/dist/{chunk-7GVMKVE6.mjs → chunk-PAM7JMC5.mjs} +2 -2
  12. package/dist/{chunk-QEWY5YJA.mjs → chunk-PDHMNSTI.mjs} +2 -2
  13. package/dist/{chunk-7HA6AB2O.mjs → chunk-Q3FTEAPJ.mjs} +4 -4
  14. package/dist/{chunk-NHQOBOKU.js → chunk-QSA4HY26.js} +1 -1
  15. package/dist/{chunk-KD2ZJ3N4.js → chunk-QYKOXH3J.js} +12 -12
  16. package/dist/{chunk-57JETFC4.js → chunk-T4IWTHDS.js} +3 -3
  17. package/dist/{chunk-FNE7DP2D.js → chunk-X6VJDRKI.js} +26 -15
  18. package/dist/{chunk-A7FFSBE6.mjs → chunk-Y3XZCCPP.mjs} +1 -1
  19. package/dist/{chunk-TWSVFCGJ.js → chunk-ZO73VQJ6.js} +229 -215
  20. package/dist/executors.js +5 -5
  21. package/dist/executors.mjs +8 -8
  22. package/dist/generators.js +5 -5
  23. package/dist/generators.mjs +5 -5
  24. package/dist/index.js +8 -8
  25. package/dist/index.mjs +10 -10
  26. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  27. package/dist/src/executors/cloudflare-publish/executor.mjs +6 -6
  28. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  29. package/dist/src/executors/r2-upload-publish/executor.mjs +6 -6
  30. package/dist/src/executors/serve/executor.d.mts +3 -0
  31. package/dist/src/executors/serve/executor.d.ts +3 -0
  32. package/dist/src/executors/serve/executor.js +4 -4
  33. package/dist/src/executors/serve/executor.mjs +5 -5
  34. package/dist/src/generators/init/generator.js +2 -2
  35. package/dist/src/generators/init/generator.mjs +2 -2
  36. package/dist/src/generators/worker/generator.js +5 -5
  37. package/dist/src/generators/worker/generator.mjs +5 -5
  38. package/dist/src/utils/index.js +3 -3
  39. package/dist/src/utils/index.mjs +3 -3
  40. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  41. package/dist/src/utils/r2-bucket-helpers.mjs +3 -3
  42. package/dist/tsup.config.mjs +1 -1
  43. package/package.json +1 -1
@@ -4,7 +4,7 @@
4
4
  var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
5
5
 
6
6
 
7
- var _chunkOO2KFXL5js = require('./chunk-OO2KFXL5.js');
7
+ var _chunkBRNE2OJCjs = require('./chunk-BRNE2OJC.js');
8
8
 
9
9
 
10
10
 
@@ -20,7 +20,7 @@ var _chunkOO2KFXL5js = require('./chunk-OO2KFXL5.js');
20
20
 
21
21
 
22
22
 
23
- var _chunkFNE7DP2Djs = require('./chunk-FNE7DP2D.js');
23
+ var _chunkX6VJDRKIjs = require('./chunk-X6VJDRKI.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(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunkFNE7DP2Djs.findWorkspaceRoot.call(void 0, ))));
56
+ result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, ))));
57
57
  }
58
58
  return result;
59
59
  }, "applyWorkspaceBaseTokens");
@@ -101,37 +101,37 @@ var run = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (config, command,
101
101
  // ../workspace-tools/src/base/base-executor.ts
102
102
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
103
103
  var withRunExecutor = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context2) => {
104
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, name);
104
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, name);
105
105
  let options = _options;
106
106
  let config = {};
107
107
  try {
108
108
  if (!_optionalChain([context2, 'access', _5 => _5.projectsConfigurations, 'optionalAccess', _6 => _6.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
109
109
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
110
110
  }
111
- const workspaceRoot3 = _chunkFNE7DP2Djs.findWorkspaceRoot.call(void 0, );
111
+ const workspaceRoot3 = _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, );
112
112
  const projectRoot = context2.projectsConfigurations.projects[context2.projectName].root || workspaceRoot3;
113
113
  const sourceRoot = context2.projectsConfigurations.projects[context2.projectName].sourceRoot || projectRoot || workspaceRoot3;
114
114
  const projectName = context2.projectName;
115
115
  config.workspaceRoot = workspaceRoot3;
116
- _chunkFNE7DP2Djs.writeInfo.call(void 0, `
116
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, `
117
117
  \u26A1 Running the ${name} executor for ${projectName}
118
118
  `, config);
119
119
  if (!executorOptions.skipReadingConfig) {
120
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
120
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
121
121
  - workspaceRoot: ${workspaceRoot3}
122
122
  - projectRoot: ${projectRoot}
123
123
  - sourceRoot: ${sourceRoot}
124
124
  - projectName: ${projectName}
125
125
  `, config);
126
- config = await _chunkOO2KFXL5js.getConfig.call(void 0, workspaceRoot3);
126
+ config = await _chunkBRNE2OJCjs.getConfig.call(void 0, workspaceRoot3);
127
127
  }
128
128
  if (_optionalChain([executorOptions, 'optionalAccess', _7 => _7.hooks, 'optionalAccess', _8 => _8.applyDefaultOptions])) {
129
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
129
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
130
130
  options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
131
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
131
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
132
132
  }
133
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
134
- ${_chunkFNE7DP2Djs.formatLogMessage.call(void 0, options)}
133
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
134
+ ${_chunkX6VJDRKIjs.formatLogMessage.call(void 0, options)}
135
135
  `, config);
136
136
  const tokenized = await applyWorkspaceTokens(options, _defu.defu.call(void 0, {
137
137
  workspaceRoot: workspaceRoot3,
@@ -140,13 +140,13 @@ ${_chunkFNE7DP2Djs.formatLogMessage.call(void 0, options)}
140
140
  projectName,
141
141
  config
142
142
  }, config, context2.projectsConfigurations.projects[context2.projectName]), applyWorkspaceProjectTokens);
143
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
144
- ${_chunkFNE7DP2Djs.formatLogMessage.call(void 0, tokenized)}
143
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
144
+ ${_chunkX6VJDRKIjs.formatLogMessage.call(void 0, tokenized)}
145
145
  `, config);
146
146
  if (_optionalChain([executorOptions, 'optionalAccess', _9 => _9.hooks, 'optionalAccess', _10 => _10.preProcess])) {
147
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Running the preProcess hook...", config);
147
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
148
148
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
149
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Completed the preProcess hook", config);
149
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
150
150
  }
151
151
  const ret = executorFn(tokenized, context2, config);
152
152
  if (_isFunction(_optionalChain([ret, 'optionalAccess', _11 => _11.next]))) {
@@ -156,26 +156,26 @@ ${_chunkFNE7DP2Djs.formatLogMessage.call(void 0, tokenized)}
156
156
  }
157
157
  const result = await Promise.resolve(ret);
158
158
  if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.message]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.message]) === "string" && _optionalChain([result, 'optionalAccess', _16 => _16.error, 'optionalAccess', _17 => _17.name]) && typeof _optionalChain([result, 'optionalAccess', _18 => _18.error, 'optionalAccess', _19 => _19.name]) === "string")) {
159
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `Failure determined by the ${name} executor
160
- ${_chunkFNE7DP2Djs.formatLogMessage.call(void 0, result)}`, config);
159
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
160
+ ${_chunkX6VJDRKIjs.formatLogMessage.call(void 0, result)}`, config);
161
161
  console.error(result);
162
162
  throw new Error(`The ${name} executor failed to run`, {
163
163
  cause: _optionalChain([result, 'optionalAccess', _20 => _20.error])
164
164
  });
165
165
  }
166
166
  if (_optionalChain([executorOptions, 'optionalAccess', _21 => _21.hooks, 'optionalAccess', _22 => _22.postProcess])) {
167
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Running the postProcess hook...", config);
167
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
168
168
  await Promise.resolve(executorOptions.hooks.postProcess(config));
169
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Completed the postProcess hook", config);
169
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
170
170
  }
171
- _chunkFNE7DP2Djs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
171
+ _chunkX6VJDRKIjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
172
172
  `, config);
173
173
  return {
174
174
  success: true
175
175
  };
176
176
  } catch (error) {
177
- _chunkFNE7DP2Djs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
178
- _chunkFNE7DP2Djs.writeError.call(void 0, `An exception was thrown in the executor's process
177
+ _chunkX6VJDRKIjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
178
+ _chunkX6VJDRKIjs.writeError.call(void 0, `An exception was thrown in the executor's process
179
179
  - Details: ${error.message}
180
180
  - Stacktrace: ${error.stack}`, config);
181
181
  return {
@@ -478,8 +478,8 @@ var copyAssets = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (con
478
478
  output: "src/"
479
479
  });
480
480
  }
481
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
482
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkFNE7DP2Djs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
481
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
482
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkX6VJDRKIjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
483
483
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
484
484
  projectDir: projectRoot,
485
485
  rootDir: config.workspaceRoot,
@@ -488,12 +488,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
488
488
  });
489
489
  await assetHandler.processAllAssetsOnce();
490
490
  if (includeSrc === true) {
491
- _chunkFNE7DP2Djs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkFNE7DP2Djs.joinPaths.call(void 0, outputPath, "src")}`, config);
491
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkX6VJDRKIjs.joinPaths.call(void 0, outputPath, "src")}`, config);
492
492
  const files = await _glob.glob.call(void 0, [
493
- _chunkFNE7DP2Djs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
494
- _chunkFNE7DP2Djs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
495
- _chunkFNE7DP2Djs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
496
- _chunkFNE7DP2Djs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
493
+ _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
494
+ _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
495
+ _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
496
+ _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
497
497
  ]);
498
498
  await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
499
499
 
@@ -510,12 +510,13 @@ var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
510
510
 
511
511
  var _projectgraph = require('nx/src/project-graph/project-graph');
512
512
  var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (workspaceRoot3, projectRoot, projectName, packageJson) => {
513
- const projectDependencies = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0, void 0, _projectgraph.readCachedProjectGraph.call(void 0, ), workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
513
+ const projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
514
+ const projectDependencies = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0, void 0, projectGraph, workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
514
515
  const localPackages = [];
515
516
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
516
517
  const projectNode = project.node;
517
518
  if (projectNode.data.root) {
518
- const projectPackageJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
519
+ const projectPackageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
519
520
  if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
520
521
  const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
521
522
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
@@ -526,35 +527,47 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
526
527
  }
527
528
  }
528
529
  if (localPackages.length > 0) {
529
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
530
- packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
531
- if (!ret[localPackage.name]) {
532
- ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
530
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
531
+ const projectJsonFile = await _promises.readFile.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
532
+ const projectJson = JSON.parse(projectJsonFile);
533
+ const projectName2 = projectJson.name;
534
+ const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
535
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _29 => _29.projects, 'optionalAccess', _30 => _30[projectName2]])) {
536
+ 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.");
537
+ }
538
+ const implicitDependencies = _optionalChain([projectConfigurations, 'access', _31 => _31.projects, 'optionalAccess', _32 => _32[projectName2], 'access', _33 => _33.implicitDependencies, 'optionalAccess', _34 => _34.reduce, 'call', _35 => _35((ret, dep) => {
539
+ if (_optionalChain([projectConfigurations, 'access', _36 => _36.projects, 'optionalAccess', _37 => _37[dep]])) {
540
+ const depPackageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
541
+ if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
542
+ const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
543
+ const depPackageJson = JSON.parse(depPackageJsonContent);
544
+ if (depPackageJson.private !== true && !ret.includes(depPackageJson.name)) {
545
+ ret.push(depPackageJson.name);
546
+ }
547
+ }
533
548
  }
534
549
  return ret;
535
- }, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
536
- packageJson.peerDependenciesMeta = localPackages.reduce((ret, localPackage) => {
537
- if (!ret[localPackage.name]) {
538
- ret[localPackage.name] = {
539
- optional: false
540
- };
550
+ }, [])]);
551
+ packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
552
+ if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _38 => _38.includes, 'call', _39 => _39(localPackage.name)])) {
553
+ ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
541
554
  }
542
555
  return ret;
543
- }, _nullishCoalesce(packageJson.peerDependenciesMeta, () => ( {})));
556
+ }, _nullishCoalesce(packageJson.dependencies, () => ( {})));
544
557
  packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
545
- if (!ret[localPackage.name]) {
558
+ if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _40 => _40.includes, 'call', _41 => _41(localPackage.name)])) {
546
559
  ret[localPackage.name] = localPackage.version || "0.0.1";
547
560
  }
548
561
  return ret;
549
- }, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
562
+ }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
550
563
  } else {
551
- _chunkFNE7DP2Djs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
564
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
552
565
  }
553
566
  return packageJson;
554
567
  }, "addPackageDependencies");
555
568
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
556
- const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkFNE7DP2Djs.findWorkspaceRoot.call(void 0, );
557
- const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
569
+ const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, );
570
+ const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
558
571
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
559
572
  packageJson.type ??= "module";
560
573
  packageJson.sideEffects ??= false;
@@ -563,7 +576,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call
563
576
  if (distSrc.startsWith("/")) {
564
577
  distSrc = distSrc.substring(1);
565
578
  }
566
- packageJson.source ??= `${_chunkFNE7DP2Djs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
579
+ packageJson.source ??= `${_chunkX6VJDRKIjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
567
580
  }
568
581
  packageJson.files ??= [
569
582
  "dist/**/*"
@@ -594,7 +607,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call
594
607
  ];
595
608
  }
596
609
  packageJson.repository ??= workspacePackageJson.repository;
597
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkFNE7DP2Djs.joinPaths.call(void 0, "packages", projectName);
610
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkX6VJDRKIjs.joinPaths.call(void 0, "packages", projectName);
598
611
  return packageJson;
599
612
  }, "addWorkspacePackageJsonFields");
600
613
  var addPackageJsonExport = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (file, type = "module", sourceRoot) => {
@@ -621,7 +634,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0,
621
634
  // ../build-tools/src/utilities/get-entry-points.ts
622
635
 
623
636
  var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
624
- const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkFNE7DP2Djs.findWorkspaceRoot.call(void 0, );
637
+ const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, );
625
638
  const entryPoints = [];
626
639
  if (entry) {
627
640
  if (Array.isArray(entry)) {
@@ -633,7 +646,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
633
646
  }
634
647
  }
635
648
  if (emitOnAll) {
636
- entryPoints.push(_chunkFNE7DP2Djs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
649
+ entryPoints.push(_chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
637
650
  }
638
651
  const results = [];
639
652
  for (const entryPoint in entryPoints) {
@@ -642,9 +655,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
642
655
  withFileTypes: true
643
656
  });
644
657
  results.push(...files.reduce((ret, filePath) => {
645
- const result = _chunkFNE7DP2Djs.correctPaths.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkFNE7DP2Djs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkFNE7DP2Djs.correctPaths.call(void 0, projectRoot), ""));
658
+ const result = _chunkX6VJDRKIjs.correctPaths.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkX6VJDRKIjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkX6VJDRKIjs.correctPaths.call(void 0, projectRoot), ""));
646
659
  if (result) {
647
- _chunkFNE7DP2Djs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkFNE7DP2Djs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
660
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkX6VJDRKIjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
648
661
  if (!results.includes(result)) {
649
662
  results.push(result);
650
663
  }
@@ -778,15 +791,15 @@ var RendererEngine = class {
778
791
  if (!relativePath.startsWith("\\\\?\\")) {
779
792
  relativePath = relativePath.replace(/\\/g, "/");
780
793
  }
781
- const meta = _optionalChain([metafile, 'optionalAccess', _29 => _29.outputs, 'access', _30 => _30[relativePath]]);
794
+ const meta = _optionalChain([metafile, 'optionalAccess', _42 => _42.outputs, 'access', _43 => _43[relativePath]]);
782
795
  return {
783
796
  type: "chunk",
784
797
  path: file.path,
785
798
  code: file.text,
786
- map: _optionalChain([outputFiles, 'access', _31 => _31.find, 'call', _32 => _32((f) => f.path === `${file.path}.map`), 'optionalAccess', _33 => _33.text]),
787
- entryPoint: _optionalChain([meta, 'optionalAccess', _34 => _34.entryPoint]),
788
- exports: _optionalChain([meta, 'optionalAccess', _35 => _35.exports]),
789
- imports: _optionalChain([meta, 'optionalAccess', _36 => _36.imports])
799
+ map: _optionalChain([outputFiles, 'access', _44 => _44.find, 'call', _45 => _45((f) => f.path === `${file.path}.map`), 'optionalAccess', _46 => _46.text]),
800
+ entryPoint: _optionalChain([meta, 'optionalAccess', _47 => _47.entryPoint]),
801
+ exports: _optionalChain([meta, 'optionalAccess', _48 => _48.exports]),
802
+ imports: _optionalChain([meta, 'optionalAccess', _49 => _49.imports])
790
803
  };
791
804
  } else {
792
805
  return {
@@ -869,7 +882,7 @@ var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void
869
882
  name: "storm:esm-split-code-to-cjs",
870
883
  setup(build5) {
871
884
  build5.onEnd(async (result) => {
872
- const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _37 => _37.metafile, 'optionalAccess', _38 => _38.outputs]), () => ( {})));
885
+ const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _50 => _50.metafile, 'optionalAccess', _51 => _51.outputs]), () => ( {})));
873
886
  const jsFiles = outFiles.filter((f) => f.endsWith("js"));
874
887
  await esbuild.build({
875
888
  outdir: resolvedOptions.outdir,
@@ -978,7 +991,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (option
978
991
  setup(build5) {
979
992
  build5.onEnd((result) => {
980
993
  if (result.errors.length > 0 && process.env.WATCH !== "true") {
981
- _chunkFNE7DP2Djs.writeError.call(void 0, `The following errors occurred during the build:
994
+ _chunkX6VJDRKIjs.writeError.call(void 0, `The following errors occurred during the build:
982
995
  ${result.errors.map((error) => error.text).join("\n")}
983
996
 
984
997
  `, resolvedOptions.config);
@@ -991,7 +1004,7 @@ ${result.errors.map((error) => error.text).join("\n")}
991
1004
  // ../esbuild/src/plugins/resolve-paths.ts
992
1005
 
993
1006
  function resolvePathsConfig(options, cwd) {
994
- if (_optionalChain([options, 'optionalAccess', _39 => _39.compilerOptions, 'optionalAccess', _40 => _40.paths])) {
1007
+ if (_optionalChain([options, 'optionalAccess', _52 => _52.compilerOptions, 'optionalAccess', _53 => _53.paths])) {
995
1008
  const paths = Object.entries(options.compilerOptions.paths);
996
1009
  const resolvedPaths = paths.map(([key, paths2]) => {
997
1010
  return [
@@ -1013,13 +1026,13 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
1013
1026
  var resolvePathsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, resolvedOptions) => ({
1014
1027
  name: "storm:resolve-paths",
1015
1028
  setup(build5) {
1016
- const parentTsConfig = build5.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build5.initialOptions.tsconfig)) : _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
1029
+ const parentTsConfig = build5.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build5.initialOptions.tsconfig)) : _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
1017
1030
  const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
1018
1031
  const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
1019
1032
  build5.onResolve({
1020
1033
  filter: packagesRegex
1021
1034
  }, (args) => {
1022
- if (_optionalChain([build5, 'access', _41 => _41.initialOptions, 'access', _42 => _42.external, 'optionalAccess', _43 => _43.includes, 'call', _44 => _44(args.path)])) {
1035
+ if (_optionalChain([build5, 'access', _54 => _54.initialOptions, 'access', _55 => _55.external, 'optionalAccess', _56 => _56.includes, 'call', _57 => _57(args.path)])) {
1023
1036
  return {
1024
1037
  path: args.path,
1025
1038
  external: true
@@ -1037,7 +1050,7 @@ var _apiextractor = require('@microsoft/api-extractor');
1037
1050
 
1038
1051
 
1039
1052
  function bundleTypeDefinitions(filename, outfile, externals, options) {
1040
- const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, options.projectRoot, "package.json"));
1053
+ const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
1041
1054
  const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
1042
1055
  p,
1043
1056
  getTypeDependencyPackageName(p)
@@ -1073,13 +1086,13 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
1073
1086
  },
1074
1087
  dtsRollup: {
1075
1088
  enabled: true,
1076
- untrimmedFilePath: _chunkFNE7DP2Djs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
1089
+ untrimmedFilePath: _chunkX6VJDRKIjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
1077
1090
  },
1078
1091
  tsdocMetadata: {
1079
1092
  enabled: false
1080
1093
  }
1081
1094
  },
1082
- packageJsonFullPath: _chunkFNE7DP2Djs.joinPaths.call(void 0, options.projectRoot, "package.json"),
1095
+ packageJsonFullPath: _chunkX6VJDRKIjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
1083
1096
  configObjectFullPath: void 0
1084
1097
  });
1085
1098
  const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
@@ -1087,7 +1100,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
1087
1100
  localBuild: true
1088
1101
  });
1089
1102
  if (extractorResult.succeeded === false) {
1090
- _chunkFNE7DP2Djs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
1103
+ _chunkX6VJDRKIjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
1091
1104
  throw new Error("API Extractor completed with errors");
1092
1105
  }
1093
1106
  }
@@ -1106,12 +1119,12 @@ var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, r
1106
1119
  const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
1107
1120
  const typeOutDir = resolvedOptions.outdir;
1108
1121
  const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
1109
- const bundlePath = _chunkFNE7DP2Djs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
1122
+ const bundlePath = _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
1110
1123
  let dtsPath;
1111
- if (_fs.existsSync.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1112
- dtsPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
1113
- } else if (_fs.existsSync.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1114
- dtsPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
1124
+ if (_fs.existsSync.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1125
+ dtsPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
1126
+ } else if (_fs.existsSync.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1127
+ dtsPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
1115
1128
  }
1116
1129
  const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
1117
1130
  if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
@@ -1128,7 +1141,7 @@ var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, r
1128
1141
  function getTypeDependencyPackageName(npmPackage) {
1129
1142
  if (npmPackage.startsWith("@")) {
1130
1143
  const [scope, name] = npmPackage.split("/");
1131
- return `@types/${_optionalChain([scope, 'optionalAccess', _45 => _45.slice, 'call', _46 => _46(1)])}__${name}`;
1144
+ return `@types/${_optionalChain([scope, 'optionalAccess', _58 => _58.slice, 'call', _59 => _59(1)])}__${name}`;
1132
1145
  }
1133
1146
  return `@types/${npmPackage}`;
1134
1147
  }
@@ -1266,8 +1279,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (bund
1266
1279
  const filteredMissingDeps = missingDependencies.filter((dep) => {
1267
1280
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
1268
1281
  });
1269
- _chunkFNE7DP2Djs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1270
- _chunkFNE7DP2Djs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1282
+ _chunkX6VJDRKIjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1283
+ _chunkX6VJDRKIjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1271
1284
  if (filteredMissingDeps.length > 0) {
1272
1285
  throw new Error(`Missing dependencies detected - please install them:
1273
1286
  ${JSON.stringify(filteredMissingDeps)}
@@ -1335,7 +1348,7 @@ function pipeSync(fn, ...fns) {
1335
1348
  return (...args) => {
1336
1349
  let result = fn(...args);
1337
1350
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1338
- result = _optionalChain([fns, 'access', _47 => _47[i], 'optionalCall', _48 => _48(result)]);
1351
+ result = _optionalChain([fns, 'access', _60 => _60[i], 'optionalCall', _61 => _61(result)]);
1339
1352
  }
1340
1353
  return result;
1341
1354
  };
@@ -1345,7 +1358,7 @@ function pipeAsync(fn, ...fns) {
1345
1358
  return async (...args) => {
1346
1359
  let result = await fn(...args);
1347
1360
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1348
- result = await _optionalChain([fns, 'access', _49 => _49[i], 'optionalCall', _50 => _50(result)]);
1361
+ result = await _optionalChain([fns, 'access', _62 => _62[i], 'optionalCall', _63 => _63(result)]);
1349
1362
  }
1350
1363
  return result;
1351
1364
  };
@@ -1361,13 +1374,13 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1361
1374
  if (!workspaceRoot3) {
1362
1375
  throw new Error("Cannot find Nx workspace root");
1363
1376
  }
1364
- const config = await _chunkOO2KFXL5js.getConfig.call(void 0, workspaceRoot3.dir);
1365
- _chunkFNE7DP2Djs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1366
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, "Build options resolution");
1377
+ const config = await _chunkBRNE2OJCjs.getConfig.call(void 0, workspaceRoot3.dir);
1378
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1379
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "Build options resolution");
1367
1380
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
1368
1381
  exitOnError: true
1369
1382
  });
1370
- const projectJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1383
+ const projectJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1371
1384
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
1372
1385
  throw new Error("Cannot find project.json configuration");
1373
1386
  }
@@ -1375,13 +1388,13 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1375
1388
  const projectJson = JSON.parse(projectJsonFile);
1376
1389
  const projectName = projectJson.name;
1377
1390
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1378
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _51 => _51.projects, 'optionalAccess', _52 => _52[projectName]])) {
1391
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _64 => _64.projects, 'optionalAccess', _65 => _65[projectName]])) {
1379
1392
  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.");
1380
1393
  }
1381
1394
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
1382
1395
  options.name ??= `${projectName}-${options.format}`;
1383
1396
  options.target ??= DEFAULT_TARGET;
1384
- const packageJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1397
+ const packageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1385
1398
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1386
1399
  throw new Error("Cannot find package.json configuration");
1387
1400
  }
@@ -1406,20 +1419,20 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1406
1419
  ".node"
1407
1420
  ],
1408
1421
  ...userOptions,
1409
- tsconfig: _chunkFNE7DP2Djs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1422
+ tsconfig: _chunkX6VJDRKIjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1410
1423
  format: options.format || "cjs",
1411
1424
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
1412
1425
  "./src/index.ts"
1413
1426
  ], userOptions.emitOnAll),
1414
- outdir: userOptions.outputPath || _chunkFNE7DP2Djs.joinPaths.call(void 0, "dist", projectRoot),
1427
+ outdir: userOptions.outputPath || _chunkX6VJDRKIjs.joinPaths.call(void 0, "dist", projectRoot),
1415
1428
  plugins: [],
1416
1429
  name: userOptions.name || projectName,
1417
1430
  projectConfigurations,
1418
1431
  projectName,
1419
1432
  projectGraph,
1420
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkFNE7DP2Djs.joinPaths.call(void 0, projectRoot, "src"),
1433
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkX6VJDRKIjs.joinPaths.call(void 0, projectRoot, "src"),
1421
1434
  minify: userOptions.minify || !userOptions.debug,
1422
- verbose: userOptions.verbose || _chunkFNE7DP2Djs.isVerbose.call(void 0, ) || userOptions.debug === true,
1435
+ verbose: userOptions.verbose || _chunkX6VJDRKIjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1423
1436
  includeSrc: userOptions.includeSrc === true,
1424
1437
  metafile: userOptions.metafile !== false,
1425
1438
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -1455,8 +1468,8 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1455
1468
  }, {})
1456
1469
  },
1457
1470
  inject: [
1458
- options.format === "cjs" && options.injectShims ? _chunkFNE7DP2Djs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
1459
- options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkFNE7DP2Djs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
1471
+ options.format === "cjs" && options.injectShims ? _chunkX6VJDRKIjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
1472
+ options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkX6VJDRKIjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
1460
1473
  ..._nullishCoalesce(options.inject, () => ( []))
1461
1474
  ].filter(Boolean)
1462
1475
  };
@@ -1465,14 +1478,14 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1465
1478
  return result;
1466
1479
  }, "resolveOptions");
1467
1480
  async function generatePackageJson(context2) {
1468
- if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1469
- _chunkFNE7DP2Djs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1470
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, "Write package.json file");
1471
- const packageJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1481
+ if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1482
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1483
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "Write package.json file");
1484
+ const packageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1472
1485
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1473
1486
  throw new Error("Cannot find package.json configuration");
1474
1487
  }
1475
- const packageJsonFile = await _promises2.default.readFile(_chunkFNE7DP2Djs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
1488
+ const packageJsonFile = await _promises2.default.readFile(_chunkX6VJDRKIjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
1476
1489
  let packageJson = JSON.parse(packageJsonFile);
1477
1490
  if (!packageJson) {
1478
1491
  throw new Error("Cannot find package.json configuration file");
@@ -1511,7 +1524,7 @@ async function generatePackageJson(context2) {
1511
1524
  }
1512
1525
  return ret;
1513
1526
  }, packageJson.exports);
1514
- await _devkit.writeJsonFile.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1527
+ await _devkit.writeJsonFile.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1515
1528
  stopwatch();
1516
1529
  }
1517
1530
  return context2;
@@ -1537,8 +1550,8 @@ async function generateContext(getOptions) {
1537
1550
  }
1538
1551
  _chunkJ5SB6L2Ljs.__name.call(void 0, generateContext, "generateContext");
1539
1552
  async function executeEsBuild(context2) {
1540
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1541
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, `${context2.options.name} build`);
1553
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1554
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${context2.options.name} build`);
1542
1555
  if (process.env.WATCH === "true") {
1543
1556
  const ctx = await esbuild2.context(context2.options);
1544
1557
  watch(ctx, context2.options);
@@ -1553,9 +1566,9 @@ async function executeEsBuild(context2) {
1553
1566
  }
1554
1567
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1555
1568
  async function copyBuildAssets(context2) {
1556
- if (_optionalChain([context2, 'access', _53 => _53.result, 'optionalAccess', _54 => _54.errors, 'access', _55 => _55.length]) === 0) {
1557
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1558
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1569
+ if (_optionalChain([context2, 'access', _66 => _66.result, 'optionalAccess', _67 => _67.errors, 'access', _68 => _68.length]) === 0) {
1570
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1571
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1559
1572
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
1560
1573
  stopwatch();
1561
1574
  }
@@ -1563,11 +1576,11 @@ async function copyBuildAssets(context2) {
1563
1576
  }
1564
1577
  _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1565
1578
  async function reportResults(context2) {
1566
- if (_optionalChain([context2, 'access', _56 => _56.result, 'optionalAccess', _57 => _57.errors, 'access', _58 => _58.length]) === 0) {
1579
+ if (_optionalChain([context2, 'access', _69 => _69.result, 'optionalAccess', _70 => _70.errors, 'access', _71 => _71.length]) === 0) {
1567
1580
  if (context2.result.warnings.length > 0) {
1568
- _chunkFNE7DP2Djs.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);
1581
+ _chunkX6VJDRKIjs.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);
1569
1582
  }
1570
- _chunkFNE7DP2Djs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1583
+ _chunkX6VJDRKIjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1571
1584
  }
1572
1585
  }
1573
1586
  _chunkJ5SB6L2Ljs.__name.call(void 0, reportResults, "reportResults");
@@ -1603,8 +1616,8 @@ async function dependencyCheck(options) {
1603
1616
  _chunkJ5SB6L2Ljs.__name.call(void 0, dependencyCheck, "dependencyCheck");
1604
1617
  async function cleanOutputPath(context2) {
1605
1618
  if (context2.options.clean !== false && context2.options.outdir) {
1606
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1607
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
1619
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1620
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
1608
1621
  await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
1609
1622
  stopwatch();
1610
1623
  }
@@ -1612,8 +1625,8 @@ async function cleanOutputPath(context2) {
1612
1625
  }
1613
1626
  _chunkJ5SB6L2Ljs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
1614
1627
  async function build3(options) {
1615
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1616
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, "ESBuild pipeline");
1628
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1629
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "ESBuild pipeline");
1617
1630
  try {
1618
1631
  const opts = Array.isArray(options) ? options : [
1619
1632
  options
@@ -1623,9 +1636,9 @@ async function build3(options) {
1623
1636
  }
1624
1637
  void transduce.async(opts, dependencyCheck);
1625
1638
  await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
1626
- _chunkFNE7DP2Djs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1639
+ _chunkX6VJDRKIjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1627
1640
  } catch (error) {
1628
- _chunkFNE7DP2Djs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1641
+ _chunkX6VJDRKIjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1629
1642
  throw error;
1630
1643
  } finally {
1631
1644
  stopwatch();
@@ -1653,9 +1666,9 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1653
1666
  return context2.rebuild();
1654
1667
  });
1655
1668
  if (rebuildResult instanceof Error) {
1656
- _chunkFNE7DP2Djs.writeError.call(void 0, rebuildResult.message);
1669
+ _chunkX6VJDRKIjs.writeError.call(void 0, rebuildResult.message);
1657
1670
  }
1658
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1671
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1659
1672
  }, 10);
1660
1673
  changeWatcher.on("change", fastRebuild);
1661
1674
  return void 0;
@@ -1663,15 +1676,15 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1663
1676
 
1664
1677
  // ../workspace-tools/src/executors/esbuild/executor.ts
1665
1678
  async function esbuildExecutorFn(options, context2, config) {
1666
- _chunkFNE7DP2Djs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1667
- if (!_optionalChain([context2, 'access', _59 => _59.projectsConfigurations, 'optionalAccess', _60 => _60.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _61 => _61.projectsConfigurations, 'access', _62 => _62.projects, 'access', _63 => _63[context2.projectName], 'optionalAccess', _64 => _64.root])) {
1679
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1680
+ if (!_optionalChain([context2, 'access', _72 => _72.projectsConfigurations, 'optionalAccess', _73 => _73.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _74 => _74.projectsConfigurations, 'access', _75 => _75.projects, 'access', _76 => _76[context2.projectName], 'optionalAccess', _77 => _77.root])) {
1668
1681
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1669
1682
  }
1670
1683
  await build3({
1671
1684
  ...options,
1672
- projectRoot: _optionalChain([context2, 'access', _65 => _65.projectsConfigurations, 'access', _66 => _66.projects, 'optionalAccess', _67 => _67[context2.projectName], 'access', _68 => _68.root]),
1685
+ projectRoot: _optionalChain([context2, 'access', _78 => _78.projectsConfigurations, 'access', _79 => _79.projects, 'optionalAccess', _80 => _80[context2.projectName], 'access', _81 => _81.root]),
1673
1686
  projectName: context2.projectName,
1674
- sourceRoot: _optionalChain([context2, 'access', _69 => _69.projectsConfigurations, 'access', _70 => _70.projects, 'optionalAccess', _71 => _71[context2.projectName], 'optionalAccess', _72 => _72.sourceRoot]),
1687
+ sourceRoot: _optionalChain([context2, 'access', _82 => _82.projectsConfigurations, 'access', _83 => _83.projects, 'optionalAccess', _84 => _84[context2.projectName], 'optionalAccess', _85 => _85.sourceRoot]),
1675
1688
  format: options.format,
1676
1689
  platform: options.format
1677
1690
  });
@@ -1714,18 +1727,18 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
1714
1727
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
1715
1728
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
1716
1729
  async function sizeLimitExecutorFn(options, context2, config) {
1717
- if (!_optionalChain([context2, 'optionalAccess', _73 => _73.projectName]) || !_optionalChain([context2, 'access', _74 => _74.projectsConfigurations, 'optionalAccess', _75 => _75.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1730
+ if (!_optionalChain([context2, 'optionalAccess', _86 => _86.projectName]) || !_optionalChain([context2, 'access', _87 => _87.projectsConfigurations, 'optionalAccess', _88 => _88.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1718
1731
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
1719
1732
  }
1720
- _chunkFNE7DP2Djs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1733
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1721
1734
  _sizelimit2.default.call(void 0, [
1722
1735
  _file2.default,
1723
1736
  _esbuild3.default,
1724
1737
  _esbuildwhy2.default
1725
1738
  ], {
1726
- checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _76 => _76.projectsConfigurations, 'access', _77 => _77.projects, 'access', _78 => _78[context2.projectName], 'optionalAccess', _79 => _79.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _80 => _80.projectsConfigurations, 'access', _81 => _81.projects, 'access', _82 => _82[context2.projectName], 'optionalAccess', _83 => _83.root]), () => ( "./")), "src")))
1739
+ checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _89 => _89.projectsConfigurations, 'access', _90 => _90.projects, 'access', _91 => _91[context2.projectName], 'optionalAccess', _92 => _92.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _93 => _93.projectsConfigurations, 'access', _94 => _94.projects, 'access', _95 => _95[context2.projectName], 'optionalAccess', _96 => _96.root]), () => ( "./")), "src")))
1727
1740
  }).then((result) => {
1728
- _chunkFNE7DP2Djs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1741
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1729
1742
  });
1730
1743
  return {
1731
1744
  success: true
@@ -1788,13 +1801,13 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1788
1801
  if (!workspaceRoot3) {
1789
1802
  throw new Error("Cannot find Nx workspace root");
1790
1803
  }
1791
- const config = await _chunkOO2KFXL5js.getConfig.call(void 0, workspaceRoot3.dir);
1792
- _chunkFNE7DP2Djs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1793
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, "Build options resolution");
1804
+ const config = await _chunkBRNE2OJCjs.getConfig.call(void 0, workspaceRoot3.dir);
1805
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1806
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "Build options resolution");
1794
1807
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
1795
1808
  exitOnError: true
1796
1809
  });
1797
- const projectJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1810
+ const projectJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1798
1811
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
1799
1812
  throw new Error("Cannot find project.json configuration");
1800
1813
  }
@@ -1802,13 +1815,13 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1802
1815
  const projectJson = JSON.parse(projectJsonFile);
1803
1816
  const projectName = projectJson.name;
1804
1817
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1805
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _84 => _84.projects, 'optionalAccess', _85 => _85[projectName]])) {
1818
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _97 => _97.projects, 'optionalAccess', _98 => _98[projectName]])) {
1806
1819
  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.");
1807
1820
  }
1808
1821
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS2);
1809
1822
  options.name ??= `${projectName}-${options.format}`;
1810
1823
  options.target ??= DEFAULT_TARGET;
1811
- const packageJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1824
+ const packageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1812
1825
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1813
1826
  throw new Error("Cannot find package.json configuration");
1814
1827
  }
@@ -1817,20 +1830,20 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1817
1830
  ...options,
1818
1831
  config,
1819
1832
  ...userOptions,
1820
- tsconfig: _chunkFNE7DP2Djs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1833
+ tsconfig: _chunkX6VJDRKIjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1821
1834
  format: options.format || "cjs",
1822
1835
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
1823
1836
  "./src/index.ts"
1824
1837
  ], userOptions.emitOnAll),
1825
- outdir: userOptions.outputPath || _chunkFNE7DP2Djs.joinPaths.call(void 0, "dist", projectRoot),
1838
+ outdir: userOptions.outputPath || _chunkX6VJDRKIjs.joinPaths.call(void 0, "dist", projectRoot),
1826
1839
  plugins: [],
1827
1840
  name: userOptions.name || projectName,
1828
1841
  projectConfigurations,
1829
1842
  projectName,
1830
1843
  projectGraph,
1831
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkFNE7DP2Djs.joinPaths.call(void 0, projectRoot, "src"),
1844
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkX6VJDRKIjs.joinPaths.call(void 0, projectRoot, "src"),
1832
1845
  minify: userOptions.minify || !userOptions.debug,
1833
- verbose: userOptions.verbose || _chunkFNE7DP2Djs.isVerbose.call(void 0, ) || userOptions.debug === true,
1846
+ verbose: userOptions.verbose || _chunkX6VJDRKIjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1834
1847
  includeSrc: userOptions.includeSrc === true,
1835
1848
  metafile: userOptions.metafile !== false,
1836
1849
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -1864,14 +1877,14 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1864
1877
  return result;
1865
1878
  }, "resolveOptions");
1866
1879
  async function generatePackageJson2(options) {
1867
- if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1868
- _chunkFNE7DP2Djs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1869
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, "Write package.json file");
1870
- const packageJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, options.projectRoot, "project.json");
1880
+ if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1881
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1882
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "Write package.json file");
1883
+ const packageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1871
1884
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1872
1885
  throw new Error("Cannot find package.json configuration");
1873
1886
  }
1874
- const packageJsonFile = await _promises2.default.readFile(_chunkFNE7DP2Djs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
1887
+ const packageJsonFile = await _promises2.default.readFile(_chunkX6VJDRKIjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
1875
1888
  if (!packageJsonFile) {
1876
1889
  throw new Error("Cannot find package.json configuration file");
1877
1890
  }
@@ -1910,15 +1923,15 @@ async function generatePackageJson2(options) {
1910
1923
  }
1911
1924
  return ret;
1912
1925
  }, packageJson.exports);
1913
- await _devkit.writeJsonFile.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1926
+ await _devkit.writeJsonFile.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1914
1927
  stopwatch();
1915
1928
  }
1916
1929
  return options;
1917
1930
  }
1918
1931
  _chunkJ5SB6L2Ljs.__name.call(void 0, generatePackageJson2, "generatePackageJson");
1919
1932
  async function executeTSDown(options) {
1920
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1921
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, `${options.name} build`);
1933
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1934
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${options.name} build`);
1922
1935
  await _tsdown.build.call(void 0, {
1923
1936
  ...options,
1924
1937
  entry: options.entryPoints,
@@ -1930,21 +1943,21 @@ async function executeTSDown(options) {
1930
1943
  }
1931
1944
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeTSDown, "executeTSDown");
1932
1945
  async function copyBuildAssets2(options) {
1933
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1934
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, `${options.name} asset copy`);
1946
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1947
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1935
1948
  await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
1936
1949
  stopwatch();
1937
1950
  return options;
1938
1951
  }
1939
1952
  _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets2, "copyBuildAssets");
1940
1953
  async function reportResults2(options) {
1941
- _chunkFNE7DP2Djs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
1954
+ _chunkX6VJDRKIjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
1942
1955
  }
1943
1956
  _chunkJ5SB6L2Ljs.__name.call(void 0, reportResults2, "reportResults");
1944
1957
  async function cleanOutputPath2(options) {
1945
1958
  if (options.clean !== false && options.outdir) {
1946
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
1947
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, `${options.name} output clean`);
1959
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
1960
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${options.name} output clean`);
1948
1961
  await cleanDirectories2(options.name, options.outdir, options.config);
1949
1962
  stopwatch();
1950
1963
  }
@@ -1952,8 +1965,8 @@ async function cleanOutputPath2(options) {
1952
1965
  }
1953
1966
  _chunkJ5SB6L2Ljs.__name.call(void 0, cleanOutputPath2, "cleanOutputPath");
1954
1967
  async function build4(options) {
1955
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1956
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, "TSDown pipeline");
1968
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1969
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "TSDown pipeline");
1957
1970
  try {
1958
1971
  const opts = Array.isArray(options) ? options : [
1959
1972
  options
@@ -1971,11 +1984,11 @@ async function build4(options) {
1971
1984
  await reportResults2(opt);
1972
1985
  }));
1973
1986
  } else {
1974
- _chunkFNE7DP2Djs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
1987
+ _chunkX6VJDRKIjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
1975
1988
  }
1976
- _chunkFNE7DP2Djs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1989
+ _chunkX6VJDRKIjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1977
1990
  } catch (error) {
1978
- _chunkFNE7DP2Djs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1991
+ _chunkX6VJDRKIjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1979
1992
  throw error;
1980
1993
  } finally {
1981
1994
  stopwatch();
@@ -1985,15 +1998,15 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, build4, "build");
1985
1998
 
1986
1999
  // ../workspace-tools/src/executors/tsdown/executor.ts
1987
2000
  async function tsdownExecutorFn(options, context2, config) {
1988
- _chunkFNE7DP2Djs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
1989
- if (!_optionalChain([context2, 'access', _86 => _86.projectsConfigurations, 'optionalAccess', _87 => _87.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _88 => _88.projectsConfigurations, 'access', _89 => _89.projects, 'access', _90 => _90[context2.projectName], 'optionalAccess', _91 => _91.root])) {
2001
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
2002
+ if (!_optionalChain([context2, 'access', _99 => _99.projectsConfigurations, 'optionalAccess', _100 => _100.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _101 => _101.projectsConfigurations, 'access', _102 => _102.projects, 'access', _103 => _103[context2.projectName], 'optionalAccess', _104 => _104.root])) {
1990
2003
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1991
2004
  }
1992
2005
  await build4({
1993
2006
  ...options,
1994
- projectRoot: _optionalChain([context2, 'access', _92 => _92.projectsConfigurations, 'access', _93 => _93.projects, 'optionalAccess', _94 => _94[context2.projectName], 'access', _95 => _95.root]),
2007
+ projectRoot: _optionalChain([context2, 'access', _105 => _105.projectsConfigurations, 'access', _106 => _106.projects, 'optionalAccess', _107 => _107[context2.projectName], 'access', _108 => _108.root]),
1995
2008
  projectName: context2.projectName,
1996
- sourceRoot: _optionalChain([context2, 'access', _96 => _96.projectsConfigurations, 'access', _97 => _97.projects, 'optionalAccess', _98 => _98[context2.projectName], 'optionalAccess', _99 => _99.sourceRoot]),
2009
+ sourceRoot: _optionalChain([context2, 'access', _109 => _109.projectsConfigurations, 'access', _110 => _110.projects, 'optionalAccess', _111 => _111[context2.projectName], 'optionalAccess', _112 => _112.sourceRoot]),
1997
2010
  format: options.format,
1998
2011
  platform: options.platform
1999
2012
  });
@@ -2021,11 +2034,11 @@ var _fsextra = require('fs-extra');
2021
2034
  var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
2022
2035
  async function typiaExecutorFn(options, _, config) {
2023
2036
  if (options.clean !== false) {
2024
- _chunkFNE7DP2Djs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
2037
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
2025
2038
  _fsextra.removeSync.call(void 0, options.outputPath);
2026
2039
  }
2027
2040
  await Promise.all(options.entry.map((entry) => {
2028
- _chunkFNE7DP2Djs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
2041
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
2029
2042
  return _TypiaProgrammerjs.TypiaProgrammer.build({
2030
2043
  input: entry,
2031
2044
  output: options.outputPath,
@@ -2056,8 +2069,8 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
2056
2069
 
2057
2070
  var _jiti = require('jiti');
2058
2071
  async function unbuildExecutorFn(options, context2, config) {
2059
- _chunkFNE7DP2Djs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
2060
- if (!_optionalChain([context2, 'access', _100 => _100.projectsConfigurations, 'optionalAccess', _101 => _101.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
2072
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
2073
+ if (!_optionalChain([context2, 'access', _113 => _113.projectsConfigurations, 'optionalAccess', _114 => _114.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
2061
2074
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
2062
2075
  }
2063
2076
  if (!context2.projectsConfigurations.projects[context2.projectName].root) {
@@ -2067,7 +2080,7 @@ async function unbuildExecutorFn(options, context2, config) {
2067
2080
  throw new Error("The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory.");
2068
2081
  }
2069
2082
  const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
2070
- fsCache: config.skipCache ? false : _chunkFNE7DP2Djs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
2083
+ fsCache: config.skipCache ? false : _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
2071
2084
  interopDefault: true
2072
2085
  });
2073
2086
  const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
@@ -2080,7 +2093,7 @@ async function unbuildExecutorFn(options, context2, config) {
2080
2093
  }, {
2081
2094
  stubOptions: {
2082
2095
  jiti: {
2083
- fsCache: config.skipCache ? false : _chunkFNE7DP2Djs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
2096
+ fsCache: config.skipCache ? false : _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
2084
2097
  }
2085
2098
  },
2086
2099
  rollup: {
@@ -2127,58 +2140,58 @@ var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExec
2127
2140
  var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name, generatorFn, generatorOptions = {
2128
2141
  skipReadingConfig: false
2129
2142
  }) => async (tree, _options) => {
2130
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, name);
2143
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, name);
2131
2144
  let options = _options;
2132
2145
  let config;
2133
2146
  try {
2134
- _chunkFNE7DP2Djs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
2147
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
2135
2148
 
2136
2149
  `, config);
2137
- const workspaceRoot3 = _chunkFNE7DP2Djs.findWorkspaceRoot.call(void 0, );
2150
+ const workspaceRoot3 = _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, );
2138
2151
  if (!generatorOptions.skipReadingConfig) {
2139
- _chunkFNE7DP2Djs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
2152
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
2140
2153
  - workspaceRoot: ${workspaceRoot3}`, config);
2141
- config = await _chunkOO2KFXL5js.getConfig.call(void 0, workspaceRoot3);
2154
+ config = await _chunkBRNE2OJCjs.getConfig.call(void 0, workspaceRoot3);
2142
2155
  }
2143
- if (_optionalChain([generatorOptions, 'optionalAccess', _102 => _102.hooks, 'optionalAccess', _103 => _103.applyDefaultOptions])) {
2144
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
2156
+ if (_optionalChain([generatorOptions, 'optionalAccess', _115 => _115.hooks, 'optionalAccess', _116 => _116.applyDefaultOptions])) {
2157
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
2145
2158
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
2146
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
2159
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
2147
2160
  }
2148
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
2161
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
2149
2162
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
2150
2163
  const tokenized = await applyWorkspaceTokens(options, {
2151
2164
  workspaceRoot: tree.root,
2152
2165
  config
2153
2166
  }, applyWorkspaceBaseTokens);
2154
- if (_optionalChain([generatorOptions, 'optionalAccess', _104 => _104.hooks, 'optionalAccess', _105 => _105.preProcess])) {
2155
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Running the preProcess hook...", config);
2167
+ if (_optionalChain([generatorOptions, 'optionalAccess', _117 => _117.hooks, 'optionalAccess', _118 => _118.preProcess])) {
2168
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
2156
2169
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
2157
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Completed the preProcess hook", config);
2170
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
2158
2171
  }
2159
2172
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
2160
2173
  if (result) {
2161
- if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _106 => _106.error, 'optionalAccess', _107 => _107.message]) && typeof _optionalChain([result, 'optionalAccess', _108 => _108.error, 'optionalAccess', _109 => _109.message]) === "string" && _optionalChain([result, 'optionalAccess', _110 => _110.error, 'optionalAccess', _111 => _111.name]) && typeof _optionalChain([result, 'optionalAccess', _112 => _112.error, 'optionalAccess', _113 => _113.name]) === "string") {
2174
+ if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _119 => _119.error, 'optionalAccess', _120 => _120.message]) && typeof _optionalChain([result, 'optionalAccess', _121 => _121.error, 'optionalAccess', _122 => _122.message]) === "string" && _optionalChain([result, 'optionalAccess', _123 => _123.error, 'optionalAccess', _124 => _124.name]) && typeof _optionalChain([result, 'optionalAccess', _125 => _125.error, 'optionalAccess', _126 => _126.name]) === "string") {
2162
2175
  throw new Error(`The ${name} generator failed to run`, {
2163
- cause: _optionalChain([result, 'optionalAccess', _114 => _114.error])
2176
+ cause: _optionalChain([result, 'optionalAccess', _127 => _127.error])
2164
2177
  });
2165
2178
  } else if (result.success && result.data) {
2166
2179
  return result;
2167
2180
  }
2168
2181
  }
2169
- if (_optionalChain([generatorOptions, 'optionalAccess', _115 => _115.hooks, 'optionalAccess', _116 => _116.postProcess])) {
2170
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2182
+ if (_optionalChain([generatorOptions, 'optionalAccess', _128 => _128.hooks, 'optionalAccess', _129 => _129.postProcess])) {
2183
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2171
2184
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
2172
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Completed the postProcess hook", config);
2185
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
2173
2186
  }
2174
2187
  return () => {
2175
- _chunkFNE7DP2Djs.writeSuccess.call(void 0, `Completed running the ${name} generator!
2188
+ _chunkX6VJDRKIjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
2176
2189
  `, config);
2177
2190
  };
2178
2191
  } catch (error) {
2179
2192
  return () => {
2180
- _chunkFNE7DP2Djs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
2181
- _chunkFNE7DP2Djs.writeError.call(void 0, `An exception was thrown in the generator's process
2193
+ _chunkX6VJDRKIjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
2194
+ _chunkX6VJDRKIjs.writeError.call(void 0, `An exception was thrown in the generator's process
2182
2195
  - Details: ${error.message}
2183
2196
  - Stacktrace: ${error.stack}`, config);
2184
2197
  };
@@ -2224,7 +2237,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2224
2237
  const projectConfig = {
2225
2238
  root: normalized.directory,
2226
2239
  projectType: "library",
2227
- sourceRoot: _chunkFNE7DP2Djs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
2240
+ sourceRoot: _chunkX6VJDRKIjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
2228
2241
  targets: {
2229
2242
  build: {
2230
2243
  executor: options.buildExecutor,
@@ -2233,11 +2246,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2233
2246
  ],
2234
2247
  options: {
2235
2248
  entry: [
2236
- _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
2249
+ _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
2237
2250
  ],
2238
2251
  outputPath: getOutputPath(normalized),
2239
- tsconfig: _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
2240
- project: _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
2252
+ tsconfig: _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
2253
+ project: _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
2241
2254
  defaultConfiguration: "production",
2242
2255
  platform: "neutral",
2243
2256
  assets: [
@@ -2276,22 +2289,22 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2276
2289
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
2277
2290
  let repository = {
2278
2291
  type: "github",
2279
- url: _optionalChain([config, 'optionalAccess', _117 => _117.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _118 => _118.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _119 => _119.namespace]) || _optionalChain([config, 'optionalAccess', _120 => _120.name]) || "repository"}.git`
2292
+ url: _optionalChain([config, 'optionalAccess', _130 => _130.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _131 => _131.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _132 => _132.namespace]) || _optionalChain([config, 'optionalAccess', _133 => _133.name]) || "repository"}.git`
2280
2293
  };
2281
2294
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
2282
2295
  if (tree.exists("package.json")) {
2283
2296
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2284
- if (_optionalChain([packageJson, 'optionalAccess', _121 => _121.repository])) {
2297
+ if (_optionalChain([packageJson, 'optionalAccess', _134 => _134.repository])) {
2285
2298
  repository = packageJson.repository;
2286
2299
  }
2287
- if (_optionalChain([packageJson, 'optionalAccess', _122 => _122.description])) {
2300
+ if (_optionalChain([packageJson, 'optionalAccess', _135 => _135.description])) {
2288
2301
  description = packageJson.description;
2289
2302
  }
2290
2303
  }
2291
2304
  if (!normalized.importPath) {
2292
2305
  normalized.importPath = normalized.name;
2293
2306
  }
2294
- const packageJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
2307
+ const packageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
2295
2308
  if (tree.exists(packageJsonPath)) {
2296
2309
  _devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
2297
2310
  if (!normalized.importPath) {
@@ -2339,30 +2352,30 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2339
2352
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
2340
2353
  ...json,
2341
2354
  pnpm: {
2342
- ..._optionalChain([json, 'optionalAccess', _123 => _123.pnpm]),
2355
+ ..._optionalChain([json, 'optionalAccess', _136 => _136.pnpm]),
2343
2356
  overrides: {
2344
- ..._optionalChain([json, 'optionalAccess', _124 => _124.pnpm, 'optionalAccess', _125 => _125.overrides]),
2357
+ ..._optionalChain([json, 'optionalAccess', _137 => _137.pnpm, 'optionalAccess', _138 => _138.overrides]),
2345
2358
  [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
2346
2359
  }
2347
2360
  }
2348
2361
  }));
2349
2362
  }
2350
2363
  _js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
2351
- _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
2364
+ _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
2352
2365
  ]);
2353
- _js.addTsConfigPath.call(void 0, tree, _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.importPath, "/*"), [
2354
- _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
2366
+ _js.addTsConfigPath.call(void 0, tree, _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
2367
+ _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
2355
2368
  ]);
2356
2369
  if (tree.exists("package.json")) {
2357
2370
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2358
- if (_optionalChain([packageJson, 'optionalAccess', _126 => _126.repository])) {
2371
+ if (_optionalChain([packageJson, 'optionalAccess', _139 => _139.repository])) {
2359
2372
  repository = packageJson.repository;
2360
2373
  }
2361
- if (_optionalChain([packageJson, 'optionalAccess', _127 => _127.description])) {
2374
+ if (_optionalChain([packageJson, 'optionalAccess', _140 => _140.description])) {
2362
2375
  description = packageJson.description;
2363
2376
  }
2364
2377
  }
2365
- const tsconfigPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
2378
+ const tsconfigPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
2366
2379
  if (tree.exists(tsconfigPath)) {
2367
2380
  _devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
2368
2381
  json.composite ??= true;
@@ -2400,42 +2413,42 @@ function getOutputPath(options) {
2400
2413
  } else {
2401
2414
  parts.push(options.projectRoot);
2402
2415
  }
2403
- return _chunkFNE7DP2Djs.joinPaths.call(void 0, ...parts);
2416
+ return _chunkX6VJDRKIjs.joinPaths.call(void 0, ...parts);
2404
2417
  }
2405
2418
  _chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
2406
2419
  function createProjectTsConfigJson(tree, options) {
2407
2420
  const tsconfig = {
2408
2421
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
2409
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _128 => _128.tsconfigOptions]), () => ( {})),
2422
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _141 => _141.tsconfigOptions]), () => ( {})),
2410
2423
  compilerOptions: {
2411
2424
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
2412
- outDir: _chunkFNE7DP2Djs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2425
+ outDir: _chunkX6VJDRKIjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2413
2426
  noEmit: true,
2414
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _129 => _129.tsconfigOptions, 'optionalAccess', _130 => _130.compilerOptions]), () => ( {}))
2427
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _142 => _142.tsconfigOptions, 'optionalAccess', _143 => _143.compilerOptions]), () => ( {}))
2415
2428
  },
2416
2429
  files: [
2417
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _131 => _131.tsconfigOptions, 'optionalAccess', _132 => _132.files]), () => ( []))
2430
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _144 => _144.tsconfigOptions, 'optionalAccess', _145 => _145.files]), () => ( []))
2418
2431
  ],
2419
2432
  include: [
2420
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _133 => _133.tsconfigOptions, 'optionalAccess', _134 => _134.include]), () => ( [])),
2433
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _146 => _146.tsconfigOptions, 'optionalAccess', _147 => _147.include]), () => ( [])),
2421
2434
  "src/**/*.ts",
2422
2435
  "src/**/*.js",
2423
2436
  "bin/**/*"
2424
2437
  ],
2425
2438
  exclude: [
2426
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _135 => _135.tsconfigOptions, 'optionalAccess', _136 => _136.exclude]), () => ( [])),
2439
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _148 => _148.tsconfigOptions, 'optionalAccess', _149 => _149.exclude]), () => ( [])),
2427
2440
  "jest.config.ts",
2428
2441
  "src/**/*.spec.ts",
2429
2442
  "src/**/*.test.ts"
2430
2443
  ]
2431
2444
  };
2432
- _devkit.writeJson.call(void 0, tree, _chunkFNE7DP2Djs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2445
+ _devkit.writeJson.call(void 0, tree, _chunkX6VJDRKIjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2433
2446
  }
2434
2447
  _chunkJ5SB6L2Ljs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
2435
2448
  async function normalizeOptions(tree, options, config) {
2436
2449
  let importPath = options.importPath;
2437
- if (!importPath && _optionalChain([config, 'optionalAccess', _137 => _137.namespace])) {
2438
- importPath = `@${_optionalChain([config, 'optionalAccess', _138 => _138.namespace])}/${options.name}`;
2450
+ if (!importPath && _optionalChain([config, 'optionalAccess', _150 => _150.namespace])) {
2451
+ importPath = `@${_optionalChain([config, 'optionalAccess', _151 => _151.namespace])}/${options.name}`;
2439
2452
  }
2440
2453
  if (options.publishable) {
2441
2454
  if (!importPath) {
@@ -2481,14 +2494,15 @@ async function normalizeOptions(tree, options, config) {
2481
2494
  projectRoot,
2482
2495
  parsedTags: options.tags ? options.tags.split(",").map((s) => s.trim()) : [],
2483
2496
  importPath: normalizedImportPath,
2484
- rootProject
2497
+ rootProject,
2498
+ shouldUseSwcJest: false
2485
2499
  };
2486
2500
  }
2487
2501
  _chunkJ5SB6L2Ljs.__name.call(void 0, normalizeOptions, "normalizeOptions");
2488
2502
 
2489
2503
  // ../workspace-tools/src/generators/browser-library/generator.ts
2490
2504
  async function browserLibraryGeneratorFn(tree, schema, config) {
2491
- const filesDir = _chunkFNE7DP2Djs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
2505
+ const filesDir = _chunkX6VJDRKIjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
2492
2506
  const tsLibraryGeneratorOptions = {
2493
2507
  buildExecutor: "@storm-software/workspace-tools:unbuild",
2494
2508
  platform: "browser",
@@ -2560,19 +2574,19 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
2560
2574
 
2561
2575
  var _zodtojsonschema = require('zod-to-json-schema');
2562
2576
  async function configSchemaGeneratorFn(tree, options, config) {
2563
- _chunkFNE7DP2Djs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
2564
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
2565
- const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkFNE7DP2Djs.StormConfigSchema, {
2577
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
2578
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
2579
+ const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkX6VJDRKIjs.StormConfigSchema, {
2566
2580
  name: "StormWorkspaceConfiguration"
2567
2581
  });
2568
- _chunkFNE7DP2Djs.writeTrace.call(void 0, jsonSchema, config);
2569
- const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _139 => _139.workspaceRoot]), () => ( _chunkFNE7DP2Djs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _140 => _140.outputFile, 'optionalAccess', _141 => _141.startsWith, 'call', _142 => _142("./")]) ? "" : "./");
2570
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2582
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, jsonSchema, config);
2583
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _152 => _152.workspaceRoot]), () => ( _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _153 => _153.outputFile, 'optionalAccess', _154 => _154.startsWith, 'call', _155 => _155("./")]) ? "" : "./");
2584
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2571
2585
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
2572
2586
  spaces: 2
2573
2587
  });
2574
2588
  await _devkit.formatFiles.call(void 0, tree);
2575
- _chunkFNE7DP2Djs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2589
+ _chunkX6VJDRKIjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2576
2590
  return {
2577
2591
  success: true
2578
2592
  };
@@ -2593,7 +2607,7 @@ var generator_default2 = withRunGenerator("Configuration Schema Creator", config
2593
2607
  // ../workspace-tools/src/generators/neutral-library/generator.ts
2594
2608
 
2595
2609
  async function neutralLibraryGeneratorFn(tree, schema, config) {
2596
- const filesDir = _chunkFNE7DP2Djs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
2610
+ const filesDir = _chunkX6VJDRKIjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
2597
2611
  const tsLibraryGeneratorOptions = {
2598
2612
  ...schema,
2599
2613
  platform: "neutral",
@@ -2636,7 +2650,7 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
2636
2650
  // ../workspace-tools/src/generators/node-library/generator.ts
2637
2651
 
2638
2652
  async function nodeLibraryGeneratorFn(tree, schema, config) {
2639
- const filesDir = _chunkFNE7DP2Djs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
2653
+ const filesDir = _chunkX6VJDRKIjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
2640
2654
  const tsLibraryGeneratorOptions = {
2641
2655
  platform: "node",
2642
2656
  devDependencies: {