@storm-software/cloudflare-tools 0.55.26 → 0.55.28

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 (38) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-GNKRSWX6.mjs → chunk-5OCPVWBL.mjs} +3 -3
  4. package/dist/{chunk-VLH6PJOP.js → chunk-AW32KENO.js} +12 -12
  5. package/dist/{chunk-2XPNANI7.js → chunk-CKARGBTB.js} +1 -1
  6. package/dist/{chunk-32FESOT6.mjs → chunk-HNXSYNI6.mjs} +1 -1
  7. package/dist/{chunk-X64HH4GP.mjs → chunk-HWRWRM5W.mjs} +1 -1
  8. package/dist/{chunk-E7YOJ4JG.js → chunk-HZON5W3G.js} +25 -25
  9. package/dist/{chunk-6GDCEDJO.js → chunk-I6XBWBZN.js} +3 -3
  10. package/dist/{chunk-BCL7PY4I.js → chunk-KLCTLDIH.js} +41 -41
  11. package/dist/{chunk-JD2WQIFA.mjs → chunk-LG6KPJ2J.mjs} +3 -3
  12. package/dist/{chunk-AHT3CRUF.mjs → chunk-MBAVTLIK.mjs} +32 -33
  13. package/dist/{chunk-SOJGUDFD.js → chunk-MVGAJ7Q4.js} +16 -16
  14. package/dist/{chunk-ZV2BVSPZ.mjs → chunk-QD7ZKWKB.mjs} +25 -25
  15. package/dist/{chunk-KXSJMDJH.mjs → chunk-VAVNPHSE.mjs} +1 -1
  16. package/dist/{chunk-T4YFTNGO.js → chunk-XYJVYVYX.js} +190 -191
  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.js +4 -4
  28. package/dist/src/executors/serve/executor.mjs +3 -3
  29. package/dist/src/generators/init/generator.js +2 -2
  30. package/dist/src/generators/init/generator.mjs +1 -1
  31. package/dist/src/generators/worker/generator.js +5 -5
  32. package/dist/src/generators/worker/generator.mjs +4 -4
  33. package/dist/src/generators/worker/schema.d.ts +1 -1
  34. package/dist/src/utils/index.js +3 -3
  35. package/dist/src/utils/index.mjs +2 -2
  36. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  37. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  38. package/package.json +1 -1
@@ -4,7 +4,7 @@
4
4
  var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
5
5
 
6
6
 
7
- var _chunkBCL7PY4Ijs = require('./chunk-BCL7PY4I.js');
7
+ var _chunkKLCTLDIHjs = require('./chunk-KLCTLDIH.js');
8
8
 
9
9
 
10
10
 
@@ -20,7 +20,7 @@ var _chunkBCL7PY4Ijs = require('./chunk-BCL7PY4I.js');
20
20
 
21
21
 
22
22
 
23
- var _chunkE7YOJ4JGjs = require('./chunk-E7YOJ4JG.js');
23
+ var _chunkHZON5W3Gjs = require('./chunk-HZON5W3G.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]))), () => ( _chunkE7YOJ4JGjs.findWorkspaceRoot.call(void 0, ))));
56
+ result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunkHZON5W3Gjs.findWorkspaceRoot.call(void 0, ))));
57
57
  }
58
58
  return result;
59
59
  }, "applyWorkspaceBaseTokens");
@@ -101,35 +101,35 @@ var run = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (config, command,
101
101
  // ../workspace-tools/src/base/base-executor.ts
102
102
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
103
103
  var withRunExecutor = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context2) => {
104
- const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, name);
104
+ const stopwatch = _chunkHZON5W3Gjs.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 = _chunkE7YOJ4JGjs.findWorkspaceRoot.call(void 0, );
111
+ const workspaceRoot3 = _chunkHZON5W3Gjs.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
- _chunkE7YOJ4JGjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
116
+ _chunkHZON5W3Gjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
117
117
  if (!executorOptions.skipReadingConfig) {
118
- _chunkE7YOJ4JGjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
118
+ _chunkHZON5W3Gjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
119
119
  - workspaceRoot: ${workspaceRoot3}
120
120
  - projectRoot: ${projectRoot}
121
121
  - sourceRoot: ${sourceRoot}
122
122
  - projectName: ${projectName}
123
123
  `, config);
124
- config = await _chunkBCL7PY4Ijs.getConfig.call(void 0, workspaceRoot3);
124
+ config = await _chunkKLCTLDIHjs.getConfig.call(void 0, workspaceRoot3);
125
125
  }
126
126
  if (_optionalChain([executorOptions, 'optionalAccess', _7 => _7.hooks, 'optionalAccess', _8 => _8.applyDefaultOptions])) {
127
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
127
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
128
128
  options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
129
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
129
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
130
130
  }
131
- _chunkE7YOJ4JGjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
132
- ${_chunkE7YOJ4JGjs.formatLogMessage.call(void 0, options)}
131
+ _chunkHZON5W3Gjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
132
+ ${_chunkHZON5W3Gjs.formatLogMessage.call(void 0, options)}
133
133
  `, config);
134
134
  const tokenized = await applyWorkspaceTokens(options, _defu.defu.call(void 0, {
135
135
  workspaceRoot: workspaceRoot3,
@@ -138,13 +138,13 @@ ${_chunkE7YOJ4JGjs.formatLogMessage.call(void 0, options)}
138
138
  projectName,
139
139
  config
140
140
  }, config, context2.projectsConfigurations.projects[context2.projectName]), applyWorkspaceProjectTokens);
141
- _chunkE7YOJ4JGjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
142
- ${_chunkE7YOJ4JGjs.formatLogMessage.call(void 0, tokenized)}
141
+ _chunkHZON5W3Gjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
142
+ ${_chunkHZON5W3Gjs.formatLogMessage.call(void 0, tokenized)}
143
143
  `, config);
144
144
  if (_optionalChain([executorOptions, 'optionalAccess', _9 => _9.hooks, 'optionalAccess', _10 => _10.preProcess])) {
145
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
145
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
146
146
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
147
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
147
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
148
148
  }
149
149
  const ret = executorFn(tokenized, context2, config);
150
150
  if (_isFunction(_optionalChain([ret, 'optionalAccess', _11 => _11.next]))) {
@@ -154,26 +154,26 @@ ${_chunkE7YOJ4JGjs.formatLogMessage.call(void 0, tokenized)}
154
154
  }
155
155
  const result = await Promise.resolve(ret);
156
156
  if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.message]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.message]) === "string" && _optionalChain([result, 'optionalAccess', _16 => _16.error, 'optionalAccess', _17 => _17.name]) && typeof _optionalChain([result, 'optionalAccess', _18 => _18.error, 'optionalAccess', _19 => _19.name]) === "string")) {
157
- _chunkE7YOJ4JGjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
158
- ${_chunkE7YOJ4JGjs.formatLogMessage.call(void 0, result)}`, config);
157
+ _chunkHZON5W3Gjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
158
+ ${_chunkHZON5W3Gjs.formatLogMessage.call(void 0, result)}`, config);
159
159
  console.error(result);
160
160
  throw new Error(`The ${name} executor failed to run`, {
161
161
  cause: _optionalChain([result, 'optionalAccess', _20 => _20.error])
162
162
  });
163
163
  }
164
164
  if (_optionalChain([executorOptions, 'optionalAccess', _21 => _21.hooks, 'optionalAccess', _22 => _22.postProcess])) {
165
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
165
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
166
166
  await Promise.resolve(executorOptions.hooks.postProcess(config));
167
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
167
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
168
168
  }
169
- _chunkE7YOJ4JGjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
169
+ _chunkHZON5W3Gjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
170
170
  `, config);
171
171
  return {
172
172
  success: true
173
173
  };
174
174
  } catch (error) {
175
- _chunkE7YOJ4JGjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
176
- _chunkE7YOJ4JGjs.writeError.call(void 0, `An exception was thrown in the executor's process
175
+ _chunkHZON5W3Gjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
176
+ _chunkHZON5W3Gjs.writeError.call(void 0, `An exception was thrown in the executor's process
177
177
  - Details: ${error.message}
178
178
  - Stacktrace: ${error.stack}`, config);
179
179
  return {
@@ -476,8 +476,8 @@ var copyAssets = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (con
476
476
  output: "src/"
477
477
  });
478
478
  }
479
- _chunkE7YOJ4JGjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
480
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkE7YOJ4JGjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
479
+ _chunkHZON5W3Gjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
480
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkHZON5W3Gjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
481
481
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
482
482
  projectDir: projectRoot,
483
483
  rootDir: config.workspaceRoot,
@@ -486,12 +486,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
486
486
  });
487
487
  await assetHandler.processAllAssetsOnce();
488
488
  if (includeSrc === true) {
489
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkE7YOJ4JGjs.joinPaths.call(void 0, outputPath, "src")}`, config);
489
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkHZON5W3Gjs.joinPaths.call(void 0, outputPath, "src")}`, config);
490
490
  const files = await _glob.glob.call(void 0, [
491
- _chunkE7YOJ4JGjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
492
- _chunkE7YOJ4JGjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
493
- _chunkE7YOJ4JGjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
494
- _chunkE7YOJ4JGjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
491
+ _chunkHZON5W3Gjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
492
+ _chunkHZON5W3Gjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
493
+ _chunkHZON5W3Gjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
494
+ _chunkHZON5W3Gjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
495
495
  ]);
496
496
  await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
497
497
 
@@ -514,7 +514,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
514
514
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
515
515
  const projectNode = project.node;
516
516
  if (projectNode.data.root) {
517
- const projectPackageJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
517
+ const projectPackageJsonPath = _chunkHZON5W3Gjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
518
518
  if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
519
519
  const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
520
520
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
@@ -525,8 +525,8 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
525
525
  }
526
526
  }
527
527
  if (localPackages.length > 0) {
528
- _chunkE7YOJ4JGjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
529
- const projectJsonFile = await _promises.readFile.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
528
+ _chunkHZON5W3Gjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
529
+ const projectJsonFile = await _promises.readFile.call(void 0, _chunkHZON5W3Gjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
530
530
  const projectJson = JSON.parse(projectJsonFile);
531
531
  const projectName2 = projectJson.name;
532
532
  const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
@@ -535,7 +535,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
535
535
  }
536
536
  const implicitDependencies = _optionalChain([projectConfigurations, 'access', _31 => _31.projects, 'optionalAccess', _32 => _32[projectName2], 'access', _33 => _33.implicitDependencies, 'optionalAccess', _34 => _34.reduce, 'call', _35 => _35((ret, dep) => {
537
537
  if (_optionalChain([projectConfigurations, 'access', _36 => _36.projects, 'optionalAccess', _37 => _37[dep]])) {
538
- const depPackageJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
538
+ const depPackageJsonPath = _chunkHZON5W3Gjs.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
539
539
  if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
540
540
  const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
541
541
  const depPackageJson = JSON.parse(depPackageJsonContent);
@@ -559,13 +559,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
559
559
  return ret;
560
560
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
561
561
  } else {
562
- _chunkE7YOJ4JGjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
562
+ _chunkHZON5W3Gjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
563
563
  }
564
564
  return packageJson;
565
565
  }, "addPackageDependencies");
566
566
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
567
- const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkE7YOJ4JGjs.findWorkspaceRoot.call(void 0, );
568
- const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
567
+ const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkHZON5W3Gjs.findWorkspaceRoot.call(void 0, );
568
+ const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkHZON5W3Gjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
569
569
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
570
570
  packageJson.type ??= "module";
571
571
  packageJson.sideEffects ??= false;
@@ -574,7 +574,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call
574
574
  if (distSrc.startsWith("/")) {
575
575
  distSrc = distSrc.substring(1);
576
576
  }
577
- packageJson.source ??= `${_chunkE7YOJ4JGjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
577
+ packageJson.source ??= `${_chunkHZON5W3Gjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
578
578
  }
579
579
  packageJson.files ??= [
580
580
  "dist/**/*"
@@ -605,7 +605,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call
605
605
  ];
606
606
  }
607
607
  packageJson.repository ??= workspacePackageJson.repository;
608
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkE7YOJ4JGjs.joinPaths.call(void 0, "packages", projectName);
608
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkHZON5W3Gjs.joinPaths.call(void 0, "packages", projectName);
609
609
  return packageJson;
610
610
  }, "addWorkspacePackageJsonFields");
611
611
  var addPackageJsonExport = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (file, type = "module", sourceRoot) => {
@@ -614,17 +614,17 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0,
614
614
  entry = entry.replace(sourceRoot, "");
615
615
  }
616
616
  return {
617
- "import": {
618
- "types": `./dist/${entry}.d.${type === "module" ? "ts" : "mts"}`,
619
- "default": `./dist/${entry}.${type === "module" ? "js" : "mjs"}`
617
+ import: {
618
+ types: `./dist/${entry}.d.${type === "module" ? "ts" : "mts"}`,
619
+ default: `./dist/${entry}.${type === "module" ? "js" : "mjs"}`
620
620
  },
621
- "require": {
622
- "types": `./dist/${entry}.d.${type === "commonjs" ? "ts" : "cts"}`,
623
- "default": `./dist/${entry}.${type === "commonjs" ? "js" : "cjs"}`
621
+ require: {
622
+ types: `./dist/${entry}.d.${type === "commonjs" ? "ts" : "cts"}`,
623
+ default: `./dist/${entry}.${type === "commonjs" ? "js" : "cjs"}`
624
624
  },
625
- "default": {
626
- "types": `./dist/${entry}.d.ts`,
627
- "default": `./dist/${entry}.js`
625
+ default: {
626
+ types: `./dist/${entry}.d.ts`,
627
+ default: `./dist/${entry}.js`
628
628
  }
629
629
  };
630
630
  }, "addPackageJsonExport");
@@ -632,7 +632,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0,
632
632
  // ../build-tools/src/utilities/get-entry-points.ts
633
633
 
634
634
  var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
635
- const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkE7YOJ4JGjs.findWorkspaceRoot.call(void 0, );
635
+ const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkHZON5W3Gjs.findWorkspaceRoot.call(void 0, );
636
636
  const entryPoints = [];
637
637
  if (entry) {
638
638
  if (Array.isArray(entry)) {
@@ -644,7 +644,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
644
644
  }
645
645
  }
646
646
  if (emitOnAll) {
647
- entryPoints.push(_chunkE7YOJ4JGjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
647
+ entryPoints.push(_chunkHZON5W3Gjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
648
648
  }
649
649
  const results = [];
650
650
  for (const entryPoint in entryPoints) {
@@ -653,9 +653,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
653
653
  withFileTypes: true
654
654
  });
655
655
  results.push(...files.reduce((ret, filePath) => {
656
- const result = _chunkE7YOJ4JGjs.correctPaths.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkE7YOJ4JGjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkE7YOJ4JGjs.correctPaths.call(void 0, projectRoot), ""));
656
+ const result = _chunkHZON5W3Gjs.correctPaths.call(void 0, _chunkHZON5W3Gjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkHZON5W3Gjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkHZON5W3Gjs.correctPaths.call(void 0, projectRoot), ""));
657
657
  if (result) {
658
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkE7YOJ4JGjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
658
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkHZON5W3Gjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
659
659
  if (!results.includes(result)) {
660
660
  results.push(result);
661
661
  }
@@ -989,7 +989,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (option
989
989
  setup(build5) {
990
990
  build5.onEnd((result) => {
991
991
  if (result.errors.length > 0 && process.env.WATCH !== "true") {
992
- _chunkE7YOJ4JGjs.writeError.call(void 0, `The following errors occurred during the build:
992
+ _chunkHZON5W3Gjs.writeError.call(void 0, `The following errors occurred during the build:
993
993
  ${result.errors.map((error) => error.text).join("\n")}
994
994
 
995
995
  `, resolvedOptions.config);
@@ -1024,7 +1024,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
1024
1024
  var resolvePathsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, resolvedOptions) => ({
1025
1025
  name: "storm:resolve-paths",
1026
1026
  setup(build5) {
1027
- const parentTsConfig = build5.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build5.initialOptions.tsconfig)) : _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
1027
+ const parentTsConfig = build5.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkHZON5W3Gjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build5.initialOptions.tsconfig)) : _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkHZON5W3Gjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
1028
1028
  const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
1029
1029
  const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
1030
1030
  build5.onResolve({
@@ -1048,7 +1048,7 @@ var _apiextractor = require('@microsoft/api-extractor');
1048
1048
 
1049
1049
 
1050
1050
  function bundleTypeDefinitions(filename, outfile, externals, options) {
1051
- const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
1051
+ const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkHZON5W3Gjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
1052
1052
  const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
1053
1053
  p,
1054
1054
  getTypeDependencyPackageName(p)
@@ -1078,19 +1078,18 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
1078
1078
  overrideTsconfig: {
1079
1079
  compilerOptions: {
1080
1080
  paths: {}
1081
- // bug with api extract + paths
1082
1081
  }
1083
1082
  }
1084
1083
  },
1085
1084
  dtsRollup: {
1086
1085
  enabled: true,
1087
- untrimmedFilePath: _chunkE7YOJ4JGjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
1086
+ untrimmedFilePath: _chunkHZON5W3Gjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
1088
1087
  },
1089
1088
  tsdocMetadata: {
1090
1089
  enabled: false
1091
1090
  }
1092
1091
  },
1093
- packageJsonFullPath: _chunkE7YOJ4JGjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
1092
+ packageJsonFullPath: _chunkHZON5W3Gjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
1094
1093
  configObjectFullPath: void 0
1095
1094
  });
1096
1095
  const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
@@ -1098,7 +1097,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
1098
1097
  localBuild: true
1099
1098
  });
1100
1099
  if (extractorResult.succeeded === false) {
1101
- _chunkE7YOJ4JGjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
1100
+ _chunkHZON5W3Gjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
1102
1101
  throw new Error("API Extractor completed with errors");
1103
1102
  }
1104
1103
  }
@@ -1117,12 +1116,12 @@ var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, r
1117
1116
  const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
1118
1117
  const typeOutDir = resolvedOptions.outdir;
1119
1118
  const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
1120
- const bundlePath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
1119
+ const bundlePath = _chunkHZON5W3Gjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
1121
1120
  let dtsPath;
1122
- if (_fs.existsSync.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1123
- dtsPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
1124
- } else if (_fs.existsSync.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1125
- dtsPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
1121
+ if (_fs.existsSync.call(void 0, _chunkHZON5W3Gjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
1122
+ dtsPath = _chunkHZON5W3Gjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
1123
+ } else if (_fs.existsSync.call(void 0, _chunkHZON5W3Gjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
1124
+ dtsPath = _chunkHZON5W3Gjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
1126
1125
  }
1127
1126
  const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
1128
1127
  if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
@@ -1277,8 +1276,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (bund
1277
1276
  const filteredMissingDeps = missingDependencies.filter((dep) => {
1278
1277
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
1279
1278
  });
1280
- _chunkE7YOJ4JGjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1281
- _chunkE7YOJ4JGjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1279
+ _chunkHZON5W3Gjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1280
+ _chunkHZON5W3Gjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1282
1281
  if (filteredMissingDeps.length > 0) {
1283
1282
  throw new Error(`Missing dependencies detected - please install them:
1284
1283
  ${JSON.stringify(filteredMissingDeps)}
@@ -1372,13 +1371,13 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1372
1371
  if (!workspaceRoot3) {
1373
1372
  throw new Error("Cannot find Nx workspace root");
1374
1373
  }
1375
- const config = await _chunkBCL7PY4Ijs.getConfig.call(void 0, workspaceRoot3.dir);
1376
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1377
- const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, "Build options resolution");
1374
+ const config = await _chunkKLCTLDIHjs.getConfig.call(void 0, workspaceRoot3.dir);
1375
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1376
+ const stopwatch = _chunkHZON5W3Gjs.getStopwatch.call(void 0, "Build options resolution");
1378
1377
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
1379
1378
  exitOnError: true
1380
1379
  });
1381
- const projectJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1380
+ const projectJsonPath = _chunkHZON5W3Gjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1382
1381
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
1383
1382
  throw new Error("Cannot find project.json configuration");
1384
1383
  }
@@ -1392,7 +1391,7 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1392
1391
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
1393
1392
  options.name ??= `${projectName}-${options.format}`;
1394
1393
  options.target ??= DEFAULT_TARGET;
1395
- const packageJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1394
+ const packageJsonPath = _chunkHZON5W3Gjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1396
1395
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1397
1396
  throw new Error("Cannot find package.json configuration");
1398
1397
  }
@@ -1417,20 +1416,20 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1417
1416
  ".node"
1418
1417
  ],
1419
1418
  ...userOptions,
1420
- tsconfig: _chunkE7YOJ4JGjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1419
+ tsconfig: _chunkHZON5W3Gjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1421
1420
  format: options.format || "cjs",
1422
1421
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
1423
1422
  "./src/index.ts"
1424
1423
  ], userOptions.emitOnAll),
1425
- outdir: userOptions.outputPath || _chunkE7YOJ4JGjs.joinPaths.call(void 0, "dist", projectRoot),
1424
+ outdir: userOptions.outputPath || _chunkHZON5W3Gjs.joinPaths.call(void 0, "dist", projectRoot),
1426
1425
  plugins: [],
1427
1426
  name: userOptions.name || projectName,
1428
1427
  projectConfigurations,
1429
1428
  projectName,
1430
1429
  projectGraph,
1431
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkE7YOJ4JGjs.joinPaths.call(void 0, projectRoot, "src"),
1430
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkHZON5W3Gjs.joinPaths.call(void 0, projectRoot, "src"),
1432
1431
  minify: userOptions.minify || !userOptions.debug,
1433
- verbose: userOptions.verbose || _chunkE7YOJ4JGjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1432
+ verbose: userOptions.verbose || _chunkHZON5W3Gjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1434
1433
  includeSrc: userOptions.includeSrc === true,
1435
1434
  metafile: userOptions.metafile !== false,
1436
1435
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -1466,8 +1465,8 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1466
1465
  }, {})
1467
1466
  },
1468
1467
  inject: [
1469
- options.format === "cjs" && options.injectShims ? _chunkE7YOJ4JGjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
1470
- options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkE7YOJ4JGjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
1468
+ options.format === "cjs" && options.injectShims ? _chunkHZON5W3Gjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
1469
+ options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkHZON5W3Gjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
1471
1470
  ..._nullishCoalesce(options.inject, () => ( []))
1472
1471
  ].filter(Boolean)
1473
1472
  };
@@ -1476,14 +1475,14 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1476
1475
  return result;
1477
1476
  }, "resolveOptions");
1478
1477
  async function generatePackageJson(context2) {
1479
- if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1480
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1481
- const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, "Write package.json file");
1482
- const packageJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1478
+ if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkHZON5W3Gjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
1479
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
1480
+ const stopwatch = _chunkHZON5W3Gjs.getStopwatch.call(void 0, "Write package.json file");
1481
+ const packageJsonPath = _chunkHZON5W3Gjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
1483
1482
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1484
1483
  throw new Error("Cannot find package.json configuration");
1485
1484
  }
1486
- const packageJsonFile = await _promises2.default.readFile(_chunkE7YOJ4JGjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
1485
+ const packageJsonFile = await _promises2.default.readFile(_chunkHZON5W3Gjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
1487
1486
  let packageJson = JSON.parse(packageJsonFile);
1488
1487
  if (!packageJson) {
1489
1488
  throw new Error("Cannot find package.json configuration file");
@@ -1522,7 +1521,7 @@ async function generatePackageJson(context2) {
1522
1521
  }
1523
1522
  return ret;
1524
1523
  }, packageJson.exports);
1525
- await _devkit.writeJsonFile.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1524
+ await _devkit.writeJsonFile.call(void 0, _chunkHZON5W3Gjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
1526
1525
  stopwatch();
1527
1526
  }
1528
1527
  return context2;
@@ -1548,8 +1547,8 @@ async function generateContext(getOptions) {
1548
1547
  }
1549
1548
  _chunkJ5SB6L2Ljs.__name.call(void 0, generateContext, "generateContext");
1550
1549
  async function executeEsBuild(context2) {
1551
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1552
- const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, `${context2.options.name} build`);
1550
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
1551
+ const stopwatch = _chunkHZON5W3Gjs.getStopwatch.call(void 0, `${context2.options.name} build`);
1553
1552
  if (process.env.WATCH === "true") {
1554
1553
  const ctx = await esbuild2.context(context2.options);
1555
1554
  watch(ctx, context2.options);
@@ -1565,8 +1564,8 @@ async function executeEsBuild(context2) {
1565
1564
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1566
1565
  async function copyBuildAssets(context2) {
1567
1566
  if (_optionalChain([context2, 'access', _66 => _66.result, 'optionalAccess', _67 => _67.errors, 'access', _68 => _68.length]) === 0) {
1568
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1569
- const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1567
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1568
+ const stopwatch = _chunkHZON5W3Gjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1570
1569
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
1571
1570
  stopwatch();
1572
1571
  }
@@ -1576,9 +1575,9 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1576
1575
  async function reportResults(context2) {
1577
1576
  if (_optionalChain([context2, 'access', _69 => _69.result, 'optionalAccess', _70 => _70.errors, 'access', _71 => _71.length]) === 0) {
1578
1577
  if (context2.result.warnings.length > 0) {
1579
- _chunkE7YOJ4JGjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
1578
+ _chunkHZON5W3Gjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
1580
1579
  }
1581
- _chunkE7YOJ4JGjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1580
+ _chunkHZON5W3Gjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
1582
1581
  }
1583
1582
  }
1584
1583
  _chunkJ5SB6L2Ljs.__name.call(void 0, reportResults, "reportResults");
@@ -1614,8 +1613,8 @@ async function dependencyCheck(options) {
1614
1613
  _chunkJ5SB6L2Ljs.__name.call(void 0, dependencyCheck, "dependencyCheck");
1615
1614
  async function cleanOutputPath(context2) {
1616
1615
  if (context2.options.clean !== false && context2.options.outdir) {
1617
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1618
- const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
1616
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
1617
+ const stopwatch = _chunkHZON5W3Gjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
1619
1618
  await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
1620
1619
  stopwatch();
1621
1620
  }
@@ -1623,8 +1622,8 @@ async function cleanOutputPath(context2) {
1623
1622
  }
1624
1623
  _chunkJ5SB6L2Ljs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
1625
1624
  async function build3(options) {
1626
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1627
- const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, "ESBuild pipeline");
1625
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1626
+ const stopwatch = _chunkHZON5W3Gjs.getStopwatch.call(void 0, "ESBuild pipeline");
1628
1627
  try {
1629
1628
  const opts = Array.isArray(options) ? options : [
1630
1629
  options
@@ -1634,9 +1633,9 @@ async function build3(options) {
1634
1633
  }
1635
1634
  void transduce.async(opts, dependencyCheck);
1636
1635
  await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
1637
- _chunkE7YOJ4JGjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1636
+ _chunkHZON5W3Gjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1638
1637
  } catch (error) {
1639
- _chunkE7YOJ4JGjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1638
+ _chunkHZON5W3Gjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1640
1639
  throw error;
1641
1640
  } finally {
1642
1641
  stopwatch();
@@ -1664,9 +1663,9 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1664
1663
  return context2.rebuild();
1665
1664
  });
1666
1665
  if (rebuildResult instanceof Error) {
1667
- _chunkE7YOJ4JGjs.writeError.call(void 0, rebuildResult.message);
1666
+ _chunkHZON5W3Gjs.writeError.call(void 0, rebuildResult.message);
1668
1667
  }
1669
- _chunkE7YOJ4JGjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1668
+ _chunkHZON5W3Gjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
1670
1669
  }, 10);
1671
1670
  changeWatcher.on("change", fastRebuild);
1672
1671
  return void 0;
@@ -1674,7 +1673,7 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1674
1673
 
1675
1674
  // ../workspace-tools/src/executors/esbuild/executor.ts
1676
1675
  async function esbuildExecutorFn(options, context2, config) {
1677
- _chunkE7YOJ4JGjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1676
+ _chunkHZON5W3Gjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1678
1677
  if (!_optionalChain([context2, 'access', _72 => _72.projectsConfigurations, 'optionalAccess', _73 => _73.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _74 => _74.projectsConfigurations, 'access', _75 => _75.projects, 'access', _76 => _76[context2.projectName], 'optionalAccess', _77 => _77.root])) {
1679
1678
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1680
1679
  }
@@ -1728,7 +1727,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
1728
1727
  if (!_optionalChain([context2, 'optionalAccess', _86 => _86.projectName]) || !_optionalChain([context2, 'access', _87 => _87.projectsConfigurations, 'optionalAccess', _88 => _88.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1729
1728
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
1730
1729
  }
1731
- _chunkE7YOJ4JGjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1730
+ _chunkHZON5W3Gjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
1732
1731
  _sizelimit2.default.call(void 0, [
1733
1732
  _file2.default,
1734
1733
  _esbuild3.default,
@@ -1736,7 +1735,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
1736
1735
  ], {
1737
1736
  checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _89 => _89.projectsConfigurations, 'access', _90 => _90.projects, 'access', _91 => _91[context2.projectName], 'optionalAccess', _92 => _92.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _93 => _93.projectsConfigurations, 'access', _94 => _94.projects, 'access', _95 => _95[context2.projectName], 'optionalAccess', _96 => _96.root]), () => ( "./")), "src")))
1738
1737
  }).then((result) => {
1739
- _chunkE7YOJ4JGjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1738
+ _chunkHZON5W3Gjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1740
1739
  });
1741
1740
  return {
1742
1741
  success: true
@@ -1799,13 +1798,13 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1799
1798
  if (!workspaceRoot3) {
1800
1799
  throw new Error("Cannot find Nx workspace root");
1801
1800
  }
1802
- const config = await _chunkBCL7PY4Ijs.getConfig.call(void 0, workspaceRoot3.dir);
1803
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1804
- const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, "Build options resolution");
1801
+ const config = await _chunkKLCTLDIHjs.getConfig.call(void 0, workspaceRoot3.dir);
1802
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
1803
+ const stopwatch = _chunkHZON5W3Gjs.getStopwatch.call(void 0, "Build options resolution");
1805
1804
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
1806
1805
  exitOnError: true
1807
1806
  });
1808
- const projectJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1807
+ const projectJsonPath = _chunkHZON5W3Gjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
1809
1808
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
1810
1809
  throw new Error("Cannot find project.json configuration");
1811
1810
  }
@@ -1819,7 +1818,7 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1819
1818
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS2);
1820
1819
  options.name ??= `${projectName}-${options.format}`;
1821
1820
  options.target ??= DEFAULT_TARGET;
1822
- const packageJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1821
+ const packageJsonPath = _chunkHZON5W3Gjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
1823
1822
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1824
1823
  throw new Error("Cannot find package.json configuration");
1825
1824
  }
@@ -1828,20 +1827,20 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1828
1827
  ...options,
1829
1828
  config,
1830
1829
  ...userOptions,
1831
- tsconfig: _chunkE7YOJ4JGjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1830
+ tsconfig: _chunkHZON5W3Gjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
1832
1831
  format: options.format || "cjs",
1833
1832
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
1834
1833
  "./src/index.ts"
1835
1834
  ], userOptions.emitOnAll),
1836
- outdir: userOptions.outputPath || _chunkE7YOJ4JGjs.joinPaths.call(void 0, "dist", projectRoot),
1835
+ outdir: userOptions.outputPath || _chunkHZON5W3Gjs.joinPaths.call(void 0, "dist", projectRoot),
1837
1836
  plugins: [],
1838
1837
  name: userOptions.name || projectName,
1839
1838
  projectConfigurations,
1840
1839
  projectName,
1841
1840
  projectGraph,
1842
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkE7YOJ4JGjs.joinPaths.call(void 0, projectRoot, "src"),
1841
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkHZON5W3Gjs.joinPaths.call(void 0, projectRoot, "src"),
1843
1842
  minify: userOptions.minify || !userOptions.debug,
1844
- verbose: userOptions.verbose || _chunkE7YOJ4JGjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1843
+ verbose: userOptions.verbose || _chunkHZON5W3Gjs.isVerbose.call(void 0, ) || userOptions.debug === true,
1845
1844
  includeSrc: userOptions.includeSrc === true,
1846
1845
  metafile: userOptions.metafile !== false,
1847
1846
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -1875,14 +1874,14 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1875
1874
  return result;
1876
1875
  }, "resolveOptions");
1877
1876
  async function generatePackageJson2(options) {
1878
- if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1879
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1880
- const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, "Write package.json file");
1881
- const packageJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1877
+ if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkHZON5W3Gjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
1878
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
1879
+ const stopwatch = _chunkHZON5W3Gjs.getStopwatch.call(void 0, "Write package.json file");
1880
+ const packageJsonPath = _chunkHZON5W3Gjs.joinPaths.call(void 0, options.projectRoot, "project.json");
1882
1881
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
1883
1882
  throw new Error("Cannot find package.json configuration");
1884
1883
  }
1885
- const packageJsonFile = await _promises2.default.readFile(_chunkE7YOJ4JGjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
1884
+ const packageJsonFile = await _promises2.default.readFile(_chunkHZON5W3Gjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
1886
1885
  if (!packageJsonFile) {
1887
1886
  throw new Error("Cannot find package.json configuration file");
1888
1887
  }
@@ -1921,15 +1920,15 @@ async function generatePackageJson2(options) {
1921
1920
  }
1922
1921
  return ret;
1923
1922
  }, packageJson.exports);
1924
- await _devkit.writeJsonFile.call(void 0, _chunkE7YOJ4JGjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1923
+ await _devkit.writeJsonFile.call(void 0, _chunkHZON5W3Gjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
1925
1924
  stopwatch();
1926
1925
  }
1927
1926
  return options;
1928
1927
  }
1929
1928
  _chunkJ5SB6L2Ljs.__name.call(void 0, generatePackageJson2, "generatePackageJson");
1930
1929
  async function executeTSDown(options) {
1931
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1932
- const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, `${options.name} build`);
1930
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
1931
+ const stopwatch = _chunkHZON5W3Gjs.getStopwatch.call(void 0, `${options.name} build`);
1933
1932
  await _tsdown.build.call(void 0, {
1934
1933
  ...options,
1935
1934
  entry: options.entryPoints,
@@ -1941,21 +1940,21 @@ async function executeTSDown(options) {
1941
1940
  }
1942
1941
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeTSDown, "executeTSDown");
1943
1942
  async function copyBuildAssets2(options) {
1944
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1945
- const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1943
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1944
+ const stopwatch = _chunkHZON5W3Gjs.getStopwatch.call(void 0, `${options.name} asset copy`);
1946
1945
  await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
1947
1946
  stopwatch();
1948
1947
  return options;
1949
1948
  }
1950
1949
  _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets2, "copyBuildAssets");
1951
1950
  async function reportResults2(options) {
1952
- _chunkE7YOJ4JGjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
1951
+ _chunkHZON5W3Gjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
1953
1952
  }
1954
1953
  _chunkJ5SB6L2Ljs.__name.call(void 0, reportResults2, "reportResults");
1955
1954
  async function cleanOutputPath2(options) {
1956
1955
  if (options.clean !== false && options.outdir) {
1957
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
1958
- const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, `${options.name} output clean`);
1956
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
1957
+ const stopwatch = _chunkHZON5W3Gjs.getStopwatch.call(void 0, `${options.name} output clean`);
1959
1958
  await cleanDirectories2(options.name, options.outdir, options.config);
1960
1959
  stopwatch();
1961
1960
  }
@@ -1963,8 +1962,8 @@ async function cleanOutputPath2(options) {
1963
1962
  }
1964
1963
  _chunkJ5SB6L2Ljs.__name.call(void 0, cleanOutputPath2, "cleanOutputPath");
1965
1964
  async function build4(options) {
1966
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1967
- const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, "TSDown pipeline");
1965
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1966
+ const stopwatch = _chunkHZON5W3Gjs.getStopwatch.call(void 0, "TSDown pipeline");
1968
1967
  try {
1969
1968
  const opts = Array.isArray(options) ? options : [
1970
1969
  options
@@ -1982,11 +1981,11 @@ async function build4(options) {
1982
1981
  await reportResults2(opt);
1983
1982
  }));
1984
1983
  } else {
1985
- _chunkE7YOJ4JGjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
1984
+ _chunkHZON5W3Gjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
1986
1985
  }
1987
- _chunkE7YOJ4JGjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1986
+ _chunkHZON5W3Gjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1988
1987
  } catch (error) {
1989
- _chunkE7YOJ4JGjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1988
+ _chunkHZON5W3Gjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1990
1989
  throw error;
1991
1990
  } finally {
1992
1991
  stopwatch();
@@ -1996,7 +1995,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, build4, "build");
1996
1995
 
1997
1996
  // ../workspace-tools/src/executors/tsdown/executor.ts
1998
1997
  async function tsdownExecutorFn(options, context2, config) {
1999
- _chunkE7YOJ4JGjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
1998
+ _chunkHZON5W3Gjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
2000
1999
  if (!_optionalChain([context2, 'access', _99 => _99.projectsConfigurations, 'optionalAccess', _100 => _100.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _101 => _101.projectsConfigurations, 'access', _102 => _102.projects, 'access', _103 => _103[context2.projectName], 'optionalAccess', _104 => _104.root])) {
2001
2000
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
2002
2001
  }
@@ -2032,11 +2031,11 @@ var _fsextra = require('fs-extra');
2032
2031
  var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
2033
2032
  async function typiaExecutorFn(options, _, config) {
2034
2033
  if (options.clean !== false) {
2035
- _chunkE7YOJ4JGjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
2034
+ _chunkHZON5W3Gjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
2036
2035
  _fsextra.removeSync.call(void 0, options.outputPath);
2037
2036
  }
2038
2037
  await Promise.all(options.entry.map((entry) => {
2039
- _chunkE7YOJ4JGjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
2038
+ _chunkHZON5W3Gjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
2040
2039
  return _TypiaProgrammerjs.TypiaProgrammer.build({
2041
2040
  input: entry,
2042
2041
  output: options.outputPath,
@@ -2067,7 +2066,7 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
2067
2066
 
2068
2067
  var _jiti = require('jiti');
2069
2068
  async function unbuildExecutorFn(options, context2, config) {
2070
- _chunkE7YOJ4JGjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
2069
+ _chunkHZON5W3Gjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
2071
2070
  if (!_optionalChain([context2, 'access', _113 => _113.projectsConfigurations, 'optionalAccess', _114 => _114.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
2072
2071
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
2073
2072
  }
@@ -2078,7 +2077,7 @@ async function unbuildExecutorFn(options, context2, config) {
2078
2077
  throw new Error("The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory.");
2079
2078
  }
2080
2079
  const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
2081
- fsCache: config.skipCache ? false : _chunkE7YOJ4JGjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
2080
+ fsCache: config.skipCache ? false : _chunkHZON5W3Gjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
2082
2081
  interopDefault: true
2083
2082
  });
2084
2083
  const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
@@ -2091,7 +2090,7 @@ async function unbuildExecutorFn(options, context2, config) {
2091
2090
  }, {
2092
2091
  stubOptions: {
2093
2092
  jiti: {
2094
- fsCache: config.skipCache ? false : _chunkE7YOJ4JGjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
2093
+ fsCache: config.skipCache ? false : _chunkHZON5W3Gjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
2095
2094
  }
2096
2095
  },
2097
2096
  rollup: {
@@ -2138,34 +2137,34 @@ var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExec
2138
2137
  var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name, generatorFn, generatorOptions = {
2139
2138
  skipReadingConfig: false
2140
2139
  }) => async (tree, _options) => {
2141
- const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, name);
2140
+ const stopwatch = _chunkHZON5W3Gjs.getStopwatch.call(void 0, name);
2142
2141
  let options = _options;
2143
2142
  let config;
2144
2143
  try {
2145
- _chunkE7YOJ4JGjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
2144
+ _chunkHZON5W3Gjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
2146
2145
 
2147
2146
  `, config);
2148
- const workspaceRoot3 = _chunkE7YOJ4JGjs.findWorkspaceRoot.call(void 0, );
2147
+ const workspaceRoot3 = _chunkHZON5W3Gjs.findWorkspaceRoot.call(void 0, );
2149
2148
  if (!generatorOptions.skipReadingConfig) {
2150
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
2149
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
2151
2150
  - workspaceRoot: ${workspaceRoot3}`, config);
2152
- config = await _chunkBCL7PY4Ijs.getConfig.call(void 0, workspaceRoot3);
2151
+ config = await _chunkKLCTLDIHjs.getConfig.call(void 0, workspaceRoot3);
2153
2152
  }
2154
2153
  if (_optionalChain([generatorOptions, 'optionalAccess', _115 => _115.hooks, 'optionalAccess', _116 => _116.applyDefaultOptions])) {
2155
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
2154
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
2156
2155
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
2157
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
2156
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
2158
2157
  }
2159
- _chunkE7YOJ4JGjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
2158
+ _chunkHZON5W3Gjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
2160
2159
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
2161
2160
  const tokenized = await applyWorkspaceTokens(options, {
2162
2161
  workspaceRoot: tree.root,
2163
2162
  config
2164
2163
  }, applyWorkspaceBaseTokens);
2165
2164
  if (_optionalChain([generatorOptions, 'optionalAccess', _117 => _117.hooks, 'optionalAccess', _118 => _118.preProcess])) {
2166
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
2165
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
2167
2166
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
2168
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
2167
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
2169
2168
  }
2170
2169
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
2171
2170
  if (result) {
@@ -2178,18 +2177,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
2178
2177
  }
2179
2178
  }
2180
2179
  if (_optionalChain([generatorOptions, 'optionalAccess', _128 => _128.hooks, 'optionalAccess', _129 => _129.postProcess])) {
2181
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2180
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
2182
2181
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
2183
- _chunkE7YOJ4JGjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
2182
+ _chunkHZON5W3Gjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
2184
2183
  }
2185
2184
  return () => {
2186
- _chunkE7YOJ4JGjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
2185
+ _chunkHZON5W3Gjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
2187
2186
  `, config);
2188
2187
  };
2189
2188
  } catch (error) {
2190
2189
  return () => {
2191
- _chunkE7YOJ4JGjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
2192
- _chunkE7YOJ4JGjs.writeError.call(void 0, `An exception was thrown in the generator's process
2190
+ _chunkHZON5W3Gjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
2191
+ _chunkHZON5W3Gjs.writeError.call(void 0, `An exception was thrown in the generator's process
2193
2192
  - Details: ${error.message}
2194
2193
  - Stacktrace: ${error.stack}`, config);
2195
2194
  };
@@ -2235,7 +2234,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2235
2234
  const projectConfig = {
2236
2235
  root: normalized.directory,
2237
2236
  projectType: "library",
2238
- sourceRoot: _chunkE7YOJ4JGjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
2237
+ sourceRoot: _chunkHZON5W3Gjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
2239
2238
  targets: {
2240
2239
  build: {
2241
2240
  executor: options.buildExecutor,
@@ -2244,11 +2243,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2244
2243
  ],
2245
2244
  options: {
2246
2245
  entry: [
2247
- _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
2246
+ _chunkHZON5W3Gjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
2248
2247
  ],
2249
2248
  outputPath: getOutputPath(normalized),
2250
- tsconfig: _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
2251
- project: _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
2249
+ tsconfig: _chunkHZON5W3Gjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
2250
+ project: _chunkHZON5W3Gjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
2252
2251
  defaultConfiguration: "production",
2253
2252
  platform: "neutral",
2254
2253
  assets: [
@@ -2302,7 +2301,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2302
2301
  if (!normalized.importPath) {
2303
2302
  normalized.importPath = normalized.name;
2304
2303
  }
2305
- const packageJsonPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
2304
+ const packageJsonPath = _chunkHZON5W3Gjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
2306
2305
  if (tree.exists(packageJsonPath)) {
2307
2306
  _devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
2308
2307
  if (!normalized.importPath) {
@@ -2359,10 +2358,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2359
2358
  }));
2360
2359
  }
2361
2360
  _js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
2362
- _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
2361
+ _chunkHZON5W3Gjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
2363
2362
  ]);
2364
- _js.addTsConfigPath.call(void 0, tree, _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
2365
- _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
2363
+ _js.addTsConfigPath.call(void 0, tree, _chunkHZON5W3Gjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
2364
+ _chunkHZON5W3Gjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
2366
2365
  ]);
2367
2366
  if (tree.exists("package.json")) {
2368
2367
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
@@ -2373,7 +2372,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2373
2372
  description = packageJson.description;
2374
2373
  }
2375
2374
  }
2376
- const tsconfigPath = _chunkE7YOJ4JGjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
2375
+ const tsconfigPath = _chunkHZON5W3Gjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
2377
2376
  if (tree.exists(tsconfigPath)) {
2378
2377
  _devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
2379
2378
  json.composite ??= true;
@@ -2411,7 +2410,7 @@ function getOutputPath(options) {
2411
2410
  } else {
2412
2411
  parts.push(options.projectRoot);
2413
2412
  }
2414
- return _chunkE7YOJ4JGjs.joinPaths.call(void 0, ...parts);
2413
+ return _chunkHZON5W3Gjs.joinPaths.call(void 0, ...parts);
2415
2414
  }
2416
2415
  _chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
2417
2416
  function createProjectTsConfigJson(tree, options) {
@@ -2420,7 +2419,7 @@ function createProjectTsConfigJson(tree, options) {
2420
2419
  ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _141 => _141.tsconfigOptions]), () => ( {})),
2421
2420
  compilerOptions: {
2422
2421
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
2423
- outDir: _chunkE7YOJ4JGjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2422
+ outDir: _chunkHZON5W3Gjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2424
2423
  noEmit: true,
2425
2424
  ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _142 => _142.tsconfigOptions, 'optionalAccess', _143 => _143.compilerOptions]), () => ( {}))
2426
2425
  },
@@ -2440,7 +2439,7 @@ function createProjectTsConfigJson(tree, options) {
2440
2439
  "src/**/*.test.ts"
2441
2440
  ]
2442
2441
  };
2443
- _devkit.writeJson.call(void 0, tree, _chunkE7YOJ4JGjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2442
+ _devkit.writeJson.call(void 0, tree, _chunkHZON5W3Gjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
2444
2443
  }
2445
2444
  _chunkJ5SB6L2Ljs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
2446
2445
  async function normalizeOptions(tree, options, config) {
@@ -2500,7 +2499,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, normalizeOptions, "normalizeOptions");
2500
2499
 
2501
2500
  // ../workspace-tools/src/generators/browser-library/generator.ts
2502
2501
  async function browserLibraryGeneratorFn(tree, schema, config) {
2503
- const filesDir = _chunkE7YOJ4JGjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
2502
+ const filesDir = _chunkHZON5W3Gjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
2504
2503
  const tsLibraryGeneratorOptions = {
2505
2504
  buildExecutor: "@storm-software/workspace-tools:unbuild",
2506
2505
  platform: "browser",
@@ -2572,19 +2571,19 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
2572
2571
 
2573
2572
  var _zodtojsonschema = require('zod-to-json-schema');
2574
2573
  async function configSchemaGeneratorFn(tree, options, config) {
2575
- _chunkE7YOJ4JGjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
2576
- _chunkE7YOJ4JGjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
2577
- const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkE7YOJ4JGjs.StormConfigSchema, {
2574
+ _chunkHZON5W3Gjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
2575
+ _chunkHZON5W3Gjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
2576
+ const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkHZON5W3Gjs.StormConfigSchema, {
2578
2577
  name: "StormWorkspaceConfiguration"
2579
2578
  });
2580
- _chunkE7YOJ4JGjs.writeTrace.call(void 0, jsonSchema, config);
2581
- const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _152 => _152.workspaceRoot]), () => ( _chunkE7YOJ4JGjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _153 => _153.outputFile, 'optionalAccess', _154 => _154.startsWith, 'call', _155 => _155("./")]) ? "" : "./");
2582
- _chunkE7YOJ4JGjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2579
+ _chunkHZON5W3Gjs.writeTrace.call(void 0, jsonSchema, config);
2580
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _152 => _152.workspaceRoot]), () => ( _chunkHZON5W3Gjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _153 => _153.outputFile, 'optionalAccess', _154 => _154.startsWith, 'call', _155 => _155("./")]) ? "" : "./");
2581
+ _chunkHZON5W3Gjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2583
2582
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
2584
2583
  spaces: 2
2585
2584
  });
2586
2585
  await _devkit.formatFiles.call(void 0, tree);
2587
- _chunkE7YOJ4JGjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2586
+ _chunkHZON5W3Gjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
2588
2587
  return {
2589
2588
  success: true
2590
2589
  };
@@ -2605,7 +2604,7 @@ var generator_default2 = withRunGenerator("Configuration Schema Creator", config
2605
2604
  // ../workspace-tools/src/generators/neutral-library/generator.ts
2606
2605
 
2607
2606
  async function neutralLibraryGeneratorFn(tree, schema, config) {
2608
- const filesDir = _chunkE7YOJ4JGjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
2607
+ const filesDir = _chunkHZON5W3Gjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
2609
2608
  const tsLibraryGeneratorOptions = {
2610
2609
  ...schema,
2611
2610
  platform: "neutral",
@@ -2648,7 +2647,7 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
2648
2647
  // ../workspace-tools/src/generators/node-library/generator.ts
2649
2648
 
2650
2649
  async function nodeLibraryGeneratorFn(tree, schema, config) {
2651
- const filesDir = _chunkE7YOJ4JGjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
2650
+ const filesDir = _chunkHZON5W3Gjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
2652
2651
  const tsLibraryGeneratorOptions = {
2653
2652
  platform: "node",
2654
2653
  devDependencies: {
@@ -2746,14 +2745,14 @@ async function presetGeneratorFn(tree, options) {
2746
2745
  };
2747
2746
  json.maintainers ??= [
2748
2747
  {
2749
- "name": "Storm Software",
2750
- "email": "contact@stormsoftware.com",
2751
- "url": "https://stormsoftware.com"
2748
+ name: "Storm Software",
2749
+ email: "contact@stormsoftware.com",
2750
+ url: "https://stormsoftware.com"
2752
2751
  },
2753
2752
  {
2754
- "name": "Pat Sullivan",
2755
- "email": "admin@stormsoftware.com",
2756
- "url": "https://patsullivan.org"
2753
+ name: "Pat Sullivan",
2754
+ email: "admin@stormsoftware.com",
2755
+ url: "https://patsullivan.org"
2757
2756
  }
2758
2757
  ];
2759
2758
  json.funding ??= {
@@ -2769,12 +2768,12 @@ async function presetGeneratorFn(tree, options) {
2769
2768
  };
2770
2769
  json.packageManager ??= "pnpm@9.15.2";
2771
2770
  json.engines ??= {
2772
- "node": ">=20.11.0",
2773
- "pnpm": ">=9.15.2"
2771
+ node: ">=20.11.0",
2772
+ pnpm: ">=9.15.2"
2774
2773
  };
2775
2774
  json.prettier = "@storm-software/prettier/config.json";
2776
2775
  json.nx ??= {
2777
- "includedScripts": [
2776
+ includedScripts: [
2778
2777
  "lint-sherif",
2779
2778
  "lint-knip",
2780
2779
  "lint-ls",
@@ -2868,22 +2867,22 @@ async function presetGeneratorFn(tree, options) {
2868
2867
  "@storm-software/prettier": "latest",
2869
2868
  "@taplo/cli": "0.7.0",
2870
2869
  "@types/node": "^20.14.10",
2871
- "copyfiles": "2.4.1",
2872
- "eslint": "9.5.0",
2873
- "jest": "29.7.0",
2870
+ copyfiles: "2.4.1",
2871
+ eslint: "9.5.0",
2872
+ jest: "29.7.0",
2874
2873
  "jest-environment-node": "29.7.0",
2875
- "knip": "5.25.2",
2876
- "lefthook": "1.6.18",
2877
- "nx": "^20.2.2",
2878
- "prettier": "3.3.2",
2874
+ knip: "5.25.2",
2875
+ lefthook: "1.6.18",
2876
+ nx: "^20.2.2",
2877
+ prettier: "3.3.2",
2879
2878
  "prettier-plugin-prisma": "5.0.0",
2880
- "rimraf": "5.0.7",
2881
- "sherif": "0.10.0",
2879
+ rimraf: "5.0.7",
2880
+ sherif: "0.10.0",
2882
2881
  "ts-jest": "29.1.5",
2883
2882
  "ts-node": "10.9.2",
2884
- "tslib": "2.6.3",
2885
- "typescript": "5.5.3",
2886
- "verdaccio": "5.31.1"
2883
+ tslib: "2.6.3",
2884
+ typescript: "5.5.3",
2885
+ verdaccio: "5.31.1"
2887
2886
  };
2888
2887
  if (options.includeApps) {
2889
2888
  dependencies = {