@storm-software/cloudflare-tools 0.55.22 → 0.55.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-T4IWTHDS.js → chunk-6GDCEDJO.js} +3 -3
  4. package/dist/{chunk-U76YVFVU.mjs → chunk-AHT3CRUF.mjs} +2 -2
  5. package/dist/{chunk-BRNE2OJC.js → chunk-BCL7PY4I.js} +41 -41
  6. package/dist/{chunk-RGHWJCTE.js → chunk-DBSH4BRC.js} +12 -12
  7. package/dist/{chunk-X6VJDRKI.js → chunk-E7YOJ4JG.js} +8 -9
  8. package/dist/{chunk-AHEAMC5D.mjs → chunk-GNKRSWX6.mjs} +3 -3
  9. package/dist/{chunk-FFAYA4L5.mjs → chunk-K4SZWADC.mjs} +3 -3
  10. package/dist/{chunk-LI7SJBJ3.mjs → chunk-KXSJMDJH.mjs} +1 -1
  11. package/dist/{chunk-5EEVIG4D.js → chunk-RDDSMEJF.js} +1 -1
  12. package/dist/{chunk-MUNYIY4Y.js → chunk-SOJGUDFD.js} +16 -16
  13. package/dist/{chunk-3TSZQZ52.js → chunk-T4YFTNGO.js} +160 -160
  14. package/dist/{chunk-PAM7JMC5.mjs → chunk-X64HH4GP.mjs} +1 -1
  15. package/dist/{chunk-Q2HD3FED.mjs → chunk-YEBDVDCV.mjs} +1 -1
  16. package/dist/{chunk-IMI2SM4Q.mjs → chunk-ZV2BVSPZ.mjs} +8 -9
  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 +9 -9
  22. package/dist/index.mjs +8 -8
  23. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  24. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  25. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  26. package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
  27. package/dist/src/executors/serve/executor.js +4 -4
  28. package/dist/src/executors/serve/executor.mjs +3 -3
  29. package/dist/src/generators/init/generator.js +2 -2
  30. package/dist/src/generators/init/generator.mjs +1 -1
  31. package/dist/src/generators/worker/generator.js +5 -5
  32. package/dist/src/generators/worker/generator.mjs +4 -4
  33. package/dist/src/utils/index.js +3 -3
  34. package/dist/src/utils/index.mjs +2 -2
  35. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  36. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  37. package/package.json +1 -1
@@ -4,7 +4,7 @@
4
4
  var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
5
5
 
6
6
 
7
- var _chunkBRNE2OJCjs = require('./chunk-BRNE2OJC.js');
7
+ var _chunkBCL7PY4Ijs = require('./chunk-BCL7PY4I.js');
8
8
 
9
9
 
10
10
 
@@ -20,7 +20,7 @@ var _chunkBRNE2OJCjs = require('./chunk-BRNE2OJC.js');
20
20
 
21
21
 
22
22
 
23
- var _chunkX6VJDRKIjs = require('./chunk-X6VJDRKI.js');
23
+ var _chunkE7YOJ4JGjs = require('./chunk-E7YOJ4JG.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]))), () => ( _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, ))));
56
+ result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunkE7YOJ4JGjs.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 = _chunkX6VJDRKIjs.getStopwatch.call(void 0, name);
104
+ const stopwatch = _chunkE7YOJ4JGjs.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 = _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, );
111
+ const workspaceRoot3 = _chunkE7YOJ4JGjs.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
- _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
116
+ _chunkE7YOJ4JGjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
117
117
  if (!executorOptions.skipReadingConfig) {
118
- _chunkX6VJDRKIjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
118
+ _chunkE7YOJ4JGjs.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 _chunkBRNE2OJCjs.getConfig.call(void 0, workspaceRoot3);
124
+ config = await _chunkBCL7PY4Ijs.getConfig.call(void 0, workspaceRoot3);
125
125
  }
126
126
  if (_optionalChain([executorOptions, 'optionalAccess', _7 => _7.hooks, 'optionalAccess', _8 => _8.applyDefaultOptions])) {
127
- _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
127
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
128
128
  options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
129
- _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
129
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
130
130
  }
131
- _chunkX6VJDRKIjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
132
- ${_chunkX6VJDRKIjs.formatLogMessage.call(void 0, options)}
131
+ _chunkE7YOJ4JGjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
132
+ ${_chunkE7YOJ4JGjs.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 @@ ${_chunkX6VJDRKIjs.formatLogMessage.call(void 0, options)}
138
138
  projectName,
139
139
  config
140
140
  }, config, context2.projectsConfigurations.projects[context2.projectName]), applyWorkspaceProjectTokens);
141
- _chunkX6VJDRKIjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
142
- ${_chunkX6VJDRKIjs.formatLogMessage.call(void 0, tokenized)}
141
+ _chunkE7YOJ4JGjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
142
+ ${_chunkE7YOJ4JGjs.formatLogMessage.call(void 0, tokenized)}
143
143
  `, config);
144
144
  if (_optionalChain([executorOptions, 'optionalAccess', _9 => _9.hooks, 'optionalAccess', _10 => _10.preProcess])) {
145
- _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
145
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
146
146
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
147
- _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
147
+ _chunkE7YOJ4JGjs.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 @@ ${_chunkX6VJDRKIjs.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
- _chunkX6VJDRKIjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
158
- ${_chunkX6VJDRKIjs.formatLogMessage.call(void 0, result)}`, config);
157
+ _chunkE7YOJ4JGjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
158
+ ${_chunkE7YOJ4JGjs.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
- _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
165
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
166
166
  await Promise.resolve(executorOptions.hooks.postProcess(config));
167
- _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
167
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
168
168
  }
169
- _chunkX6VJDRKIjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
169
+ _chunkE7YOJ4JGjs.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
- _chunkX6VJDRKIjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
176
- _chunkX6VJDRKIjs.writeError.call(void 0, `An exception was thrown in the executor's process
175
+ _chunkE7YOJ4JGjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
176
+ _chunkE7YOJ4JGjs.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
- _chunkX6VJDRKIjs.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} -> ${_chunkX6VJDRKIjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
479
+ _chunkE7YOJ4JGjs.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} -> ${_chunkE7YOJ4JGjs.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
- _chunkX6VJDRKIjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkX6VJDRKIjs.joinPaths.call(void 0, outputPath, "src")}`, config);
489
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkE7YOJ4JGjs.joinPaths.call(void 0, outputPath, "src")}`, config);
490
490
  const files = await _glob.glob.call(void 0, [
491
- _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
492
- _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
493
- _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
494
- _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
491
+ _chunkE7YOJ4JGjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
492
+ _chunkE7YOJ4JGjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
493
+ _chunkE7YOJ4JGjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
494
+ _chunkE7YOJ4JGjs.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" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
515
515
  const projectNode = project.node;
516
516
  if (projectNode.data.root) {
517
- const projectPackageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
517
+ const projectPackageJsonPath = _chunkE7YOJ4JGjs.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
- _chunkX6VJDRKIjs.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, _chunkX6VJDRKIjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
528
+ _chunkE7YOJ4JGjs.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, _chunkE7YOJ4JGjs.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', _31 => _31.projects, 'optionalAccess', _32 => _32[projectName2], 'access', _33 => _33.implicitDependencies, 'optionalAccess', _34 => _34.reduce, 'call', _35 => _35((ret, dep) => {
537
537
  if (_optionalChain([projectConfigurations, 'access', _36 => _36.projects, 'optionalAccess', _37 => _37[dep]])) {
538
- const depPackageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
538
+ const depPackageJsonPath = _chunkE7YOJ4JGjs.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
- _chunkX6VJDRKIjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
562
+ _chunkE7YOJ4JGjs.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 : _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, );
568
- const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
567
+ const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkE7YOJ4JGjs.findWorkspaceRoot.call(void 0, );
568
+ const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkE7YOJ4JGjs.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 ??= `${_chunkX6VJDRKIjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
577
+ packageJson.source ??= `${_chunkE7YOJ4JGjs.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 : _chunkX6VJDRKIjs.joinPaths.call(void 0, "packages", projectName);
608
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkE7YOJ4JGjs.joinPaths.call(void 0, "packages", projectName);
609
609
  return packageJson;
610
610
  }, "addWorkspacePackageJsonFields");
611
611
  var addPackageJsonExport = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (file, type = "module", sourceRoot) => {
@@ -632,7 +632,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0,
632
632
  // ../build-tools/src/utilities/get-entry-points.ts
633
633
 
634
634
  var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
635
- const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, );
635
+ const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkE7YOJ4JGjs.findWorkspaceRoot.call(void 0, );
636
636
  const entryPoints = [];
637
637
  if (entry) {
638
638
  if (Array.isArray(entry)) {
@@ -644,7 +644,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
644
644
  }
645
645
  }
646
646
  if (emitOnAll) {
647
- entryPoints.push(_chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
647
+ entryPoints.push(_chunkE7YOJ4JGjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
648
648
  }
649
649
  const results = [];
650
650
  for (const entryPoint in entryPoints) {
@@ -653,9 +653,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
653
653
  withFileTypes: true
654
654
  });
655
655
  results.push(...files.reduce((ret, filePath) => {
656
- 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), ""));
656
+ const result = _chunkE7YOJ4JGjs.correctPaths.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkE7YOJ4JGjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkE7YOJ4JGjs.correctPaths.call(void 0, projectRoot), ""));
657
657
  if (result) {
658
- _chunkX6VJDRKIjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkX6VJDRKIjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
658
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkE7YOJ4JGjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
659
659
  if (!results.includes(result)) {
660
660
  results.push(result);
661
661
  }
@@ -989,7 +989,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (option
989
989
  setup(build5) {
990
990
  build5.onEnd((result) => {
991
991
  if (result.errors.length > 0 && process.env.WATCH !== "true") {
992
- _chunkX6VJDRKIjs.writeError.call(void 0, `The following errors occurred during the build:
992
+ _chunkE7YOJ4JGjs.writeError.call(void 0, `The following errors occurred during the build:
993
993
  ${result.errors.map((error) => error.text).join("\n")}
994
994
 
995
995
  `, resolvedOptions.config);
@@ -1024,7 +1024,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
1024
1024
  var resolvePathsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, resolvedOptions) => ({
1025
1025
  name: "storm:resolve-paths",
1026
1026
  setup(build5) {
1027
- 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"));
1027
+ const parentTsConfig = build5.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build5.initialOptions.tsconfig)) : _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
1028
1028
  const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
1029
1029
  const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
1030
1030
  build5.onResolve({
@@ -1048,7 +1048,7 @@ var _apiextractor = require('@microsoft/api-extractor');
1048
1048
 
1049
1049
 
1050
1050
  function bundleTypeDefinitions(filename, outfile, externals, options) {
1051
- const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
1051
+ const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
1052
1052
  const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
1053
1053
  p,
1054
1054
  getTypeDependencyPackageName(p)
@@ -1084,13 +1084,13 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
1084
1084
  },
1085
1085
  dtsRollup: {
1086
1086
  enabled: true,
1087
- untrimmedFilePath: _chunkX6VJDRKIjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
1087
+ untrimmedFilePath: _chunkE7YOJ4JGjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
1088
1088
  },
1089
1089
  tsdocMetadata: {
1090
1090
  enabled: false
1091
1091
  }
1092
1092
  },
1093
- packageJsonFullPath: _chunkX6VJDRKIjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
1093
+ packageJsonFullPath: _chunkE7YOJ4JGjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
1094
1094
  configObjectFullPath: void 0
1095
1095
  });
1096
1096
  const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
@@ -1098,7 +1098,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
1098
1098
  localBuild: true
1099
1099
  });
1100
1100
  if (extractorResult.succeeded === false) {
1101
- _chunkX6VJDRKIjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
1101
+ _chunkE7YOJ4JGjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
1102
1102
  throw new Error("API Extractor completed with errors");
1103
1103
  }
1104
1104
  }
@@ -1117,12 +1117,12 @@ var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, r
1117
1117
  const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
1118
1118
  const typeOutDir = resolvedOptions.outdir;
1119
1119
  const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
1120
- const bundlePath = _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
1120
+ const bundlePath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
1121
1121
  let dtsPath;
1122
- if (_fs.existsSync.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1123
- dtsPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
1124
- } else if (_fs.existsSync.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1125
- dtsPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
1122
+ if (_fs.existsSync.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1123
+ dtsPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
1124
+ } else if (_fs.existsSync.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1125
+ dtsPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
1126
1126
  }
1127
1127
  const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
1128
1128
  if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
@@ -1277,8 +1277,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (bund
1277
1277
  const filteredMissingDeps = missingDependencies.filter((dep) => {
1278
1278
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
1279
1279
  });
1280
- _chunkX6VJDRKIjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1281
- _chunkX6VJDRKIjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1280
+ _chunkE7YOJ4JGjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1281
+ _chunkE7YOJ4JGjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1282
1282
  if (filteredMissingDeps.length > 0) {
1283
1283
  throw new Error(`Missing dependencies detected - please install them:
1284
1284
  ${JSON.stringify(filteredMissingDeps)}
@@ -1372,13 +1372,13 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1372
1372
  if (!workspaceRoot3) {
1373
1373
  throw new Error("Cannot find Nx workspace root");
1374
1374
  }
1375
- const config = await _chunkBRNE2OJCjs.getConfig.call(void 0, workspaceRoot3.dir);
1376
- _chunkX6VJDRKIjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1377
- const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "Build options resolution");
1375
+ const config = await _chunkBCL7PY4Ijs.getConfig.call(void 0, workspaceRoot3.dir);
1376
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1377
+ const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, "Build options resolution");
1378
1378
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
1379
1379
  exitOnError: true
1380
1380
  });
1381
- const projectJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1381
+ const projectJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1382
1382
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
1383
1383
  throw new Error("Cannot find project.json configuration");
1384
1384
  }
@@ -1392,7 +1392,7 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1392
1392
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
1393
1393
  options.name ??= `${projectName}-${options.format}`;
1394
1394
  options.target ??= DEFAULT_TARGET;
1395
- const packageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1395
+ const packageJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1396
1396
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1397
1397
  throw new Error("Cannot find package.json configuration");
1398
1398
  }
@@ -1417,20 +1417,20 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1417
1417
  ".node"
1418
1418
  ],
1419
1419
  ...userOptions,
1420
- tsconfig: _chunkX6VJDRKIjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1420
+ tsconfig: _chunkE7YOJ4JGjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1421
1421
  format: options.format || "cjs",
1422
1422
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
1423
1423
  "./src/index.ts"
1424
1424
  ], userOptions.emitOnAll),
1425
- outdir: userOptions.outputPath || _chunkX6VJDRKIjs.joinPaths.call(void 0, "dist", projectRoot),
1425
+ outdir: userOptions.outputPath || _chunkE7YOJ4JGjs.joinPaths.call(void 0, "dist", projectRoot),
1426
1426
  plugins: [],
1427
1427
  name: userOptions.name || projectName,
1428
1428
  projectConfigurations,
1429
1429
  projectName,
1430
1430
  projectGraph,
1431
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkX6VJDRKIjs.joinPaths.call(void 0, projectRoot, "src"),
1431
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkE7YOJ4JGjs.joinPaths.call(void 0, projectRoot, "src"),
1432
1432
  minify: userOptions.minify || !userOptions.debug,
1433
- verbose: userOptions.verbose || _chunkX6VJDRKIjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1433
+ verbose: userOptions.verbose || _chunkE7YOJ4JGjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1434
1434
  includeSrc: userOptions.includeSrc === true,
1435
1435
  metafile: userOptions.metafile !== false,
1436
1436
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -1466,8 +1466,8 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1466
1466
  }, {})
1467
1467
  },
1468
1468
  inject: [
1469
- options.format === "cjs" && options.injectShims ? _chunkX6VJDRKIjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
1470
- options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkX6VJDRKIjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
1469
+ options.format === "cjs" && options.injectShims ? _chunkE7YOJ4JGjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
1470
+ options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkE7YOJ4JGjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
1471
1471
  ..._nullishCoalesce(options.inject, () => ( []))
1472
1472
  ].filter(Boolean)
1473
1473
  };
@@ -1476,14 +1476,14 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1476
1476
  return result;
1477
1477
  }, "resolveOptions");
1478
1478
  async function generatePackageJson(context2) {
1479
- if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1480
- _chunkX6VJDRKIjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1481
- const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "Write package.json file");
1482
- const packageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1479
+ if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1480
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1481
+ const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, "Write package.json file");
1482
+ const packageJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1483
1483
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1484
1484
  throw new Error("Cannot find package.json configuration");
1485
1485
  }
1486
- const packageJsonFile = await _promises2.default.readFile(_chunkX6VJDRKIjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
1486
+ const packageJsonFile = await _promises2.default.readFile(_chunkE7YOJ4JGjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
1487
1487
  let packageJson = JSON.parse(packageJsonFile);
1488
1488
  if (!packageJson) {
1489
1489
  throw new Error("Cannot find package.json configuration file");
@@ -1522,7 +1522,7 @@ async function generatePackageJson(context2) {
1522
1522
  }
1523
1523
  return ret;
1524
1524
  }, packageJson.exports);
1525
- await _devkit.writeJsonFile.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1525
+ await _devkit.writeJsonFile.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1526
1526
  stopwatch();
1527
1527
  }
1528
1528
  return context2;
@@ -1548,8 +1548,8 @@ async function generateContext(getOptions) {
1548
1548
  }
1549
1549
  _chunkJ5SB6L2Ljs.__name.call(void 0, generateContext, "generateContext");
1550
1550
  async function executeEsBuild(context2) {
1551
- _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1552
- const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${context2.options.name} build`);
1551
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1552
+ const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, `${context2.options.name} build`);
1553
1553
  if (process.env.WATCH === "true") {
1554
1554
  const ctx = await esbuild2.context(context2.options);
1555
1555
  watch(ctx, context2.options);
@@ -1565,8 +1565,8 @@ async function executeEsBuild(context2) {
1565
1565
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1566
1566
  async function copyBuildAssets(context2) {
1567
1567
  if (_optionalChain([context2, 'access', _66 => _66.result, 'optionalAccess', _67 => _67.errors, 'access', _68 => _68.length]) === 0) {
1568
- _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1569
- const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1568
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1569
+ const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1570
1570
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
1571
1571
  stopwatch();
1572
1572
  }
@@ -1576,9 +1576,9 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1576
1576
  async function reportResults(context2) {
1577
1577
  if (_optionalChain([context2, 'access', _69 => _69.result, 'optionalAccess', _70 => _70.errors, 'access', _71 => _71.length]) === 0) {
1578
1578
  if (context2.result.warnings.length > 0) {
1579
- _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);
1579
+ _chunkE7YOJ4JGjs.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);
1580
1580
  }
1581
- _chunkX6VJDRKIjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1581
+ _chunkE7YOJ4JGjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1582
1582
  }
1583
1583
  }
1584
1584
  _chunkJ5SB6L2Ljs.__name.call(void 0, reportResults, "reportResults");
@@ -1614,8 +1614,8 @@ async function dependencyCheck(options) {
1614
1614
  _chunkJ5SB6L2Ljs.__name.call(void 0, dependencyCheck, "dependencyCheck");
1615
1615
  async function cleanOutputPath(context2) {
1616
1616
  if (context2.options.clean !== false && context2.options.outdir) {
1617
- _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1618
- const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
1617
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1618
+ const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
1619
1619
  await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
1620
1620
  stopwatch();
1621
1621
  }
@@ -1623,8 +1623,8 @@ async function cleanOutputPath(context2) {
1623
1623
  }
1624
1624
  _chunkJ5SB6L2Ljs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
1625
1625
  async function build3(options) {
1626
- _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1627
- const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "ESBuild pipeline");
1626
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1627
+ const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, "ESBuild pipeline");
1628
1628
  try {
1629
1629
  const opts = Array.isArray(options) ? options : [
1630
1630
  options
@@ -1634,9 +1634,9 @@ async function build3(options) {
1634
1634
  }
1635
1635
  void transduce.async(opts, dependencyCheck);
1636
1636
  await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
1637
- _chunkX6VJDRKIjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1637
+ _chunkE7YOJ4JGjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1638
1638
  } catch (error) {
1639
- _chunkX6VJDRKIjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1639
+ _chunkE7YOJ4JGjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1640
1640
  throw error;
1641
1641
  } finally {
1642
1642
  stopwatch();
@@ -1664,9 +1664,9 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1664
1664
  return context2.rebuild();
1665
1665
  });
1666
1666
  if (rebuildResult instanceof Error) {
1667
- _chunkX6VJDRKIjs.writeError.call(void 0, rebuildResult.message);
1667
+ _chunkE7YOJ4JGjs.writeError.call(void 0, rebuildResult.message);
1668
1668
  }
1669
- _chunkX6VJDRKIjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1669
+ _chunkE7YOJ4JGjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1670
1670
  }, 10);
1671
1671
  changeWatcher.on("change", fastRebuild);
1672
1672
  return void 0;
@@ -1674,7 +1674,7 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1674
1674
 
1675
1675
  // ../workspace-tools/src/executors/esbuild/executor.ts
1676
1676
  async function esbuildExecutorFn(options, context2, config) {
1677
- _chunkX6VJDRKIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1677
+ _chunkE7YOJ4JGjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1678
1678
  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])) {
1679
1679
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1680
1680
  }
@@ -1728,7 +1728,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
1728
1728
  if (!_optionalChain([context2, 'optionalAccess', _86 => _86.projectName]) || !_optionalChain([context2, 'access', _87 => _87.projectsConfigurations, 'optionalAccess', _88 => _88.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1729
1729
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
1730
1730
  }
1731
- _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1731
+ _chunkE7YOJ4JGjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1732
1732
  _sizelimit2.default.call(void 0, [
1733
1733
  _file2.default,
1734
1734
  _esbuild3.default,
@@ -1736,7 +1736,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
1736
1736
  ], {
1737
1737
  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")))
1738
1738
  }).then((result) => {
1739
- _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1739
+ _chunkE7YOJ4JGjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1740
1740
  });
1741
1741
  return {
1742
1742
  success: true
@@ -1799,13 +1799,13 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1799
1799
  if (!workspaceRoot3) {
1800
1800
  throw new Error("Cannot find Nx workspace root");
1801
1801
  }
1802
- const config = await _chunkBRNE2OJCjs.getConfig.call(void 0, workspaceRoot3.dir);
1803
- _chunkX6VJDRKIjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1804
- const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "Build options resolution");
1802
+ const config = await _chunkBCL7PY4Ijs.getConfig.call(void 0, workspaceRoot3.dir);
1803
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1804
+ const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, "Build options resolution");
1805
1805
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
1806
1806
  exitOnError: true
1807
1807
  });
1808
- const projectJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1808
+ const projectJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1809
1809
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
1810
1810
  throw new Error("Cannot find project.json configuration");
1811
1811
  }
@@ -1819,7 +1819,7 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1819
1819
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS2);
1820
1820
  options.name ??= `${projectName}-${options.format}`;
1821
1821
  options.target ??= DEFAULT_TARGET;
1822
- const packageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1822
+ const packageJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1823
1823
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1824
1824
  throw new Error("Cannot find package.json configuration");
1825
1825
  }
@@ -1828,20 +1828,20 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1828
1828
  ...options,
1829
1829
  config,
1830
1830
  ...userOptions,
1831
- tsconfig: _chunkX6VJDRKIjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1831
+ tsconfig: _chunkE7YOJ4JGjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1832
1832
  format: options.format || "cjs",
1833
1833
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
1834
1834
  "./src/index.ts"
1835
1835
  ], userOptions.emitOnAll),
1836
- outdir: userOptions.outputPath || _chunkX6VJDRKIjs.joinPaths.call(void 0, "dist", projectRoot),
1836
+ outdir: userOptions.outputPath || _chunkE7YOJ4JGjs.joinPaths.call(void 0, "dist", projectRoot),
1837
1837
  plugins: [],
1838
1838
  name: userOptions.name || projectName,
1839
1839
  projectConfigurations,
1840
1840
  projectName,
1841
1841
  projectGraph,
1842
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkX6VJDRKIjs.joinPaths.call(void 0, projectRoot, "src"),
1842
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkE7YOJ4JGjs.joinPaths.call(void 0, projectRoot, "src"),
1843
1843
  minify: userOptions.minify || !userOptions.debug,
1844
- verbose: userOptions.verbose || _chunkX6VJDRKIjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1844
+ verbose: userOptions.verbose || _chunkE7YOJ4JGjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1845
1845
  includeSrc: userOptions.includeSrc === true,
1846
1846
  metafile: userOptions.metafile !== false,
1847
1847
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -1875,14 +1875,14 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1875
1875
  return result;
1876
1876
  }, "resolveOptions");
1877
1877
  async function generatePackageJson2(options) {
1878
- if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1879
- _chunkX6VJDRKIjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1880
- const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "Write package.json file");
1881
- const packageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1878
+ if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1879
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1880
+ const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, "Write package.json file");
1881
+ const packageJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1882
1882
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1883
1883
  throw new Error("Cannot find package.json configuration");
1884
1884
  }
1885
- const packageJsonFile = await _promises2.default.readFile(_chunkX6VJDRKIjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
1885
+ const packageJsonFile = await _promises2.default.readFile(_chunkE7YOJ4JGjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
1886
1886
  if (!packageJsonFile) {
1887
1887
  throw new Error("Cannot find package.json configuration file");
1888
1888
  }
@@ -1921,15 +1921,15 @@ async function generatePackageJson2(options) {
1921
1921
  }
1922
1922
  return ret;
1923
1923
  }, packageJson.exports);
1924
- await _devkit.writeJsonFile.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1924
+ await _devkit.writeJsonFile.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1925
1925
  stopwatch();
1926
1926
  }
1927
1927
  return options;
1928
1928
  }
1929
1929
  _chunkJ5SB6L2Ljs.__name.call(void 0, generatePackageJson2, "generatePackageJson");
1930
1930
  async function executeTSDown(options) {
1931
- _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1932
- const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${options.name} build`);
1931
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1932
+ const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, `${options.name} build`);
1933
1933
  await _tsdown.build.call(void 0, {
1934
1934
  ...options,
1935
1935
  entry: options.entryPoints,
@@ -1941,21 +1941,21 @@ async function executeTSDown(options) {
1941
1941
  }
1942
1942
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeTSDown, "executeTSDown");
1943
1943
  async function copyBuildAssets2(options) {
1944
- _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1945
- const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1944
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1945
+ const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1946
1946
  await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
1947
1947
  stopwatch();
1948
1948
  return options;
1949
1949
  }
1950
1950
  _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets2, "copyBuildAssets");
1951
1951
  async function reportResults2(options) {
1952
- _chunkX6VJDRKIjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
1952
+ _chunkE7YOJ4JGjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
1953
1953
  }
1954
1954
  _chunkJ5SB6L2Ljs.__name.call(void 0, reportResults2, "reportResults");
1955
1955
  async function cleanOutputPath2(options) {
1956
1956
  if (options.clean !== false && options.outdir) {
1957
- _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
1958
- const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${options.name} output clean`);
1957
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
1958
+ const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, `${options.name} output clean`);
1959
1959
  await cleanDirectories2(options.name, options.outdir, options.config);
1960
1960
  stopwatch();
1961
1961
  }
@@ -1963,8 +1963,8 @@ async function cleanOutputPath2(options) {
1963
1963
  }
1964
1964
  _chunkJ5SB6L2Ljs.__name.call(void 0, cleanOutputPath2, "cleanOutputPath");
1965
1965
  async function build4(options) {
1966
- _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1967
- const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "TSDown pipeline");
1966
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1967
+ const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, "TSDown pipeline");
1968
1968
  try {
1969
1969
  const opts = Array.isArray(options) ? options : [
1970
1970
  options
@@ -1982,11 +1982,11 @@ async function build4(options) {
1982
1982
  await reportResults2(opt);
1983
1983
  }));
1984
1984
  } else {
1985
- _chunkX6VJDRKIjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
1985
+ _chunkE7YOJ4JGjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
1986
1986
  }
1987
- _chunkX6VJDRKIjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1987
+ _chunkE7YOJ4JGjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1988
1988
  } catch (error) {
1989
- _chunkX6VJDRKIjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1989
+ _chunkE7YOJ4JGjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1990
1990
  throw error;
1991
1991
  } finally {
1992
1992
  stopwatch();
@@ -1996,7 +1996,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, build4, "build");
1996
1996
 
1997
1997
  // ../workspace-tools/src/executors/tsdown/executor.ts
1998
1998
  async function tsdownExecutorFn(options, context2, config) {
1999
- _chunkX6VJDRKIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
1999
+ _chunkE7YOJ4JGjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
2000
2000
  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])) {
2001
2001
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
2002
2002
  }
@@ -2032,11 +2032,11 @@ var _fsextra = require('fs-extra');
2032
2032
  var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
2033
2033
  async function typiaExecutorFn(options, _, config) {
2034
2034
  if (options.clean !== false) {
2035
- _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
2035
+ _chunkE7YOJ4JGjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
2036
2036
  _fsextra.removeSync.call(void 0, options.outputPath);
2037
2037
  }
2038
2038
  await Promise.all(options.entry.map((entry) => {
2039
- _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
2039
+ _chunkE7YOJ4JGjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
2040
2040
  return _TypiaProgrammerjs.TypiaProgrammer.build({
2041
2041
  input: entry,
2042
2042
  output: options.outputPath,
@@ -2067,7 +2067,7 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
2067
2067
 
2068
2068
  var _jiti = require('jiti');
2069
2069
  async function unbuildExecutorFn(options, context2, config) {
2070
- _chunkX6VJDRKIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
2070
+ _chunkE7YOJ4JGjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
2071
2071
  if (!_optionalChain([context2, 'access', _113 => _113.projectsConfigurations, 'optionalAccess', _114 => _114.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
2072
2072
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
2073
2073
  }
@@ -2078,7 +2078,7 @@ async function unbuildExecutorFn(options, context2, config) {
2078
2078
  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.");
2079
2079
  }
2080
2080
  const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
2081
- fsCache: config.skipCache ? false : _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
2081
+ fsCache: config.skipCache ? false : _chunkE7YOJ4JGjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
2082
2082
  interopDefault: true
2083
2083
  });
2084
2084
  const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
@@ -2091,7 +2091,7 @@ async function unbuildExecutorFn(options, context2, config) {
2091
2091
  }, {
2092
2092
  stubOptions: {
2093
2093
  jiti: {
2094
- fsCache: config.skipCache ? false : _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
2094
+ fsCache: config.skipCache ? false : _chunkE7YOJ4JGjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
2095
2095
  }
2096
2096
  },
2097
2097
  rollup: {
@@ -2138,34 +2138,34 @@ var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExec
2138
2138
  var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name, generatorFn, generatorOptions = {
2139
2139
  skipReadingConfig: false
2140
2140
  }) => async (tree, _options) => {
2141
- const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, name);
2141
+ const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, name);
2142
2142
  let options = _options;
2143
2143
  let config;
2144
2144
  try {
2145
- _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
2145
+ _chunkE7YOJ4JGjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
2146
2146
 
2147
2147
  `, config);
2148
- const workspaceRoot3 = _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, );
2148
+ const workspaceRoot3 = _chunkE7YOJ4JGjs.findWorkspaceRoot.call(void 0, );
2149
2149
  if (!generatorOptions.skipReadingConfig) {
2150
- _chunkX6VJDRKIjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
2150
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
2151
2151
  - workspaceRoot: ${workspaceRoot3}`, config);
2152
- config = await _chunkBRNE2OJCjs.getConfig.call(void 0, workspaceRoot3);
2152
+ config = await _chunkBCL7PY4Ijs.getConfig.call(void 0, workspaceRoot3);
2153
2153
  }
2154
2154
  if (_optionalChain([generatorOptions, 'optionalAccess', _115 => _115.hooks, 'optionalAccess', _116 => _116.applyDefaultOptions])) {
2155
- _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
2155
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
2156
2156
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
2157
- _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
2157
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
2158
2158
  }
2159
- _chunkX6VJDRKIjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
2159
+ _chunkE7YOJ4JGjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
2160
2160
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
2161
2161
  const tokenized = await applyWorkspaceTokens(options, {
2162
2162
  workspaceRoot: tree.root,
2163
2163
  config
2164
2164
  }, applyWorkspaceBaseTokens);
2165
2165
  if (_optionalChain([generatorOptions, 'optionalAccess', _117 => _117.hooks, 'optionalAccess', _118 => _118.preProcess])) {
2166
- _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
2166
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
2167
2167
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
2168
- _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
2168
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
2169
2169
  }
2170
2170
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
2171
2171
  if (result) {
@@ -2178,18 +2178,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
2178
2178
  }
2179
2179
  }
2180
2180
  if (_optionalChain([generatorOptions, 'optionalAccess', _128 => _128.hooks, 'optionalAccess', _129 => _129.postProcess])) {
2181
- _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2181
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2182
2182
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
2183
- _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
2183
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
2184
2184
  }
2185
2185
  return () => {
2186
- _chunkX6VJDRKIjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
2186
+ _chunkE7YOJ4JGjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
2187
2187
  `, config);
2188
2188
  };
2189
2189
  } catch (error) {
2190
2190
  return () => {
2191
- _chunkX6VJDRKIjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
2192
- _chunkX6VJDRKIjs.writeError.call(void 0, `An exception was thrown in the generator's process
2191
+ _chunkE7YOJ4JGjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
2192
+ _chunkE7YOJ4JGjs.writeError.call(void 0, `An exception was thrown in the generator's process
2193
2193
  - Details: ${error.message}
2194
2194
  - Stacktrace: ${error.stack}`, config);
2195
2195
  };
@@ -2235,7 +2235,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2235
2235
  const projectConfig = {
2236
2236
  root: normalized.directory,
2237
2237
  projectType: "library",
2238
- sourceRoot: _chunkX6VJDRKIjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
2238
+ sourceRoot: _chunkE7YOJ4JGjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
2239
2239
  targets: {
2240
2240
  build: {
2241
2241
  executor: options.buildExecutor,
@@ -2244,11 +2244,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2244
2244
  ],
2245
2245
  options: {
2246
2246
  entry: [
2247
- _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
2247
+ _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
2248
2248
  ],
2249
2249
  outputPath: getOutputPath(normalized),
2250
- tsconfig: _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
2251
- project: _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
2250
+ tsconfig: _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
2251
+ project: _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
2252
2252
  defaultConfiguration: "production",
2253
2253
  platform: "neutral",
2254
2254
  assets: [
@@ -2302,7 +2302,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2302
2302
  if (!normalized.importPath) {
2303
2303
  normalized.importPath = normalized.name;
2304
2304
  }
2305
- const packageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
2305
+ const packageJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
2306
2306
  if (tree.exists(packageJsonPath)) {
2307
2307
  _devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
2308
2308
  if (!normalized.importPath) {
@@ -2359,10 +2359,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2359
2359
  }));
2360
2360
  }
2361
2361
  _js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
2362
- _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
2362
+ _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
2363
2363
  ]);
2364
- _js.addTsConfigPath.call(void 0, tree, _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
2365
- _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
2364
+ _js.addTsConfigPath.call(void 0, tree, _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
2365
+ _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
2366
2366
  ]);
2367
2367
  if (tree.exists("package.json")) {
2368
2368
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
@@ -2373,7 +2373,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2373
2373
  description = packageJson.description;
2374
2374
  }
2375
2375
  }
2376
- const tsconfigPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
2376
+ const tsconfigPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
2377
2377
  if (tree.exists(tsconfigPath)) {
2378
2378
  _devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
2379
2379
  json.composite ??= true;
@@ -2411,7 +2411,7 @@ function getOutputPath(options) {
2411
2411
  } else {
2412
2412
  parts.push(options.projectRoot);
2413
2413
  }
2414
- return _chunkX6VJDRKIjs.joinPaths.call(void 0, ...parts);
2414
+ return _chunkE7YOJ4JGjs.joinPaths.call(void 0, ...parts);
2415
2415
  }
2416
2416
  _chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
2417
2417
  function createProjectTsConfigJson(tree, options) {
@@ -2420,7 +2420,7 @@ function createProjectTsConfigJson(tree, options) {
2420
2420
  ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _141 => _141.tsconfigOptions]), () => ( {})),
2421
2421
  compilerOptions: {
2422
2422
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
2423
- outDir: _chunkX6VJDRKIjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2423
+ outDir: _chunkE7YOJ4JGjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2424
2424
  noEmit: true,
2425
2425
  ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _142 => _142.tsconfigOptions, 'optionalAccess', _143 => _143.compilerOptions]), () => ( {}))
2426
2426
  },
@@ -2440,7 +2440,7 @@ function createProjectTsConfigJson(tree, options) {
2440
2440
  "src/**/*.test.ts"
2441
2441
  ]
2442
2442
  };
2443
- _devkit.writeJson.call(void 0, tree, _chunkX6VJDRKIjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2443
+ _devkit.writeJson.call(void 0, tree, _chunkE7YOJ4JGjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2444
2444
  }
2445
2445
  _chunkJ5SB6L2Ljs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
2446
2446
  async function normalizeOptions(tree, options, config) {
@@ -2500,7 +2500,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, normalizeOptions, "normalizeOptions");
2500
2500
 
2501
2501
  // ../workspace-tools/src/generators/browser-library/generator.ts
2502
2502
  async function browserLibraryGeneratorFn(tree, schema, config) {
2503
- const filesDir = _chunkX6VJDRKIjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
2503
+ const filesDir = _chunkE7YOJ4JGjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
2504
2504
  const tsLibraryGeneratorOptions = {
2505
2505
  buildExecutor: "@storm-software/workspace-tools:unbuild",
2506
2506
  platform: "browser",
@@ -2572,19 +2572,19 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
2572
2572
 
2573
2573
  var _zodtojsonschema = require('zod-to-json-schema');
2574
2574
  async function configSchemaGeneratorFn(tree, options, config) {
2575
- _chunkX6VJDRKIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
2576
- _chunkX6VJDRKIjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
2577
- const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkX6VJDRKIjs.StormConfigSchema, {
2575
+ _chunkE7YOJ4JGjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
2576
+ _chunkE7YOJ4JGjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
2577
+ const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkE7YOJ4JGjs.StormConfigSchema, {
2578
2578
  name: "StormWorkspaceConfiguration"
2579
2579
  });
2580
- _chunkX6VJDRKIjs.writeTrace.call(void 0, jsonSchema, config);
2581
- 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("./")]) ? "" : "./");
2582
- _chunkX6VJDRKIjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2580
+ _chunkE7YOJ4JGjs.writeTrace.call(void 0, jsonSchema, config);
2581
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _152 => _152.workspaceRoot]), () => ( _chunkE7YOJ4JGjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _153 => _153.outputFile, 'optionalAccess', _154 => _154.startsWith, 'call', _155 => _155("./")]) ? "" : "./");
2582
+ _chunkE7YOJ4JGjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2583
2583
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
2584
2584
  spaces: 2
2585
2585
  });
2586
2586
  await _devkit.formatFiles.call(void 0, tree);
2587
- _chunkX6VJDRKIjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2587
+ _chunkE7YOJ4JGjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2588
2588
  return {
2589
2589
  success: true
2590
2590
  };
@@ -2605,7 +2605,7 @@ var generator_default2 = withRunGenerator("Configuration Schema Creator", config
2605
2605
  // ../workspace-tools/src/generators/neutral-library/generator.ts
2606
2606
 
2607
2607
  async function neutralLibraryGeneratorFn(tree, schema, config) {
2608
- const filesDir = _chunkX6VJDRKIjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
2608
+ const filesDir = _chunkE7YOJ4JGjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
2609
2609
  const tsLibraryGeneratorOptions = {
2610
2610
  ...schema,
2611
2611
  platform: "neutral",
@@ -2648,7 +2648,7 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
2648
2648
  // ../workspace-tools/src/generators/node-library/generator.ts
2649
2649
 
2650
2650
  async function nodeLibraryGeneratorFn(tree, schema, config) {
2651
- const filesDir = _chunkX6VJDRKIjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
2651
+ const filesDir = _chunkE7YOJ4JGjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
2652
2652
  const tsLibraryGeneratorOptions = {
2653
2653
  platform: "node",
2654
2654
  devDependencies: {