@storm-software/cloudflare-tools 0.55.60 → 0.55.62

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 (39) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-QHEOKFFX.mjs → chunk-2AZUPILA.mjs} +3 -3
  4. package/dist/{chunk-LLLAUEYO.js → chunk-2P6I2JBP.js} +1 -1
  5. package/dist/{chunk-PXZTPWCU.mjs → chunk-5WRF2CGH.mjs} +186 -23
  6. package/dist/{chunk-QA4RGSAN.js → chunk-BHSLGWRL.js} +334 -171
  7. package/dist/{chunk-4CNZ5PH2.mjs → chunk-MIFPHEJP.mjs} +26 -15
  8. package/dist/{chunk-I3INFEES.js → chunk-MLJ3OSJX.js} +16 -16
  9. package/dist/{chunk-X7PWPJXA.mjs → chunk-NVKJREIU.mjs} +1 -1
  10. package/dist/{chunk-ZRZOBWSJ.mjs → chunk-PU6BBJRF.mjs} +3 -3
  11. package/dist/{chunk-ER3IKRGW.js → chunk-S24WAZG5.js} +12 -12
  12. package/dist/{chunk-WNICDYXY.js → chunk-TEEOPHLZ.js} +1 -1
  13. package/dist/{chunk-DXA6VL3T.js → chunk-UBEHQVYS.js} +3 -3
  14. package/dist/{chunk-U2GYOTAE.js → chunk-XFPT4O23.js} +58 -47
  15. package/dist/{chunk-Q7EDJLEB.mjs → chunk-ZPJS5XUY.mjs} +1 -1
  16. package/dist/{chunk-CRVSAZIS.mjs → chunk-ZXMAG5R6.mjs} +1 -1
  17. package/dist/executors.js +5 -5
  18. package/dist/executors.mjs +5 -5
  19. package/dist/generators.js +5 -5
  20. package/dist/generators.mjs +4 -4
  21. package/dist/index.js +8 -8
  22. package/dist/index.mjs +7 -7
  23. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  24. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  25. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  26. package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
  27. package/dist/src/executors/serve/executor.d.mts +2 -2
  28. package/dist/src/executors/serve/executor.d.ts +2 -2
  29. package/dist/src/executors/serve/executor.js +4 -4
  30. package/dist/src/executors/serve/executor.mjs +3 -3
  31. package/dist/src/generators/init/generator.js +2 -2
  32. package/dist/src/generators/init/generator.mjs +1 -1
  33. package/dist/src/generators/worker/generator.js +5 -5
  34. package/dist/src/generators/worker/generator.mjs +4 -4
  35. package/dist/src/utils/index.js +3 -3
  36. package/dist/src/utils/index.mjs +2 -2
  37. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  38. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  39. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
2
2
 
3
3
 
4
4
  var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
5
5
 
6
6
 
7
- var _chunkU2GYOTAEjs = require('./chunk-U2GYOTAE.js');
7
+ var _chunkXFPT4O23js = require('./chunk-XFPT4O23.js');
8
8
 
9
9
 
10
10
 
@@ -20,7 +20,7 @@ var _chunkU2GYOTAEjs = require('./chunk-U2GYOTAE.js');
20
20
 
21
21
 
22
22
 
23
- var _chunkWNICDYXYjs = require('./chunk-WNICDYXY.js');
23
+ var _chunkTEEOPHLZjs = require('./chunk-TEEOPHLZ.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]))), () => ( _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, ))));
56
+ result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunkTEEOPHLZjs.findWorkspaceRoot.call(void 0, ))));
57
57
  }
58
58
  return result;
59
59
  }, "applyWorkspaceBaseTokens");
@@ -101,35 +101,35 @@ 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 = _chunkWNICDYXYjs.getStopwatch.call(void 0, name);
104
+ const stopwatch = _chunkTEEOPHLZjs.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 = _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, );
111
+ const workspaceRoot3 = _chunkTEEOPHLZjs.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
- _chunkWNICDYXYjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
116
+ _chunkTEEOPHLZjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
117
117
  if (!executorOptions.skipReadingConfig) {
118
- _chunkWNICDYXYjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
118
+ _chunkTEEOPHLZjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
119
119
  - workspaceRoot: ${workspaceRoot3}
120
120
  - projectRoot: ${projectRoot}
121
121
  - sourceRoot: ${sourceRoot}
122
122
  - projectName: ${projectName}
123
123
  `, config);
124
- config = await _chunkU2GYOTAEjs.getConfig.call(void 0, workspaceRoot3);
124
+ config = await _chunkXFPT4O23js.getConfig.call(void 0, workspaceRoot3);
125
125
  }
126
126
  if (_optionalChain([executorOptions, 'optionalAccess', _7 => _7.hooks, 'optionalAccess', _8 => _8.applyDefaultOptions])) {
127
- _chunkWNICDYXYjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
127
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
128
128
  options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
129
- _chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
129
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
130
130
  }
131
- _chunkWNICDYXYjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
132
- ${_chunkWNICDYXYjs.formatLogMessage.call(void 0, options)}
131
+ _chunkTEEOPHLZjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
132
+ ${_chunkTEEOPHLZjs.formatLogMessage.call(void 0, options)}
133
133
  `, config);
134
134
  const tokenized = await applyWorkspaceTokens(options, _defu.defu.call(void 0, {
135
135
  workspaceRoot: workspaceRoot3,
@@ -138,13 +138,13 @@ ${_chunkWNICDYXYjs.formatLogMessage.call(void 0, options)}
138
138
  projectName,
139
139
  config
140
140
  }, config, context2.projectsConfigurations.projects[context2.projectName]), applyWorkspaceProjectTokens);
141
- _chunkWNICDYXYjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
142
- ${_chunkWNICDYXYjs.formatLogMessage.call(void 0, tokenized)}
141
+ _chunkTEEOPHLZjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
142
+ ${_chunkTEEOPHLZjs.formatLogMessage.call(void 0, tokenized)}
143
143
  `, config);
144
144
  if (_optionalChain([executorOptions, 'optionalAccess', _9 => _9.hooks, 'optionalAccess', _10 => _10.preProcess])) {
145
- _chunkWNICDYXYjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
145
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
146
146
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
147
- _chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
147
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
148
148
  }
149
149
  const ret = executorFn(tokenized, context2, config);
150
150
  if (_isFunction(_optionalChain([ret, 'optionalAccess', _11 => _11.next]))) {
@@ -154,26 +154,26 @@ ${_chunkWNICDYXYjs.formatLogMessage.call(void 0, tokenized)}
154
154
  }
155
155
  const result = await Promise.resolve(ret);
156
156
  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")) {
157
- _chunkWNICDYXYjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
158
- ${_chunkWNICDYXYjs.formatLogMessage.call(void 0, result)}`, config);
157
+ _chunkTEEOPHLZjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
158
+ ${_chunkTEEOPHLZjs.formatLogMessage.call(void 0, result)}`, config);
159
159
  console.error(result);
160
160
  throw new Error(`The ${name} executor failed to run`, {
161
161
  cause: _optionalChain([result, 'optionalAccess', _20 => _20.error])
162
162
  });
163
163
  }
164
164
  if (_optionalChain([executorOptions, 'optionalAccess', _21 => _21.hooks, 'optionalAccess', _22 => _22.postProcess])) {
165
- _chunkWNICDYXYjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
165
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
166
166
  await Promise.resolve(executorOptions.hooks.postProcess(config));
167
- _chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
167
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
168
168
  }
169
- _chunkWNICDYXYjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
169
+ _chunkTEEOPHLZjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
170
170
  `, config);
171
171
  return {
172
172
  success: true
173
173
  };
174
174
  } catch (error) {
175
- _chunkWNICDYXYjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
176
- _chunkWNICDYXYjs.writeError.call(void 0, `An exception was thrown in the executor's process
175
+ _chunkTEEOPHLZjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
176
+ _chunkTEEOPHLZjs.writeError.call(void 0, `An exception was thrown in the executor's process
177
177
  - Details: ${error.message}
178
178
  - Stacktrace: ${error.stack}`, config);
179
179
  return {
@@ -476,8 +476,8 @@ var copyAssets = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (con
476
476
  output: "src/"
477
477
  });
478
478
  }
479
- _chunkWNICDYXYjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
480
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkWNICDYXYjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
479
+ _chunkTEEOPHLZjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
480
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkTEEOPHLZjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
481
481
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
482
482
  projectDir: projectRoot,
483
483
  rootDir: config.workspaceRoot,
@@ -486,12 +486,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
486
486
  });
487
487
  await assetHandler.processAllAssetsOnce();
488
488
  if (includeSrc === true) {
489
- _chunkWNICDYXYjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkWNICDYXYjs.joinPaths.call(void 0, outputPath, "src")}`, config);
489
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkTEEOPHLZjs.joinPaths.call(void 0, outputPath, "src")}`, config);
490
490
  const files = await _glob.glob.call(void 0, [
491
- _chunkWNICDYXYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
492
- _chunkWNICDYXYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
493
- _chunkWNICDYXYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
494
- _chunkWNICDYXYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
491
+ _chunkTEEOPHLZjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
492
+ _chunkTEEOPHLZjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
493
+ _chunkTEEOPHLZjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
494
+ _chunkTEEOPHLZjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
495
495
  ]);
496
496
  await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
497
497
 
@@ -514,7 +514,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
514
514
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _29 => _29.node, 'access', _30 => _30.data, 'optionalAccess', _31 => _31.root]) !== projectRoot && _optionalChain([dep, 'access', _32 => _32.node, 'access', _33 => _33.data, 'optionalAccess', _34 => _34.root]) !== workspaceRoot3)) {
515
515
  const projectNode = project.node;
516
516
  if (projectNode.data.root) {
517
- const projectPackageJsonPath = _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
517
+ const projectPackageJsonPath = _chunkTEEOPHLZjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
518
518
  if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
519
519
  const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
520
520
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
@@ -525,8 +525,8 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
525
525
  }
526
526
  }
527
527
  if (localPackages.length > 0) {
528
- _chunkWNICDYXYjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
529
- const projectJsonFile = await _promises.readFile.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
528
+ _chunkTEEOPHLZjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
529
+ const projectJsonFile = await _promises.readFile.call(void 0, _chunkTEEOPHLZjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
530
530
  const projectJson = JSON.parse(projectJsonFile);
531
531
  const projectName2 = projectJson.name;
532
532
  const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
@@ -535,7 +535,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
535
535
  }
536
536
  const implicitDependencies = _optionalChain([projectConfigurations, 'access', _37 => _37.projects, 'optionalAccess', _38 => _38[projectName2], 'access', _39 => _39.implicitDependencies, 'optionalAccess', _40 => _40.reduce, 'call', _41 => _41((ret, dep) => {
537
537
  if (_optionalChain([projectConfigurations, 'access', _42 => _42.projects, 'optionalAccess', _43 => _43[dep]])) {
538
- const depPackageJsonPath = _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
538
+ const depPackageJsonPath = _chunkTEEOPHLZjs.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
539
539
  if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
540
540
  const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
541
541
  const depPackageJson = JSON.parse(depPackageJsonContent);
@@ -559,13 +559,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
559
559
  return ret;
560
560
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
561
561
  } else {
562
- _chunkWNICDYXYjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
562
+ _chunkTEEOPHLZjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
563
563
  }
564
564
  return packageJson;
565
565
  }, "addPackageDependencies");
566
566
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
567
- const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, );
568
- const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
567
+ const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkTEEOPHLZjs.findWorkspaceRoot.call(void 0, );
568
+ const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkTEEOPHLZjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
569
569
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
570
570
  packageJson.type ??= "module";
571
571
  packageJson.sideEffects ??= false;
@@ -574,7 +574,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call
574
574
  if (distSrc.startsWith("/")) {
575
575
  distSrc = distSrc.substring(1);
576
576
  }
577
- packageJson.source ??= `${_chunkWNICDYXYjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
577
+ packageJson.source ??= `${_chunkTEEOPHLZjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
578
578
  }
579
579
  packageJson.files ??= [
580
580
  "dist/**/*"
@@ -605,7 +605,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call
605
605
  ];
606
606
  }
607
607
  packageJson.repository ??= workspacePackageJson.repository;
608
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkWNICDYXYjs.joinPaths.call(void 0, "packages", projectName);
608
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkTEEOPHLZjs.joinPaths.call(void 0, "packages", projectName);
609
609
  return packageJson;
610
610
  }, "addWorkspacePackageJsonFields");
611
611
 
@@ -910,7 +910,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (option
910
910
  setup(build4) {
911
911
  build4.onEnd((result) => {
912
912
  if (result.errors.length > 0 && process.env.WATCH !== "true") {
913
- _chunkWNICDYXYjs.writeError.call(void 0, `The following errors occurred during the build:
913
+ _chunkTEEOPHLZjs.writeError.call(void 0, `The following errors occurred during the build:
914
914
  ${result.errors.map((error) => error.text).join("\n")}
915
915
 
916
916
  `, resolvedOptions.config);
@@ -945,7 +945,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
945
945
  var resolvePathsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, resolvedOptions) => ({
946
946
  name: "storm:resolve-paths",
947
947
  setup(build4) {
948
- const parentTsConfig = build4.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build4.initialOptions.tsconfig)) : _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
948
+ const parentTsConfig = build4.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkTEEOPHLZjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build4.initialOptions.tsconfig)) : _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkTEEOPHLZjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
949
949
  const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
950
950
  const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
951
951
  build4.onResolve({
@@ -969,7 +969,7 @@ var _apiextractor = require('@microsoft/api-extractor');
969
969
 
970
970
 
971
971
  function bundleTypeDefinitions(filename, outfile, externals, options) {
972
- const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
972
+ const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkTEEOPHLZjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
973
973
  const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
974
974
  p,
975
975
  getTypeDependencyPackageName(p)
@@ -1005,13 +1005,13 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
1005
1005
  },
1006
1006
  dtsRollup: {
1007
1007
  enabled: true,
1008
- untrimmedFilePath: _chunkWNICDYXYjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
1008
+ untrimmedFilePath: _chunkTEEOPHLZjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
1009
1009
  },
1010
1010
  tsdocMetadata: {
1011
1011
  enabled: false
1012
1012
  }
1013
1013
  },
1014
- packageJsonFullPath: _chunkWNICDYXYjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
1014
+ packageJsonFullPath: _chunkTEEOPHLZjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
1015
1015
  configObjectFullPath: void 0
1016
1016
  });
1017
1017
  const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
@@ -1019,7 +1019,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
1019
1019
  localBuild: true
1020
1020
  });
1021
1021
  if (extractorResult.succeeded === false) {
1022
- _chunkWNICDYXYjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
1022
+ _chunkTEEOPHLZjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
1023
1023
  throw new Error("API Extractor completed with errors");
1024
1024
  }
1025
1025
  }
@@ -1027,7 +1027,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, bundleTypeDefinitions, "bundleTypeDefinitio
1027
1027
  var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, resolvedOptions) => ({
1028
1028
  name: "storm:tsc",
1029
1029
  setup(build4) {
1030
- if (options.emitTypes === false) {
1030
+ if (options.dts === false) {
1031
1031
  return;
1032
1032
  }
1033
1033
  build4.onStart(async () => {
@@ -1038,12 +1038,12 @@ var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, r
1038
1038
  const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
1039
1039
  const typeOutDir = resolvedOptions.outdir;
1040
1040
  const entryPoint = resolvedOptions.entryPoints[0].in.replace(sourceRoot, "").replace(/\.ts$/, "");
1041
- const bundlePath = _chunkWNICDYXYjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
1041
+ const bundlePath = _chunkTEEOPHLZjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
1042
1042
  let dtsPath;
1043
- if (_fs.existsSync.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1044
- dtsPath = _chunkWNICDYXYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
1045
- } else if (_fs.existsSync.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1046
- dtsPath = _chunkWNICDYXYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
1043
+ if (_fs.existsSync.call(void 0, _chunkTEEOPHLZjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1044
+ dtsPath = _chunkTEEOPHLZjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
1045
+ } else if (_fs.existsSync.call(void 0, _chunkTEEOPHLZjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1046
+ dtsPath = _chunkTEEOPHLZjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
1047
1047
  }
1048
1048
  const ext = resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
1049
1049
  if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
@@ -1079,7 +1079,7 @@ var getDefaultBuildPlugins = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
1079
1079
  var DEFAULT_BUILD_OPTIONS = {
1080
1080
  platform: "node",
1081
1081
  target: "node22",
1082
- format: "cjs",
1082
+ format: "esm",
1083
1083
  external: [],
1084
1084
  logLevel: "error",
1085
1085
  tsconfig: "tsconfig.json",
@@ -1207,8 +1207,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (bund
1207
1207
  const filteredMissingDeps = missingDependencies.filter((dep) => {
1208
1208
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
1209
1209
  });
1210
- _chunkWNICDYXYjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1211
- _chunkWNICDYXYjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1210
+ _chunkTEEOPHLZjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1211
+ _chunkTEEOPHLZjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1212
1212
  if (filteredMissingDeps.length > 0) {
1213
1213
  throw new Error(`Missing dependencies detected - please install them:
1214
1214
  ${JSON.stringify(filteredMissingDeps)}
@@ -1228,10 +1228,159 @@ var shebangRenderer = {
1228
1228
  }
1229
1229
  };
1230
1230
 
1231
+ // ../esbuild/src/tsc.ts
1232
+ var _bundlerequire = require('bundle-require');
1233
+
1234
+
1235
+
1236
+ var _typescript = require('typescript'); var _typescript2 = _interopRequireDefault(_typescript);
1237
+ function ensureTempDeclarationDir(workspaceConfig) {
1238
+ const root = workspaceConfig.directories.temp || _path.join.call(void 0, workspaceConfig.workspaceRoot, "tmp");
1239
+ const dirPath = _path.join.call(void 0, root, ".tsc", "declaration");
1240
+ if (_fs.existsSync.call(void 0, dirPath)) {
1241
+ return dirPath;
1242
+ }
1243
+ _fs.mkdirSync.call(void 0, dirPath, {
1244
+ recursive: true
1245
+ });
1246
+ const gitIgnorePath = _path.join.call(void 0, root, ".tsc", ".gitignore");
1247
+ _fs.writeFileSync.call(void 0, gitIgnorePath, "**/*\n");
1248
+ return dirPath;
1249
+ }
1250
+ _chunkJ5SB6L2Ljs.__name.call(void 0, ensureTempDeclarationDir, "ensureTempDeclarationDir");
1251
+ function slash(path7) {
1252
+ const isExtendedLengthPath = path7.startsWith("\\\\?\\");
1253
+ if (isExtendedLengthPath) {
1254
+ return path7;
1255
+ }
1256
+ return path7.replace(/\\/g, "/");
1257
+ }
1258
+ _chunkJ5SB6L2Ljs.__name.call(void 0, slash, "slash");
1259
+ function toAbsolutePath(workspaceConfig, p, cwd) {
1260
+ if (_path.isAbsolute.call(void 0, p)) {
1261
+ return p;
1262
+ }
1263
+ return slash(_path.normalize.call(void 0, _path.join.call(void 0, cwd || workspaceConfig.workspaceRoot, p)));
1264
+ }
1265
+ _chunkJ5SB6L2Ljs.__name.call(void 0, toAbsolutePath, "toAbsolutePath");
1266
+ var AliasPool = (_class = class AliasPool2 {constructor() { _class.prototype.__init.call(this); }
1267
+ static {
1268
+ _chunkJ5SB6L2Ljs.__name.call(void 0, this, "AliasPool");
1269
+ }
1270
+ __init() {this.seen = /* @__PURE__ */ new Set()}
1271
+ assign(name) {
1272
+ let suffix = 0;
1273
+ let alias = name === "default" ? "default_alias" : name;
1274
+ while (this.seen.has(alias)) {
1275
+ alias = `${name}_alias_${++suffix}`;
1276
+ if (suffix >= 1e3) {
1277
+ throw new Error("Alias generation exceeded limit. Possible infinite loop detected.");
1278
+ }
1279
+ }
1280
+ this.seen.add(alias);
1281
+ return alias;
1282
+ }
1283
+ }, _class);
1284
+ function getExports(workspaceConfig, program, fileMapping) {
1285
+ const checker = program.getTypeChecker();
1286
+ const aliasPool = new AliasPool();
1287
+ const assignAlias = aliasPool.assign.bind(aliasPool);
1288
+ function extractExports(sourceFileName) {
1289
+ const cwd = program.getCurrentDirectory();
1290
+ sourceFileName = toAbsolutePath(workspaceConfig, sourceFileName, cwd);
1291
+ const sourceFile = program.getSourceFile(sourceFileName);
1292
+ if (!sourceFile) {
1293
+ return [];
1294
+ }
1295
+ const destFileName = fileMapping.get(sourceFileName);
1296
+ if (!destFileName) {
1297
+ return [];
1298
+ }
1299
+ const moduleSymbol = checker.getSymbolAtLocation(sourceFile);
1300
+ if (!moduleSymbol) {
1301
+ return [];
1302
+ }
1303
+ const exports = [];
1304
+ const exportSymbols = checker.getExportsOfModule(moduleSymbol);
1305
+ exportSymbols.forEach((symbol) => {
1306
+ const name = symbol.getName();
1307
+ exports.push({
1308
+ kind: "named",
1309
+ sourceFileName,
1310
+ destFileName,
1311
+ name,
1312
+ alias: assignAlias(name),
1313
+ isTypeOnly: false
1314
+ });
1315
+ });
1316
+ return exports;
1317
+ }
1318
+ _chunkJ5SB6L2Ljs.__name.call(void 0, extractExports, "extractExports");
1319
+ return program.getRootFileNames().flatMap(extractExports);
1320
+ }
1321
+ _chunkJ5SB6L2Ljs.__name.call(void 0, getExports, "getExports");
1322
+ function emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles = true, customTransformers) {
1323
+ const fileMapping = /* @__PURE__ */ new Map();
1324
+ const writeFile3 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (fileName, text, writeByteOrderMark, onError, sourceFiles, data) => {
1325
+ const sourceFile = _optionalChain([sourceFiles, 'optionalAccess', _73 => _73[0]]);
1326
+ const sourceFileName = _optionalChain([sourceFile, 'optionalAccess', _74 => _74.fileName]);
1327
+ if (sourceFileName && !fileName.endsWith(".map")) {
1328
+ const cwd = program.getCurrentDirectory();
1329
+ fileMapping.set(toAbsolutePath(workspaceConfig, sourceFileName, cwd), toAbsolutePath(workspaceConfig, fileName, cwd));
1330
+ }
1331
+ return host.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
1332
+ }, "writeFile");
1333
+ const emitResult = program.emit(void 0, writeFile3, void 0, emitOnlyDtsFiles, customTransformers);
1334
+ const diagnostics = _typescript2.default.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
1335
+ const diagnosticMessages = [];
1336
+ diagnostics.forEach((diagnostic) => {
1337
+ if (diagnostic.file) {
1338
+ const { line, character } = _typescript2.default.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start);
1339
+ const message = _typescript2.default.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
1340
+ diagnosticMessages.push(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
1341
+ } else {
1342
+ const message = _typescript2.default.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
1343
+ diagnosticMessages.push(message);
1344
+ }
1345
+ });
1346
+ const diagnosticMessage = diagnosticMessages.join("\n");
1347
+ if (diagnosticMessage) {
1348
+ _chunkTEEOPHLZjs.writeError.call(void 0, `Failed to emit declaration files.
1349
+
1350
+ ${diagnosticMessage}`, workspaceConfig);
1351
+ throw new Error("TypeScript compilation failed");
1352
+ }
1353
+ return fileMapping;
1354
+ }
1355
+ _chunkJ5SB6L2Ljs.__name.call(void 0, emitDtsFiles, "emitDtsFiles");
1356
+ function emitDts(workspaceConfig, tsconfig, tsconfigRaw, emitOnlyDtsFiles = true, customTransformers) {
1357
+ const rawTsconfig = _bundlerequire.loadTsConfig.call(void 0, workspaceConfig.workspaceRoot, tsconfig);
1358
+ if (!rawTsconfig) {
1359
+ throw new Error(`Unable to find ${tsconfig || "tsconfig.json"} in ${workspaceConfig.workspaceRoot}`);
1360
+ }
1361
+ const declarationDir = ensureTempDeclarationDir(workspaceConfig);
1362
+ const parsedTsconfig = _typescript2.default.parseJsonConfigFileContent(_defu2.default.call(void 0, {
1363
+ compilerOptions: {
1364
+ // Enable declaration emit and disable javascript emit
1365
+ noEmit: false,
1366
+ declaration: true,
1367
+ declarationMap: true,
1368
+ declarationDir,
1369
+ emitDeclarationOnly: true
1370
+ }
1371
+ }, _nullishCoalesce(_optionalChain([tsconfigRaw, 'optionalAccess', _75 => _75.compilerOptions]), () => ( {})), _nullishCoalesce(rawTsconfig.data, () => ( {}))), _typescript2.default.sys, tsconfig ? _path.dirname.call(void 0, tsconfig) : "./");
1372
+ const options = parsedTsconfig.options;
1373
+ const host = _typescript2.default.createCompilerHost(options);
1374
+ const program = _typescript2.default.createProgram(parsedTsconfig.fileNames, options, host);
1375
+ const fileMapping = emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles, customTransformers);
1376
+ return getExports(workspaceConfig, program, fileMapping);
1377
+ }
1378
+ _chunkJ5SB6L2Ljs.__name.call(void 0, emitDts, "emitDts");
1379
+
1231
1380
  // ../esbuild/src/utilities/get-entry-points.ts
1232
1381
 
1233
1382
  var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
1234
- const workspaceRoot3 = config.workspaceRoot || _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, );
1383
+ const workspaceRoot3 = config.workspaceRoot || _chunkTEEOPHLZjs.findWorkspaceRoot.call(void 0, );
1235
1384
  const entryPoints = [];
1236
1385
  if (entry) {
1237
1386
  if (typeof entry === "string") {
@@ -1262,8 +1411,8 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1262
1411
  }
1263
1412
  if (emitOnAll) {
1264
1413
  entryPoints.push({
1265
- in: _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"),
1266
- out: _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}")
1414
+ in: _chunkTEEOPHLZjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"),
1415
+ out: _chunkTEEOPHLZjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}")
1267
1416
  });
1268
1417
  }
1269
1418
  const results = await Promise.all(entryPoints.map(async (entryPoint) => {
@@ -1276,9 +1425,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1276
1425
  ]
1277
1426
  });
1278
1427
  paths.push(...files.reduce((ret, filePath) => {
1279
- const result = _chunkWNICDYXYjs.correctPaths.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkWNICDYXYjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkWNICDYXYjs.correctPaths.call(void 0, projectRoot), ""));
1428
+ const result = _chunkTEEOPHLZjs.correctPaths.call(void 0, _chunkTEEOPHLZjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkTEEOPHLZjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkTEEOPHLZjs.correctPaths.call(void 0, projectRoot), ""));
1280
1429
  if (result) {
1281
- _chunkWNICDYXYjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkWNICDYXYjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
1430
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkTEEOPHLZjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
1282
1431
  if (!paths.some((p) => p.in === result)) {
1283
1432
  paths.push({
1284
1433
  in: result,
@@ -1289,7 +1438,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1289
1438
  return ret;
1290
1439
  }, []));
1291
1440
  } else {
1292
- _chunkWNICDYXYjs.writeDebug.call(void 0, `Adding ESBuild entry point
1441
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, `Adding ESBuild entry point
1293
1442
  - Input: ${entryPoint.in}
1294
1443
  - Output: ${entryPoint.out}`, config);
1295
1444
  if (!paths.some((p) => p.out === entryPoint.out)) {
@@ -1356,7 +1505,7 @@ function pipeSync(fn, ...fns) {
1356
1505
  return (...args) => {
1357
1506
  let result = fn(...args);
1358
1507
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1359
- result = _optionalChain([fns, 'access', _73 => _73[i], 'optionalCall', _74 => _74(result)]);
1508
+ result = _optionalChain([fns, 'access', _76 => _76[i], 'optionalCall', _77 => _77(result)]);
1360
1509
  }
1361
1510
  return result;
1362
1511
  };
@@ -1366,7 +1515,7 @@ function pipeAsync(fn, ...fns) {
1366
1515
  return async (...args) => {
1367
1516
  let result = await fn(...args);
1368
1517
  for (let i = 0; result !== skip && i < fns.length; ++i) {
1369
- result = await _optionalChain([fns, 'access', _75 => _75[i], 'optionalCall', _76 => _76(result)]);
1518
+ result = await _optionalChain([fns, 'access', _78 => _78[i], 'optionalCall', _79 => _79(result)]);
1370
1519
  }
1371
1520
  return result;
1372
1521
  };
@@ -1382,13 +1531,13 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1382
1531
  if (!workspaceRoot3) {
1383
1532
  throw new Error("Cannot find Nx workspace root");
1384
1533
  }
1385
- const config = await _chunkU2GYOTAEjs.getConfig.call(void 0, workspaceRoot3.dir);
1386
- _chunkWNICDYXYjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1387
- const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, "Build options resolution");
1534
+ const config = await _chunkXFPT4O23js.getConfig.call(void 0, workspaceRoot3.dir);
1535
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1536
+ const stopwatch = _chunkTEEOPHLZjs.getStopwatch.call(void 0, "Build options resolution");
1388
1537
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
1389
1538
  exitOnError: true
1390
1539
  });
1391
- const projectJsonPath = _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1540
+ const projectJsonPath = _chunkTEEOPHLZjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1392
1541
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
1393
1542
  throw new Error("Cannot find project.json configuration");
1394
1543
  }
@@ -1396,13 +1545,13 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1396
1545
  const projectJson = JSON.parse(projectJsonFile);
1397
1546
  const projectName = projectJson.name;
1398
1547
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
1399
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _77 => _77.projects, 'optionalAccess', _78 => _78[projectName]])) {
1548
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _80 => _80.projects, 'optionalAccess', _81 => _81[projectName]])) {
1400
1549
  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.");
1401
1550
  }
1402
1551
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
1403
1552
  options.name ??= `${projectName}-${options.format}`;
1404
1553
  options.target ??= DEFAULT_TARGET;
1405
- const packageJsonPath = _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1554
+ const packageJsonPath = _chunkTEEOPHLZjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1406
1555
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1407
1556
  throw new Error("Cannot find package.json configuration");
1408
1557
  }
@@ -1419,19 +1568,19 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1419
1568
  "main"
1420
1569
  ],
1421
1570
  ...userOptions,
1422
- tsconfig: _chunkWNICDYXYjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1571
+ tsconfig: _chunkTEEOPHLZjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1423
1572
  format: options.format || "cjs",
1424
1573
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), false),
1425
- outdir: userOptions.outputPath || _chunkWNICDYXYjs.joinPaths.call(void 0, "dist", projectRoot),
1574
+ outdir: userOptions.outputPath || _chunkTEEOPHLZjs.joinPaths.call(void 0, "dist", projectRoot),
1426
1575
  distDir: userOptions.distDir || "dist",
1427
1576
  plugins: [],
1428
1577
  name: userOptions.name || projectName,
1429
1578
  projectConfigurations,
1430
1579
  projectName,
1431
1580
  projectGraph,
1432
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkWNICDYXYjs.joinPaths.call(void 0, projectRoot, "src"),
1581
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkTEEOPHLZjs.joinPaths.call(void 0, projectRoot, "src"),
1433
1582
  minify: userOptions.minify || !userOptions.debug,
1434
- verbose: userOptions.verbose || _chunkWNICDYXYjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1583
+ verbose: userOptions.verbose || _chunkTEEOPHLZjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1435
1584
  includeSrc: userOptions.includeSrc === true,
1436
1585
  metafile: userOptions.metafile !== false,
1437
1586
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -1466,8 +1615,8 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1466
1615
  }, {})
1467
1616
  },
1468
1617
  inject: [
1469
- options.format === "cjs" && options.injectShims ? _chunkWNICDYXYjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : void 0,
1470
- options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkWNICDYXYjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : void 0
1618
+ options.format === "cjs" && options.injectShims ? _chunkTEEOPHLZjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : void 0,
1619
+ options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkTEEOPHLZjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : void 0
1471
1620
  ].filter(Boolean)
1472
1621
  };
1473
1622
  result.plugins = _nullishCoalesce(userOptions.plugins, () => ( getDefaultBuildPlugins(userOptions, result)));
@@ -1485,14 +1634,14 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1485
1634
  return result;
1486
1635
  }, "resolveOptions");
1487
1636
  async function generatePackageJson(context2) {
1488
- if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1489
- _chunkWNICDYXYjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1490
- const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, "Write package.json file");
1491
- const packageJsonPath = _chunkWNICDYXYjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1637
+ if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkTEEOPHLZjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1638
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1639
+ const stopwatch = _chunkTEEOPHLZjs.getStopwatch.call(void 0, "Write package.json file");
1640
+ const packageJsonPath = _chunkTEEOPHLZjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1492
1641
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1493
1642
  throw new Error("Cannot find package.json configuration");
1494
1643
  }
1495
- const packageJsonFile = await _promises2.default.readFile(_chunkWNICDYXYjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
1644
+ const packageJsonFile = await _promises2.default.readFile(_chunkTEEOPHLZjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
1496
1645
  let packageJson = JSON.parse(packageJsonFile);
1497
1646
  if (!packageJson) {
1498
1647
  throw new Error("Cannot find package.json configuration file");
@@ -1520,7 +1669,7 @@ async function generatePackageJson(context2) {
1520
1669
  }
1521
1670
  return ret;
1522
1671
  }, packageJson.exports);
1523
- await _devkit.writeJsonFile.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1672
+ await _devkit.writeJsonFile.call(void 0, _chunkTEEOPHLZjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1524
1673
  stopwatch();
1525
1674
  }
1526
1675
  return context2;
@@ -1546,8 +1695,8 @@ async function generateContext(getOptions) {
1546
1695
  }
1547
1696
  _chunkJ5SB6L2Ljs.__name.call(void 0, generateContext, "generateContext");
1548
1697
  async function executeEsBuild(context2) {
1549
- _chunkWNICDYXYjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1550
- const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, `${context2.options.name} build`);
1698
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1699
+ const stopwatch = _chunkTEEOPHLZjs.getStopwatch.call(void 0, `${context2.options.name} build`);
1551
1700
  if (process.env.STORM_WATCH) {
1552
1701
  const ctx = await esbuild2.context(context2.options);
1553
1702
  watch(ctx, context2.options);
@@ -1555,11 +1704,12 @@ async function executeEsBuild(context2) {
1555
1704
  const options = {
1556
1705
  ...context2.options
1557
1706
  };
1558
- options.outdir = _chunkWNICDYXYjs.joinPaths.call(void 0, context2.options.outdir, context2.options.distDir);
1707
+ options.outdir = _chunkTEEOPHLZjs.joinPaths.call(void 0, context2.options.outdir, context2.options.distDir);
1559
1708
  if (!options.inject || !Array.isArray(options.inject) || options.inject.length === 0 || // eslint-disable-next-line no-constant-binary-expression, @typescript-eslint/no-explicit-any
1560
1709
  options.inject === {}) {
1561
1710
  delete options.inject;
1562
1711
  }
1712
+ delete options.dts;
1563
1713
  delete options.env;
1564
1714
  delete options.name;
1565
1715
  delete options.assets;
@@ -1580,8 +1730,8 @@ async function executeEsBuild(context2) {
1580
1730
  delete options.config;
1581
1731
  delete options.injectShims;
1582
1732
  delete options.external;
1583
- _chunkWNICDYXYjs.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
1584
- ${_chunkWNICDYXYjs.formatLogMessage.call(void 0, {
1733
+ _chunkTEEOPHLZjs.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
1734
+ ${_chunkTEEOPHLZjs.formatLogMessage.call(void 0, {
1585
1735
  ...options,
1586
1736
  define: "<Hidden>"
1587
1737
  })}`, context2.options.config);
@@ -1595,10 +1745,20 @@ ${_chunkWNICDYXYjs.formatLogMessage.call(void 0, {
1595
1745
  return context2;
1596
1746
  }
1597
1747
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1748
+ async function executeTypescript(context2) {
1749
+ if (_optionalChain([context2, 'access', _82 => _82.result, 'optionalAccess', _83 => _83.errors, 'access', _84 => _84.length]) === 0 && context2.options.dts) {
1750
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, ` \u{1F4CB} Running TypeScript Compiler for ${context2.options.name}`, context2.options.config);
1751
+ const stopwatch = _chunkTEEOPHLZjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1752
+ await emitDts(context2.options.config, context2.options.tsconfig, context2.options.tsconfigRaw, true);
1753
+ stopwatch();
1754
+ }
1755
+ return context2;
1756
+ }
1757
+ _chunkJ5SB6L2Ljs.__name.call(void 0, executeTypescript, "executeTypescript");
1598
1758
  async function copyBuildAssets(context2) {
1599
- if (_optionalChain([context2, 'access', _79 => _79.result, 'optionalAccess', _80 => _80.errors, 'access', _81 => _81.length]) === 0) {
1600
- _chunkWNICDYXYjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1601
- const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1759
+ if (_optionalChain([context2, 'access', _85 => _85.result, 'optionalAccess', _86 => _86.errors, 'access', _87 => _87.length]) === 0) {
1760
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1761
+ const stopwatch = _chunkTEEOPHLZjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1602
1762
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
1603
1763
  stopwatch();
1604
1764
  }
@@ -1606,11 +1766,14 @@ async function copyBuildAssets(context2) {
1606
1766
  }
1607
1767
  _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1608
1768
  async function reportResults(context2) {
1609
- if (_optionalChain([context2, 'access', _82 => _82.result, 'optionalAccess', _83 => _83.errors, 'access', _84 => _84.length]) === 0) {
1769
+ if (_optionalChain([context2, 'access', _88 => _88.result, 'optionalAccess', _89 => _89.errors, 'access', _90 => _90.length]) === 0) {
1610
1770
  if (context2.result.warnings.length > 0) {
1611
- _chunkWNICDYXYjs.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);
1771
+ _chunkTEEOPHLZjs.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);
1612
1772
  }
1613
- _chunkWNICDYXYjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1773
+ _chunkTEEOPHLZjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1774
+ } else if (_optionalChain([context2, 'access', _91 => _91.result, 'optionalAccess', _92 => _92.errors]) && _optionalChain([context2, 'access', _93 => _93.result, 'optionalAccess', _94 => _94.errors, 'access', _95 => _95.length]) > 0) {
1775
+ _chunkTEEOPHLZjs.writeError.call(void 0, ` \u274C The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`, context2.options.config);
1776
+ throw new Error(`The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`);
1614
1777
  }
1615
1778
  }
1616
1779
  _chunkJ5SB6L2Ljs.__name.call(void 0, reportResults, "reportResults");
@@ -1646,8 +1809,8 @@ async function dependencyCheck(options) {
1646
1809
  _chunkJ5SB6L2Ljs.__name.call(void 0, dependencyCheck, "dependencyCheck");
1647
1810
  async function cleanOutputPath(context2) {
1648
1811
  if (context2.options.clean !== false && context2.options.outdir) {
1649
- _chunkWNICDYXYjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1650
- const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
1812
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1813
+ const stopwatch = _chunkTEEOPHLZjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
1651
1814
  await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
1652
1815
  stopwatch();
1653
1816
  }
@@ -1655,8 +1818,8 @@ async function cleanOutputPath(context2) {
1655
1818
  }
1656
1819
  _chunkJ5SB6L2Ljs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
1657
1820
  async function build3(options) {
1658
- _chunkWNICDYXYjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1659
- const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, "ESBuild pipeline");
1821
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1822
+ const stopwatch = _chunkTEEOPHLZjs.getStopwatch.call(void 0, "ESBuild pipeline");
1660
1823
  try {
1661
1824
  const opts = Array.isArray(options) ? options : [
1662
1825
  options
@@ -1665,10 +1828,10 @@ async function build3(options) {
1665
1828
  throw new Error("No build options were provided");
1666
1829
  }
1667
1830
  void transduce.async(opts, dependencyCheck);
1668
- await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
1669
- _chunkWNICDYXYjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1831
+ await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeTypescript, executeEsBuild, copyBuildAssets, reportResults));
1832
+ _chunkTEEOPHLZjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1670
1833
  } catch (error) {
1671
- _chunkWNICDYXYjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
1834
+ _chunkTEEOPHLZjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
1672
1835
  throw error;
1673
1836
  } finally {
1674
1837
  stopwatch();
@@ -1696,9 +1859,9 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1696
1859
  return context2.rebuild();
1697
1860
  });
1698
1861
  if (rebuildResult instanceof Error) {
1699
- _chunkWNICDYXYjs.writeError.call(void 0, rebuildResult.message);
1862
+ _chunkTEEOPHLZjs.writeError.call(void 0, rebuildResult.message);
1700
1863
  }
1701
- _chunkWNICDYXYjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1864
+ _chunkTEEOPHLZjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1702
1865
  }, 10);
1703
1866
  changeWatcher.on("change", fastRebuild);
1704
1867
  return void 0;
@@ -1706,15 +1869,15 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1706
1869
 
1707
1870
  // ../workspace-tools/src/executors/esbuild/executor.ts
1708
1871
  async function esbuildExecutorFn(options, context2, config) {
1709
- _chunkWNICDYXYjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1710
- if (!_optionalChain([context2, 'access', _85 => _85.projectsConfigurations, 'optionalAccess', _86 => _86.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _87 => _87.projectsConfigurations, 'access', _88 => _88.projects, 'access', _89 => _89[context2.projectName], 'optionalAccess', _90 => _90.root])) {
1872
+ _chunkTEEOPHLZjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1873
+ if (!_optionalChain([context2, 'access', _96 => _96.projectsConfigurations, 'optionalAccess', _97 => _97.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _98 => _98.projectsConfigurations, 'access', _99 => _99.projects, 'access', _100 => _100[context2.projectName], 'optionalAccess', _101 => _101.root])) {
1711
1874
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1712
1875
  }
1713
1876
  await build3({
1714
1877
  ...options,
1715
- projectRoot: _optionalChain([context2, 'access', _91 => _91.projectsConfigurations, 'access', _92 => _92.projects, 'optionalAccess', _93 => _93[context2.projectName], 'access', _94 => _94.root]),
1878
+ projectRoot: _optionalChain([context2, 'access', _102 => _102.projectsConfigurations, 'access', _103 => _103.projects, 'optionalAccess', _104 => _104[context2.projectName], 'access', _105 => _105.root]),
1716
1879
  projectName: context2.projectName,
1717
- sourceRoot: _optionalChain([context2, 'access', _95 => _95.projectsConfigurations, 'access', _96 => _96.projects, 'optionalAccess', _97 => _97[context2.projectName], 'optionalAccess', _98 => _98.sourceRoot]),
1880
+ sourceRoot: _optionalChain([context2, 'access', _106 => _106.projectsConfigurations, 'access', _107 => _107.projects, 'optionalAccess', _108 => _108[context2.projectName], 'optionalAccess', _109 => _109.sourceRoot]),
1718
1881
  format: options.format,
1719
1882
  platform: options.format
1720
1883
  });
@@ -1757,18 +1920,18 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
1757
1920
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
1758
1921
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
1759
1922
  async function sizeLimitExecutorFn(options, context2, config) {
1760
- if (!_optionalChain([context2, 'optionalAccess', _99 => _99.projectName]) || !_optionalChain([context2, 'access', _100 => _100.projectsConfigurations, 'optionalAccess', _101 => _101.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1923
+ if (!_optionalChain([context2, 'optionalAccess', _110 => _110.projectName]) || !_optionalChain([context2, 'access', _111 => _111.projectsConfigurations, 'optionalAccess', _112 => _112.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1761
1924
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
1762
1925
  }
1763
- _chunkWNICDYXYjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1926
+ _chunkTEEOPHLZjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1764
1927
  _sizelimit2.default.call(void 0, [
1765
1928
  _file2.default,
1766
1929
  _esbuild3.default,
1767
1930
  _esbuildwhy2.default
1768
1931
  ], {
1769
- checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _102 => _102.projectsConfigurations, 'access', _103 => _103.projects, 'access', _104 => _104[context2.projectName], 'optionalAccess', _105 => _105.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _106 => _106.projectsConfigurations, 'access', _107 => _107.projects, 'access', _108 => _108[context2.projectName], 'optionalAccess', _109 => _109.root]), () => ( "./")), "src")))
1932
+ checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _113 => _113.projectsConfigurations, 'access', _114 => _114.projects, 'access', _115 => _115[context2.projectName], 'optionalAccess', _116 => _116.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _117 => _117.projectsConfigurations, 'access', _118 => _118.projects, 'access', _119 => _119[context2.projectName], 'optionalAccess', _120 => _120.root]), () => ( "./")), "src")))
1770
1933
  }).then((result) => {
1771
- _chunkWNICDYXYjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1934
+ _chunkTEEOPHLZjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1772
1935
  });
1773
1936
  return {
1774
1937
  success: true
@@ -1789,11 +1952,11 @@ var _fsextra = require('fs-extra');
1789
1952
  var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
1790
1953
  async function typiaExecutorFn(options, _, config) {
1791
1954
  if (options.clean !== false) {
1792
- _chunkWNICDYXYjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
1955
+ _chunkTEEOPHLZjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
1793
1956
  _fsextra.removeSync.call(void 0, options.outputPath);
1794
1957
  }
1795
1958
  await Promise.all(options.entry.map((entry) => {
1796
- _chunkWNICDYXYjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
1959
+ _chunkTEEOPHLZjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
1797
1960
  return _TypiaProgrammerjs.TypiaProgrammer.build({
1798
1961
  input: entry,
1799
1962
  output: options.outputPath,
@@ -1824,8 +1987,8 @@ var executor_default8 = withRunExecutor("Typia runtime validation generator", ty
1824
1987
 
1825
1988
  var _jiti = require('jiti');
1826
1989
  async function unbuildExecutorFn(options, context2, config) {
1827
- _chunkWNICDYXYjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1828
- if (!_optionalChain([context2, 'access', _110 => _110.projectsConfigurations, 'optionalAccess', _111 => _111.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
1990
+ _chunkTEEOPHLZjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1991
+ if (!_optionalChain([context2, 'access', _121 => _121.projectsConfigurations, 'optionalAccess', _122 => _122.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
1829
1992
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
1830
1993
  }
1831
1994
  if (!context2.projectsConfigurations.projects[context2.projectName].root) {
@@ -1835,7 +1998,7 @@ async function unbuildExecutorFn(options, context2, config) {
1835
1998
  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.");
1836
1999
  }
1837
2000
  const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
1838
- fsCache: config.skipCache ? false : _chunkWNICDYXYjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
2001
+ fsCache: config.skipCache ? false : _chunkTEEOPHLZjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
1839
2002
  interopDefault: true
1840
2003
  });
1841
2004
  const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
@@ -1848,7 +2011,7 @@ async function unbuildExecutorFn(options, context2, config) {
1848
2011
  }, {
1849
2012
  stubOptions: {
1850
2013
  jiti: {
1851
- fsCache: config.skipCache ? false : _chunkWNICDYXYjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
2014
+ fsCache: config.skipCache ? false : _chunkTEEOPHLZjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
1852
2015
  }
1853
2016
  },
1854
2017
  rollup: {
@@ -1896,58 +2059,58 @@ var executor_default9 = withRunExecutor("TypeScript Unbuild build", unbuildExecu
1896
2059
  var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name, generatorFn, generatorOptions = {
1897
2060
  skipReadingConfig: false
1898
2061
  }) => async (tree, _options) => {
1899
- const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, name);
2062
+ const stopwatch = _chunkTEEOPHLZjs.getStopwatch.call(void 0, name);
1900
2063
  let options = _options;
1901
2064
  let config;
1902
2065
  try {
1903
- _chunkWNICDYXYjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
2066
+ _chunkTEEOPHLZjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
1904
2067
 
1905
2068
  `, config);
1906
- const workspaceRoot3 = _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, );
2069
+ const workspaceRoot3 = _chunkTEEOPHLZjs.findWorkspaceRoot.call(void 0, );
1907
2070
  if (!generatorOptions.skipReadingConfig) {
1908
- _chunkWNICDYXYjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
2071
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
1909
2072
  - workspaceRoot: ${workspaceRoot3}`, config);
1910
- config = await _chunkU2GYOTAEjs.getConfig.call(void 0, workspaceRoot3);
2073
+ config = await _chunkXFPT4O23js.getConfig.call(void 0, workspaceRoot3);
1911
2074
  }
1912
- if (_optionalChain([generatorOptions, 'optionalAccess', _112 => _112.hooks, 'optionalAccess', _113 => _113.applyDefaultOptions])) {
1913
- _chunkWNICDYXYjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
2075
+ if (_optionalChain([generatorOptions, 'optionalAccess', _123 => _123.hooks, 'optionalAccess', _124 => _124.applyDefaultOptions])) {
2076
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
1914
2077
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
1915
- _chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
2078
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
1916
2079
  }
1917
- _chunkWNICDYXYjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
2080
+ _chunkTEEOPHLZjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
1918
2081
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
1919
2082
  const tokenized = await applyWorkspaceTokens(options, {
1920
2083
  workspaceRoot: tree.root,
1921
2084
  config
1922
2085
  }, applyWorkspaceBaseTokens);
1923
- if (_optionalChain([generatorOptions, 'optionalAccess', _114 => _114.hooks, 'optionalAccess', _115 => _115.preProcess])) {
1924
- _chunkWNICDYXYjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
2086
+ if (_optionalChain([generatorOptions, 'optionalAccess', _125 => _125.hooks, 'optionalAccess', _126 => _126.preProcess])) {
2087
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
1925
2088
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
1926
- _chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
2089
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
1927
2090
  }
1928
2091
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
1929
2092
  if (result) {
1930
- if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _116 => _116.error, 'optionalAccess', _117 => _117.message]) && typeof _optionalChain([result, 'optionalAccess', _118 => _118.error, 'optionalAccess', _119 => _119.message]) === "string" && _optionalChain([result, 'optionalAccess', _120 => _120.error, 'optionalAccess', _121 => _121.name]) && typeof _optionalChain([result, 'optionalAccess', _122 => _122.error, 'optionalAccess', _123 => _123.name]) === "string") {
2093
+ if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _127 => _127.error, 'optionalAccess', _128 => _128.message]) && typeof _optionalChain([result, 'optionalAccess', _129 => _129.error, 'optionalAccess', _130 => _130.message]) === "string" && _optionalChain([result, 'optionalAccess', _131 => _131.error, 'optionalAccess', _132 => _132.name]) && typeof _optionalChain([result, 'optionalAccess', _133 => _133.error, 'optionalAccess', _134 => _134.name]) === "string") {
1931
2094
  throw new Error(`The ${name} generator failed to run`, {
1932
- cause: _optionalChain([result, 'optionalAccess', _124 => _124.error])
2095
+ cause: _optionalChain([result, 'optionalAccess', _135 => _135.error])
1933
2096
  });
1934
2097
  } else if (result.success && result.data) {
1935
2098
  return result;
1936
2099
  }
1937
2100
  }
1938
- if (_optionalChain([generatorOptions, 'optionalAccess', _125 => _125.hooks, 'optionalAccess', _126 => _126.postProcess])) {
1939
- _chunkWNICDYXYjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2101
+ if (_optionalChain([generatorOptions, 'optionalAccess', _136 => _136.hooks, 'optionalAccess', _137 => _137.postProcess])) {
2102
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
1940
2103
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
1941
- _chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
2104
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
1942
2105
  }
1943
2106
  return () => {
1944
- _chunkWNICDYXYjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
2107
+ _chunkTEEOPHLZjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
1945
2108
  `, config);
1946
2109
  };
1947
2110
  } catch (error) {
1948
2111
  return () => {
1949
- _chunkWNICDYXYjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
1950
- _chunkWNICDYXYjs.writeError.call(void 0, `An exception was thrown in the generator's process
2112
+ _chunkTEEOPHLZjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
2113
+ _chunkTEEOPHLZjs.writeError.call(void 0, `An exception was thrown in the generator's process
1951
2114
  - Details: ${error.message}
1952
2115
  - Stacktrace: ${error.stack}`, config);
1953
2116
  };
@@ -1993,7 +2156,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1993
2156
  const projectConfig = {
1994
2157
  root: normalized.directory,
1995
2158
  projectType: "library",
1996
- sourceRoot: _chunkWNICDYXYjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
2159
+ sourceRoot: _chunkTEEOPHLZjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
1997
2160
  targets: {
1998
2161
  build: {
1999
2162
  executor: options.buildExecutor,
@@ -2002,11 +2165,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2002
2165
  ],
2003
2166
  options: {
2004
2167
  entry: [
2005
- _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
2168
+ _chunkTEEOPHLZjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
2006
2169
  ],
2007
2170
  outputPath: getOutputPath(normalized),
2008
- tsconfig: _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
2009
- project: _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
2171
+ tsconfig: _chunkTEEOPHLZjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
2172
+ project: _chunkTEEOPHLZjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
2010
2173
  defaultConfiguration: "production",
2011
2174
  platform: "neutral",
2012
2175
  assets: [
@@ -2045,22 +2208,22 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2045
2208
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
2046
2209
  let repository = {
2047
2210
  type: "github",
2048
- url: _optionalChain([config, 'optionalAccess', _127 => _127.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _128 => _128.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _129 => _129.namespace]) || _optionalChain([config, 'optionalAccess', _130 => _130.name]) || "repository"}.git`
2211
+ url: _optionalChain([config, 'optionalAccess', _138 => _138.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _139 => _139.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _140 => _140.namespace]) || _optionalChain([config, 'optionalAccess', _141 => _141.name]) || "repository"}.git`
2049
2212
  };
2050
2213
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
2051
2214
  if (tree.exists("package.json")) {
2052
2215
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2053
- if (_optionalChain([packageJson, 'optionalAccess', _131 => _131.repository])) {
2216
+ if (_optionalChain([packageJson, 'optionalAccess', _142 => _142.repository])) {
2054
2217
  repository = packageJson.repository;
2055
2218
  }
2056
- if (_optionalChain([packageJson, 'optionalAccess', _132 => _132.description])) {
2219
+ if (_optionalChain([packageJson, 'optionalAccess', _143 => _143.description])) {
2057
2220
  description = packageJson.description;
2058
2221
  }
2059
2222
  }
2060
2223
  if (!normalized.importPath) {
2061
2224
  normalized.importPath = normalized.name;
2062
2225
  }
2063
- const packageJsonPath = _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
2226
+ const packageJsonPath = _chunkTEEOPHLZjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
2064
2227
  if (tree.exists(packageJsonPath)) {
2065
2228
  _devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
2066
2229
  if (!normalized.importPath) {
@@ -2108,30 +2271,30 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2108
2271
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
2109
2272
  ...json,
2110
2273
  pnpm: {
2111
- ..._optionalChain([json, 'optionalAccess', _133 => _133.pnpm]),
2274
+ ..._optionalChain([json, 'optionalAccess', _144 => _144.pnpm]),
2112
2275
  overrides: {
2113
- ..._optionalChain([json, 'optionalAccess', _134 => _134.pnpm, 'optionalAccess', _135 => _135.overrides]),
2276
+ ..._optionalChain([json, 'optionalAccess', _145 => _145.pnpm, 'optionalAccess', _146 => _146.overrides]),
2114
2277
  [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
2115
2278
  }
2116
2279
  }
2117
2280
  }));
2118
2281
  }
2119
2282
  _js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
2120
- _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
2283
+ _chunkTEEOPHLZjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
2121
2284
  ]);
2122
- _js.addTsConfigPath.call(void 0, tree, _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
2123
- _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
2285
+ _js.addTsConfigPath.call(void 0, tree, _chunkTEEOPHLZjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
2286
+ _chunkTEEOPHLZjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
2124
2287
  ]);
2125
2288
  if (tree.exists("package.json")) {
2126
2289
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2127
- if (_optionalChain([packageJson, 'optionalAccess', _136 => _136.repository])) {
2290
+ if (_optionalChain([packageJson, 'optionalAccess', _147 => _147.repository])) {
2128
2291
  repository = packageJson.repository;
2129
2292
  }
2130
- if (_optionalChain([packageJson, 'optionalAccess', _137 => _137.description])) {
2293
+ if (_optionalChain([packageJson, 'optionalAccess', _148 => _148.description])) {
2131
2294
  description = packageJson.description;
2132
2295
  }
2133
2296
  }
2134
- const tsconfigPath = _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
2297
+ const tsconfigPath = _chunkTEEOPHLZjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
2135
2298
  if (tree.exists(tsconfigPath)) {
2136
2299
  _devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
2137
2300
  json.composite ??= true;
@@ -2169,42 +2332,42 @@ function getOutputPath(options) {
2169
2332
  } else {
2170
2333
  parts.push(options.projectRoot);
2171
2334
  }
2172
- return _chunkWNICDYXYjs.joinPaths.call(void 0, ...parts);
2335
+ return _chunkTEEOPHLZjs.joinPaths.call(void 0, ...parts);
2173
2336
  }
2174
2337
  _chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
2175
2338
  function createProjectTsConfigJson(tree, options) {
2176
2339
  const tsconfig = {
2177
2340
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
2178
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _138 => _138.tsconfigOptions]), () => ( {})),
2341
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _149 => _149.tsconfigOptions]), () => ( {})),
2179
2342
  compilerOptions: {
2180
2343
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
2181
- outDir: _chunkWNICDYXYjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2344
+ outDir: _chunkTEEOPHLZjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2182
2345
  noEmit: true,
2183
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _139 => _139.tsconfigOptions, 'optionalAccess', _140 => _140.compilerOptions]), () => ( {}))
2346
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _150 => _150.tsconfigOptions, 'optionalAccess', _151 => _151.compilerOptions]), () => ( {}))
2184
2347
  },
2185
2348
  files: [
2186
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _141 => _141.tsconfigOptions, 'optionalAccess', _142 => _142.files]), () => ( []))
2349
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _152 => _152.tsconfigOptions, 'optionalAccess', _153 => _153.files]), () => ( []))
2187
2350
  ],
2188
2351
  include: [
2189
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _143 => _143.tsconfigOptions, 'optionalAccess', _144 => _144.include]), () => ( [])),
2352
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _154 => _154.tsconfigOptions, 'optionalAccess', _155 => _155.include]), () => ( [])),
2190
2353
  "src/**/*.ts",
2191
2354
  "src/**/*.js",
2192
2355
  "bin/**/*"
2193
2356
  ],
2194
2357
  exclude: [
2195
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _145 => _145.tsconfigOptions, 'optionalAccess', _146 => _146.exclude]), () => ( [])),
2358
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _156 => _156.tsconfigOptions, 'optionalAccess', _157 => _157.exclude]), () => ( [])),
2196
2359
  "jest.config.ts",
2197
2360
  "src/**/*.spec.ts",
2198
2361
  "src/**/*.test.ts"
2199
2362
  ]
2200
2363
  };
2201
- _devkit.writeJson.call(void 0, tree, _chunkWNICDYXYjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2364
+ _devkit.writeJson.call(void 0, tree, _chunkTEEOPHLZjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2202
2365
  }
2203
2366
  _chunkJ5SB6L2Ljs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
2204
2367
  async function normalizeOptions(tree, options, config) {
2205
2368
  let importPath = options.importPath;
2206
- if (!importPath && _optionalChain([config, 'optionalAccess', _147 => _147.namespace])) {
2207
- importPath = `@${_optionalChain([config, 'optionalAccess', _148 => _148.namespace])}/${options.name}`;
2369
+ if (!importPath && _optionalChain([config, 'optionalAccess', _158 => _158.namespace])) {
2370
+ importPath = `@${_optionalChain([config, 'optionalAccess', _159 => _159.namespace])}/${options.name}`;
2208
2371
  }
2209
2372
  if (options.publishable) {
2210
2373
  if (!importPath) {
@@ -2258,7 +2421,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, normalizeOptions, "normalizeOptions");
2258
2421
 
2259
2422
  // ../workspace-tools/src/generators/browser-library/generator.ts
2260
2423
  async function browserLibraryGeneratorFn(tree, schema, config) {
2261
- const filesDir = _chunkWNICDYXYjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
2424
+ const filesDir = _chunkTEEOPHLZjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
2262
2425
  const tsLibraryGeneratorOptions = {
2263
2426
  buildExecutor: "@storm-software/workspace-tools:unbuild",
2264
2427
  platform: "browser",
@@ -2330,19 +2493,19 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
2330
2493
 
2331
2494
  var _zodtojsonschema = require('zod-to-json-schema');
2332
2495
  async function configSchemaGeneratorFn(tree, options, config) {
2333
- _chunkWNICDYXYjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
2334
- _chunkWNICDYXYjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
2335
- const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkWNICDYXYjs.stormWorkspaceConfigSchema, {
2496
+ _chunkTEEOPHLZjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
2497
+ _chunkTEEOPHLZjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
2498
+ const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkTEEOPHLZjs.stormWorkspaceConfigSchema, {
2336
2499
  name: "StormWorkspaceConfiguration"
2337
2500
  });
2338
- _chunkWNICDYXYjs.writeTrace.call(void 0, jsonSchema, config);
2339
- const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _149 => _149.workspaceRoot]), () => ( _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _150 => _150.outputFile, 'optionalAccess', _151 => _151.startsWith, 'call', _152 => _152("./")]) ? "" : "./");
2340
- _chunkWNICDYXYjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2501
+ _chunkTEEOPHLZjs.writeTrace.call(void 0, jsonSchema, config);
2502
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _160 => _160.workspaceRoot]), () => ( _chunkTEEOPHLZjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _161 => _161.outputFile, 'optionalAccess', _162 => _162.startsWith, 'call', _163 => _163("./")]) ? "" : "./");
2503
+ _chunkTEEOPHLZjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2341
2504
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
2342
2505
  spaces: 2
2343
2506
  });
2344
2507
  await _devkit.formatFiles.call(void 0, tree);
2345
- _chunkWNICDYXYjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2508
+ _chunkTEEOPHLZjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2346
2509
  return {
2347
2510
  success: true
2348
2511
  };
@@ -2363,7 +2526,7 @@ var generator_default2 = withRunGenerator("Configuration Schema Creator", config
2363
2526
  // ../workspace-tools/src/generators/neutral-library/generator.ts
2364
2527
 
2365
2528
  async function neutralLibraryGeneratorFn(tree, schema, config) {
2366
- const filesDir = _chunkWNICDYXYjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
2529
+ const filesDir = _chunkTEEOPHLZjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
2367
2530
  const tsLibraryGeneratorOptions = {
2368
2531
  ...schema,
2369
2532
  platform: "neutral",
@@ -2406,7 +2569,7 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
2406
2569
  // ../workspace-tools/src/generators/node-library/generator.ts
2407
2570
 
2408
2571
  async function nodeLibraryGeneratorFn(tree, schema, config) {
2409
- const filesDir = _chunkWNICDYXYjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
2572
+ const filesDir = _chunkTEEOPHLZjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
2410
2573
  const tsLibraryGeneratorOptions = {
2411
2574
  platform: "node",
2412
2575
  devDependencies: {