@storm-software/cloudflare-tools 0.54.1 → 0.54.3

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 +12 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-KVL4WOIH.mjs → chunk-23YXGFBU.mjs} +1 -1
  4. package/dist/{chunk-VE6PGD5B.mjs → chunk-2XNO3U7C.mjs} +5 -5
  5. package/dist/{chunk-H63GI4CR.js → chunk-BM5BCBD5.js} +3 -3
  6. package/dist/{chunk-NTZUGXQD.mjs → chunk-CXOUHOZ7.mjs} +12 -10
  7. package/dist/{chunk-THKJZT32.js → chunk-DFG3KJWS.js} +119 -70
  8. package/dist/{chunk-6H63LE3D.mjs → chunk-DQHMNZ47.mjs} +88 -39
  9. package/dist/{chunk-4UDIES3V.mjs → chunk-EZCE5VIE.mjs} +1 -1
  10. package/dist/{chunk-W6YNIJQD.js → chunk-ILLCSSWN.js} +20 -17
  11. package/dist/{chunk-3D3WO4IH.mjs → chunk-IXEWBCGZ.mjs} +17 -14
  12. package/dist/{chunk-H2PLVAKC.js → chunk-LOFONHDQ.js} +12 -12
  13. package/dist/{chunk-BAP6AE7N.js → chunk-LW7DSVEL.js} +160 -158
  14. package/dist/{chunk-U6QKP7CG.js → chunk-LXXVBXFM.js} +16 -16
  15. package/dist/{chunk-5WWJ6PHC.js → chunk-NVFBJS7C.js} +1 -1
  16. package/dist/{chunk-BGWUN6JU.mjs → chunk-XIDK2YZE.mjs} +5 -5
  17. package/dist/executors.js +5 -5
  18. package/dist/executors.mjs +5 -5
  19. package/dist/generators.js +5 -5
  20. package/dist/generators.mjs +4 -4
  21. package/dist/index.js +8 -8
  22. package/dist/index.mjs +7 -7
  23. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  24. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  25. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  26. package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
  27. package/dist/src/executors/serve/executor.d.mts +3 -3
  28. package/dist/src/executors/serve/executor.d.ts +3 -3
  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 _chunkTHKJZT32js = require('./chunk-THKJZT32.js');
7
+ var _chunkDFG3KJWSjs = require('./chunk-DFG3KJWS.js');
8
8
 
9
9
 
10
10
 
@@ -20,7 +20,7 @@ var _chunkTHKJZT32js = require('./chunk-THKJZT32.js');
20
20
 
21
21
 
22
22
 
23
- var _chunkW6YNIJQDjs = require('./chunk-W6YNIJQD.js');
23
+ var _chunkILLCSSWNjs = require('./chunk-ILLCSSWN.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]))), () => ( _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, ))));
56
+ result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunkILLCSSWNjs.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 = _chunkW6YNIJQDjs.getStopwatch.call(void 0, name);
104
+ const stopwatch = _chunkILLCSSWNjs.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 = _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, );
111
+ const workspaceRoot3 = _chunkILLCSSWNjs.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
- _chunkW6YNIJQDjs.writeInfo.call(void 0, `
116
+ _chunkILLCSSWNjs.writeInfo.call(void 0, `
117
117
  \u26A1 Running the ${name} executor for ${projectName}
118
118
  `, config);
119
119
  if (!executorOptions.skipReadingConfig) {
120
- _chunkW6YNIJQDjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
120
+ _chunkILLCSSWNjs.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 _chunkTHKJZT32js.loadStormConfig.call(void 0, workspaceRoot3);
126
+ config = await _chunkDFG3KJWSjs.getConfig.call(void 0, workspaceRoot3);
127
127
  }
128
128
  if (_optionalChain([executorOptions, 'optionalAccess', _7 => _7.hooks, 'optionalAccess', _8 => _8.applyDefaultOptions])) {
129
- _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
129
+ _chunkILLCSSWNjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
130
130
  options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
131
- _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
131
+ _chunkILLCSSWNjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
132
132
  }
133
- _chunkW6YNIJQDjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
134
- ${_chunkW6YNIJQDjs.formatLogMessage.call(void 0, options)}
133
+ _chunkILLCSSWNjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
134
+ ${_chunkILLCSSWNjs.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 @@ ${_chunkW6YNIJQDjs.formatLogMessage.call(void 0, options)}
140
140
  projectName,
141
141
  config
142
142
  }, config, context2.projectsConfigurations.projects[context2.projectName]), applyWorkspaceProjectTokens);
143
- _chunkW6YNIJQDjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
144
- ${_chunkW6YNIJQDjs.formatLogMessage.call(void 0, tokenized)}
143
+ _chunkILLCSSWNjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
144
+ ${_chunkILLCSSWNjs.formatLogMessage.call(void 0, tokenized)}
145
145
  `, config);
146
146
  if (_optionalChain([executorOptions, 'optionalAccess', _9 => _9.hooks, 'optionalAccess', _10 => _10.preProcess])) {
147
- _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
147
+ _chunkILLCSSWNjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
148
148
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
149
- _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
149
+ _chunkILLCSSWNjs.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 @@ ${_chunkW6YNIJQDjs.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
- _chunkW6YNIJQDjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
160
- ${_chunkW6YNIJQDjs.formatLogMessage.call(void 0, result)}`, config);
159
+ _chunkILLCSSWNjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
160
+ ${_chunkILLCSSWNjs.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
- _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
167
+ _chunkILLCSSWNjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
168
168
  await Promise.resolve(executorOptions.hooks.postProcess(config));
169
- _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
169
+ _chunkILLCSSWNjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
170
170
  }
171
- _chunkW6YNIJQDjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
171
+ _chunkILLCSSWNjs.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
- _chunkW6YNIJQDjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
178
- _chunkW6YNIJQDjs.writeError.call(void 0, `An exception was thrown in the executor's process
177
+ _chunkILLCSSWNjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
178
+ _chunkILLCSSWNjs.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 {
@@ -460,10 +460,10 @@ var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(
460
460
  var readNxConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (workspaceRoot3) => {
461
461
  let rootDir = workspaceRoot3;
462
462
  if (!rootDir) {
463
- const config = await _chunkTHKJZT32js.loadStormConfig.call(void 0, );
463
+ const config = await _chunkDFG3KJWSjs.getConfig.call(void 0, );
464
464
  rootDir = config.workspaceRoot;
465
465
  }
466
- const nxJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, rootDir, "nx.json");
466
+ const nxJsonPath = _chunkILLCSSWNjs.joinPaths.call(void 0, rootDir, "nx.json");
467
467
  if (!_fs.existsSync.call(void 0, nxJsonPath)) {
468
468
  throw new Error("Cannot find project.json configuration");
469
469
  }
@@ -475,7 +475,7 @@ var readNxConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (w
475
475
  var copyAssets = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
476
476
  const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
477
477
  pendingAssets.push({
478
- input: projectRoot,
478
+ input: _chunkILLCSSWNjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot),
479
479
  glob: "*.md",
480
480
  output: "."
481
481
  });
@@ -506,10 +506,12 @@ var copyAssets = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (con
506
506
  }
507
507
  const buildTarget = _optionalChain([projectsConfigurations, 'access', _31 => _31.projects, 'access', _32 => _32[projectName], 'access', _33 => _33.targets, 'optionalAccess', _34 => _34.build]);
508
508
  if (!buildTarget) {
509
- throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkW6YNIJQDjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
509
+ throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkILLCSSWNjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
510
510
  }
511
+ _chunkILLCSSWNjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
512
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkILLCSSWNjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
511
513
  const result = await _js.copyAssets.call(void 0, {
512
- assets,
514
+ assets: pendingAssets,
513
515
  watch: false,
514
516
  outputPath
515
517
  }, {
@@ -521,18 +523,18 @@ var copyAssets = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (con
521
523
  projectsConfigurations,
522
524
  nxJsonConfiguration: nxJson,
523
525
  cwd: config.workspaceRoot,
524
- isVerbose: _chunkW6YNIJQDjs.isVerbose.call(void 0, config.logLevel)
526
+ isVerbose: _chunkILLCSSWNjs.isVerbose.call(void 0, config.logLevel)
525
527
  });
526
528
  if (!result.success) {
527
529
  throw new Error("The Build process failed trying to copy assets");
528
530
  }
529
531
  if (includeSrc === true) {
530
- _chunkW6YNIJQDjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkW6YNIJQDjs.joinPaths.call(void 0, outputPath, "src")}`, config);
532
+ _chunkILLCSSWNjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkILLCSSWNjs.joinPaths.call(void 0, outputPath, "src")}`, config);
531
533
  const files = await _glob.glob.call(void 0, [
532
- _chunkW6YNIJQDjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
533
- _chunkW6YNIJQDjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
534
- _chunkW6YNIJQDjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
535
- _chunkW6YNIJQDjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
534
+ _chunkILLCSSWNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
535
+ _chunkILLCSSWNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
536
+ _chunkILLCSSWNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
537
+ _chunkILLCSSWNjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
536
538
  ]);
537
539
  await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
538
540
 
@@ -554,7 +556,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
554
556
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
555
557
  const projectNode = project.node;
556
558
  if (projectNode.data.root) {
557
- const projectPackageJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
559
+ const projectPackageJsonPath = _chunkILLCSSWNjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
558
560
  if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
559
561
  const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
560
562
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
@@ -565,7 +567,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
565
567
  }
566
568
  }
567
569
  if (localPackages.length > 0) {
568
- _chunkW6YNIJQDjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
570
+ _chunkILLCSSWNjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
569
571
  packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
570
572
  if (!ret[localPackage.name]) {
571
573
  ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
@@ -587,13 +589,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
587
589
  return ret;
588
590
  }, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
589
591
  } else {
590
- _chunkW6YNIJQDjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
592
+ _chunkILLCSSWNjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
591
593
  }
592
594
  return packageJson;
593
595
  }, "addPackageDependencies");
594
596
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
595
- const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, );
596
- const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkW6YNIJQDjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
597
+ const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkILLCSSWNjs.findWorkspaceRoot.call(void 0, );
598
+ const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkILLCSSWNjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
597
599
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
598
600
  packageJson.type ??= "module";
599
601
  packageJson.sideEffects ??= false;
@@ -602,7 +604,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call
602
604
  if (distSrc.startsWith("/")) {
603
605
  distSrc = distSrc.substring(1);
604
606
  }
605
- packageJson.source ??= `${_chunkW6YNIJQDjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
607
+ packageJson.source ??= `${_chunkILLCSSWNjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
606
608
  }
607
609
  packageJson.files ??= [
608
610
  "dist/**/*"
@@ -633,7 +635,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call
633
635
  ];
634
636
  }
635
637
  packageJson.repository ??= workspacePackageJson.repository;
636
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkW6YNIJQDjs.joinPaths.call(void 0, "packages", projectName);
638
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkILLCSSWNjs.joinPaths.call(void 0, "packages", projectName);
637
639
  return packageJson;
638
640
  }, "addWorkspacePackageJsonFields");
639
641
  var addPackageJsonExport = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (file, type = "module", sourceRoot) => {
@@ -660,7 +662,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0,
660
662
  // ../build-tools/src/utilities/get-entry-points.ts
661
663
 
662
664
  var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
663
- const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, );
665
+ const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkILLCSSWNjs.findWorkspaceRoot.call(void 0, );
664
666
  const entryPoints = [];
665
667
  if (entry) {
666
668
  if (Array.isArray(entry)) {
@@ -672,7 +674,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
672
674
  }
673
675
  }
674
676
  if (emitOnAll) {
675
- entryPoints.push(_chunkW6YNIJQDjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
677
+ entryPoints.push(_chunkILLCSSWNjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
676
678
  }
677
679
  const results = [];
678
680
  for (const entryPoint in entryPoints) {
@@ -681,9 +683,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
681
683
  withFileTypes: true
682
684
  });
683
685
  results.push(...files.reduce((ret, filePath) => {
684
- const result = _chunkW6YNIJQDjs.correctPaths.call(void 0, _chunkW6YNIJQDjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkW6YNIJQDjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkW6YNIJQDjs.correctPaths.call(void 0, projectRoot), ""));
686
+ const result = _chunkILLCSSWNjs.correctPaths.call(void 0, _chunkILLCSSWNjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkILLCSSWNjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkILLCSSWNjs.correctPaths.call(void 0, projectRoot), ""));
685
687
  if (result) {
686
- _chunkW6YNIJQDjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkW6YNIJQDjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
688
+ _chunkILLCSSWNjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkILLCSSWNjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
687
689
  if (!results.includes(result)) {
688
690
  results.push(result);
689
691
  }
@@ -889,8 +891,8 @@ var RendererEngine = class {
889
891
  // ../esbuild/src/clean.ts
890
892
 
891
893
  async function clean(name = "ESBuild", directory, config) {
892
- _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
893
- const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, `${name} output clean`);
894
+ _chunkILLCSSWNjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
895
+ const stopwatch = _chunkILLCSSWNjs.getStopwatch.call(void 0, `${name} output clean`);
894
896
  await _node.hfs.deleteAll(directory);
895
897
  stopwatch();
896
898
  }
@@ -1011,7 +1013,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (option
1011
1013
  setup(build5) {
1012
1014
  build5.onEnd((result) => {
1013
1015
  if (result.errors.length > 0 && process.env.WATCH !== "true") {
1014
- _chunkW6YNIJQDjs.writeError.call(void 0, `The following errors occurred during the build:
1016
+ _chunkILLCSSWNjs.writeError.call(void 0, `The following errors occurred during the build:
1015
1017
  ${result.errors.map((error) => error.text).join("\n")}
1016
1018
 
1017
1019
  `, resolvedOptions.config);
@@ -1046,7 +1048,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
1046
1048
  var resolvePathsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, resolvedOptions) => ({
1047
1049
  name: "storm:resolve-paths",
1048
1050
  setup(build5) {
1049
- const parentTsConfig = build5.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkW6YNIJQDjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build5.initialOptions.tsconfig)) : _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkW6YNIJQDjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
1051
+ const parentTsConfig = build5.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkILLCSSWNjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build5.initialOptions.tsconfig)) : _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkILLCSSWNjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
1050
1052
  const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
1051
1053
  const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
1052
1054
  build5.onResolve({
@@ -1069,7 +1071,7 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (o
1069
1071
 
1070
1072
  var _apiextractor = require('@microsoft/api-extractor');
1071
1073
  function bundleTypeDefinitions(filename, outfile, externals, options) {
1072
- const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
1074
+ const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkILLCSSWNjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
1073
1075
  const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
1074
1076
  p,
1075
1077
  getTypeDependencyPackageName(p)
@@ -1105,13 +1107,13 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
1105
1107
  },
1106
1108
  dtsRollup: {
1107
1109
  enabled: true,
1108
- untrimmedFilePath: _chunkW6YNIJQDjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
1110
+ untrimmedFilePath: _chunkILLCSSWNjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
1109
1111
  },
1110
1112
  tsdocMetadata: {
1111
1113
  enabled: false
1112
1114
  }
1113
1115
  },
1114
- packageJsonFullPath: _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
1116
+ packageJsonFullPath: _chunkILLCSSWNjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
1115
1117
  configObjectFullPath: void 0
1116
1118
  });
1117
1119
  const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
@@ -1119,7 +1121,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
1119
1121
  localBuild: true
1120
1122
  });
1121
1123
  if (extractorResult.succeeded === false) {
1122
- _chunkW6YNIJQDjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
1124
+ _chunkILLCSSWNjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
1123
1125
  throw new Error("API Extractor completed with errors");
1124
1126
  }
1125
1127
  }
@@ -1138,12 +1140,12 @@ var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, r
1138
1140
  const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
1139
1141
  const typeOutDir = resolvedOptions.outdir;
1140
1142
  const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
1141
- const bundlePath = _chunkW6YNIJQDjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
1143
+ const bundlePath = _chunkILLCSSWNjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
1142
1144
  let dtsPath;
1143
- if (await _node.hfs.isFile(_chunkW6YNIJQDjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1144
- dtsPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
1145
- } else if (await _node.hfs.isFile(_chunkW6YNIJQDjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1146
- dtsPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
1145
+ if (await _node.hfs.isFile(_chunkILLCSSWNjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1146
+ dtsPath = _chunkILLCSSWNjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
1147
+ } else if (await _node.hfs.isFile(_chunkILLCSSWNjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1148
+ dtsPath = _chunkILLCSSWNjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
1147
1149
  }
1148
1150
  const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
1149
1151
  if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
@@ -1298,8 +1300,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (bund
1298
1300
  const filteredMissingDeps = missingDependencies.filter((dep) => {
1299
1301
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
1300
1302
  });
1301
- _chunkW6YNIJQDjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1302
- _chunkW6YNIJQDjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1303
+ _chunkILLCSSWNjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1304
+ _chunkILLCSSWNjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1303
1305
  if (filteredMissingDeps.length > 0) {
1304
1306
  throw new Error(`Missing dependencies detected - please install them:
1305
1307
  ${JSON.stringify(filteredMissingDeps)}
@@ -1393,13 +1395,13 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1393
1395
  if (!workspaceRoot3) {
1394
1396
  throw new Error("Cannot find Nx workspace root");
1395
1397
  }
1396
- const config = await _chunkTHKJZT32js.loadStormConfig.call(void 0, workspaceRoot3.dir);
1397
- _chunkW6YNIJQDjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1398
- const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, "Build options resolution");
1398
+ const config = await _chunkDFG3KJWSjs.getConfig.call(void 0, workspaceRoot3.dir);
1399
+ _chunkILLCSSWNjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1400
+ const stopwatch = _chunkILLCSSWNjs.getStopwatch.call(void 0, "Build options resolution");
1399
1401
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
1400
1402
  exitOnError: true
1401
1403
  });
1402
- const projectJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1404
+ const projectJsonPath = _chunkILLCSSWNjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1403
1405
  if (!await _node.hfs.isFile(projectJsonPath)) {
1404
1406
  throw new Error("Cannot find project.json configuration");
1405
1407
  }
@@ -1412,7 +1414,7 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1412
1414
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
1413
1415
  options.name ??= `${projectName}-${options.format}`;
1414
1416
  options.target ??= DEFAULT_TARGET;
1415
- const packageJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1417
+ const packageJsonPath = _chunkILLCSSWNjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1416
1418
  if (!await _node.hfs.isFile(packageJsonPath)) {
1417
1419
  throw new Error("Cannot find package.json configuration");
1418
1420
  }
@@ -1436,20 +1438,20 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1436
1438
  ".node"
1437
1439
  ],
1438
1440
  ...userOptions,
1439
- tsconfig: _chunkW6YNIJQDjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1441
+ tsconfig: _chunkILLCSSWNjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1440
1442
  format: options.format || "cjs",
1441
1443
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
1442
1444
  "./src/index.ts"
1443
1445
  ], userOptions.emitOnAll),
1444
- outdir: userOptions.outputPath || _chunkW6YNIJQDjs.joinPaths.call(void 0, "dist", projectRoot),
1446
+ outdir: userOptions.outputPath || _chunkILLCSSWNjs.joinPaths.call(void 0, "dist", projectRoot),
1445
1447
  plugins: [],
1446
1448
  name: userOptions.name || projectName,
1447
1449
  projectConfigurations,
1448
1450
  projectName,
1449
1451
  projectGraph,
1450
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkW6YNIJQDjs.joinPaths.call(void 0, projectRoot, "src"),
1452
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkILLCSSWNjs.joinPaths.call(void 0, projectRoot, "src"),
1451
1453
  minify: userOptions.minify || !userOptions.debug,
1452
- verbose: userOptions.verbose || _chunkW6YNIJQDjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1454
+ verbose: userOptions.verbose || _chunkILLCSSWNjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1453
1455
  includeSrc: userOptions.includeSrc === true,
1454
1456
  metafile: userOptions.metafile !== false,
1455
1457
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -1485,8 +1487,8 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1485
1487
  }, {})
1486
1488
  },
1487
1489
  inject: [
1488
- options.format === "cjs" && options.injectShims ? _chunkW6YNIJQDjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
1489
- options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkW6YNIJQDjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
1490
+ options.format === "cjs" && options.injectShims ? _chunkILLCSSWNjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
1491
+ options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkILLCSSWNjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
1490
1492
  ..._nullishCoalesce(options.inject, () => ( []))
1491
1493
  ].filter(Boolean)
1492
1494
  };
@@ -1495,14 +1497,14 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1495
1497
  return result;
1496
1498
  }, "resolveOptions");
1497
1499
  async function generatePackageJson(context2) {
1498
- if (context2.options.generatePackageJson !== false && await _node.hfs.isFile(_chunkW6YNIJQDjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1499
- _chunkW6YNIJQDjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1500
- const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, "Write package.json file");
1501
- const packageJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1500
+ if (context2.options.generatePackageJson !== false && await _node.hfs.isFile(_chunkILLCSSWNjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1501
+ _chunkILLCSSWNjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1502
+ const stopwatch = _chunkILLCSSWNjs.getStopwatch.call(void 0, "Write package.json file");
1503
+ const packageJsonPath = _chunkILLCSSWNjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1502
1504
  if (!await _node.hfs.isFile(packageJsonPath)) {
1503
1505
  throw new Error("Cannot find package.json configuration");
1504
1506
  }
1505
- let packageJson = await _node.hfs.json(_chunkW6YNIJQDjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"));
1507
+ let packageJson = await _node.hfs.json(_chunkILLCSSWNjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"));
1506
1508
  if (!packageJson) {
1507
1509
  throw new Error("Cannot find package.json configuration file");
1508
1510
  }
@@ -1540,7 +1542,7 @@ async function generatePackageJson(context2) {
1540
1542
  }
1541
1543
  return ret;
1542
1544
  }, packageJson.exports);
1543
- await _devkit.writeJsonFile.call(void 0, _chunkW6YNIJQDjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1545
+ await _devkit.writeJsonFile.call(void 0, _chunkILLCSSWNjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1544
1546
  stopwatch();
1545
1547
  }
1546
1548
  return context2;
@@ -1566,8 +1568,8 @@ async function generateContext(getOptions) {
1566
1568
  }
1567
1569
  _chunkJ5SB6L2Ljs.__name.call(void 0, generateContext, "generateContext");
1568
1570
  async function executeEsBuild(context2) {
1569
- _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1570
- const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, `${context2.options.name} build`);
1571
+ _chunkILLCSSWNjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1572
+ const stopwatch = _chunkILLCSSWNjs.getStopwatch.call(void 0, `${context2.options.name} build`);
1571
1573
  if (process.env.WATCH === "true") {
1572
1574
  const ctx = await esbuild2.context(context2.options);
1573
1575
  watch(ctx, context2.options);
@@ -1583,8 +1585,8 @@ async function executeEsBuild(context2) {
1583
1585
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1584
1586
  async function copyBuildAssets(context2) {
1585
1587
  if (_optionalChain([context2, 'access', _59 => _59.result, 'optionalAccess', _60 => _60.errors, 'access', _61 => _61.length]) === 0) {
1586
- _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1587
- const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1588
+ _chunkILLCSSWNjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1589
+ const stopwatch = _chunkILLCSSWNjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1588
1590
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.projectName, context2.options.sourceRoot, true, false);
1589
1591
  stopwatch();
1590
1592
  }
@@ -1594,9 +1596,9 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1594
1596
  async function reportResults(context2) {
1595
1597
  if (_optionalChain([context2, 'access', _62 => _62.result, 'optionalAccess', _63 => _63.errors, 'access', _64 => _64.length]) === 0) {
1596
1598
  if (context2.result.warnings.length > 0) {
1597
- _chunkW6YNIJQDjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
1599
+ _chunkILLCSSWNjs.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);
1598
1600
  }
1599
- _chunkW6YNIJQDjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1601
+ _chunkILLCSSWNjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1600
1602
  }
1601
1603
  }
1602
1604
  _chunkJ5SB6L2Ljs.__name.call(void 0, reportResults, "reportResults");
@@ -1638,8 +1640,8 @@ async function cleanOutputPath(context2) {
1638
1640
  }
1639
1641
  _chunkJ5SB6L2Ljs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
1640
1642
  async function build3(options) {
1641
- _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1642
- const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, "ESBuild pipeline");
1643
+ _chunkILLCSSWNjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1644
+ const stopwatch = _chunkILLCSSWNjs.getStopwatch.call(void 0, "ESBuild pipeline");
1643
1645
  try {
1644
1646
  const opts = Array.isArray(options) ? options : [
1645
1647
  options
@@ -1649,9 +1651,9 @@ async function build3(options) {
1649
1651
  }
1650
1652
  void transduce.async(opts, dependencyCheck);
1651
1653
  await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
1652
- _chunkW6YNIJQDjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1654
+ _chunkILLCSSWNjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1653
1655
  } catch (error) {
1654
- _chunkW6YNIJQDjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1656
+ _chunkILLCSSWNjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1655
1657
  throw error;
1656
1658
  } finally {
1657
1659
  stopwatch();
@@ -1679,9 +1681,9 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1679
1681
  return context2.rebuild();
1680
1682
  });
1681
1683
  if (rebuildResult instanceof Error) {
1682
- _chunkW6YNIJQDjs.writeError.call(void 0, rebuildResult.message);
1684
+ _chunkILLCSSWNjs.writeError.call(void 0, rebuildResult.message);
1683
1685
  }
1684
- _chunkW6YNIJQDjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1686
+ _chunkILLCSSWNjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1685
1687
  }, 10);
1686
1688
  changeWatcher.on("change", fastRebuild);
1687
1689
  return void 0;
@@ -1689,7 +1691,7 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1689
1691
 
1690
1692
  // ../workspace-tools/src/executors/esbuild/executor.ts
1691
1693
  async function esbuildExecutorFn(options, context2, config) {
1692
- _chunkW6YNIJQDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1694
+ _chunkILLCSSWNjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1693
1695
  if (!_optionalChain([context2, 'access', _65 => _65.projectsConfigurations, 'optionalAccess', _66 => _66.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _67 => _67.projectsConfigurations, 'access', _68 => _68.projects, 'access', _69 => _69[context2.projectName], 'optionalAccess', _70 => _70.root])) {
1694
1696
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1695
1697
  }
@@ -1743,7 +1745,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
1743
1745
  if (!_optionalChain([context2, 'optionalAccess', _79 => _79.projectName]) || !_optionalChain([context2, 'access', _80 => _80.projectsConfigurations, 'optionalAccess', _81 => _81.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1744
1746
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
1745
1747
  }
1746
- _chunkW6YNIJQDjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1748
+ _chunkILLCSSWNjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1747
1749
  _sizelimit2.default.call(void 0, [
1748
1750
  _file2.default,
1749
1751
  _esbuild3.default,
@@ -1751,7 +1753,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
1751
1753
  ], {
1752
1754
  checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _82 => _82.projectsConfigurations, 'access', _83 => _83.projects, 'access', _84 => _84[context2.projectName], 'optionalAccess', _85 => _85.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _86 => _86.projectsConfigurations, 'access', _87 => _87.projects, 'access', _88 => _88[context2.projectName], 'optionalAccess', _89 => _89.root]), () => ( "./")), "src")))
1753
1755
  }).then((result) => {
1754
- _chunkW6YNIJQDjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1756
+ _chunkILLCSSWNjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1755
1757
  });
1756
1758
  return {
1757
1759
  success: true
@@ -1777,8 +1779,8 @@ var _tsdown = require('tsdown');
1777
1779
  // ../tsdown/src/clean.ts
1778
1780
 
1779
1781
  async function clean2(name = "ESBuild", directory, config) {
1780
- _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
1781
- const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, `${name} output clean`);
1782
+ _chunkILLCSSWNjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
1783
+ const stopwatch = _chunkILLCSSWNjs.getStopwatch.call(void 0, `${name} output clean`);
1782
1784
  await _node.hfs.deleteAll(directory);
1783
1785
  stopwatch();
1784
1786
  }
@@ -1813,13 +1815,13 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1813
1815
  if (!workspaceRoot3) {
1814
1816
  throw new Error("Cannot find Nx workspace root");
1815
1817
  }
1816
- const config = await _chunkTHKJZT32js.loadStormConfig.call(void 0, workspaceRoot3.dir);
1817
- _chunkW6YNIJQDjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1818
- const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, "Build options resolution");
1818
+ const config = await _chunkDFG3KJWSjs.getConfig.call(void 0, workspaceRoot3.dir);
1819
+ _chunkILLCSSWNjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1820
+ const stopwatch = _chunkILLCSSWNjs.getStopwatch.call(void 0, "Build options resolution");
1819
1821
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
1820
1822
  exitOnError: true
1821
1823
  });
1822
- const projectJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1824
+ const projectJsonPath = _chunkILLCSSWNjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1823
1825
  if (!await _node.hfs.isFile(projectJsonPath)) {
1824
1826
  throw new Error("Cannot find project.json configuration");
1825
1827
  }
@@ -1832,7 +1834,7 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1832
1834
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS2);
1833
1835
  options.name ??= `${projectName}-${options.format}`;
1834
1836
  options.target ??= DEFAULT_TARGET;
1835
- const packageJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1837
+ const packageJsonPath = _chunkILLCSSWNjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1836
1838
  if (!await _node.hfs.isFile(packageJsonPath)) {
1837
1839
  throw new Error("Cannot find package.json configuration");
1838
1840
  }
@@ -1841,20 +1843,20 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1841
1843
  ...options,
1842
1844
  config,
1843
1845
  ...userOptions,
1844
- tsconfig: _chunkW6YNIJQDjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1846
+ tsconfig: _chunkILLCSSWNjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1845
1847
  format: options.format || "cjs",
1846
1848
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
1847
1849
  "./src/index.ts"
1848
1850
  ], userOptions.emitOnAll),
1849
- outdir: userOptions.outputPath || _chunkW6YNIJQDjs.joinPaths.call(void 0, "dist", projectRoot),
1851
+ outdir: userOptions.outputPath || _chunkILLCSSWNjs.joinPaths.call(void 0, "dist", projectRoot),
1850
1852
  plugins: [],
1851
1853
  name: userOptions.name || projectName,
1852
1854
  projectConfigurations,
1853
1855
  projectName,
1854
1856
  projectGraph,
1855
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkW6YNIJQDjs.joinPaths.call(void 0, projectRoot, "src"),
1857
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkILLCSSWNjs.joinPaths.call(void 0, projectRoot, "src"),
1856
1858
  minify: userOptions.minify || !userOptions.debug,
1857
- verbose: userOptions.verbose || _chunkW6YNIJQDjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1859
+ verbose: userOptions.verbose || _chunkILLCSSWNjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1858
1860
  includeSrc: userOptions.includeSrc === true,
1859
1861
  metafile: userOptions.metafile !== false,
1860
1862
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -1888,14 +1890,14 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1888
1890
  return result;
1889
1891
  }, "resolveOptions");
1890
1892
  async function generatePackageJson2(options) {
1891
- if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1892
- _chunkW6YNIJQDjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1893
- const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, "Write package.json file");
1894
- const packageJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1893
+ if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkILLCSSWNjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1894
+ _chunkILLCSSWNjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1895
+ const stopwatch = _chunkILLCSSWNjs.getStopwatch.call(void 0, "Write package.json file");
1896
+ const packageJsonPath = _chunkILLCSSWNjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1895
1897
  if (!await _node.hfs.isFile(packageJsonPath)) {
1896
1898
  throw new Error("Cannot find package.json configuration");
1897
1899
  }
1898
- let packageJson = await _node.hfs.json(_chunkW6YNIJQDjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
1900
+ let packageJson = await _node.hfs.json(_chunkILLCSSWNjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
1899
1901
  if (!packageJson) {
1900
1902
  throw new Error("Cannot find package.json configuration file");
1901
1903
  }
@@ -1933,15 +1935,15 @@ async function generatePackageJson2(options) {
1933
1935
  }
1934
1936
  return ret;
1935
1937
  }, packageJson.exports);
1936
- await _devkit.writeJsonFile.call(void 0, _chunkW6YNIJQDjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1938
+ await _devkit.writeJsonFile.call(void 0, _chunkILLCSSWNjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1937
1939
  stopwatch();
1938
1940
  }
1939
1941
  return options;
1940
1942
  }
1941
1943
  _chunkJ5SB6L2Ljs.__name.call(void 0, generatePackageJson2, "generatePackageJson");
1942
1944
  async function executeTSDown(options) {
1943
- _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1944
- const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, `${options.name} build`);
1945
+ _chunkILLCSSWNjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1946
+ const stopwatch = _chunkILLCSSWNjs.getStopwatch.call(void 0, `${options.name} build`);
1945
1947
  await _tsdown.build.call(void 0, {
1946
1948
  ...options,
1947
1949
  entry: options.entryPoints,
@@ -1953,15 +1955,15 @@ async function executeTSDown(options) {
1953
1955
  }
1954
1956
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeTSDown, "executeTSDown");
1955
1957
  async function copyBuildAssets2(options) {
1956
- _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1957
- const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1958
+ _chunkILLCSSWNjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1959
+ const stopwatch = _chunkILLCSSWNjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1958
1960
  await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
1959
1961
  stopwatch();
1960
1962
  return options;
1961
1963
  }
1962
1964
  _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets2, "copyBuildAssets");
1963
1965
  async function reportResults2(options) {
1964
- _chunkW6YNIJQDjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
1966
+ _chunkILLCSSWNjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
1965
1967
  }
1966
1968
  _chunkJ5SB6L2Ljs.__name.call(void 0, reportResults2, "reportResults");
1967
1969
  async function cleanOutputPath2(options) {
@@ -1972,8 +1974,8 @@ async function cleanOutputPath2(options) {
1972
1974
  }
1973
1975
  _chunkJ5SB6L2Ljs.__name.call(void 0, cleanOutputPath2, "cleanOutputPath");
1974
1976
  async function build4(options) {
1975
- _chunkW6YNIJQDjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1976
- const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, "TSDown pipeline");
1977
+ _chunkILLCSSWNjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1978
+ const stopwatch = _chunkILLCSSWNjs.getStopwatch.call(void 0, "TSDown pipeline");
1977
1979
  try {
1978
1980
  const opts = Array.isArray(options) ? options : [
1979
1981
  options
@@ -1991,11 +1993,11 @@ async function build4(options) {
1991
1993
  await reportResults2(opt);
1992
1994
  }));
1993
1995
  } else {
1994
- _chunkW6YNIJQDjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
1996
+ _chunkILLCSSWNjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
1995
1997
  }
1996
- _chunkW6YNIJQDjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1998
+ _chunkILLCSSWNjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1997
1999
  } catch (error) {
1998
- _chunkW6YNIJQDjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
2000
+ _chunkILLCSSWNjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1999
2001
  throw error;
2000
2002
  } finally {
2001
2003
  stopwatch();
@@ -2005,7 +2007,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, build4, "build");
2005
2007
 
2006
2008
  // ../workspace-tools/src/executors/tsdown/executor.ts
2007
2009
  async function tsdownExecutorFn(options, context2, config) {
2008
- _chunkW6YNIJQDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
2010
+ _chunkILLCSSWNjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
2009
2011
  if (!_optionalChain([context2, 'access', _92 => _92.projectsConfigurations, 'optionalAccess', _93 => _93.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _94 => _94.projectsConfigurations, 'access', _95 => _95.projects, 'access', _96 => _96[context2.projectName], 'optionalAccess', _97 => _97.root])) {
2010
2012
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
2011
2013
  }
@@ -2041,11 +2043,11 @@ var _fsextra = require('fs-extra');
2041
2043
  var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
2042
2044
  async function typiaExecutorFn(options, _, config) {
2043
2045
  if (options.clean !== false) {
2044
- _chunkW6YNIJQDjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
2046
+ _chunkILLCSSWNjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
2045
2047
  _fsextra.removeSync.call(void 0, options.outputPath);
2046
2048
  }
2047
2049
  await Promise.all(options.entry.map((entry) => {
2048
- _chunkW6YNIJQDjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
2050
+ _chunkILLCSSWNjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
2049
2051
  return _TypiaProgrammerjs.TypiaProgrammer.build({
2050
2052
  input: entry,
2051
2053
  output: options.outputPath,
@@ -2076,7 +2078,7 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
2076
2078
 
2077
2079
  var _jiti = require('jiti');
2078
2080
  async function unbuildExecutorFn(options, context2, config) {
2079
- _chunkW6YNIJQDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
2081
+ _chunkILLCSSWNjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
2080
2082
  if (!_optionalChain([context2, 'access', _106 => _106.projectsConfigurations, 'optionalAccess', _107 => _107.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
2081
2083
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
2082
2084
  }
@@ -2087,7 +2089,7 @@ async function unbuildExecutorFn(options, context2, config) {
2087
2089
  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.");
2088
2090
  }
2089
2091
  const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
2090
- fsCache: config.skipCache ? false : _chunkW6YNIJQDjs.joinPaths.call(void 0, config.directories.cache || "node_modules/.cache/storm", "jiti"),
2092
+ fsCache: config.skipCache ? false : _chunkILLCSSWNjs.joinPaths.call(void 0, config.directories.cache || "node_modules/.cache/storm", "jiti"),
2091
2093
  interopDefault: true
2092
2094
  });
2093
2095
  const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
@@ -2148,34 +2150,34 @@ var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExec
2148
2150
  var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name, generatorFn, generatorOptions = {
2149
2151
  skipReadingConfig: false
2150
2152
  }) => async (tree, _options) => {
2151
- const stopwatch = _chunkW6YNIJQDjs.getStopwatch.call(void 0, name);
2153
+ const stopwatch = _chunkILLCSSWNjs.getStopwatch.call(void 0, name);
2152
2154
  let options = _options;
2153
2155
  let config;
2154
2156
  try {
2155
- _chunkW6YNIJQDjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
2157
+ _chunkILLCSSWNjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
2156
2158
 
2157
2159
  `, config);
2158
- const workspaceRoot3 = _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, );
2160
+ const workspaceRoot3 = _chunkILLCSSWNjs.findWorkspaceRoot.call(void 0, );
2159
2161
  if (!generatorOptions.skipReadingConfig) {
2160
- _chunkW6YNIJQDjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
2162
+ _chunkILLCSSWNjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
2161
2163
  - workspaceRoot: ${workspaceRoot3}`, config);
2162
- config = await _chunkTHKJZT32js.loadStormConfig.call(void 0, workspaceRoot3);
2164
+ config = await _chunkDFG3KJWSjs.getConfig.call(void 0, workspaceRoot3);
2163
2165
  }
2164
2166
  if (_optionalChain([generatorOptions, 'optionalAccess', _108 => _108.hooks, 'optionalAccess', _109 => _109.applyDefaultOptions])) {
2165
- _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
2167
+ _chunkILLCSSWNjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
2166
2168
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
2167
- _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
2169
+ _chunkILLCSSWNjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
2168
2170
  }
2169
- _chunkW6YNIJQDjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
2171
+ _chunkILLCSSWNjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
2170
2172
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
2171
2173
  const tokenized = await applyWorkspaceTokens(options, {
2172
2174
  workspaceRoot: tree.root,
2173
2175
  config
2174
2176
  }, applyWorkspaceBaseTokens);
2175
2177
  if (_optionalChain([generatorOptions, 'optionalAccess', _110 => _110.hooks, 'optionalAccess', _111 => _111.preProcess])) {
2176
- _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
2178
+ _chunkILLCSSWNjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
2177
2179
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
2178
- _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
2180
+ _chunkILLCSSWNjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
2179
2181
  }
2180
2182
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
2181
2183
  if (result) {
@@ -2188,18 +2190,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
2188
2190
  }
2189
2191
  }
2190
2192
  if (_optionalChain([generatorOptions, 'optionalAccess', _121 => _121.hooks, 'optionalAccess', _122 => _122.postProcess])) {
2191
- _chunkW6YNIJQDjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2193
+ _chunkILLCSSWNjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2192
2194
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
2193
- _chunkW6YNIJQDjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
2195
+ _chunkILLCSSWNjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
2194
2196
  }
2195
2197
  return () => {
2196
- _chunkW6YNIJQDjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
2198
+ _chunkILLCSSWNjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
2197
2199
  `, config);
2198
2200
  };
2199
2201
  } catch (error) {
2200
2202
  return () => {
2201
- _chunkW6YNIJQDjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
2202
- _chunkW6YNIJQDjs.writeError.call(void 0, `An exception was thrown in the generator's process
2203
+ _chunkILLCSSWNjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
2204
+ _chunkILLCSSWNjs.writeError.call(void 0, `An exception was thrown in the generator's process
2203
2205
  - Details: ${error.message}
2204
2206
  - Stacktrace: ${error.stack}`, config);
2205
2207
  };
@@ -2245,7 +2247,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
2245
2247
  const projectConfig = {
2246
2248
  root: options.directory,
2247
2249
  projectType: "library",
2248
- sourceRoot: _chunkW6YNIJQDjs.joinPaths.call(void 0, _nullishCoalesce(options.directory, () => ( "")), "src"),
2250
+ sourceRoot: _chunkILLCSSWNjs.joinPaths.call(void 0, _nullishCoalesce(options.directory, () => ( "")), "src"),
2249
2251
  targets: {
2250
2252
  build: {
2251
2253
  executor: schema.buildExecutor,
@@ -2254,11 +2256,11 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
2254
2256
  ],
2255
2257
  options: {
2256
2258
  entry: [
2257
- _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "src", "index.ts")
2259
+ _chunkILLCSSWNjs.joinPaths.call(void 0, options.projectRoot, "src", "index.ts")
2258
2260
  ],
2259
2261
  outputPath: getOutputPath(options),
2260
- tsconfig: _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
2261
- project: _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
2262
+ tsconfig: _chunkILLCSSWNjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
2263
+ project: _chunkILLCSSWNjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
2262
2264
  defaultConfiguration: "production",
2263
2265
  platform: "neutral",
2264
2266
  assets: [
@@ -2312,7 +2314,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
2312
2314
  if (!options.importPath) {
2313
2315
  options.importPath = options.name;
2314
2316
  }
2315
- const packageJsonPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "package.json");
2317
+ const packageJsonPath = _chunkILLCSSWNjs.joinPaths.call(void 0, options.projectRoot, "package.json");
2316
2318
  if (tree.exists(packageJsonPath)) {
2317
2319
  _devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
2318
2320
  if (!options.importPath) {
@@ -2369,10 +2371,10 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
2369
2371
  }));
2370
2372
  }
2371
2373
  _js.addTsConfigPath.call(void 0, tree, options.importPath, [
2372
- _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "./src", `index.${options.js ? "js" : "ts"}`)
2374
+ _chunkILLCSSWNjs.joinPaths.call(void 0, options.projectRoot, "./src", `index.${options.js ? "js" : "ts"}`)
2373
2375
  ]);
2374
- _js.addTsConfigPath.call(void 0, tree, _chunkW6YNIJQDjs.joinPaths.call(void 0, options.importPath, "/*"), [
2375
- _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "./src", "/*")
2376
+ _js.addTsConfigPath.call(void 0, tree, _chunkILLCSSWNjs.joinPaths.call(void 0, options.importPath, "/*"), [
2377
+ _chunkILLCSSWNjs.joinPaths.call(void 0, options.projectRoot, "./src", "/*")
2376
2378
  ]);
2377
2379
  if (tree.exists("package.json")) {
2378
2380
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
@@ -2383,7 +2385,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
2383
2385
  description = packageJson.description;
2384
2386
  }
2385
2387
  }
2386
- const tsconfigPath = _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json");
2388
+ const tsconfigPath = _chunkILLCSSWNjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json");
2387
2389
  if (tree.exists(tsconfigPath)) {
2388
2390
  _devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
2389
2391
  json.composite ??= true;
@@ -2421,7 +2423,7 @@ function getOutputPath(options) {
2421
2423
  } else {
2422
2424
  parts.push(options.projectRoot);
2423
2425
  }
2424
- return _chunkW6YNIJQDjs.joinPaths.call(void 0, ...parts);
2426
+ return _chunkILLCSSWNjs.joinPaths.call(void 0, ...parts);
2425
2427
  }
2426
2428
  _chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
2427
2429
  function createProjectTsConfigJson(tree, options) {
@@ -2430,7 +2432,7 @@ function createProjectTsConfigJson(tree, options) {
2430
2432
  ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _134 => _134.tsconfigOptions]), () => ( {})),
2431
2433
  compilerOptions: {
2432
2434
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
2433
- outDir: _chunkW6YNIJQDjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2435
+ outDir: _chunkILLCSSWNjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2434
2436
  noEmit: true,
2435
2437
  ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _135 => _135.tsconfigOptions, 'optionalAccess', _136 => _136.compilerOptions]), () => ( {}))
2436
2438
  },
@@ -2450,7 +2452,7 @@ function createProjectTsConfigJson(tree, options) {
2450
2452
  "src/**/*.test.ts"
2451
2453
  ]
2452
2454
  };
2453
- _devkit.writeJson.call(void 0, tree, _chunkW6YNIJQDjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2455
+ _devkit.writeJson.call(void 0, tree, _chunkILLCSSWNjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2454
2456
  }
2455
2457
  _chunkJ5SB6L2Ljs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
2456
2458
  async function normalizeOptions(tree, options) {
@@ -2576,19 +2578,19 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
2576
2578
 
2577
2579
  var _zodtojsonschema = require('zod-to-json-schema');
2578
2580
  async function configSchemaGeneratorFn(tree, options, config) {
2579
- _chunkW6YNIJQDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
2580
- _chunkW6YNIJQDjs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
2581
- const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkW6YNIJQDjs.StormConfigSchema, {
2581
+ _chunkILLCSSWNjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
2582
+ _chunkILLCSSWNjs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
2583
+ const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkILLCSSWNjs.StormConfigSchema, {
2582
2584
  name: "StormWorkspaceConfiguration"
2583
2585
  });
2584
- _chunkW6YNIJQDjs.writeTrace.call(void 0, jsonSchema, config);
2585
- const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _143 => _143.workspaceRoot]), () => ( _chunkW6YNIJQDjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _144 => _144.outputFile, 'optionalAccess', _145 => _145.startsWith, 'call', _146 => _146("./")]) ? "" : "./");
2586
- _chunkW6YNIJQDjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2586
+ _chunkILLCSSWNjs.writeTrace.call(void 0, jsonSchema, config);
2587
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _143 => _143.workspaceRoot]), () => ( _chunkILLCSSWNjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _144 => _144.outputFile, 'optionalAccess', _145 => _145.startsWith, 'call', _146 => _146("./")]) ? "" : "./");
2588
+ _chunkILLCSSWNjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2587
2589
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
2588
2590
  spaces: 2
2589
2591
  });
2590
2592
  await _devkit.formatFiles.call(void 0, tree);
2591
- _chunkW6YNIJQDjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2593
+ _chunkILLCSSWNjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2592
2594
  return {
2593
2595
  success: true
2594
2596
  };