@storm-software/cloudflare-tools 0.65.6 → 0.65.7

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 (33) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/{chunk-QBISXDXF.mjs → chunk-436YFSDY.mjs} +1 -1
  3. package/dist/{chunk-G6PGMOAM.mjs → chunk-DAVZT6KF.mjs} +3 -3
  4. package/dist/{chunk-SN6UJZ2G.mjs → chunk-EIZU6AAN.mjs} +3 -3
  5. package/dist/{chunk-NYUGUHRY.mjs → chunk-FXMVUKUI.mjs} +1 -1
  6. package/dist/{chunk-537PH6YK.mjs → chunk-HHVUEOQK.mjs} +6 -4
  7. package/dist/{chunk-6CP6ARGM.js → chunk-HUZVQCWL.js} +6 -4
  8. package/dist/{chunk-U3IGSCX3.js → chunk-LRGILLMQ.js} +57 -172
  9. package/dist/{chunk-N3UQB43Z.js → chunk-PUBL4ZFL.js} +3 -3
  10. package/dist/{chunk-N6YTSDTM.mjs → chunk-QY2F3NDP.mjs} +1 -1
  11. package/dist/{chunk-B44VJUAX.js → chunk-R5DICCMW.js} +2 -2
  12. package/dist/{chunk-EHEXWPEP.mjs → chunk-UGFKKNQI.mjs} +8 -121
  13. package/dist/{chunk-QAVQTJUQ.js → chunk-ZZEFABTA.js} +5 -5
  14. package/dist/executors.js +3 -3
  15. package/dist/executors.mjs +5 -5
  16. package/dist/generators.js +4 -4
  17. package/dist/generators.mjs +4 -4
  18. package/dist/index.js +6 -6
  19. package/dist/index.mjs +7 -7
  20. package/dist/src/executors/cloudflare-publish/executor.js +2 -2
  21. package/dist/src/executors/cloudflare-publish/executor.mjs +4 -4
  22. package/dist/src/executors/r2-upload-publish/executor.js +3 -3
  23. package/dist/src/executors/r2-upload-publish/executor.mjs +3 -3
  24. package/dist/src/executors/serve/executor.js +3 -3
  25. package/dist/src/executors/serve/executor.mjs +3 -3
  26. package/dist/src/generators/init/generator.js +2 -2
  27. package/dist/src/generators/init/generator.mjs +2 -2
  28. package/dist/src/generators/worker/generator.js +4 -4
  29. package/dist/src/generators/worker/generator.mjs +4 -4
  30. package/dist/src/utils/index.mjs +1 -1
  31. package/dist/src/utils/r2-bucket-helpers.mjs +1 -1
  32. package/dist/tsup.config.mjs +1 -1
  33. package/package.json +3 -3
@@ -9,7 +9,7 @@ var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
9
9
 
10
10
 
11
11
 
12
- var _chunk6CP6ARGMjs = require('./chunk-6CP6ARGM.js');
12
+ var _chunkHUZVQCWLjs = require('./chunk-HUZVQCWL.js');
13
13
 
14
14
 
15
15
 
@@ -22,9 +22,6 @@ var _chunk6CP6ARGMjs = require('./chunk-6CP6ARGM.js');
22
22
 
23
23
  var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
24
24
 
25
-
26
- var _chunkMCKGQKYUjs = require('./chunk-MCKGQKYU.js');
27
-
28
25
  // ../config-tools/src/utilities/apply-workspace-tokens.ts
29
26
  var applyWorkspaceBaseTokens = async (option, tokenParams) => {
30
27
  let result = option;
@@ -60,7 +57,7 @@ var applyWorkspaceBaseTokens = async (option, tokenParams) => {
60
57
  if (result.includes("{workspaceRoot}")) {
61
58
  result = result.replaceAll(
62
59
  "{workspaceRoot}",
63
- _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunk6CP6ARGMjs.findWorkspaceRoot.call(void 0, )))
60
+ _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunkHUZVQCWLjs.findWorkspaceRoot.call(void 0, )))
64
61
  );
65
62
  }
66
63
  return result;
@@ -109,7 +106,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
109
106
  "The Build process failed because the context is not valid. Please run this command from a workspace."
110
107
  );
111
108
  }
112
- const workspaceRoot3 = _chunk6CP6ARGMjs.findWorkspaceRoot.call(void 0, );
109
+ const workspaceRoot3 = _chunkHUZVQCWLjs.findWorkspaceRoot.call(void 0, );
113
110
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot3;
114
111
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot3;
115
112
  const projectName = context.projectName;
@@ -125,7 +122,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
125
122
  `,
126
123
  config
127
124
  );
128
- config = await _chunk6CP6ARGMjs.getConfig.call(void 0, workspaceRoot3);
125
+ config = await _chunkHUZVQCWLjs.getConfig.call(void 0, workspaceRoot3);
129
126
  }
130
127
  if (_optionalChain([executorOptions, 'optionalAccess', _7 => _7.hooks, 'optionalAccess', _8 => _8.applyDefaultOptions])) {
131
128
  _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
@@ -225,7 +222,7 @@ var _devkit = require('@nx/devkit');
225
222
 
226
223
 
227
224
  var _child_process = require('child_process');
228
- var _path = require('path'); var path3 = _interopRequireWildcard(_path);
225
+ var _path = require('path'); var path2 = _interopRequireWildcard(_path);
229
226
  var INVALID_CARGO_ARGS = [
230
227
  "allFeatures",
231
228
  "allTargets",
@@ -451,10 +448,6 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
451
448
  var _https = require('https'); var _https2 = _interopRequireDefault(_https);
452
449
  var LARGE_BUFFER = 1024 * 1e6;
453
450
 
454
- // ../esbuild/src/build.ts
455
- var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
456
- var _globby = require('globby');
457
-
458
451
  // ../build-tools/src/config.ts
459
452
  var DEFAULT_COMPILED_BANNER = `/*****************************************
460
453
  *
@@ -510,7 +503,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
510
503
  }
511
504
  _chunk2CDSXWFAjs.writeTrace.call(void 0,
512
505
  `\u{1F4DD} Copying the following assets to the output directory:
513
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunk6CP6ARGMjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
506
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkHUZVQCWLjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
514
507
  config
515
508
  );
516
509
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
@@ -523,17 +516,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
523
516
  _chunk2CDSXWFAjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
524
517
  if (includeSrc === true) {
525
518
  _chunk2CDSXWFAjs.writeDebug.call(void 0,
526
- `\u{1F4DD} Adding banner and writing source files: ${_chunk6CP6ARGMjs.joinPaths.call(void 0,
519
+ `\u{1F4DD} Adding banner and writing source files: ${_chunkHUZVQCWLjs.joinPaths.call(void 0,
527
520
  outputPath,
528
521
  "src"
529
522
  )}`,
530
523
  config
531
524
  );
532
525
  const files = await _glob.glob.call(void 0, [
533
- _chunk6CP6ARGMjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
534
- _chunk6CP6ARGMjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
535
- _chunk6CP6ARGMjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
536
- _chunk6CP6ARGMjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
526
+ _chunkHUZVQCWLjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
527
+ _chunkHUZVQCWLjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
528
+ _chunkHUZVQCWLjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
529
+ _chunkHUZVQCWLjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
537
530
  ]);
538
531
  await Promise.allSettled(
539
532
  files.map(
@@ -588,7 +581,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
588
581
  )) {
589
582
  const projectNode = project.node;
590
583
  if (projectNode.data.root) {
591
- const projectPackageJsonPath = _chunk6CP6ARGMjs.joinPaths.call(void 0,
584
+ const projectPackageJsonPath = _chunkHUZVQCWLjs.joinPaths.call(void 0,
592
585
  workspaceRoot3,
593
586
  projectNode.data.root,
594
587
  "package.json"
@@ -610,7 +603,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
610
603
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
611
604
  );
612
605
  const projectJsonFile = await _promises.readFile.call(void 0,
613
- _chunk6CP6ARGMjs.joinPaths.call(void 0, projectRoot, "project.json"),
606
+ _chunkHUZVQCWLjs.joinPaths.call(void 0, projectRoot, "project.json"),
614
607
  "utf8"
615
608
  );
616
609
  const projectJson = JSON.parse(projectJsonFile);
@@ -623,7 +616,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
623
616
  }
624
617
  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) => {
625
618
  if (_optionalChain([projectConfigurations, 'access', _42 => _42.projects, 'optionalAccess', _43 => _43[dep]])) {
626
- const depPackageJsonPath = _chunk6CP6ARGMjs.joinPaths.call(void 0,
619
+ const depPackageJsonPath = _chunkHUZVQCWLjs.joinPaths.call(void 0,
627
620
  workspaceRoot3,
628
621
  projectConfigurations.projects[dep].root,
629
622
  "package.json"
@@ -659,9 +652,9 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
659
652
  return packageJson;
660
653
  };
661
654
  var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
662
- const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunk6CP6ARGMjs.findWorkspaceRoot.call(void 0, );
655
+ const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkHUZVQCWLjs.findWorkspaceRoot.call(void 0, );
663
656
  const workspacePackageJsonContent = await _promises.readFile.call(void 0,
664
- _chunk6CP6ARGMjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
657
+ _chunkHUZVQCWLjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
665
658
  "utf8"
666
659
  );
667
660
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
@@ -672,7 +665,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
672
665
  if (distSrc.startsWith("/")) {
673
666
  distSrc = distSrc.substring(1);
674
667
  }
675
- packageJson.source ??= `${_chunk6CP6ARGMjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
668
+ packageJson.source ??= `${_chunkHUZVQCWLjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
676
669
  }
677
670
  packageJson.files ??= ["dist/**/*"];
678
671
  if (includeSrc === true && !packageJson.files.includes("src")) {
@@ -697,7 +690,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
697
690
  packageJson.contributors = [packageJson.author];
698
691
  }
699
692
  packageJson.repository ??= workspacePackageJson.repository;
700
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunk6CP6ARGMjs.joinPaths.call(void 0, "packages", projectName);
693
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkHUZVQCWLjs.joinPaths.call(void 0, "packages", projectName);
701
694
  return packageJson;
702
695
  };
703
696
 
@@ -816,7 +809,7 @@ async function resolveContext(userOptions) {
816
809
  if (!workspaceRoot3) {
817
810
  throw new Error("Cannot find Nx workspace root");
818
811
  }
819
- const workspaceConfig = await _chunk6CP6ARGMjs.getWorkspaceConfig.call(void 0, true, {
812
+ const workspaceConfig = await _chunkHUZVQCWLjs.getWorkspaceConfig.call(void 0, true, {
820
813
  workspaceRoot: workspaceRoot3.dir
821
814
  });
822
815
  _chunk2CDSXWFAjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
@@ -824,7 +817,7 @@ async function resolveContext(userOptions) {
824
817
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
825
818
  exitOnError: true
826
819
  });
827
- const projectJsonPath = _chunk6CP6ARGMjs.joinPaths.call(void 0,
820
+ const projectJsonPath = _chunkHUZVQCWLjs.joinPaths.call(void 0,
828
821
  workspaceRoot3.dir,
829
822
  projectRoot,
830
823
  "project.json"
@@ -843,7 +836,7 @@ async function resolveContext(userOptions) {
843
836
  }
844
837
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
845
838
  options.name ??= projectName;
846
- const packageJsonPath = _chunk6CP6ARGMjs.joinPaths.call(void 0,
839
+ const packageJsonPath = _chunkHUZVQCWLjs.joinPaths.call(void 0,
847
840
  workspaceRoot3.dir,
848
841
  options.projectRoot,
849
842
  "package.json"
@@ -855,7 +848,7 @@ async function resolveContext(userOptions) {
855
848
  const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
856
849
  const resolvedOptions = {
857
850
  ...options,
858
- tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunk6CP6ARGMjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
851
+ tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkHUZVQCWLjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
859
852
  metafile: userOptions.mode === "development",
860
853
  clean: false,
861
854
  env,
@@ -880,8 +873,8 @@ async function resolveContext(userOptions) {
880
873
  projectConfigurations,
881
874
  projectName,
882
875
  projectGraph,
883
- sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunk6CP6ARGMjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
884
- outputPath: resolvedOptions.outputPath || _chunk6CP6ARGMjs.joinPaths.call(void 0,
876
+ sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkHUZVQCWLjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
877
+ outputPath: resolvedOptions.outputPath || _chunkHUZVQCWLjs.joinPaths.call(void 0,
885
878
  workspaceConfig.workspaceRoot,
886
879
  "dist",
887
880
  resolvedOptions.projectRoot
@@ -905,10 +898,10 @@ ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0, context.options)}`,
905
898
 
906
899
 
907
900
  async function generatePackageJson(context) {
908
- if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk6CP6ARGMjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
901
+ if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkHUZVQCWLjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
909
902
  _chunk2CDSXWFAjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
910
903
  const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, "Write package.json file");
911
- const packageJsonPath = _chunk6CP6ARGMjs.joinPaths.call(void 0,
904
+ const packageJsonPath = _chunkHUZVQCWLjs.joinPaths.call(void 0,
912
905
  context.options.projectRoot,
913
906
  "project.json"
914
907
  );
@@ -916,7 +909,7 @@ async function generatePackageJson(context) {
916
909
  throw new Error("Cannot find package.json configuration");
917
910
  }
918
911
  const packageJsonFile = await _promises2.default.readFile(
919
- _chunk6CP6ARGMjs.joinPaths.call(void 0,
912
+ _chunkHUZVQCWLjs.joinPaths.call(void 0,
920
913
  context.workspaceConfig.workspaceRoot,
921
914
  context.options.projectRoot,
922
915
  "package.json"
@@ -1022,7 +1015,7 @@ async function generatePackageJson(context) {
1022
1015
  }
1023
1016
  }
1024
1017
  await _devkit.writeJsonFile.call(void 0,
1025
- _chunk6CP6ARGMjs.joinPaths.call(void 0, context.outputPath, "package.json"),
1018
+ _chunkHUZVQCWLjs.joinPaths.call(void 0, context.outputPath, "package.json"),
1026
1019
  packageJson
1027
1020
  );
1028
1021
  stopwatch();
@@ -1030,88 +1023,6 @@ async function generatePackageJson(context) {
1030
1023
  return context;
1031
1024
  }
1032
1025
 
1033
- // ../esbuild/src/plugins/deps-check.ts
1034
-
1035
-
1036
- var unusedIgnore = [
1037
- // these are our dev dependencies
1038
- /@types\/.*?/,
1039
- /@typescript-eslint.*?/,
1040
- /eslint.*?/,
1041
- "esbuild",
1042
- "husky",
1043
- "is-ci",
1044
- "lint-staged",
1045
- "prettier",
1046
- "typescript",
1047
- "ts-node",
1048
- "ts-jest",
1049
- "@swc/core",
1050
- "@swc/jest",
1051
- "jest",
1052
- // these are missing 3rd party deps
1053
- "spdx-exceptions",
1054
- "spdx-license-ids",
1055
- // type-only, so it is not detected
1056
- "ts-toolbelt",
1057
- // these are indirectly used by build
1058
- "buffer"
1059
- ];
1060
- var missingIgnore = [".prisma", "@prisma/client", "ts-toolbelt"];
1061
- var depsCheckPlugin = (bundle) => ({
1062
- name: "storm:deps-check",
1063
- setup(build3) {
1064
- const pkgJsonPath = path3.default.join(process.cwd(), "package.json");
1065
- const pkgContents = _chunkMCKGQKYUjs.__require.call(void 0, pkgJsonPath);
1066
- const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
1067
- const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
1068
- const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
1069
- const dependencies = [
1070
- ...regDependencies,
1071
- ...bundle ? devDependencies : []
1072
- ];
1073
- const collectedDependencies = /* @__PURE__ */ new Set();
1074
- const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
1075
- build3.onResolve({ filter: onlyPackages }, (args) => {
1076
- if (args.importer.includes(process.cwd())) {
1077
- if (args.path[0] === "@") {
1078
- const [org, pkg] = args.path.split("/");
1079
- collectedDependencies.add(`${org}/${pkg}`);
1080
- } else {
1081
- const [pkg] = args.path.split("/");
1082
- collectedDependencies.add(pkg);
1083
- }
1084
- }
1085
- return { external: true };
1086
- });
1087
- build3.onEnd(() => {
1088
- const unusedDependencies = [...dependencies].filter((dep) => {
1089
- return !collectedDependencies.has(dep) || _module.builtinModules.includes(dep);
1090
- });
1091
- const missingDependencies = [...collectedDependencies].filter((dep) => {
1092
- return !dependencies.includes(dep) && !_module.builtinModules.includes(dep);
1093
- });
1094
- const filteredUnusedDeps = unusedDependencies.filter((dep) => {
1095
- return !unusedIgnore.some((pattern) => dep.match(pattern));
1096
- });
1097
- const filteredMissingDeps = missingDependencies.filter((dep) => {
1098
- return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
1099
- });
1100
- _chunk2CDSXWFAjs.writeWarning.call(void 0,
1101
- `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
1102
- );
1103
- _chunk2CDSXWFAjs.writeError.call(void 0,
1104
- `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
1105
- );
1106
- if (filteredMissingDeps.length > 0) {
1107
- throw new Error(`Missing dependencies detected - please install them:
1108
- ${JSON.stringify(filteredMissingDeps)}
1109
- `);
1110
- }
1111
- });
1112
- }
1113
- });
1114
-
1115
1026
  // ../esbuild/src/tsup.ts
1116
1027
  var _tsup = require('tsup');
1117
1028
  async function executeTsup(context) {
@@ -1122,7 +1033,7 @@ async function executeTsup(context) {
1122
1033
  const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, `${context.options.name} build`);
1123
1034
  await _tsup.build.call(void 0, {
1124
1035
  ...context.options,
1125
- outDir: context.options.distDir ? _chunk6CP6ARGMjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
1036
+ outDir: context.options.distDir ? _chunkHUZVQCWLjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
1126
1037
  workspaceConfig: context.workspaceConfig
1127
1038
  });
1128
1039
  stopwatch();
@@ -1152,32 +1063,6 @@ async function reportResults(context) {
1152
1063
  );
1153
1064
  }
1154
1065
  }
1155
- async function dependencyCheck(options) {
1156
- if (process.env.DEV === "true") {
1157
- return void 0;
1158
- }
1159
- if (process.env.CI && !process.env.BUILDKITE) {
1160
- return void 0;
1161
- }
1162
- const buildPromise = esbuild.build({
1163
- entryPoints: _globby.globbySync.call(void 0, "**/*.{j,t}s", {
1164
- // We don't check dependencies in ecosystem tests because tests are isolated from the build.
1165
- ignore: ["./src/__tests__/**/*", "./tests/e2e/**/*", "./dist/**/*"],
1166
- gitignore: true
1167
- }),
1168
- logLevel: "silent",
1169
- // there will be errors
1170
- bundle: true,
1171
- // we bundle to get everything
1172
- write: false,
1173
- // no need to write for analysis
1174
- outdir: "out",
1175
- plugins: [depsCheckPlugin(options.bundle)]
1176
- });
1177
- await buildPromise.catch(() => {
1178
- });
1179
- return void 0;
1180
- }
1181
1066
  async function cleanOutputPath(context) {
1182
1067
  if (context.clean !== false && context.outputPath) {
1183
1068
  _chunk2CDSXWFAjs.writeDebug.call(void 0,
@@ -1190,7 +1075,7 @@ async function cleanOutputPath(context) {
1190
1075
  }
1191
1076
  return context;
1192
1077
  }
1193
- async function build2(options) {
1078
+ async function build(options) {
1194
1079
  _chunk2CDSXWFAjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
1195
1080
  const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, "ESBuild pipeline");
1196
1081
  try {
@@ -1201,7 +1086,7 @@ async function build2(options) {
1201
1086
  const context = await resolveContext(options);
1202
1087
  await cleanOutputPath(context);
1203
1088
  await Promise.all([
1204
- dependencyCheck(context.options),
1089
+ // dependencyCheck(context.options),
1205
1090
  generatePackageJson(context),
1206
1091
  copyBuildAssets(context),
1207
1092
  executeTsup(context)
@@ -1226,7 +1111,7 @@ async function esbuildExecutorFn(options, context, config) {
1226
1111
  "The Build process failed because the context is not valid. Please run this command from a workspace."
1227
1112
  );
1228
1113
  }
1229
- await build2({
1114
+ await build({
1230
1115
  ...options,
1231
1116
  projectRoot: _optionalChain([context, 'access', _74 => _74.projectsConfigurations, 'access', _75 => _75.projects, 'optionalAccess', _76 => _76[context.projectName], 'access', _77 => _77.root]),
1232
1117
  name: context.projectName,
@@ -1274,7 +1159,7 @@ var LARGE_BUFFER2 = 1024 * 1e6;
1274
1159
 
1275
1160
  // ../workspace-tools/src/executors/size-limit/executor.ts
1276
1161
 
1277
- var _esbuild2 = require('@size-limit/esbuild'); var _esbuild3 = _interopRequireDefault(_esbuild2);
1162
+ var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
1278
1163
  var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
1279
1164
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
1280
1165
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
@@ -1285,7 +1170,7 @@ async function sizeLimitExecutorFn(options, context, config) {
1285
1170
  );
1286
1171
  }
1287
1172
  _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
1288
- _sizelimit2.default.call(void 0, [_file2.default, _esbuild3.default, _esbuildwhy2.default], {
1173
+ _sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
1289
1174
  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,
1290
1175
  _nullishCoalesce(_optionalChain([context, 'access', _89 => _89.projectsConfigurations, 'access', _90 => _90.projects, 'access', _91 => _91[context.projectName], 'optionalAccess', _92 => _92.root]), () => ( "./")),
1291
1176
  "src"
@@ -1373,7 +1258,7 @@ async function unbuildExecutorFn(options, context, config) {
1373
1258
  );
1374
1259
  }
1375
1260
  const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
1376
- fsCache: config.skipCache ? false : _chunk6CP6ARGMjs.joinPaths.call(void 0,
1261
+ fsCache: config.skipCache ? false : _chunkHUZVQCWLjs.joinPaths.call(void 0,
1377
1262
  config.workspaceRoot,
1378
1263
  config.directories.cache || "node_modules/.cache/storm",
1379
1264
  "jiti"
@@ -1395,7 +1280,7 @@ async function unbuildExecutorFn(options, context, config) {
1395
1280
  {
1396
1281
  stubOptions: {
1397
1282
  jiti: {
1398
- fsCache: config.skipCache ? false : _chunk6CP6ARGMjs.joinPaths.call(void 0,
1283
+ fsCache: config.skipCache ? false : _chunkHUZVQCWLjs.joinPaths.call(void 0,
1399
1284
  config.workspaceRoot,
1400
1285
  config.directories.cache || "node_modules/.cache/storm",
1401
1286
  "jiti"
@@ -1462,14 +1347,14 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
1462
1347
  _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
1463
1348
 
1464
1349
  `, config);
1465
- const workspaceRoot3 = _chunk6CP6ARGMjs.findWorkspaceRoot.call(void 0, );
1350
+ const workspaceRoot3 = _chunkHUZVQCWLjs.findWorkspaceRoot.call(void 0, );
1466
1351
  if (!generatorOptions.skipReadingConfig) {
1467
1352
  _chunk2CDSXWFAjs.writeDebug.call(void 0,
1468
1353
  `Loading the Storm Config from environment variables and storm.config.js file...
1469
1354
  - workspaceRoot: ${workspaceRoot3}`,
1470
1355
  config
1471
1356
  );
1472
- config = await _chunk6CP6ARGMjs.getConfig.call(void 0, workspaceRoot3);
1357
+ config = await _chunkHUZVQCWLjs.getConfig.call(void 0, workspaceRoot3);
1473
1358
  }
1474
1359
  if (_optionalChain([generatorOptions, 'optionalAccess', _95 => _95.hooks, 'optionalAccess', _96 => _96.applyDefaultOptions])) {
1475
1360
  _chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
@@ -1588,16 +1473,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1588
1473
  const projectConfig = {
1589
1474
  root: normalized.directory,
1590
1475
  projectType: "library",
1591
- sourceRoot: _chunk6CP6ARGMjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
1476
+ sourceRoot: _chunkHUZVQCWLjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
1592
1477
  targets: {
1593
1478
  build: {
1594
1479
  executor: options.buildExecutor,
1595
1480
  outputs: ["{options.outputPath}"],
1596
1481
  options: {
1597
- entry: [_chunk6CP6ARGMjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
1482
+ entry: [_chunkHUZVQCWLjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
1598
1483
  outputPath: getOutputPath(normalized),
1599
- tsconfig: _chunk6CP6ARGMjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
1600
- project: _chunk6CP6ARGMjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
1484
+ tsconfig: _chunkHUZVQCWLjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
1485
+ project: _chunkHUZVQCWLjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
1601
1486
  defaultConfiguration: "production",
1602
1487
  platform: "neutral",
1603
1488
  assets: [
@@ -1654,7 +1539,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1654
1539
  if (!normalized.importPath) {
1655
1540
  normalized.importPath = normalized.name;
1656
1541
  }
1657
- const packageJsonPath = _chunk6CP6ARGMjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
1542
+ const packageJsonPath = _chunkHUZVQCWLjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
1658
1543
  if (tree.exists(packageJsonPath)) {
1659
1544
  _devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
1660
1545
  if (!normalized.importPath) {
@@ -1711,14 +1596,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1711
1596
  }));
1712
1597
  }
1713
1598
  _js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
1714
- _chunk6CP6ARGMjs.joinPaths.call(void 0,
1599
+ _chunkHUZVQCWLjs.joinPaths.call(void 0,
1715
1600
  normalized.projectRoot,
1716
1601
  "./src",
1717
1602
  `index.${normalized.js ? "js" : "ts"}`
1718
1603
  )
1719
1604
  ]);
1720
- _js.addTsConfigPath.call(void 0, tree, _chunk6CP6ARGMjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
1721
- _chunk6CP6ARGMjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
1605
+ _js.addTsConfigPath.call(void 0, tree, _chunkHUZVQCWLjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
1606
+ _chunkHUZVQCWLjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
1722
1607
  ]);
1723
1608
  if (tree.exists("package.json")) {
1724
1609
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
@@ -1729,7 +1614,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1729
1614
  description = packageJson.description;
1730
1615
  }
1731
1616
  }
1732
- const tsconfigPath = _chunk6CP6ARGMjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
1617
+ const tsconfigPath = _chunkHUZVQCWLjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
1733
1618
  if (tree.exists(tsconfigPath)) {
1734
1619
  _devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
1735
1620
  json.composite ??= true;
@@ -1757,7 +1642,7 @@ function getOutputPath(options) {
1757
1642
  } else {
1758
1643
  parts.push(options.projectRoot);
1759
1644
  }
1760
- return _chunk6CP6ARGMjs.joinPaths.call(void 0, ...parts);
1645
+ return _chunkHUZVQCWLjs.joinPaths.call(void 0, ...parts);
1761
1646
  }
1762
1647
  function createProjectTsConfigJson(tree, options) {
1763
1648
  const tsconfig = {
@@ -1765,7 +1650,7 @@ function createProjectTsConfigJson(tree, options) {
1765
1650
  ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _124 => _124.tsconfigOptions]), () => ( {})),
1766
1651
  compilerOptions: {
1767
1652
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
1768
- outDir: _chunk6CP6ARGMjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
1653
+ outDir: _chunkHUZVQCWLjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
1769
1654
  noEmit: true,
1770
1655
  ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _125 => _125.tsconfigOptions, 'optionalAccess', _126 => _126.compilerOptions]), () => ( {}))
1771
1656
  },
@@ -1783,7 +1668,7 @@ function createProjectTsConfigJson(tree, options) {
1783
1668
  "src/**/*.test.ts"
1784
1669
  ]
1785
1670
  };
1786
- _devkit.writeJson.call(void 0, tree, _chunk6CP6ARGMjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
1671
+ _devkit.writeJson.call(void 0, tree, _chunkHUZVQCWLjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
1787
1672
  }
1788
1673
  async function normalizeOptions(tree, options, config) {
1789
1674
  let importPath = options.importPath;
@@ -1848,7 +1733,7 @@ async function normalizeOptions(tree, options, config) {
1848
1733
 
1849
1734
  // ../workspace-tools/src/generators/browser-library/generator.ts
1850
1735
  async function browserLibraryGeneratorFn(tree, schema, config) {
1851
- const filesDir = _chunk6CP6ARGMjs.joinPaths.call(void 0,
1736
+ const filesDir = _chunkHUZVQCWLjs.joinPaths.call(void 0,
1852
1737
  __dirname,
1853
1738
  "src",
1854
1739
  "generators",
@@ -1939,9 +1824,9 @@ async function configSchemaGeneratorFn(tree, options, config) {
1939
1824
  `Determining the Storm Workspace Configuration JSON Schema...`,
1940
1825
  config
1941
1826
  );
1942
- const jsonSchema = z.toJSONSchema(_chunk6CP6ARGMjs.workspaceConfigSchema, {
1827
+ const jsonSchema = z.toJSONSchema(_chunkHUZVQCWLjs.workspaceConfigSchema, {
1943
1828
  target: "draft-7",
1944
- metadata: _chunk6CP6ARGMjs.schemaRegistry
1829
+ metadata: _chunkHUZVQCWLjs.schemaRegistry
1945
1830
  });
1946
1831
  jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
1947
1832
  jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
@@ -1953,7 +1838,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
1953
1838
  );
1954
1839
  }
1955
1840
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
1956
- _nullishCoalesce(_optionalChain([config, 'optionalAccess', _135 => _135.workspaceRoot]), () => ( _chunk6CP6ARGMjs.findWorkspaceRoot.call(void 0, ))),
1841
+ _nullishCoalesce(_optionalChain([config, 'optionalAccess', _135 => _135.workspaceRoot]), () => ( _chunkHUZVQCWLjs.findWorkspaceRoot.call(void 0, ))),
1957
1842
  options.outputFile.startsWith("./") ? "" : "./"
1958
1843
  );
1959
1844
  _chunk2CDSXWFAjs.writeTrace.call(void 0,
@@ -1997,7 +1882,7 @@ var generator_default2 = withRunGenerator(
1997
1882
 
1998
1883
 
1999
1884
  async function neutralLibraryGeneratorFn(tree, schema, config) {
2000
- const filesDir = _chunk6CP6ARGMjs.joinPaths.call(void 0,
1885
+ const filesDir = _chunkHUZVQCWLjs.joinPaths.call(void 0,
2001
1886
  __dirname,
2002
1887
  "src",
2003
1888
  "generators",
@@ -2056,7 +1941,7 @@ var generator_default3 = withRunGenerator(
2056
1941
 
2057
1942
 
2058
1943
  async function nodeLibraryGeneratorFn(tree, schema, config) {
2059
- const filesDir = _chunk6CP6ARGMjs.joinPaths.call(void 0,
1944
+ const filesDir = _chunkHUZVQCWLjs.joinPaths.call(void 0,
2060
1945
  __dirname,
2061
1946
  "src",
2062
1947
  "generators",
@@ -2266,7 +2151,7 @@ async function presetGeneratorFn(tree, options) {
2266
2151
  };
2267
2152
  return json;
2268
2153
  });
2269
- _devkit.generateFiles.call(void 0, tree, path3.join(__dirname, "files"), projectRoot, {
2154
+ _devkit.generateFiles.call(void 0, tree, path2.join(__dirname, "files"), projectRoot, {
2270
2155
  ...options,
2271
2156
  pnpmVersion,
2272
2157
  nodeVersion
@@ -9,7 +9,7 @@ var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
9
9
 
10
10
 
11
11
 
12
- var _chunk6CP6ARGMjs = require('./chunk-6CP6ARGM.js');
12
+ var _chunkHUZVQCWLjs = require('./chunk-HUZVQCWL.js');
13
13
 
14
14
 
15
15
 
@@ -39,8 +39,8 @@ async function runExecutor(options, context) {
39
39
  throw new Error("The executor requires projectsConfigurations.");
40
40
  }
41
41
  try {
42
- const workspaceRoot = _chunk6CP6ARGMjs.findWorkspaceRoot.call(void 0, );
43
- const config = await _chunk6CP6ARGMjs.getConfig.call(void 0, workspaceRoot);
42
+ const workspaceRoot = _chunkHUZVQCWLjs.findWorkspaceRoot.call(void 0, );
43
+ const config = await _chunkHUZVQCWLjs.getConfig.call(void 0, workspaceRoot);
44
44
  const sourceRoot = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.sourceRoot]), () => ( workspaceRoot));
45
45
  const projectName = _nullishCoalesce(_optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.name]), () => ( context.projectName));
46
46
  const projectDetails = _chunkNU34IEWNjs.getPackageInfo.call(void 0,
@@ -9,7 +9,7 @@ var __commonJS = (cb, mod) => function __require2() {
9
9
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
10
  };
11
11
 
12
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__62b9eddf5f3d134c9eaf657bf79c8674/node_modules/tsup/assets/esm_shims.js
12
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__54bfad996dec8787a6354b9b37c1f7c4/node_modules/tsup/assets/esm_shims.js
13
13
  import { fileURLToPath } from "url";
14
14
  import path from "path";
15
15
  var getFilename = () => fileURLToPath(import.meta.url);
@@ -7,7 +7,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
7
7
  "package.json"(exports, module) {
8
8
  module.exports = {
9
9
  name: "@storm-software/cloudflare-tools",
10
- version: "0.65.5",
10
+ version: "0.65.6",
11
11
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
12
12
  repository: {
13
13
  type: "github",
@@ -176,7 +176,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
176
176
  nx: "catalog:",
177
177
  tsup: "catalog:",
178
178
  untyped: "catalog:",
179
- wrangler: "^4.28.1"
179
+ wrangler: "^4.30.0"
180
180
  },
181
181
  publishConfig: {
182
182
  access: "public"