@storm-software/cloudflare-tools 0.55.18 → 0.55.19

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 +6 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-CH4HU3UC.mjs → chunk-2NMEF6LP.mjs} +16 -10
  4. package/dist/{chunk-NHQOBOKU.js → chunk-3GBUWFDY.js} +1 -1
  5. package/dist/{chunk-TWSVFCGJ.js → chunk-AOQHEVKD.js} +158 -158
  6. package/dist/{chunk-OO2KFXL5.js → chunk-BRNE2OJC.js} +52 -46
  7. package/dist/{chunk-FUEYDPCD.mjs → chunk-DEAG3BRL.mjs} +1 -1
  8. package/dist/{chunk-7GVMKVE6.mjs → chunk-HXUMSWIK.mjs} +1 -1
  9. package/dist/{chunk-EY654AX3.mjs → chunk-MMV7N7QY.mjs} +26 -15
  10. package/dist/{chunk-23PVXPM6.js → chunk-MUNYIY4Y.js} +16 -16
  11. package/dist/{chunk-7HA6AB2O.mjs → chunk-NB2S3V4K.mjs} +3 -3
  12. package/dist/{chunk-UYVVVI5O.mjs → chunk-NU6KVH6M.mjs} +4 -4
  13. package/dist/{chunk-57JETFC4.js → chunk-T4IWTHDS.js} +3 -3
  14. package/dist/{chunk-KD2ZJ3N4.js → chunk-WQCCOPHE.js} +12 -12
  15. package/dist/{chunk-FNE7DP2D.js → chunk-X6VJDRKI.js} +26 -15
  16. package/dist/{chunk-JYGVCUHY.mjs → chunk-ZPZYYSN3.mjs} +3 -3
  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.d.mts +3 -0
  28. package/dist/src/executors/serve/executor.d.ts +3 -0
  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
@@ -4,7 +4,7 @@
4
4
  var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
5
5
 
6
6
 
7
- var _chunkOO2KFXL5js = require('./chunk-OO2KFXL5.js');
7
+ var _chunkBRNE2OJCjs = require('./chunk-BRNE2OJC.js');
8
8
 
9
9
 
10
10
 
@@ -20,7 +20,7 @@ var _chunkOO2KFXL5js = require('./chunk-OO2KFXL5.js');
20
20
 
21
21
 
22
22
 
23
- var _chunkFNE7DP2Djs = require('./chunk-FNE7DP2D.js');
23
+ var _chunkX6VJDRKIjs = require('./chunk-X6VJDRKI.js');
24
24
 
25
25
 
26
26
 
@@ -53,7 +53,7 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void
53
53
  }
54
54
  }
55
55
  if (result.includes("{workspaceRoot}")) {
56
- result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunkFNE7DP2Djs.findWorkspaceRoot.call(void 0, ))));
56
+ result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, ))));
57
57
  }
58
58
  return result;
59
59
  }, "applyWorkspaceBaseTokens");
@@ -101,37 +101,37 @@ var run = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (config, command,
101
101
  // ../workspace-tools/src/base/base-executor.ts
102
102
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
103
103
  var withRunExecutor = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context2) => {
104
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, name);
104
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, name);
105
105
  let options = _options;
106
106
  let config = {};
107
107
  try {
108
108
  if (!_optionalChain([context2, 'access', _5 => _5.projectsConfigurations, 'optionalAccess', _6 => _6.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
109
109
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
110
110
  }
111
- const workspaceRoot3 = _chunkFNE7DP2Djs.findWorkspaceRoot.call(void 0, );
111
+ const workspaceRoot3 = _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, );
112
112
  const projectRoot = context2.projectsConfigurations.projects[context2.projectName].root || workspaceRoot3;
113
113
  const sourceRoot = context2.projectsConfigurations.projects[context2.projectName].sourceRoot || projectRoot || workspaceRoot3;
114
114
  const projectName = context2.projectName;
115
115
  config.workspaceRoot = workspaceRoot3;
116
- _chunkFNE7DP2Djs.writeInfo.call(void 0, `
116
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, `
117
117
  \u26A1 Running the ${name} executor for ${projectName}
118
118
  `, config);
119
119
  if (!executorOptions.skipReadingConfig) {
120
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
120
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
121
121
  - workspaceRoot: ${workspaceRoot3}
122
122
  - projectRoot: ${projectRoot}
123
123
  - sourceRoot: ${sourceRoot}
124
124
  - projectName: ${projectName}
125
125
  `, config);
126
- config = await _chunkOO2KFXL5js.getConfig.call(void 0, workspaceRoot3);
126
+ config = await _chunkBRNE2OJCjs.getConfig.call(void 0, workspaceRoot3);
127
127
  }
128
128
  if (_optionalChain([executorOptions, 'optionalAccess', _7 => _7.hooks, 'optionalAccess', _8 => _8.applyDefaultOptions])) {
129
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
129
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
130
130
  options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
131
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
131
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
132
132
  }
133
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
134
- ${_chunkFNE7DP2Djs.formatLogMessage.call(void 0, options)}
133
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
134
+ ${_chunkX6VJDRKIjs.formatLogMessage.call(void 0, options)}
135
135
  `, config);
136
136
  const tokenized = await applyWorkspaceTokens(options, _defu.defu.call(void 0, {
137
137
  workspaceRoot: workspaceRoot3,
@@ -140,13 +140,13 @@ ${_chunkFNE7DP2Djs.formatLogMessage.call(void 0, options)}
140
140
  projectName,
141
141
  config
142
142
  }, config, context2.projectsConfigurations.projects[context2.projectName]), applyWorkspaceProjectTokens);
143
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
144
- ${_chunkFNE7DP2Djs.formatLogMessage.call(void 0, tokenized)}
143
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
144
+ ${_chunkX6VJDRKIjs.formatLogMessage.call(void 0, tokenized)}
145
145
  `, config);
146
146
  if (_optionalChain([executorOptions, 'optionalAccess', _9 => _9.hooks, 'optionalAccess', _10 => _10.preProcess])) {
147
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Running the preProcess hook...", config);
147
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
148
148
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
149
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Completed the preProcess hook", config);
149
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
150
150
  }
151
151
  const ret = executorFn(tokenized, context2, config);
152
152
  if (_isFunction(_optionalChain([ret, 'optionalAccess', _11 => _11.next]))) {
@@ -156,26 +156,26 @@ ${_chunkFNE7DP2Djs.formatLogMessage.call(void 0, tokenized)}
156
156
  }
157
157
  const result = await Promise.resolve(ret);
158
158
  if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.message]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.message]) === "string" && _optionalChain([result, 'optionalAccess', _16 => _16.error, 'optionalAccess', _17 => _17.name]) && typeof _optionalChain([result, 'optionalAccess', _18 => _18.error, 'optionalAccess', _19 => _19.name]) === "string")) {
159
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `Failure determined by the ${name} executor
160
- ${_chunkFNE7DP2Djs.formatLogMessage.call(void 0, result)}`, config);
159
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
160
+ ${_chunkX6VJDRKIjs.formatLogMessage.call(void 0, result)}`, config);
161
161
  console.error(result);
162
162
  throw new Error(`The ${name} executor failed to run`, {
163
163
  cause: _optionalChain([result, 'optionalAccess', _20 => _20.error])
164
164
  });
165
165
  }
166
166
  if (_optionalChain([executorOptions, 'optionalAccess', _21 => _21.hooks, 'optionalAccess', _22 => _22.postProcess])) {
167
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Running the postProcess hook...", config);
167
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
168
168
  await Promise.resolve(executorOptions.hooks.postProcess(config));
169
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Completed the postProcess hook", config);
169
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
170
170
  }
171
- _chunkFNE7DP2Djs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
171
+ _chunkX6VJDRKIjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
172
172
  `, config);
173
173
  return {
174
174
  success: true
175
175
  };
176
176
  } catch (error) {
177
- _chunkFNE7DP2Djs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
178
- _chunkFNE7DP2Djs.writeError.call(void 0, `An exception was thrown in the executor's process
177
+ _chunkX6VJDRKIjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
178
+ _chunkX6VJDRKIjs.writeError.call(void 0, `An exception was thrown in the executor's process
179
179
  - Details: ${error.message}
180
180
  - Stacktrace: ${error.stack}`, config);
181
181
  return {
@@ -478,8 +478,8 @@ var copyAssets = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (con
478
478
  output: "src/"
479
479
  });
480
480
  }
481
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
482
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkFNE7DP2Djs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
481
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
482
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkX6VJDRKIjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
483
483
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
484
484
  projectDir: projectRoot,
485
485
  rootDir: config.workspaceRoot,
@@ -488,12 +488,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
488
488
  });
489
489
  await assetHandler.processAllAssetsOnce();
490
490
  if (includeSrc === true) {
491
- _chunkFNE7DP2Djs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkFNE7DP2Djs.joinPaths.call(void 0, outputPath, "src")}`, config);
491
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkX6VJDRKIjs.joinPaths.call(void 0, outputPath, "src")}`, config);
492
492
  const files = await _glob.glob.call(void 0, [
493
- _chunkFNE7DP2Djs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
494
- _chunkFNE7DP2Djs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
495
- _chunkFNE7DP2Djs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
496
- _chunkFNE7DP2Djs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
493
+ _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
494
+ _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
495
+ _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
496
+ _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
497
497
  ]);
498
498
  await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
499
499
 
@@ -515,7 +515,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
515
515
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
516
516
  const projectNode = project.node;
517
517
  if (projectNode.data.root) {
518
- const projectPackageJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
518
+ const projectPackageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
519
519
  if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
520
520
  const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
521
521
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
@@ -526,7 +526,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
526
526
  }
527
527
  }
528
528
  if (localPackages.length > 0) {
529
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
529
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
530
530
  packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
531
531
  if (!ret[localPackage.name]) {
532
532
  ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
@@ -548,13 +548,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
548
548
  return ret;
549
549
  }, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
550
550
  } else {
551
- _chunkFNE7DP2Djs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
551
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
552
552
  }
553
553
  return packageJson;
554
554
  }, "addPackageDependencies");
555
555
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
556
- const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkFNE7DP2Djs.findWorkspaceRoot.call(void 0, );
557
- const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
556
+ const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, );
557
+ const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
558
558
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
559
559
  packageJson.type ??= "module";
560
560
  packageJson.sideEffects ??= false;
@@ -563,7 +563,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call
563
563
  if (distSrc.startsWith("/")) {
564
564
  distSrc = distSrc.substring(1);
565
565
  }
566
- packageJson.source ??= `${_chunkFNE7DP2Djs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
566
+ packageJson.source ??= `${_chunkX6VJDRKIjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
567
567
  }
568
568
  packageJson.files ??= [
569
569
  "dist/**/*"
@@ -594,7 +594,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call
594
594
  ];
595
595
  }
596
596
  packageJson.repository ??= workspacePackageJson.repository;
597
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkFNE7DP2Djs.joinPaths.call(void 0, "packages", projectName);
597
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkX6VJDRKIjs.joinPaths.call(void 0, "packages", projectName);
598
598
  return packageJson;
599
599
  }, "addWorkspacePackageJsonFields");
600
600
  var addPackageJsonExport = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (file, type = "module", sourceRoot) => {
@@ -621,7 +621,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0,
621
621
  // ../build-tools/src/utilities/get-entry-points.ts
622
622
 
623
623
  var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
624
- const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkFNE7DP2Djs.findWorkspaceRoot.call(void 0, );
624
+ const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, );
625
625
  const entryPoints = [];
626
626
  if (entry) {
627
627
  if (Array.isArray(entry)) {
@@ -633,7 +633,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
633
633
  }
634
634
  }
635
635
  if (emitOnAll) {
636
- entryPoints.push(_chunkFNE7DP2Djs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
636
+ entryPoints.push(_chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
637
637
  }
638
638
  const results = [];
639
639
  for (const entryPoint in entryPoints) {
@@ -642,9 +642,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
642
642
  withFileTypes: true
643
643
  });
644
644
  results.push(...files.reduce((ret, filePath) => {
645
- const result = _chunkFNE7DP2Djs.correctPaths.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkFNE7DP2Djs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkFNE7DP2Djs.correctPaths.call(void 0, projectRoot), ""));
645
+ const result = _chunkX6VJDRKIjs.correctPaths.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkX6VJDRKIjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkX6VJDRKIjs.correctPaths.call(void 0, projectRoot), ""));
646
646
  if (result) {
647
- _chunkFNE7DP2Djs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkFNE7DP2Djs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
647
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkX6VJDRKIjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
648
648
  if (!results.includes(result)) {
649
649
  results.push(result);
650
650
  }
@@ -978,7 +978,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (option
978
978
  setup(build5) {
979
979
  build5.onEnd((result) => {
980
980
  if (result.errors.length > 0 && process.env.WATCH !== "true") {
981
- _chunkFNE7DP2Djs.writeError.call(void 0, `The following errors occurred during the build:
981
+ _chunkX6VJDRKIjs.writeError.call(void 0, `The following errors occurred during the build:
982
982
  ${result.errors.map((error) => error.text).join("\n")}
983
983
 
984
984
  `, resolvedOptions.config);
@@ -1013,7 +1013,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
1013
1013
  var resolvePathsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, resolvedOptions) => ({
1014
1014
  name: "storm:resolve-paths",
1015
1015
  setup(build5) {
1016
- const parentTsConfig = build5.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build5.initialOptions.tsconfig)) : _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
1016
+ const parentTsConfig = build5.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build5.initialOptions.tsconfig)) : _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
1017
1017
  const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
1018
1018
  const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
1019
1019
  build5.onResolve({
@@ -1037,7 +1037,7 @@ var _apiextractor = require('@microsoft/api-extractor');
1037
1037
 
1038
1038
 
1039
1039
  function bundleTypeDefinitions(filename, outfile, externals, options) {
1040
- const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, options.projectRoot, "package.json"));
1040
+ const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
1041
1041
  const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
1042
1042
  p,
1043
1043
  getTypeDependencyPackageName(p)
@@ -1073,13 +1073,13 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
1073
1073
  },
1074
1074
  dtsRollup: {
1075
1075
  enabled: true,
1076
- untrimmedFilePath: _chunkFNE7DP2Djs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
1076
+ untrimmedFilePath: _chunkX6VJDRKIjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
1077
1077
  },
1078
1078
  tsdocMetadata: {
1079
1079
  enabled: false
1080
1080
  }
1081
1081
  },
1082
- packageJsonFullPath: _chunkFNE7DP2Djs.joinPaths.call(void 0, options.projectRoot, "package.json"),
1082
+ packageJsonFullPath: _chunkX6VJDRKIjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
1083
1083
  configObjectFullPath: void 0
1084
1084
  });
1085
1085
  const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
@@ -1087,7 +1087,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
1087
1087
  localBuild: true
1088
1088
  });
1089
1089
  if (extractorResult.succeeded === false) {
1090
- _chunkFNE7DP2Djs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
1090
+ _chunkX6VJDRKIjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
1091
1091
  throw new Error("API Extractor completed with errors");
1092
1092
  }
1093
1093
  }
@@ -1106,12 +1106,12 @@ var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, r
1106
1106
  const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
1107
1107
  const typeOutDir = resolvedOptions.outdir;
1108
1108
  const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
1109
- const bundlePath = _chunkFNE7DP2Djs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
1109
+ const bundlePath = _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
1110
1110
  let dtsPath;
1111
- if (_fs.existsSync.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1112
- dtsPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
1113
- } else if (_fs.existsSync.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1114
- dtsPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
1111
+ if (_fs.existsSync.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1112
+ dtsPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
1113
+ } else if (_fs.existsSync.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1114
+ dtsPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
1115
1115
  }
1116
1116
  const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
1117
1117
  if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
@@ -1266,8 +1266,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (bund
1266
1266
  const filteredMissingDeps = missingDependencies.filter((dep) => {
1267
1267
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
1268
1268
  });
1269
- _chunkFNE7DP2Djs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1270
- _chunkFNE7DP2Djs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1269
+ _chunkX6VJDRKIjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1270
+ _chunkX6VJDRKIjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1271
1271
  if (filteredMissingDeps.length > 0) {
1272
1272
  throw new Error(`Missing dependencies detected - please install them:
1273
1273
  ${JSON.stringify(filteredMissingDeps)}
@@ -1361,13 +1361,13 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1361
1361
  if (!workspaceRoot3) {
1362
1362
  throw new Error("Cannot find Nx workspace root");
1363
1363
  }
1364
- const config = await _chunkOO2KFXL5js.getConfig.call(void 0, workspaceRoot3.dir);
1365
- _chunkFNE7DP2Djs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1366
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, "Build options resolution");
1364
+ const config = await _chunkBRNE2OJCjs.getConfig.call(void 0, workspaceRoot3.dir);
1365
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1366
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "Build options resolution");
1367
1367
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
1368
1368
  exitOnError: true
1369
1369
  });
1370
- const projectJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1370
+ const projectJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1371
1371
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
1372
1372
  throw new Error("Cannot find project.json configuration");
1373
1373
  }
@@ -1381,7 +1381,7 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1381
1381
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
1382
1382
  options.name ??= `${projectName}-${options.format}`;
1383
1383
  options.target ??= DEFAULT_TARGET;
1384
- const packageJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1384
+ const packageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1385
1385
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1386
1386
  throw new Error("Cannot find package.json configuration");
1387
1387
  }
@@ -1406,20 +1406,20 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1406
1406
  ".node"
1407
1407
  ],
1408
1408
  ...userOptions,
1409
- tsconfig: _chunkFNE7DP2Djs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1409
+ tsconfig: _chunkX6VJDRKIjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1410
1410
  format: options.format || "cjs",
1411
1411
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
1412
1412
  "./src/index.ts"
1413
1413
  ], userOptions.emitOnAll),
1414
- outdir: userOptions.outputPath || _chunkFNE7DP2Djs.joinPaths.call(void 0, "dist", projectRoot),
1414
+ outdir: userOptions.outputPath || _chunkX6VJDRKIjs.joinPaths.call(void 0, "dist", projectRoot),
1415
1415
  plugins: [],
1416
1416
  name: userOptions.name || projectName,
1417
1417
  projectConfigurations,
1418
1418
  projectName,
1419
1419
  projectGraph,
1420
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkFNE7DP2Djs.joinPaths.call(void 0, projectRoot, "src"),
1420
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkX6VJDRKIjs.joinPaths.call(void 0, projectRoot, "src"),
1421
1421
  minify: userOptions.minify || !userOptions.debug,
1422
- verbose: userOptions.verbose || _chunkFNE7DP2Djs.isVerbose.call(void 0, ) || userOptions.debug === true,
1422
+ verbose: userOptions.verbose || _chunkX6VJDRKIjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1423
1423
  includeSrc: userOptions.includeSrc === true,
1424
1424
  metafile: userOptions.metafile !== false,
1425
1425
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -1455,8 +1455,8 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1455
1455
  }, {})
1456
1456
  },
1457
1457
  inject: [
1458
- options.format === "cjs" && options.injectShims ? _chunkFNE7DP2Djs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
1459
- options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkFNE7DP2Djs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
1458
+ options.format === "cjs" && options.injectShims ? _chunkX6VJDRKIjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
1459
+ options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkX6VJDRKIjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
1460
1460
  ..._nullishCoalesce(options.inject, () => ( []))
1461
1461
  ].filter(Boolean)
1462
1462
  };
@@ -1465,14 +1465,14 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1465
1465
  return result;
1466
1466
  }, "resolveOptions");
1467
1467
  async function generatePackageJson(context2) {
1468
- if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1469
- _chunkFNE7DP2Djs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1470
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, "Write package.json file");
1471
- const packageJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1468
+ if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1469
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1470
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "Write package.json file");
1471
+ const packageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1472
1472
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1473
1473
  throw new Error("Cannot find package.json configuration");
1474
1474
  }
1475
- const packageJsonFile = await _promises2.default.readFile(_chunkFNE7DP2Djs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
1475
+ const packageJsonFile = await _promises2.default.readFile(_chunkX6VJDRKIjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
1476
1476
  let packageJson = JSON.parse(packageJsonFile);
1477
1477
  if (!packageJson) {
1478
1478
  throw new Error("Cannot find package.json configuration file");
@@ -1511,7 +1511,7 @@ async function generatePackageJson(context2) {
1511
1511
  }
1512
1512
  return ret;
1513
1513
  }, packageJson.exports);
1514
- await _devkit.writeJsonFile.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1514
+ await _devkit.writeJsonFile.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1515
1515
  stopwatch();
1516
1516
  }
1517
1517
  return context2;
@@ -1537,8 +1537,8 @@ async function generateContext(getOptions) {
1537
1537
  }
1538
1538
  _chunkJ5SB6L2Ljs.__name.call(void 0, generateContext, "generateContext");
1539
1539
  async function executeEsBuild(context2) {
1540
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1541
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, `${context2.options.name} build`);
1540
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1541
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${context2.options.name} build`);
1542
1542
  if (process.env.WATCH === "true") {
1543
1543
  const ctx = await esbuild2.context(context2.options);
1544
1544
  watch(ctx, context2.options);
@@ -1554,8 +1554,8 @@ async function executeEsBuild(context2) {
1554
1554
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1555
1555
  async function copyBuildAssets(context2) {
1556
1556
  if (_optionalChain([context2, 'access', _53 => _53.result, 'optionalAccess', _54 => _54.errors, 'access', _55 => _55.length]) === 0) {
1557
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1558
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1557
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1558
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1559
1559
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
1560
1560
  stopwatch();
1561
1561
  }
@@ -1565,9 +1565,9 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1565
1565
  async function reportResults(context2) {
1566
1566
  if (_optionalChain([context2, 'access', _56 => _56.result, 'optionalAccess', _57 => _57.errors, 'access', _58 => _58.length]) === 0) {
1567
1567
  if (context2.result.warnings.length > 0) {
1568
- _chunkFNE7DP2Djs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
1568
+ _chunkX6VJDRKIjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
1569
1569
  }
1570
- _chunkFNE7DP2Djs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1570
+ _chunkX6VJDRKIjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1571
1571
  }
1572
1572
  }
1573
1573
  _chunkJ5SB6L2Ljs.__name.call(void 0, reportResults, "reportResults");
@@ -1603,8 +1603,8 @@ async function dependencyCheck(options) {
1603
1603
  _chunkJ5SB6L2Ljs.__name.call(void 0, dependencyCheck, "dependencyCheck");
1604
1604
  async function cleanOutputPath(context2) {
1605
1605
  if (context2.options.clean !== false && context2.options.outdir) {
1606
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1607
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
1606
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1607
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
1608
1608
  await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
1609
1609
  stopwatch();
1610
1610
  }
@@ -1612,8 +1612,8 @@ async function cleanOutputPath(context2) {
1612
1612
  }
1613
1613
  _chunkJ5SB6L2Ljs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
1614
1614
  async function build3(options) {
1615
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1616
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, "ESBuild pipeline");
1615
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1616
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "ESBuild pipeline");
1617
1617
  try {
1618
1618
  const opts = Array.isArray(options) ? options : [
1619
1619
  options
@@ -1623,9 +1623,9 @@ async function build3(options) {
1623
1623
  }
1624
1624
  void transduce.async(opts, dependencyCheck);
1625
1625
  await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
1626
- _chunkFNE7DP2Djs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1626
+ _chunkX6VJDRKIjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1627
1627
  } catch (error) {
1628
- _chunkFNE7DP2Djs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1628
+ _chunkX6VJDRKIjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1629
1629
  throw error;
1630
1630
  } finally {
1631
1631
  stopwatch();
@@ -1653,9 +1653,9 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1653
1653
  return context2.rebuild();
1654
1654
  });
1655
1655
  if (rebuildResult instanceof Error) {
1656
- _chunkFNE7DP2Djs.writeError.call(void 0, rebuildResult.message);
1656
+ _chunkX6VJDRKIjs.writeError.call(void 0, rebuildResult.message);
1657
1657
  }
1658
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1658
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1659
1659
  }, 10);
1660
1660
  changeWatcher.on("change", fastRebuild);
1661
1661
  return void 0;
@@ -1663,7 +1663,7 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1663
1663
 
1664
1664
  // ../workspace-tools/src/executors/esbuild/executor.ts
1665
1665
  async function esbuildExecutorFn(options, context2, config) {
1666
- _chunkFNE7DP2Djs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1666
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1667
1667
  if (!_optionalChain([context2, 'access', _59 => _59.projectsConfigurations, 'optionalAccess', _60 => _60.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _61 => _61.projectsConfigurations, 'access', _62 => _62.projects, 'access', _63 => _63[context2.projectName], 'optionalAccess', _64 => _64.root])) {
1668
1668
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1669
1669
  }
@@ -1717,7 +1717,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
1717
1717
  if (!_optionalChain([context2, 'optionalAccess', _73 => _73.projectName]) || !_optionalChain([context2, 'access', _74 => _74.projectsConfigurations, 'optionalAccess', _75 => _75.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1718
1718
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
1719
1719
  }
1720
- _chunkFNE7DP2Djs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1720
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1721
1721
  _sizelimit2.default.call(void 0, [
1722
1722
  _file2.default,
1723
1723
  _esbuild3.default,
@@ -1725,7 +1725,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
1725
1725
  ], {
1726
1726
  checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _76 => _76.projectsConfigurations, 'access', _77 => _77.projects, 'access', _78 => _78[context2.projectName], 'optionalAccess', _79 => _79.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _80 => _80.projectsConfigurations, 'access', _81 => _81.projects, 'access', _82 => _82[context2.projectName], 'optionalAccess', _83 => _83.root]), () => ( "./")), "src")))
1727
1727
  }).then((result) => {
1728
- _chunkFNE7DP2Djs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1728
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1729
1729
  });
1730
1730
  return {
1731
1731
  success: true
@@ -1788,13 +1788,13 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1788
1788
  if (!workspaceRoot3) {
1789
1789
  throw new Error("Cannot find Nx workspace root");
1790
1790
  }
1791
- const config = await _chunkOO2KFXL5js.getConfig.call(void 0, workspaceRoot3.dir);
1792
- _chunkFNE7DP2Djs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1793
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, "Build options resolution");
1791
+ const config = await _chunkBRNE2OJCjs.getConfig.call(void 0, workspaceRoot3.dir);
1792
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1793
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "Build options resolution");
1794
1794
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
1795
1795
  exitOnError: true
1796
1796
  });
1797
- const projectJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1797
+ const projectJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1798
1798
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
1799
1799
  throw new Error("Cannot find project.json configuration");
1800
1800
  }
@@ -1808,7 +1808,7 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1808
1808
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS2);
1809
1809
  options.name ??= `${projectName}-${options.format}`;
1810
1810
  options.target ??= DEFAULT_TARGET;
1811
- const packageJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1811
+ const packageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1812
1812
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1813
1813
  throw new Error("Cannot find package.json configuration");
1814
1814
  }
@@ -1817,20 +1817,20 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1817
1817
  ...options,
1818
1818
  config,
1819
1819
  ...userOptions,
1820
- tsconfig: _chunkFNE7DP2Djs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1820
+ tsconfig: _chunkX6VJDRKIjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1821
1821
  format: options.format || "cjs",
1822
1822
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
1823
1823
  "./src/index.ts"
1824
1824
  ], userOptions.emitOnAll),
1825
- outdir: userOptions.outputPath || _chunkFNE7DP2Djs.joinPaths.call(void 0, "dist", projectRoot),
1825
+ outdir: userOptions.outputPath || _chunkX6VJDRKIjs.joinPaths.call(void 0, "dist", projectRoot),
1826
1826
  plugins: [],
1827
1827
  name: userOptions.name || projectName,
1828
1828
  projectConfigurations,
1829
1829
  projectName,
1830
1830
  projectGraph,
1831
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkFNE7DP2Djs.joinPaths.call(void 0, projectRoot, "src"),
1831
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkX6VJDRKIjs.joinPaths.call(void 0, projectRoot, "src"),
1832
1832
  minify: userOptions.minify || !userOptions.debug,
1833
- verbose: userOptions.verbose || _chunkFNE7DP2Djs.isVerbose.call(void 0, ) || userOptions.debug === true,
1833
+ verbose: userOptions.verbose || _chunkX6VJDRKIjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1834
1834
  includeSrc: userOptions.includeSrc === true,
1835
1835
  metafile: userOptions.metafile !== false,
1836
1836
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -1864,14 +1864,14 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1864
1864
  return result;
1865
1865
  }, "resolveOptions");
1866
1866
  async function generatePackageJson2(options) {
1867
- if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1868
- _chunkFNE7DP2Djs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1869
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, "Write package.json file");
1870
- const packageJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, options.projectRoot, "project.json");
1867
+ if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1868
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1869
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "Write package.json file");
1870
+ const packageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1871
1871
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1872
1872
  throw new Error("Cannot find package.json configuration");
1873
1873
  }
1874
- const packageJsonFile = await _promises2.default.readFile(_chunkFNE7DP2Djs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
1874
+ const packageJsonFile = await _promises2.default.readFile(_chunkX6VJDRKIjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
1875
1875
  if (!packageJsonFile) {
1876
1876
  throw new Error("Cannot find package.json configuration file");
1877
1877
  }
@@ -1910,15 +1910,15 @@ async function generatePackageJson2(options) {
1910
1910
  }
1911
1911
  return ret;
1912
1912
  }, packageJson.exports);
1913
- await _devkit.writeJsonFile.call(void 0, _chunkFNE7DP2Djs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1913
+ await _devkit.writeJsonFile.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1914
1914
  stopwatch();
1915
1915
  }
1916
1916
  return options;
1917
1917
  }
1918
1918
  _chunkJ5SB6L2Ljs.__name.call(void 0, generatePackageJson2, "generatePackageJson");
1919
1919
  async function executeTSDown(options) {
1920
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1921
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, `${options.name} build`);
1920
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1921
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${options.name} build`);
1922
1922
  await _tsdown.build.call(void 0, {
1923
1923
  ...options,
1924
1924
  entry: options.entryPoints,
@@ -1930,21 +1930,21 @@ async function executeTSDown(options) {
1930
1930
  }
1931
1931
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeTSDown, "executeTSDown");
1932
1932
  async function copyBuildAssets2(options) {
1933
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1934
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, `${options.name} asset copy`);
1933
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1934
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1935
1935
  await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
1936
1936
  stopwatch();
1937
1937
  return options;
1938
1938
  }
1939
1939
  _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets2, "copyBuildAssets");
1940
1940
  async function reportResults2(options) {
1941
- _chunkFNE7DP2Djs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
1941
+ _chunkX6VJDRKIjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
1942
1942
  }
1943
1943
  _chunkJ5SB6L2Ljs.__name.call(void 0, reportResults2, "reportResults");
1944
1944
  async function cleanOutputPath2(options) {
1945
1945
  if (options.clean !== false && options.outdir) {
1946
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
1947
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, `${options.name} output clean`);
1946
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
1947
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${options.name} output clean`);
1948
1948
  await cleanDirectories2(options.name, options.outdir, options.config);
1949
1949
  stopwatch();
1950
1950
  }
@@ -1952,8 +1952,8 @@ async function cleanOutputPath2(options) {
1952
1952
  }
1953
1953
  _chunkJ5SB6L2Ljs.__name.call(void 0, cleanOutputPath2, "cleanOutputPath");
1954
1954
  async function build4(options) {
1955
- _chunkFNE7DP2Djs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1956
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, "TSDown pipeline");
1955
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1956
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "TSDown pipeline");
1957
1957
  try {
1958
1958
  const opts = Array.isArray(options) ? options : [
1959
1959
  options
@@ -1971,11 +1971,11 @@ async function build4(options) {
1971
1971
  await reportResults2(opt);
1972
1972
  }));
1973
1973
  } else {
1974
- _chunkFNE7DP2Djs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
1974
+ _chunkX6VJDRKIjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
1975
1975
  }
1976
- _chunkFNE7DP2Djs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1976
+ _chunkX6VJDRKIjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1977
1977
  } catch (error) {
1978
- _chunkFNE7DP2Djs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1978
+ _chunkX6VJDRKIjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1979
1979
  throw error;
1980
1980
  } finally {
1981
1981
  stopwatch();
@@ -1985,7 +1985,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, build4, "build");
1985
1985
 
1986
1986
  // ../workspace-tools/src/executors/tsdown/executor.ts
1987
1987
  async function tsdownExecutorFn(options, context2, config) {
1988
- _chunkFNE7DP2Djs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
1988
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
1989
1989
  if (!_optionalChain([context2, 'access', _86 => _86.projectsConfigurations, 'optionalAccess', _87 => _87.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _88 => _88.projectsConfigurations, 'access', _89 => _89.projects, 'access', _90 => _90[context2.projectName], 'optionalAccess', _91 => _91.root])) {
1990
1990
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1991
1991
  }
@@ -2021,11 +2021,11 @@ var _fsextra = require('fs-extra');
2021
2021
  var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
2022
2022
  async function typiaExecutorFn(options, _, config) {
2023
2023
  if (options.clean !== false) {
2024
- _chunkFNE7DP2Djs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
2024
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
2025
2025
  _fsextra.removeSync.call(void 0, options.outputPath);
2026
2026
  }
2027
2027
  await Promise.all(options.entry.map((entry) => {
2028
- _chunkFNE7DP2Djs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
2028
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
2029
2029
  return _TypiaProgrammerjs.TypiaProgrammer.build({
2030
2030
  input: entry,
2031
2031
  output: options.outputPath,
@@ -2056,7 +2056,7 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
2056
2056
 
2057
2057
  var _jiti = require('jiti');
2058
2058
  async function unbuildExecutorFn(options, context2, config) {
2059
- _chunkFNE7DP2Djs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
2059
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
2060
2060
  if (!_optionalChain([context2, 'access', _100 => _100.projectsConfigurations, 'optionalAccess', _101 => _101.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
2061
2061
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
2062
2062
  }
@@ -2067,7 +2067,7 @@ async function unbuildExecutorFn(options, context2, config) {
2067
2067
  throw new Error("The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory.");
2068
2068
  }
2069
2069
  const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
2070
- fsCache: config.skipCache ? false : _chunkFNE7DP2Djs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
2070
+ fsCache: config.skipCache ? false : _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
2071
2071
  interopDefault: true
2072
2072
  });
2073
2073
  const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
@@ -2080,7 +2080,7 @@ async function unbuildExecutorFn(options, context2, config) {
2080
2080
  }, {
2081
2081
  stubOptions: {
2082
2082
  jiti: {
2083
- fsCache: config.skipCache ? false : _chunkFNE7DP2Djs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
2083
+ fsCache: config.skipCache ? false : _chunkX6VJDRKIjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
2084
2084
  }
2085
2085
  },
2086
2086
  rollup: {
@@ -2127,34 +2127,34 @@ var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExec
2127
2127
  var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name, generatorFn, generatorOptions = {
2128
2128
  skipReadingConfig: false
2129
2129
  }) => async (tree, _options) => {
2130
- const stopwatch = _chunkFNE7DP2Djs.getStopwatch.call(void 0, name);
2130
+ const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, name);
2131
2131
  let options = _options;
2132
2132
  let config;
2133
2133
  try {
2134
- _chunkFNE7DP2Djs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
2134
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
2135
2135
 
2136
2136
  `, config);
2137
- const workspaceRoot3 = _chunkFNE7DP2Djs.findWorkspaceRoot.call(void 0, );
2137
+ const workspaceRoot3 = _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, );
2138
2138
  if (!generatorOptions.skipReadingConfig) {
2139
- _chunkFNE7DP2Djs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
2139
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
2140
2140
  - workspaceRoot: ${workspaceRoot3}`, config);
2141
- config = await _chunkOO2KFXL5js.getConfig.call(void 0, workspaceRoot3);
2141
+ config = await _chunkBRNE2OJCjs.getConfig.call(void 0, workspaceRoot3);
2142
2142
  }
2143
2143
  if (_optionalChain([generatorOptions, 'optionalAccess', _102 => _102.hooks, 'optionalAccess', _103 => _103.applyDefaultOptions])) {
2144
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
2144
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
2145
2145
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
2146
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
2146
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
2147
2147
  }
2148
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
2148
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
2149
2149
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
2150
2150
  const tokenized = await applyWorkspaceTokens(options, {
2151
2151
  workspaceRoot: tree.root,
2152
2152
  config
2153
2153
  }, applyWorkspaceBaseTokens);
2154
2154
  if (_optionalChain([generatorOptions, 'optionalAccess', _104 => _104.hooks, 'optionalAccess', _105 => _105.preProcess])) {
2155
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Running the preProcess hook...", config);
2155
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
2156
2156
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
2157
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Completed the preProcess hook", config);
2157
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
2158
2158
  }
2159
2159
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
2160
2160
  if (result) {
@@ -2167,18 +2167,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
2167
2167
  }
2168
2168
  }
2169
2169
  if (_optionalChain([generatorOptions, 'optionalAccess', _115 => _115.hooks, 'optionalAccess', _116 => _116.postProcess])) {
2170
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2170
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2171
2171
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
2172
- _chunkFNE7DP2Djs.writeDebug.call(void 0, "Completed the postProcess hook", config);
2172
+ _chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
2173
2173
  }
2174
2174
  return () => {
2175
- _chunkFNE7DP2Djs.writeSuccess.call(void 0, `Completed running the ${name} generator!
2175
+ _chunkX6VJDRKIjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
2176
2176
  `, config);
2177
2177
  };
2178
2178
  } catch (error) {
2179
2179
  return () => {
2180
- _chunkFNE7DP2Djs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
2181
- _chunkFNE7DP2Djs.writeError.call(void 0, `An exception was thrown in the generator's process
2180
+ _chunkX6VJDRKIjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
2181
+ _chunkX6VJDRKIjs.writeError.call(void 0, `An exception was thrown in the generator's process
2182
2182
  - Details: ${error.message}
2183
2183
  - Stacktrace: ${error.stack}`, config);
2184
2184
  };
@@ -2224,7 +2224,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2224
2224
  const projectConfig = {
2225
2225
  root: normalized.directory,
2226
2226
  projectType: "library",
2227
- sourceRoot: _chunkFNE7DP2Djs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
2227
+ sourceRoot: _chunkX6VJDRKIjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
2228
2228
  targets: {
2229
2229
  build: {
2230
2230
  executor: options.buildExecutor,
@@ -2233,11 +2233,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2233
2233
  ],
2234
2234
  options: {
2235
2235
  entry: [
2236
- _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
2236
+ _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
2237
2237
  ],
2238
2238
  outputPath: getOutputPath(normalized),
2239
- tsconfig: _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
2240
- project: _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
2239
+ tsconfig: _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
2240
+ project: _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
2241
2241
  defaultConfiguration: "production",
2242
2242
  platform: "neutral",
2243
2243
  assets: [
@@ -2291,7 +2291,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2291
2291
  if (!normalized.importPath) {
2292
2292
  normalized.importPath = normalized.name;
2293
2293
  }
2294
- const packageJsonPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
2294
+ const packageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
2295
2295
  if (tree.exists(packageJsonPath)) {
2296
2296
  _devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
2297
2297
  if (!normalized.importPath) {
@@ -2348,10 +2348,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2348
2348
  }));
2349
2349
  }
2350
2350
  _js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
2351
- _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
2351
+ _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
2352
2352
  ]);
2353
- _js.addTsConfigPath.call(void 0, tree, _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.importPath, "/*"), [
2354
- _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
2353
+ _js.addTsConfigPath.call(void 0, tree, _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
2354
+ _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
2355
2355
  ]);
2356
2356
  if (tree.exists("package.json")) {
2357
2357
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
@@ -2362,7 +2362,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2362
2362
  description = packageJson.description;
2363
2363
  }
2364
2364
  }
2365
- const tsconfigPath = _chunkFNE7DP2Djs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
2365
+ const tsconfigPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
2366
2366
  if (tree.exists(tsconfigPath)) {
2367
2367
  _devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
2368
2368
  json.composite ??= true;
@@ -2400,7 +2400,7 @@ function getOutputPath(options) {
2400
2400
  } else {
2401
2401
  parts.push(options.projectRoot);
2402
2402
  }
2403
- return _chunkFNE7DP2Djs.joinPaths.call(void 0, ...parts);
2403
+ return _chunkX6VJDRKIjs.joinPaths.call(void 0, ...parts);
2404
2404
  }
2405
2405
  _chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
2406
2406
  function createProjectTsConfigJson(tree, options) {
@@ -2409,7 +2409,7 @@ function createProjectTsConfigJson(tree, options) {
2409
2409
  ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _128 => _128.tsconfigOptions]), () => ( {})),
2410
2410
  compilerOptions: {
2411
2411
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
2412
- outDir: _chunkFNE7DP2Djs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2412
+ outDir: _chunkX6VJDRKIjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2413
2413
  noEmit: true,
2414
2414
  ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _129 => _129.tsconfigOptions, 'optionalAccess', _130 => _130.compilerOptions]), () => ( {}))
2415
2415
  },
@@ -2429,7 +2429,7 @@ function createProjectTsConfigJson(tree, options) {
2429
2429
  "src/**/*.test.ts"
2430
2430
  ]
2431
2431
  };
2432
- _devkit.writeJson.call(void 0, tree, _chunkFNE7DP2Djs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2432
+ _devkit.writeJson.call(void 0, tree, _chunkX6VJDRKIjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2433
2433
  }
2434
2434
  _chunkJ5SB6L2Ljs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
2435
2435
  async function normalizeOptions(tree, options, config) {
@@ -2488,7 +2488,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, normalizeOptions, "normalizeOptions");
2488
2488
 
2489
2489
  // ../workspace-tools/src/generators/browser-library/generator.ts
2490
2490
  async function browserLibraryGeneratorFn(tree, schema, config) {
2491
- const filesDir = _chunkFNE7DP2Djs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
2491
+ const filesDir = _chunkX6VJDRKIjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
2492
2492
  const tsLibraryGeneratorOptions = {
2493
2493
  buildExecutor: "@storm-software/workspace-tools:unbuild",
2494
2494
  platform: "browser",
@@ -2560,19 +2560,19 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
2560
2560
 
2561
2561
  var _zodtojsonschema = require('zod-to-json-schema');
2562
2562
  async function configSchemaGeneratorFn(tree, options, config) {
2563
- _chunkFNE7DP2Djs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
2564
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
2565
- const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkFNE7DP2Djs.StormConfigSchema, {
2563
+ _chunkX6VJDRKIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
2564
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
2565
+ const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkX6VJDRKIjs.StormConfigSchema, {
2566
2566
  name: "StormWorkspaceConfiguration"
2567
2567
  });
2568
- _chunkFNE7DP2Djs.writeTrace.call(void 0, jsonSchema, config);
2569
- const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _139 => _139.workspaceRoot]), () => ( _chunkFNE7DP2Djs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _140 => _140.outputFile, 'optionalAccess', _141 => _141.startsWith, 'call', _142 => _142("./")]) ? "" : "./");
2570
- _chunkFNE7DP2Djs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2568
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, jsonSchema, config);
2569
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _139 => _139.workspaceRoot]), () => ( _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _140 => _140.outputFile, 'optionalAccess', _141 => _141.startsWith, 'call', _142 => _142("./")]) ? "" : "./");
2570
+ _chunkX6VJDRKIjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2571
2571
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
2572
2572
  spaces: 2
2573
2573
  });
2574
2574
  await _devkit.formatFiles.call(void 0, tree);
2575
- _chunkFNE7DP2Djs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2575
+ _chunkX6VJDRKIjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2576
2576
  return {
2577
2577
  success: true
2578
2578
  };
@@ -2593,7 +2593,7 @@ var generator_default2 = withRunGenerator("Configuration Schema Creator", config
2593
2593
  // ../workspace-tools/src/generators/neutral-library/generator.ts
2594
2594
 
2595
2595
  async function neutralLibraryGeneratorFn(tree, schema, config) {
2596
- const filesDir = _chunkFNE7DP2Djs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
2596
+ const filesDir = _chunkX6VJDRKIjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
2597
2597
  const tsLibraryGeneratorOptions = {
2598
2598
  ...schema,
2599
2599
  platform: "neutral",
@@ -2636,7 +2636,7 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
2636
2636
  // ../workspace-tools/src/generators/node-library/generator.ts
2637
2637
 
2638
2638
  async function nodeLibraryGeneratorFn(tree, schema, config) {
2639
- const filesDir = _chunkFNE7DP2Djs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
2639
+ const filesDir = _chunkX6VJDRKIjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
2640
2640
  const tsLibraryGeneratorOptions = {
2641
2641
  platform: "node",
2642
2642
  devDependencies: {