@storm-software/cloudflare-tools 0.63.25 → 0.63.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-SJE3AZ5R.mjs → chunk-3OAEUWSP.mjs} +1 -1
  4. package/dist/{chunk-IPQFZI7C.mjs → chunk-5WE4TNLQ.mjs} +35 -3
  5. package/dist/{chunk-PUKUSS7F.mjs → chunk-6LXAWJUW.mjs} +3 -3
  6. package/dist/{chunk-VKJE4IV6.mjs → chunk-77YKYAKQ.mjs} +3 -3
  7. package/dist/{chunk-46LEVY35.js → chunk-EDVXAHJB.js} +77 -45
  8. package/dist/{chunk-E2ZPWAPC.mjs → chunk-GGWEYZ6F.mjs} +12 -1
  9. package/dist/{chunk-VI7OHBFH.js → chunk-GLPDUIZ5.js} +16 -16
  10. package/dist/{chunk-HKXGZZ4U.js → chunk-JFRM3B2T.js} +132 -132
  11. package/dist/{chunk-5ENKRUAU.js → chunk-LR64JTPC.js} +12 -1
  12. package/dist/{chunk-AG2PERXB.mjs → chunk-LVA3TEJC.mjs} +2 -2
  13. package/dist/{chunk-IMASMF4S.js → chunk-TSJWYL6Q.js} +2 -2
  14. package/dist/{chunk-EPBMBQ4K.mjs → chunk-UUPXZQE4.mjs} +3 -3
  15. package/dist/{chunk-DTL2T3BP.js → chunk-WT7TBR2C.js} +3 -3
  16. package/dist/{chunk-2WZ5MDJJ.js → chunk-X3P4PVUJ.js} +12 -12
  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/utils/index.js +3 -3
  34. package/dist/src/utils/index.mjs +2 -2
  35. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  36. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  37. package/package.json +2 -2
@@ -5,7 +5,7 @@ var _chunkKTFMIXUNjs = require('./chunk-KTFMIXUN.js');
5
5
 
6
6
 
7
7
 
8
- var _chunk46LEVY35js = require('./chunk-46LEVY35.js');
8
+ var _chunkEDVXAHJBjs = require('./chunk-EDVXAHJB.js');
9
9
 
10
10
 
11
11
 
@@ -19,7 +19,7 @@ var _chunk46LEVY35js = require('./chunk-46LEVY35.js');
19
19
 
20
20
 
21
21
 
22
- var _chunk5ENKRUAUjs = require('./chunk-5ENKRUAU.js');
22
+ var _chunkLR64JTPCjs = require('./chunk-LR64JTPC.js');
23
23
 
24
24
 
25
25
  var _chunkMCKGQKYUjs = require('./chunk-MCKGQKYU.js');
@@ -59,7 +59,7 @@ var applyWorkspaceBaseTokens = async (option, tokenParams) => {
59
59
  if (result.includes("{workspaceRoot}")) {
60
60
  result = result.replaceAll(
61
61
  "{workspaceRoot}",
62
- _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunk5ENKRUAUjs.findWorkspaceRoot.call(void 0, )))
62
+ _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunkLR64JTPCjs.findWorkspaceRoot.call(void 0, )))
63
63
  );
64
64
  }
65
65
  return result;
@@ -99,7 +99,7 @@ var applyWorkspaceTokens = async (options, tokenParams, tokenizerFn) => {
99
99
  // ../workspace-tools/src/base/base-executor.ts
100
100
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
101
101
  var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
102
- const stopwatch = _chunk5ENKRUAUjs.getStopwatch.call(void 0, name);
102
+ const stopwatch = _chunkLR64JTPCjs.getStopwatch.call(void 0, name);
103
103
  let options = _options;
104
104
  let config = {};
105
105
  try {
@@ -108,14 +108,14 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
108
108
  "The Build process failed because the context is not valid. Please run this command from a workspace."
109
109
  );
110
110
  }
111
- const workspaceRoot3 = _chunk5ENKRUAUjs.findWorkspaceRoot.call(void 0, );
111
+ const workspaceRoot3 = _chunkLR64JTPCjs.findWorkspaceRoot.call(void 0, );
112
112
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot3;
113
113
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot3;
114
114
  const projectName = context.projectName;
115
115
  config.workspaceRoot = workspaceRoot3;
116
- _chunk5ENKRUAUjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
116
+ _chunkLR64JTPCjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
117
117
  if (!executorOptions.skipReadingConfig) {
118
- _chunk5ENKRUAUjs.writeTrace.call(void 0,
118
+ _chunkLR64JTPCjs.writeTrace.call(void 0,
119
119
  `Loading the Storm Config from environment variables and storm.config.js file...
120
120
  - workspaceRoot: ${workspaceRoot3}
121
121
  - projectRoot: ${projectRoot}
@@ -124,18 +124,18 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
124
124
  `,
125
125
  config
126
126
  );
127
- config = await _chunk46LEVY35js.getConfig.call(void 0, workspaceRoot3);
127
+ config = await _chunkEDVXAHJBjs.getConfig.call(void 0, workspaceRoot3);
128
128
  }
129
129
  if (_optionalChain([executorOptions, 'optionalAccess', _7 => _7.hooks, 'optionalAccess', _8 => _8.applyDefaultOptions])) {
130
- _chunk5ENKRUAUjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
130
+ _chunkLR64JTPCjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
131
131
  options = await Promise.resolve(
132
132
  executorOptions.hooks.applyDefaultOptions(options, config)
133
133
  );
134
- _chunk5ENKRUAUjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
134
+ _chunkLR64JTPCjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
135
135
  }
136
- _chunk5ENKRUAUjs.writeTrace.call(void 0,
136
+ _chunkLR64JTPCjs.writeTrace.call(void 0,
137
137
  `Executor schema options \u2699\uFE0F
138
- ${_chunk5ENKRUAUjs.formatLogMessage.call(void 0, options)}
138
+ ${_chunkLR64JTPCjs.formatLogMessage.call(void 0, options)}
139
139
  `,
140
140
  config
141
141
  );
@@ -148,18 +148,18 @@ ${_chunk5ENKRUAUjs.formatLogMessage.call(void 0, options)}
148
148
  ),
149
149
  applyWorkspaceProjectTokens
150
150
  );
151
- _chunk5ENKRUAUjs.writeTrace.call(void 0,
151
+ _chunkLR64JTPCjs.writeTrace.call(void 0,
152
152
  `Executor schema tokenized options \u2699\uFE0F
153
- ${_chunk5ENKRUAUjs.formatLogMessage.call(void 0, tokenized)}
153
+ ${_chunkLR64JTPCjs.formatLogMessage.call(void 0, tokenized)}
154
154
  `,
155
155
  config
156
156
  );
157
157
  if (_optionalChain([executorOptions, 'optionalAccess', _9 => _9.hooks, 'optionalAccess', _10 => _10.preProcess])) {
158
- _chunk5ENKRUAUjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
158
+ _chunkLR64JTPCjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
159
159
  await Promise.resolve(
160
160
  executorOptions.hooks.preProcess(tokenized, config)
161
161
  );
162
- _chunk5ENKRUAUjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
162
+ _chunkLR64JTPCjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
163
163
  }
164
164
  const ret = executorFn(tokenized, context, config);
165
165
  if (_isFunction(_optionalChain([ret, 'optionalAccess', _11 => _11.next]))) {
@@ -172,9 +172,9 @@ ${_chunk5ENKRUAUjs.formatLogMessage.call(void 0, tokenized)}
172
172
  ret
173
173
  );
174
174
  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")) {
175
- _chunk5ENKRUAUjs.writeTrace.call(void 0,
175
+ _chunkLR64JTPCjs.writeTrace.call(void 0,
176
176
  `Failure determined by the ${name} executor
177
- ${_chunk5ENKRUAUjs.formatLogMessage.call(void 0, result)}`,
177
+ ${_chunkLR64JTPCjs.formatLogMessage.call(void 0, result)}`,
178
178
  config
179
179
  );
180
180
  console.error(result);
@@ -183,21 +183,21 @@ ${_chunk5ENKRUAUjs.formatLogMessage.call(void 0, result)}`,
183
183
  });
184
184
  }
185
185
  if (_optionalChain([executorOptions, 'optionalAccess', _21 => _21.hooks, 'optionalAccess', _22 => _22.postProcess])) {
186
- _chunk5ENKRUAUjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
186
+ _chunkLR64JTPCjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
187
187
  await Promise.resolve(executorOptions.hooks.postProcess(config));
188
- _chunk5ENKRUAUjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
188
+ _chunkLR64JTPCjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
189
189
  }
190
- _chunk5ENKRUAUjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
190
+ _chunkLR64JTPCjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
191
191
  `, config);
192
192
  return {
193
193
  success: true
194
194
  };
195
195
  } catch (error) {
196
- _chunk5ENKRUAUjs.writeFatal.call(void 0,
196
+ _chunkLR64JTPCjs.writeFatal.call(void 0,
197
197
  "A fatal error occurred while running the executor - the process was forced to terminate",
198
198
  config
199
199
  );
200
- _chunk5ENKRUAUjs.writeError.call(void 0,
200
+ _chunkLR64JTPCjs.writeError.call(void 0,
201
201
  `An exception was thrown in the executor's process
202
202
  - Details: ${error.message}
203
203
  - Stacktrace: ${error.stack}`,
@@ -507,9 +507,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
507
507
  output: "src/"
508
508
  });
509
509
  }
510
- _chunk5ENKRUAUjs.writeTrace.call(void 0,
510
+ _chunkLR64JTPCjs.writeTrace.call(void 0,
511
511
  `\u{1F4DD} Copying the following assets to the output directory:
512
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunk5ENKRUAUjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
512
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkLR64JTPCjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
513
513
  config
514
514
  );
515
515
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
@@ -520,18 +520,18 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
520
520
  });
521
521
  await assetHandler.processAllAssetsOnce();
522
522
  if (includeSrc === true) {
523
- _chunk5ENKRUAUjs.writeDebug.call(void 0,
524
- `\u{1F4DD} Adding banner and writing source files: ${_chunk5ENKRUAUjs.joinPaths.call(void 0,
523
+ _chunkLR64JTPCjs.writeDebug.call(void 0,
524
+ `\u{1F4DD} Adding banner and writing source files: ${_chunkLR64JTPCjs.joinPaths.call(void 0,
525
525
  outputPath,
526
526
  "src"
527
527
  )}`,
528
528
  config
529
529
  );
530
530
  const files = await _glob.glob.call(void 0, [
531
- _chunk5ENKRUAUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
532
- _chunk5ENKRUAUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
533
- _chunk5ENKRUAUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
534
- _chunk5ENKRUAUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
531
+ _chunkLR64JTPCjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
532
+ _chunkLR64JTPCjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
533
+ _chunkLR64JTPCjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
534
+ _chunkLR64JTPCjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
535
535
  ]);
536
536
  await Promise.allSettled(
537
537
  files.map(
@@ -586,7 +586,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
586
586
  )) {
587
587
  const projectNode = project.node;
588
588
  if (projectNode.data.root) {
589
- const projectPackageJsonPath = _chunk5ENKRUAUjs.joinPaths.call(void 0,
589
+ const projectPackageJsonPath = _chunkLR64JTPCjs.joinPaths.call(void 0,
590
590
  workspaceRoot3,
591
591
  projectNode.data.root,
592
592
  "package.json"
@@ -604,11 +604,11 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
604
604
  }
605
605
  }
606
606
  if (localPackages.length > 0) {
607
- _chunk5ENKRUAUjs.writeTrace.call(void 0,
607
+ _chunkLR64JTPCjs.writeTrace.call(void 0,
608
608
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
609
609
  );
610
610
  const projectJsonFile = await _promises.readFile.call(void 0,
611
- _chunk5ENKRUAUjs.joinPaths.call(void 0, projectRoot, "project.json"),
611
+ _chunkLR64JTPCjs.joinPaths.call(void 0, projectRoot, "project.json"),
612
612
  "utf8"
613
613
  );
614
614
  const projectJson = JSON.parse(projectJsonFile);
@@ -621,7 +621,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
621
621
  }
622
622
  const implicitDependencies = _optionalChain([projectConfigurations, 'access', _37 => _37.projects, 'optionalAccess', _38 => _38[projectName2], 'access', _39 => _39.implicitDependencies, 'optionalAccess', _40 => _40.reduce, 'call', _41 => _41((ret, dep) => {
623
623
  if (_optionalChain([projectConfigurations, 'access', _42 => _42.projects, 'optionalAccess', _43 => _43[dep]])) {
624
- const depPackageJsonPath = _chunk5ENKRUAUjs.joinPaths.call(void 0,
624
+ const depPackageJsonPath = _chunkLR64JTPCjs.joinPaths.call(void 0,
625
625
  workspaceRoot3,
626
626
  projectConfigurations.projects[dep].root,
627
627
  "package.json"
@@ -652,14 +652,14 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
652
652
  return ret;
653
653
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
654
654
  } else {
655
- _chunk5ENKRUAUjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
655
+ _chunkLR64JTPCjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
656
656
  }
657
657
  return packageJson;
658
658
  };
659
659
  var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
660
- const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunk5ENKRUAUjs.findWorkspaceRoot.call(void 0, );
660
+ const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkLR64JTPCjs.findWorkspaceRoot.call(void 0, );
661
661
  const workspacePackageJsonContent = await _promises.readFile.call(void 0,
662
- _chunk5ENKRUAUjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
662
+ _chunkLR64JTPCjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
663
663
  "utf8"
664
664
  );
665
665
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
@@ -670,7 +670,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
670
670
  if (distSrc.startsWith("/")) {
671
671
  distSrc = distSrc.substring(1);
672
672
  }
673
- packageJson.source ??= `${_chunk5ENKRUAUjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
673
+ packageJson.source ??= `${_chunkLR64JTPCjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
674
674
  }
675
675
  packageJson.files ??= ["dist/**/*"];
676
676
  if (includeSrc === true && !packageJson.files.includes("src")) {
@@ -695,7 +695,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
695
695
  packageJson.contributors = [packageJson.author];
696
696
  }
697
697
  packageJson.repository ??= workspacePackageJson.repository;
698
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunk5ENKRUAUjs.joinPaths.call(void 0, "packages", projectName);
698
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkLR64JTPCjs.joinPaths.call(void 0, "packages", projectName);
699
699
  return packageJson;
700
700
  };
701
701
 
@@ -729,11 +729,11 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
729
729
  // ../esbuild/src/assets.ts
730
730
  async function copyBuildAssets(context) {
731
731
  if (!_optionalChain([context, 'access', _52 => _52.result, 'optionalAccess', _53 => _53.errors, 'access', _54 => _54.length]) && _optionalChain([context, 'access', _55 => _55.options, 'access', _56 => _56.assets, 'optionalAccess', _57 => _57.length])) {
732
- _chunk5ENKRUAUjs.writeDebug.call(void 0,
732
+ _chunkLR64JTPCjs.writeDebug.call(void 0,
733
733
  ` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
734
734
  context.workspaceConfig
735
735
  );
736
- const stopwatch = _chunk5ENKRUAUjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
736
+ const stopwatch = _chunkLR64JTPCjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
737
737
  await copyAssets(
738
738
  context.workspaceConfig,
739
739
  _nullishCoalesce(context.options.assets, () => ( [])),
@@ -814,15 +814,15 @@ async function resolveContext(userOptions) {
814
814
  if (!workspaceRoot3) {
815
815
  throw new Error("Cannot find Nx workspace root");
816
816
  }
817
- const workspaceConfig = await _chunk46LEVY35js.getWorkspaceConfig.call(void 0, true, {
817
+ const workspaceConfig = await _chunkEDVXAHJBjs.getWorkspaceConfig.call(void 0, true, {
818
818
  workspaceRoot: workspaceRoot3.dir
819
819
  });
820
- _chunk5ENKRUAUjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
821
- const stopwatch = _chunk5ENKRUAUjs.getStopwatch.call(void 0, "Build options resolution");
820
+ _chunkLR64JTPCjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
821
+ const stopwatch = _chunkLR64JTPCjs.getStopwatch.call(void 0, "Build options resolution");
822
822
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
823
823
  exitOnError: true
824
824
  });
825
- const projectJsonPath = _chunk5ENKRUAUjs.joinPaths.call(void 0,
825
+ const projectJsonPath = _chunkLR64JTPCjs.joinPaths.call(void 0,
826
826
  workspaceRoot3.dir,
827
827
  projectRoot,
828
828
  "project.json"
@@ -841,7 +841,7 @@ async function resolveContext(userOptions) {
841
841
  }
842
842
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
843
843
  options.name ??= projectName;
844
- const packageJsonPath = _chunk5ENKRUAUjs.joinPaths.call(void 0,
844
+ const packageJsonPath = _chunkLR64JTPCjs.joinPaths.call(void 0,
845
845
  workspaceRoot3.dir,
846
846
  options.projectRoot,
847
847
  "package.json"
@@ -853,7 +853,7 @@ async function resolveContext(userOptions) {
853
853
  const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
854
854
  const resolvedOptions = {
855
855
  ...options,
856
- tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunk5ENKRUAUjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
856
+ tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkLR64JTPCjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
857
857
  metafile: userOptions.mode === "development",
858
858
  clean: false,
859
859
  env,
@@ -878,8 +878,8 @@ async function resolveContext(userOptions) {
878
878
  projectConfigurations,
879
879
  projectName,
880
880
  projectGraph,
881
- sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunk5ENKRUAUjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
882
- outputPath: resolvedOptions.outputPath || _chunk5ENKRUAUjs.joinPaths.call(void 0,
881
+ sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkLR64JTPCjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
882
+ outputPath: resolvedOptions.outputPath || _chunkLR64JTPCjs.joinPaths.call(void 0,
883
883
  workspaceConfig.workspaceRoot,
884
884
  "dist",
885
885
  resolvedOptions.projectRoot
@@ -888,10 +888,10 @@ async function resolveContext(userOptions) {
888
888
  };
889
889
  context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
890
890
  if (context.options.verbose) {
891
- _chunk5ENKRUAUjs.writeDebug.call(void 0,
891
+ _chunkLR64JTPCjs.writeDebug.call(void 0,
892
892
  ` \u2699\uFE0F Build options resolved:
893
893
 
894
- ${_chunk5ENKRUAUjs.formatLogMessage.call(void 0, context.options)}`,
894
+ ${_chunkLR64JTPCjs.formatLogMessage.call(void 0, context.options)}`,
895
895
  workspaceConfig
896
896
  );
897
897
  }
@@ -903,10 +903,10 @@ ${_chunk5ENKRUAUjs.formatLogMessage.call(void 0, context.options)}`,
903
903
 
904
904
 
905
905
  async function generatePackageJson(context) {
906
- if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk5ENKRUAUjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
907
- _chunk5ENKRUAUjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
908
- const stopwatch = _chunk5ENKRUAUjs.getStopwatch.call(void 0, "Write package.json file");
909
- const packageJsonPath = _chunk5ENKRUAUjs.joinPaths.call(void 0,
906
+ if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkLR64JTPCjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
907
+ _chunkLR64JTPCjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
908
+ const stopwatch = _chunkLR64JTPCjs.getStopwatch.call(void 0, "Write package.json file");
909
+ const packageJsonPath = _chunkLR64JTPCjs.joinPaths.call(void 0,
910
910
  context.options.projectRoot,
911
911
  "project.json"
912
912
  );
@@ -914,7 +914,7 @@ async function generatePackageJson(context) {
914
914
  throw new Error("Cannot find package.json configuration");
915
915
  }
916
916
  const packageJsonFile = await _promises2.default.readFile(
917
- _chunk5ENKRUAUjs.joinPaths.call(void 0,
917
+ _chunkLR64JTPCjs.joinPaths.call(void 0,
918
918
  context.workspaceConfig.workspaceRoot,
919
919
  context.options.projectRoot,
920
920
  "package.json"
@@ -1020,7 +1020,7 @@ async function generatePackageJson(context) {
1020
1020
  }
1021
1021
  }
1022
1022
  await _devkit.writeJsonFile.call(void 0,
1023
- _chunk5ENKRUAUjs.joinPaths.call(void 0, context.outputPath, "package.json"),
1023
+ _chunkLR64JTPCjs.joinPaths.call(void 0, context.outputPath, "package.json"),
1024
1024
  packageJson
1025
1025
  );
1026
1026
  stopwatch();
@@ -1095,10 +1095,10 @@ var depsCheckPlugin = (bundle) => ({
1095
1095
  const filteredMissingDeps = missingDependencies.filter((dep) => {
1096
1096
  return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
1097
1097
  });
1098
- _chunk5ENKRUAUjs.writeWarning.call(void 0,
1098
+ _chunkLR64JTPCjs.writeWarning.call(void 0,
1099
1099
  `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
1100
1100
  );
1101
- _chunk5ENKRUAUjs.writeError.call(void 0,
1101
+ _chunkLR64JTPCjs.writeError.call(void 0,
1102
1102
  `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
1103
1103
  );
1104
1104
  if (filteredMissingDeps.length > 0) {
@@ -1113,14 +1113,14 @@ ${JSON.stringify(filteredMissingDeps)}
1113
1113
  // ../esbuild/src/tsup.ts
1114
1114
  var _tsup = require('tsup');
1115
1115
  async function executeTsup(context) {
1116
- _chunk5ENKRUAUjs.writeDebug.call(void 0,
1116
+ _chunkLR64JTPCjs.writeDebug.call(void 0,
1117
1117
  ` \u{1F680} Running ${context.options.name} build`,
1118
1118
  context.workspaceConfig
1119
1119
  );
1120
- const stopwatch = _chunk5ENKRUAUjs.getStopwatch.call(void 0, `${context.options.name} build`);
1120
+ const stopwatch = _chunkLR64JTPCjs.getStopwatch.call(void 0, `${context.options.name} build`);
1121
1121
  await _tsup.build.call(void 0, {
1122
1122
  ...context.options,
1123
- outDir: context.options.distDir ? _chunk5ENKRUAUjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
1123
+ outDir: context.options.distDir ? _chunkLR64JTPCjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
1124
1124
  workspaceConfig: context.workspaceConfig
1125
1125
  });
1126
1126
  stopwatch();
@@ -1131,17 +1131,17 @@ async function executeTsup(context) {
1131
1131
  async function reportResults(context) {
1132
1132
  if (_optionalChain([context, 'access', _60 => _60.result, 'optionalAccess', _61 => _61.errors, 'access', _62 => _62.length]) === 0) {
1133
1133
  if (context.result.warnings.length > 0) {
1134
- _chunk5ENKRUAUjs.writeWarning.call(void 0,
1134
+ _chunkLR64JTPCjs.writeWarning.call(void 0,
1135
1135
  ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
1136
1136
  context.workspaceConfig
1137
1137
  );
1138
1138
  }
1139
- _chunk5ENKRUAUjs.writeSuccess.call(void 0,
1139
+ _chunkLR64JTPCjs.writeSuccess.call(void 0,
1140
1140
  ` \u{1F4E6} The ${context.options.name} build completed successfully`,
1141
1141
  context.workspaceConfig
1142
1142
  );
1143
1143
  } else if (_optionalChain([context, 'access', _63 => _63.result, 'optionalAccess', _64 => _64.errors]) && _optionalChain([context, 'access', _65 => _65.result, 'optionalAccess', _66 => _66.errors, 'access', _67 => _67.length]) > 0) {
1144
- _chunk5ENKRUAUjs.writeError.call(void 0,
1144
+ _chunkLR64JTPCjs.writeError.call(void 0,
1145
1145
  ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
1146
1146
  context.workspaceConfig
1147
1147
  );
@@ -1178,19 +1178,19 @@ async function dependencyCheck(options) {
1178
1178
  }
1179
1179
  async function cleanOutputPath(context) {
1180
1180
  if (context.clean !== false && context.outputPath) {
1181
- _chunk5ENKRUAUjs.writeDebug.call(void 0,
1181
+ _chunkLR64JTPCjs.writeDebug.call(void 0,
1182
1182
  ` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
1183
1183
  context.workspaceConfig
1184
1184
  );
1185
- const stopwatch = _chunk5ENKRUAUjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
1185
+ const stopwatch = _chunkLR64JTPCjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
1186
1186
  await cleanDirectories(context.outputPath);
1187
1187
  stopwatch();
1188
1188
  }
1189
1189
  return context;
1190
1190
  }
1191
1191
  async function build2(options) {
1192
- _chunk5ENKRUAUjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1193
- const stopwatch = _chunk5ENKRUAUjs.getStopwatch.call(void 0, "ESBuild pipeline");
1192
+ _chunkLR64JTPCjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1193
+ const stopwatch = _chunkLR64JTPCjs.getStopwatch.call(void 0, "ESBuild pipeline");
1194
1194
  try {
1195
1195
  const opts = Array.isArray(options) ? options : [options];
1196
1196
  if (opts.length === 0) {
@@ -1205,9 +1205,9 @@ async function build2(options) {
1205
1205
  executeTsup(context)
1206
1206
  ]);
1207
1207
  await reportResults(context);
1208
- _chunk5ENKRUAUjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1208
+ _chunkLR64JTPCjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
1209
1209
  } catch (error) {
1210
- _chunk5ENKRUAUjs.writeFatal.call(void 0,
1210
+ _chunkLR64JTPCjs.writeFatal.call(void 0,
1211
1211
  "Fatal errors that the build process could not recover from have occured. The build process has been terminated."
1212
1212
  );
1213
1213
  throw error;
@@ -1218,7 +1218,7 @@ async function build2(options) {
1218
1218
 
1219
1219
  // ../workspace-tools/src/executors/esbuild/executor.ts
1220
1220
  async function esbuildExecutorFn(options, context, config) {
1221
- _chunk5ENKRUAUjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1221
+ _chunkLR64JTPCjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1222
1222
  if (!_optionalChain([context, 'access', _68 => _68.projectsConfigurations, 'optionalAccess', _69 => _69.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _70 => _70.projectsConfigurations, 'access', _71 => _71.projects, 'access', _72 => _72[context.projectName], 'optionalAccess', _73 => _73.root])) {
1223
1223
  throw new Error(
1224
1224
  "The Build process failed because the context is not valid. Please run this command from a workspace."
@@ -1282,14 +1282,14 @@ async function sizeLimitExecutorFn(options, context, config) {
1282
1282
  "The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
1283
1283
  );
1284
1284
  }
1285
- _chunk5ENKRUAUjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
1285
+ _chunkLR64JTPCjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
1286
1286
  _sizelimit2.default.call(void 0, [_file2.default, _esbuild3.default, _esbuildwhy2.default], {
1287
1287
  checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _85 => _85.projectsConfigurations, 'access', _86 => _86.projects, 'access', _87 => _87[context.projectName], 'optionalAccess', _88 => _88.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
1288
1288
  _nullishCoalesce(_optionalChain([context, 'access', _89 => _89.projectsConfigurations, 'access', _90 => _90.projects, 'access', _91 => _91[context.projectName], 'optionalAccess', _92 => _92.root]), () => ( "./")),
1289
1289
  "src"
1290
1290
  )))
1291
1291
  }).then((result) => {
1292
- _chunk5ENKRUAUjs.writeInfo.call(void 0,
1292
+ _chunkLR64JTPCjs.writeInfo.call(void 0,
1293
1293
  `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
1294
1294
  config
1295
1295
  );
@@ -1316,12 +1316,12 @@ var _fsextra = require('fs-extra');
1316
1316
  var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
1317
1317
  async function typiaExecutorFn(options, _, config) {
1318
1318
  if (options.clean !== false) {
1319
- _chunk5ENKRUAUjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
1319
+ _chunkLR64JTPCjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
1320
1320
  _fsextra.removeSync.call(void 0, options.outputPath);
1321
1321
  }
1322
1322
  await Promise.all(
1323
1323
  options.entry.map((entry) => {
1324
- _chunk5ENKRUAUjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
1324
+ _chunkLR64JTPCjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
1325
1325
  return _TypiaProgrammerjs.TypiaProgrammer.build({
1326
1326
  input: entry,
1327
1327
  output: options.outputPath,
@@ -1354,7 +1354,7 @@ var executor_default8 = withRunExecutor(
1354
1354
 
1355
1355
  var _jiti = require('jiti');
1356
1356
  async function unbuildExecutorFn(options, context, config) {
1357
- _chunk5ENKRUAUjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1357
+ _chunkLR64JTPCjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1358
1358
  if (!_optionalChain([context, 'access', _93 => _93.projectsConfigurations, 'optionalAccess', _94 => _94.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
1359
1359
  throw new Error(
1360
1360
  "The Build process failed because the context is not valid. Please run this command from a workspace root directory."
@@ -1371,7 +1371,7 @@ async function unbuildExecutorFn(options, context, config) {
1371
1371
  );
1372
1372
  }
1373
1373
  const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
1374
- fsCache: config.skipCache ? false : _chunk5ENKRUAUjs.joinPaths.call(void 0,
1374
+ fsCache: config.skipCache ? false : _chunkLR64JTPCjs.joinPaths.call(void 0,
1375
1375
  config.workspaceRoot,
1376
1376
  config.directories.cache || "node_modules/.cache/storm",
1377
1377
  "jiti"
@@ -1393,7 +1393,7 @@ async function unbuildExecutorFn(options, context, config) {
1393
1393
  {
1394
1394
  stubOptions: {
1395
1395
  jiti: {
1396
- fsCache: config.skipCache ? false : _chunk5ENKRUAUjs.joinPaths.call(void 0,
1396
+ fsCache: config.skipCache ? false : _chunkLR64JTPCjs.joinPaths.call(void 0,
1397
1397
  config.workspaceRoot,
1398
1398
  config.directories.cache || "node_modules/.cache/storm",
1399
1399
  "jiti"
@@ -1453,30 +1453,30 @@ var executor_default9 = withRunExecutor(
1453
1453
  var withRunGenerator = (name, generatorFn, generatorOptions = {
1454
1454
  skipReadingConfig: false
1455
1455
  }) => async (tree, _options) => {
1456
- const stopwatch = _chunk5ENKRUAUjs.getStopwatch.call(void 0, name);
1456
+ const stopwatch = _chunkLR64JTPCjs.getStopwatch.call(void 0, name);
1457
1457
  let options = _options;
1458
1458
  let config;
1459
1459
  try {
1460
- _chunk5ENKRUAUjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
1460
+ _chunkLR64JTPCjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
1461
1461
 
1462
1462
  `, config);
1463
- const workspaceRoot3 = _chunk5ENKRUAUjs.findWorkspaceRoot.call(void 0, );
1463
+ const workspaceRoot3 = _chunkLR64JTPCjs.findWorkspaceRoot.call(void 0, );
1464
1464
  if (!generatorOptions.skipReadingConfig) {
1465
- _chunk5ENKRUAUjs.writeDebug.call(void 0,
1465
+ _chunkLR64JTPCjs.writeDebug.call(void 0,
1466
1466
  `Loading the Storm Config from environment variables and storm.config.js file...
1467
1467
  - workspaceRoot: ${workspaceRoot3}`,
1468
1468
  config
1469
1469
  );
1470
- config = await _chunk46LEVY35js.getConfig.call(void 0, workspaceRoot3);
1470
+ config = await _chunkEDVXAHJBjs.getConfig.call(void 0, workspaceRoot3);
1471
1471
  }
1472
1472
  if (_optionalChain([generatorOptions, 'optionalAccess', _95 => _95.hooks, 'optionalAccess', _96 => _96.applyDefaultOptions])) {
1473
- _chunk5ENKRUAUjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
1473
+ _chunkLR64JTPCjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
1474
1474
  options = await Promise.resolve(
1475
1475
  generatorOptions.hooks.applyDefaultOptions(options, config)
1476
1476
  );
1477
- _chunk5ENKRUAUjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
1477
+ _chunkLR64JTPCjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
1478
1478
  }
1479
- _chunk5ENKRUAUjs.writeTrace.call(void 0,
1479
+ _chunkLR64JTPCjs.writeTrace.call(void 0,
1480
1480
  `Generator schema options \u2699\uFE0F
1481
1481
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
1482
1482
  config
@@ -1487,11 +1487,11 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1487
1487
  applyWorkspaceBaseTokens
1488
1488
  );
1489
1489
  if (_optionalChain([generatorOptions, 'optionalAccess', _97 => _97.hooks, 'optionalAccess', _98 => _98.preProcess])) {
1490
- _chunk5ENKRUAUjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
1490
+ _chunkLR64JTPCjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
1491
1491
  await Promise.resolve(
1492
1492
  generatorOptions.hooks.preProcess(tokenized, config)
1493
1493
  );
1494
- _chunk5ENKRUAUjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
1494
+ _chunkLR64JTPCjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
1495
1495
  }
1496
1496
  const result = await Promise.resolve(
1497
1497
  generatorFn(tree, tokenized, config)
@@ -1506,21 +1506,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1506
1506
  }
1507
1507
  }
1508
1508
  if (_optionalChain([generatorOptions, 'optionalAccess', _108 => _108.hooks, 'optionalAccess', _109 => _109.postProcess])) {
1509
- _chunk5ENKRUAUjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
1509
+ _chunkLR64JTPCjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
1510
1510
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
1511
- _chunk5ENKRUAUjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
1511
+ _chunkLR64JTPCjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
1512
1512
  }
1513
1513
  return () => {
1514
- _chunk5ENKRUAUjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
1514
+ _chunkLR64JTPCjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
1515
1515
  `, config);
1516
1516
  };
1517
1517
  } catch (error) {
1518
1518
  return () => {
1519
- _chunk5ENKRUAUjs.writeFatal.call(void 0,
1519
+ _chunkLR64JTPCjs.writeFatal.call(void 0,
1520
1520
  "A fatal error occurred while running the generator - the process was forced to terminate",
1521
1521
  config
1522
1522
  );
1523
- _chunk5ENKRUAUjs.writeError.call(void 0,
1523
+ _chunkLR64JTPCjs.writeError.call(void 0,
1524
1524
  `An exception was thrown in the generator's process
1525
1525
  - Details: ${error.message}
1526
1526
  - Stacktrace: ${error.stack}`,
@@ -1586,16 +1586,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1586
1586
  const projectConfig = {
1587
1587
  root: normalized.directory,
1588
1588
  projectType: "library",
1589
- sourceRoot: _chunk5ENKRUAUjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
1589
+ sourceRoot: _chunkLR64JTPCjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
1590
1590
  targets: {
1591
1591
  build: {
1592
1592
  executor: options.buildExecutor,
1593
1593
  outputs: ["{options.outputPath}"],
1594
1594
  options: {
1595
- entry: [_chunk5ENKRUAUjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
1595
+ entry: [_chunkLR64JTPCjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
1596
1596
  outputPath: getOutputPath(normalized),
1597
- tsconfig: _chunk5ENKRUAUjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
1598
- project: _chunk5ENKRUAUjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
1597
+ tsconfig: _chunkLR64JTPCjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
1598
+ project: _chunkLR64JTPCjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
1599
1599
  defaultConfiguration: "production",
1600
1600
  platform: "neutral",
1601
1601
  assets: [
@@ -1637,22 +1637,22 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1637
1637
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
1638
1638
  let repository = {
1639
1639
  type: "github",
1640
- url: _optionalChain([config, 'optionalAccess', _110 => _110.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _111 => _111.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _112 => _112.namespace]) || _optionalChain([config, 'optionalAccess', _113 => _113.name]) || "repository"}.git`
1640
+ url: _optionalChain([config, 'optionalAccess', _110 => _110.repository]) || `https://github.com/${(typeof _optionalChain([config, 'optionalAccess', _111 => _111.organization]) === "string" ? _optionalChain([config, 'optionalAccess', _112 => _112.organization]) : _optionalChain([config, 'optionalAccess', _113 => _113.organization, 'optionalAccess', _114 => _114.name])) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _115 => _115.namespace]) || _optionalChain([config, 'optionalAccess', _116 => _116.name]) || "repository"}.git`
1641
1641
  };
1642
1642
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
1643
1643
  if (tree.exists("package.json")) {
1644
1644
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
1645
- if (_optionalChain([packageJson, 'optionalAccess', _114 => _114.repository])) {
1645
+ if (_optionalChain([packageJson, 'optionalAccess', _117 => _117.repository])) {
1646
1646
  repository = packageJson.repository;
1647
1647
  }
1648
- if (_optionalChain([packageJson, 'optionalAccess', _115 => _115.description])) {
1648
+ if (_optionalChain([packageJson, 'optionalAccess', _118 => _118.description])) {
1649
1649
  description = packageJson.description;
1650
1650
  }
1651
1651
  }
1652
1652
  if (!normalized.importPath) {
1653
1653
  normalized.importPath = normalized.name;
1654
1654
  }
1655
- const packageJsonPath = _chunk5ENKRUAUjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
1655
+ const packageJsonPath = _chunkLR64JTPCjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
1656
1656
  if (tree.exists(packageJsonPath)) {
1657
1657
  _devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
1658
1658
  if (!normalized.importPath) {
@@ -1700,34 +1700,34 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1700
1700
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
1701
1701
  ...json,
1702
1702
  pnpm: {
1703
- ..._optionalChain([json, 'optionalAccess', _116 => _116.pnpm]),
1703
+ ..._optionalChain([json, 'optionalAccess', _119 => _119.pnpm]),
1704
1704
  overrides: {
1705
- ..._optionalChain([json, 'optionalAccess', _117 => _117.pnpm, 'optionalAccess', _118 => _118.overrides]),
1705
+ ..._optionalChain([json, 'optionalAccess', _120 => _120.pnpm, 'optionalAccess', _121 => _121.overrides]),
1706
1706
  [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
1707
1707
  }
1708
1708
  }
1709
1709
  }));
1710
1710
  }
1711
1711
  _js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
1712
- _chunk5ENKRUAUjs.joinPaths.call(void 0,
1712
+ _chunkLR64JTPCjs.joinPaths.call(void 0,
1713
1713
  normalized.projectRoot,
1714
1714
  "./src",
1715
1715
  `index.${normalized.js ? "js" : "ts"}`
1716
1716
  )
1717
1717
  ]);
1718
- _js.addTsConfigPath.call(void 0, tree, _chunk5ENKRUAUjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
1719
- _chunk5ENKRUAUjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
1718
+ _js.addTsConfigPath.call(void 0, tree, _chunkLR64JTPCjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
1719
+ _chunkLR64JTPCjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
1720
1720
  ]);
1721
1721
  if (tree.exists("package.json")) {
1722
1722
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
1723
- if (_optionalChain([packageJson, 'optionalAccess', _119 => _119.repository])) {
1723
+ if (_optionalChain([packageJson, 'optionalAccess', _122 => _122.repository])) {
1724
1724
  repository = packageJson.repository;
1725
1725
  }
1726
- if (_optionalChain([packageJson, 'optionalAccess', _120 => _120.description])) {
1726
+ if (_optionalChain([packageJson, 'optionalAccess', _123 => _123.description])) {
1727
1727
  description = packageJson.description;
1728
1728
  }
1729
1729
  }
1730
- const tsconfigPath = _chunk5ENKRUAUjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
1730
+ const tsconfigPath = _chunkLR64JTPCjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
1731
1731
  if (tree.exists(tsconfigPath)) {
1732
1732
  _devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
1733
1733
  json.composite ??= true;
@@ -1755,38 +1755,38 @@ function getOutputPath(options) {
1755
1755
  } else {
1756
1756
  parts.push(options.projectRoot);
1757
1757
  }
1758
- return _chunk5ENKRUAUjs.joinPaths.call(void 0, ...parts);
1758
+ return _chunkLR64JTPCjs.joinPaths.call(void 0, ...parts);
1759
1759
  }
1760
1760
  function createProjectTsConfigJson(tree, options) {
1761
1761
  const tsconfig = {
1762
1762
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
1763
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _121 => _121.tsconfigOptions]), () => ( {})),
1763
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _124 => _124.tsconfigOptions]), () => ( {})),
1764
1764
  compilerOptions: {
1765
1765
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
1766
- outDir: _chunk5ENKRUAUjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
1766
+ outDir: _chunkLR64JTPCjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
1767
1767
  noEmit: true,
1768
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _122 => _122.tsconfigOptions, 'optionalAccess', _123 => _123.compilerOptions]), () => ( {}))
1768
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _125 => _125.tsconfigOptions, 'optionalAccess', _126 => _126.compilerOptions]), () => ( {}))
1769
1769
  },
1770
- files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _124 => _124.tsconfigOptions, 'optionalAccess', _125 => _125.files]), () => ( []))],
1770
+ files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _127 => _127.tsconfigOptions, 'optionalAccess', _128 => _128.files]), () => ( []))],
1771
1771
  include: [
1772
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _126 => _126.tsconfigOptions, 'optionalAccess', _127 => _127.include]), () => ( [])),
1772
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _129 => _129.tsconfigOptions, 'optionalAccess', _130 => _130.include]), () => ( [])),
1773
1773
  "src/**/*.ts",
1774
1774
  "src/**/*.js",
1775
1775
  "bin/**/*"
1776
1776
  ],
1777
1777
  exclude: [
1778
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _128 => _128.tsconfigOptions, 'optionalAccess', _129 => _129.exclude]), () => ( [])),
1778
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _131 => _131.tsconfigOptions, 'optionalAccess', _132 => _132.exclude]), () => ( [])),
1779
1779
  "jest.config.ts",
1780
1780
  "src/**/*.spec.ts",
1781
1781
  "src/**/*.test.ts"
1782
1782
  ]
1783
1783
  };
1784
- _devkit.writeJson.call(void 0, tree, _chunk5ENKRUAUjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
1784
+ _devkit.writeJson.call(void 0, tree, _chunkLR64JTPCjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
1785
1785
  }
1786
1786
  async function normalizeOptions(tree, options, config) {
1787
1787
  let importPath = options.importPath;
1788
- if (!importPath && _optionalChain([config, 'optionalAccess', _130 => _130.namespace])) {
1789
- importPath = `@${_optionalChain([config, 'optionalAccess', _131 => _131.namespace])}/${options.name}`;
1788
+ if (!importPath && _optionalChain([config, 'optionalAccess', _133 => _133.namespace])) {
1789
+ importPath = `@${_optionalChain([config, 'optionalAccess', _134 => _134.namespace])}/${options.name}`;
1790
1790
  }
1791
1791
  if (options.publishable) {
1792
1792
  if (!importPath) {
@@ -1846,7 +1846,7 @@ async function normalizeOptions(tree, options, config) {
1846
1846
 
1847
1847
  // ../workspace-tools/src/generators/browser-library/generator.ts
1848
1848
  async function browserLibraryGeneratorFn(tree, schema, config) {
1849
- const filesDir = _chunk5ENKRUAUjs.joinPaths.call(void 0,
1849
+ const filesDir = _chunkLR64JTPCjs.joinPaths.call(void 0,
1850
1850
  __dirname,
1851
1851
  "src",
1852
1852
  "generators",
@@ -1929,29 +1929,29 @@ var generator_default = withRunGenerator(
1929
1929
 
1930
1930
  var _zodtojsonschema = require('zod-to-json-schema');
1931
1931
  async function configSchemaGeneratorFn(tree, options, config) {
1932
- _chunk5ENKRUAUjs.writeInfo.call(void 0,
1932
+ _chunkLR64JTPCjs.writeInfo.call(void 0,
1933
1933
  "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
1934
1934
  config
1935
1935
  );
1936
- _chunk5ENKRUAUjs.writeTrace.call(void 0,
1936
+ _chunkLR64JTPCjs.writeTrace.call(void 0,
1937
1937
  `Determining the Storm Workspace Configuration JSON Schema...`,
1938
1938
  config
1939
1939
  );
1940
- const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunk5ENKRUAUjs.stormWorkspaceConfigSchema, {
1940
+ const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkLR64JTPCjs.stormWorkspaceConfigSchema, {
1941
1941
  name: "StormWorkspaceConfiguration"
1942
1942
  });
1943
- _chunk5ENKRUAUjs.writeTrace.call(void 0, jsonSchema, config);
1943
+ _chunkLR64JTPCjs.writeTrace.call(void 0, jsonSchema, config);
1944
1944
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
1945
- _nullishCoalesce(_optionalChain([config, 'optionalAccess', _132 => _132.workspaceRoot]), () => ( _chunk5ENKRUAUjs.findWorkspaceRoot.call(void 0, ))),
1946
- _optionalChain([options, 'access', _133 => _133.outputFile, 'optionalAccess', _134 => _134.startsWith, 'call', _135 => _135("./")]) ? "" : "./"
1945
+ _nullishCoalesce(_optionalChain([config, 'optionalAccess', _135 => _135.workspaceRoot]), () => ( _chunkLR64JTPCjs.findWorkspaceRoot.call(void 0, ))),
1946
+ _optionalChain([options, 'access', _136 => _136.outputFile, 'optionalAccess', _137 => _137.startsWith, 'call', _138 => _138("./")]) ? "" : "./"
1947
1947
  );
1948
- _chunk5ENKRUAUjs.writeTrace.call(void 0,
1948
+ _chunkLR64JTPCjs.writeTrace.call(void 0,
1949
1949
  `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
1950
1950
  config
1951
1951
  );
1952
1952
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
1953
1953
  await _devkit.formatFiles.call(void 0, tree);
1954
- _chunk5ENKRUAUjs.writeSuccess.call(void 0,
1954
+ _chunkLR64JTPCjs.writeSuccess.call(void 0,
1955
1955
  "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
1956
1956
  config
1957
1957
  );
@@ -1986,7 +1986,7 @@ var generator_default2 = withRunGenerator(
1986
1986
 
1987
1987
 
1988
1988
  async function neutralLibraryGeneratorFn(tree, schema, config) {
1989
- const filesDir = _chunk5ENKRUAUjs.joinPaths.call(void 0,
1989
+ const filesDir = _chunkLR64JTPCjs.joinPaths.call(void 0,
1990
1990
  __dirname,
1991
1991
  "src",
1992
1992
  "generators",
@@ -2045,7 +2045,7 @@ var generator_default3 = withRunGenerator(
2045
2045
 
2046
2046
 
2047
2047
  async function nodeLibraryGeneratorFn(tree, schema, config) {
2048
- const filesDir = _chunk5ENKRUAUjs.joinPaths.call(void 0,
2048
+ const filesDir = _chunkLR64JTPCjs.joinPaths.call(void 0,
2049
2049
  __dirname,
2050
2050
  "src",
2051
2051
  "generators",