@storm-software/cloudflare-tools 0.55.74 → 0.55.75

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.55.75](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.75) (2025-04-29)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **esbuild:** Remove unused modules from package
10
+ ([e3dc467c8](https://github.com/storm-software/storm-ops/commit/e3dc467c8))
11
+
12
+ ### Miscellaneous
13
+
14
+ - **monorepo:** Regenerate README markdown files
15
+ ([c12ea4b7b](https://github.com/storm-software/storm-ops/commit/c12ea4b7b))
16
+
5
17
  ## [0.55.74](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.74) (2025-04-29)
6
18
 
7
19
  ### Miscellaneous
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.55.73-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.55.74-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -8,7 +8,7 @@ var require_package = _chunkJ5SB6L2Ljs.__commonJS.call(void 0, {
8
8
  "package.json"(exports, module) {
9
9
  module.exports = {
10
10
  name: "@storm-software/cloudflare-tools",
11
- version: "0.55.74",
11
+ version: "0.55.75",
12
12
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
13
13
  repository: {
14
14
  type: "github",
@@ -8,7 +8,7 @@ var require_package = __commonJS({
8
8
  "package.json"(exports, module) {
9
9
  module.exports = {
10
10
  name: "@storm-software/cloudflare-tools",
11
- version: "0.55.74",
11
+ version: "0.55.75",
12
12
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
13
13
  repository: {
14
14
  type: "github",
@@ -175,7 +175,7 @@ var _isFunction = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (value) =
175
175
  // ../workspace-tools/src/utils/cargo.ts
176
176
  var _devkit = require('@nx/devkit');
177
177
  var _child_process = require('child_process');
178
- var _path = require('path'); var path3 = _interopRequireWildcard(_path);
178
+ var _path = require('path'); var path4 = _interopRequireWildcard(_path);
179
179
  var INVALID_CARGO_ARGS = [
180
180
  "allFeatures",
181
181
  "allTargets",
@@ -401,7 +401,8 @@ var _https = require('https'); var _https2 = _interopRequireDefault(_https);
401
401
  var LARGE_BUFFER = 1024 * 1e6;
402
402
 
403
403
  // ../esbuild/src/build.ts
404
-
404
+ var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
405
+ var _globby = require('globby');
405
406
 
406
407
  // ../build-tools/src/config.ts
407
408
  var DEFAULT_COMPILED_BANNER = `/*****************************************
@@ -622,16 +623,17 @@ var getEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (builder, opti
622
623
  // ../build-tools/src/utilities/task-graph.ts
623
624
  var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
624
625
 
625
- // ../esbuild/src/build.ts
626
- var _chokidar = require('chokidar');
627
-
628
- var _estoolkit = require('es-toolkit');
629
- var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
630
- var _globby = require('globby');
631
-
632
-
633
- var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
634
- var _tsup = require('tsup');
626
+ // ../esbuild/src/assets.ts
627
+ async function copyBuildAssets(context) {
628
+ if (_optionalChain([context, 'access', _52 => _52.result, 'optionalAccess', _53 => _53.errors, 'access', _54 => _54.length]) === 0) {
629
+ _chunkV7LBWOVVjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`, context.workspaceConfig);
630
+ const stopwatch = _chunkV7LBWOVVjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
631
+ await copyAssets(context.workspaceConfig, _nullishCoalesce(context.options.assets, () => ( [])), context.outputPath, context.options.projectRoot, context.sourceRoot, true, false);
632
+ stopwatch();
633
+ }
634
+ return context;
635
+ }
636
+ _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
635
637
 
636
638
  // ../esbuild/src/clean.ts
637
639
 
@@ -643,6 +645,13 @@ async function cleanDirectories(directory) {
643
645
  }
644
646
  _chunkJ5SB6L2Ljs.__name.call(void 0, cleanDirectories, "cleanDirectories");
645
647
 
648
+ // ../esbuild/src/context.ts
649
+
650
+
651
+
652
+
653
+ var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
654
+
646
655
  // ../esbuild/src/config.ts
647
656
  var DEFAULT_BUILD_OPTIONS = {
648
657
  assets: [],
@@ -688,97 +697,51 @@ var DEFAULT_BUILD_OPTIONS = {
688
697
  }
689
698
  };
690
699
 
691
- // ../esbuild/src/plugins/deps-check.ts
692
-
700
+ // ../esbuild/src/plugins/resolve-paths.ts
693
701
 
694
- var unusedIgnore = [
695
- // these are our dev dependencies
696
- /@types\/.*?/,
697
- /@typescript-eslint.*?/,
698
- /eslint.*?/,
699
- "esbuild",
700
- "husky",
701
- "is-ci",
702
- "lint-staged",
703
- "prettier",
704
- "typescript",
705
- "ts-node",
706
- "ts-jest",
707
- "@swc/core",
708
- "@swc/jest",
709
- "jest",
710
- // these are missing 3rd party deps
711
- "spdx-exceptions",
712
- "spdx-license-ids",
713
- // type-only, so it is not detected
714
- "ts-toolbelt",
715
- // these are indirectly used by build
716
- "buffer"
717
- ];
718
- var missingIgnore = [
719
- ".prisma",
720
- "@prisma/client",
721
- "ts-toolbelt"
722
- ];
723
- var depsCheckPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (bundle) => ({
724
- name: "storm:deps-check",
702
+ function resolvePathsConfig(options, cwd) {
703
+ if (_optionalChain([options, 'optionalAccess', _55 => _55.compilerOptions, 'optionalAccess', _56 => _56.paths])) {
704
+ const paths = Object.entries(options.compilerOptions.paths);
705
+ const resolvedPaths = paths.map(([key, paths2]) => {
706
+ return [
707
+ key,
708
+ paths2.map((v) => path4.default.resolve(cwd, v))
709
+ ];
710
+ });
711
+ return Object.fromEntries(resolvedPaths);
712
+ }
713
+ if (options.extends) {
714
+ const extendsPath = path4.default.resolve(cwd, options.extends);
715
+ const extendsDir = path4.default.dirname(extendsPath);
716
+ const extendsConfig = _chunkJ5SB6L2Ljs.__require.call(void 0, extendsPath);
717
+ return resolvePathsConfig(extendsConfig, extendsDir);
718
+ }
719
+ return [];
720
+ }
721
+ _chunkJ5SB6L2Ljs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
722
+ var resolvePathsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context) => ({
723
+ name: "storm:resolve-paths",
725
724
  setup(build3) {
726
- const pkgJsonPath = path3.default.join(process.cwd(), "package.json");
727
- const pkgContents = _chunkJ5SB6L2Ljs.__require.call(void 0, pkgJsonPath);
728
- const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
729
- const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
730
- const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
731
- const dependencies = [
732
- ...regDependencies,
733
- ...bundle ? devDependencies : []
734
- ];
735
- const collectedDependencies = /* @__PURE__ */ new Set();
736
- const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
725
+ const parentTsConfig = build3.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkV7LBWOVVjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, build3.initialOptions.tsconfig)) : _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkV7LBWOVVjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, "tsconfig.json"));
726
+ const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot);
727
+ const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
737
728
  build3.onResolve({
738
- filter: onlyPackages
729
+ filter: packagesRegex
739
730
  }, (args) => {
740
- if (args.importer.includes(process.cwd())) {
741
- if (args.path[0] === "@") {
742
- const [org, pkg] = args.path.split("/");
743
- collectedDependencies.add(`${org}/${pkg}`);
744
- } else {
745
- const [pkg] = args.path.split("/");
746
- collectedDependencies.add(pkg);
747
- }
731
+ if (_optionalChain([build3, 'access', _57 => _57.initialOptions, 'access', _58 => _58.external, 'optionalAccess', _59 => _59.includes, 'call', _60 => _60(args.path)])) {
732
+ return {
733
+ path: args.path,
734
+ external: true
735
+ };
748
736
  }
749
737
  return {
750
- external: true
738
+ path: `${resolvedTsPaths[args.path][0]}/index.ts`
751
739
  };
752
740
  });
753
- build3.onEnd(() => {
754
- const unusedDependencies = [
755
- ...dependencies
756
- ].filter((dep) => {
757
- return !collectedDependencies.has(dep) || _module.builtinModules.includes(dep);
758
- });
759
- const missingDependencies = [
760
- ...collectedDependencies
761
- ].filter((dep) => {
762
- return !dependencies.includes(dep) && !_module.builtinModules.includes(dep);
763
- });
764
- const filteredUnusedDeps = unusedDependencies.filter((dep) => {
765
- return !unusedIgnore.some((pattern) => dep.match(pattern));
766
- });
767
- const filteredMissingDeps = missingDependencies.filter((dep) => {
768
- return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
769
- });
770
- _chunkV7LBWOVVjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
771
- _chunkV7LBWOVVjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
772
- if (filteredMissingDeps.length > 0) {
773
- throw new Error(`Missing dependencies detected - please install them:
774
- ${JSON.stringify(filteredMissingDeps)}
775
- `);
776
- }
777
- });
778
741
  }
779
- }), "depsCheckPlugin");
742
+ }), "resolvePathsPlugin");
780
743
 
781
- // ../esbuild/src/build.ts
744
+ // ../esbuild/src/context.ts
782
745
  async function resolveContext(userOptions) {
783
746
  const projectRoot = userOptions.projectRoot;
784
747
  const workspaceRoot3 = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
@@ -801,7 +764,7 @@ async function resolveContext(userOptions) {
801
764
  const projectJson = JSON.parse(projectJsonFile);
802
765
  const projectName = projectJson.name || userOptions.name;
803
766
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
804
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _52 => _52.projects, 'optionalAccess', _53 => _53[projectName]])) {
767
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _61 => _61.projects, 'optionalAccess', _62 => _62[projectName]])) {
805
768
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
806
769
  }
807
770
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
@@ -832,7 +795,7 @@ async function resolveContext(userOptions) {
832
795
  }
833
796
  };
834
797
  stopwatch();
835
- return {
798
+ const context = {
836
799
  options: resolvedOptions,
837
800
  clean: userOptions.clean !== false,
838
801
  workspaceConfig,
@@ -843,8 +806,18 @@ async function resolveContext(userOptions) {
843
806
  outputPath: resolvedOptions.outputPath || _chunkV7LBWOVVjs.joinPaths.call(void 0, workspaceConfig.workspaceRoot, "dist", resolvedOptions.projectRoot),
844
807
  minify: resolvedOptions.minify || resolvedOptions.mode === "production"
845
808
  };
809
+ context.options.esbuildPlugins = [
810
+ resolvePathsPlugin(context),
811
+ ..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))
812
+ ];
813
+ return context;
846
814
  }
847
815
  _chunkJ5SB6L2Ljs.__name.call(void 0, resolveContext, "resolveContext");
816
+
817
+ // ../esbuild/src/package-json.ts
818
+
819
+
820
+
848
821
  async function generatePackageJson(context) {
849
822
  if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkV7LBWOVVjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
850
823
  _chunkV7LBWOVVjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
@@ -943,6 +916,99 @@ async function generatePackageJson(context) {
943
916
  return context;
944
917
  }
945
918
  _chunkJ5SB6L2Ljs.__name.call(void 0, generatePackageJson, "generatePackageJson");
919
+
920
+ // ../esbuild/src/plugins/deps-check.ts
921
+
922
+
923
+ var unusedIgnore = [
924
+ // these are our dev dependencies
925
+ /@types\/.*?/,
926
+ /@typescript-eslint.*?/,
927
+ /eslint.*?/,
928
+ "esbuild",
929
+ "husky",
930
+ "is-ci",
931
+ "lint-staged",
932
+ "prettier",
933
+ "typescript",
934
+ "ts-node",
935
+ "ts-jest",
936
+ "@swc/core",
937
+ "@swc/jest",
938
+ "jest",
939
+ // these are missing 3rd party deps
940
+ "spdx-exceptions",
941
+ "spdx-license-ids",
942
+ // type-only, so it is not detected
943
+ "ts-toolbelt",
944
+ // these are indirectly used by build
945
+ "buffer"
946
+ ];
947
+ var missingIgnore = [
948
+ ".prisma",
949
+ "@prisma/client",
950
+ "ts-toolbelt"
951
+ ];
952
+ var depsCheckPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (bundle) => ({
953
+ name: "storm:deps-check",
954
+ setup(build3) {
955
+ const pkgJsonPath = path4.default.join(process.cwd(), "package.json");
956
+ const pkgContents = _chunkJ5SB6L2Ljs.__require.call(void 0, pkgJsonPath);
957
+ const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
958
+ const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
959
+ const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
960
+ const dependencies = [
961
+ ...regDependencies,
962
+ ...bundle ? devDependencies : []
963
+ ];
964
+ const collectedDependencies = /* @__PURE__ */ new Set();
965
+ const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
966
+ build3.onResolve({
967
+ filter: onlyPackages
968
+ }, (args) => {
969
+ if (args.importer.includes(process.cwd())) {
970
+ if (args.path[0] === "@") {
971
+ const [org, pkg] = args.path.split("/");
972
+ collectedDependencies.add(`${org}/${pkg}`);
973
+ } else {
974
+ const [pkg] = args.path.split("/");
975
+ collectedDependencies.add(pkg);
976
+ }
977
+ }
978
+ return {
979
+ external: true
980
+ };
981
+ });
982
+ build3.onEnd(() => {
983
+ const unusedDependencies = [
984
+ ...dependencies
985
+ ].filter((dep) => {
986
+ return !collectedDependencies.has(dep) || _module.builtinModules.includes(dep);
987
+ });
988
+ const missingDependencies = [
989
+ ...collectedDependencies
990
+ ].filter((dep) => {
991
+ return !dependencies.includes(dep) && !_module.builtinModules.includes(dep);
992
+ });
993
+ const filteredUnusedDeps = unusedDependencies.filter((dep) => {
994
+ return !unusedIgnore.some((pattern) => dep.match(pattern));
995
+ });
996
+ const filteredMissingDeps = missingDependencies.filter((dep) => {
997
+ return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
998
+ });
999
+ _chunkV7LBWOVVjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1000
+ _chunkV7LBWOVVjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1001
+ if (filteredMissingDeps.length > 0) {
1002
+ throw new Error(`Missing dependencies detected - please install them:
1003
+ ${JSON.stringify(filteredMissingDeps)}
1004
+ `);
1005
+ }
1006
+ });
1007
+ }
1008
+ }), "depsCheckPlugin");
1009
+
1010
+ // ../esbuild/src/tsup.ts
1011
+ var _tsup = require('tsup');
946
1012
  async function executeTsup(context) {
947
1013
  _chunkV7LBWOVVjs.writeDebug.call(void 0, ` \u{1F680} Running ${context.options.name} build`, context.workspaceConfig);
948
1014
  const stopwatch = _chunkV7LBWOVVjs.getStopwatch.call(void 0, `${context.options.name} build`);
@@ -955,23 +1021,15 @@ async function executeTsup(context) {
955
1021
  return context;
956
1022
  }
957
1023
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeTsup, "executeTsup");
958
- async function copyBuildAssets(context) {
959
- if (_optionalChain([context, 'access', _54 => _54.result, 'optionalAccess', _55 => _55.errors, 'access', _56 => _56.length]) === 0) {
960
- _chunkV7LBWOVVjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`, context.workspaceConfig);
961
- const stopwatch = _chunkV7LBWOVVjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
962
- await copyAssets(context.workspaceConfig, _nullishCoalesce(context.options.assets, () => ( [])), context.outputPath, context.options.projectRoot, context.sourceRoot, true, false);
963
- stopwatch();
964
- }
965
- return context;
966
- }
967
- _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1024
+
1025
+ // ../esbuild/src/build.ts
968
1026
  async function reportResults(context) {
969
- if (_optionalChain([context, 'access', _57 => _57.result, 'optionalAccess', _58 => _58.errors, 'access', _59 => _59.length]) === 0) {
1027
+ if (_optionalChain([context, 'access', _63 => _63.result, 'optionalAccess', _64 => _64.errors, 'access', _65 => _65.length]) === 0) {
970
1028
  if (context.result.warnings.length > 0) {
971
1029
  _chunkV7LBWOVVjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`, context.workspaceConfig);
972
1030
  }
973
1031
  _chunkV7LBWOVVjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context.options.name} build completed successfully`, context.workspaceConfig);
974
- } else if (_optionalChain([context, 'access', _60 => _60.result, 'optionalAccess', _61 => _61.errors]) && _optionalChain([context, 'access', _62 => _62.result, 'optionalAccess', _63 => _63.errors, 'access', _64 => _64.length]) > 0) {
1032
+ } else if (_optionalChain([context, 'access', _66 => _66.result, 'optionalAccess', _67 => _67.errors]) && _optionalChain([context, 'access', _68 => _68.result, 'optionalAccess', _69 => _69.errors, 'access', _70 => _70.length]) > 0) {
975
1033
  _chunkV7LBWOVVjs.writeError.call(void 0, ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`, context.workspaceConfig);
976
1034
  throw new Error(`The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`);
977
1035
  }
@@ -1049,14 +1107,14 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, build2, "build");
1049
1107
  // ../workspace-tools/src/executors/esbuild/executor.ts
1050
1108
  async function esbuildExecutorFn(options, context, config) {
1051
1109
  _chunkV7LBWOVVjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1052
- if (!_optionalChain([context, 'access', _65 => _65.projectsConfigurations, 'optionalAccess', _66 => _66.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _67 => _67.projectsConfigurations, 'access', _68 => _68.projects, 'access', _69 => _69[context.projectName], 'optionalAccess', _70 => _70.root])) {
1110
+ if (!_optionalChain([context, 'access', _71 => _71.projectsConfigurations, 'optionalAccess', _72 => _72.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _73 => _73.projectsConfigurations, 'access', _74 => _74.projects, 'access', _75 => _75[context.projectName], 'optionalAccess', _76 => _76.root])) {
1053
1111
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1054
1112
  }
1055
1113
  await build2({
1056
1114
  ...options,
1057
- projectRoot: _optionalChain([context, 'access', _71 => _71.projectsConfigurations, 'access', _72 => _72.projects, 'optionalAccess', _73 => _73[context.projectName], 'access', _74 => _74.root]),
1115
+ projectRoot: _optionalChain([context, 'access', _77 => _77.projectsConfigurations, 'access', _78 => _78.projects, 'optionalAccess', _79 => _79[context.projectName], 'access', _80 => _80.root]),
1058
1116
  name: context.projectName,
1059
- sourceRoot: _optionalChain([context, 'access', _75 => _75.projectsConfigurations, 'access', _76 => _76.projects, 'optionalAccess', _77 => _77[context.projectName], 'optionalAccess', _78 => _78.sourceRoot]),
1117
+ sourceRoot: _optionalChain([context, 'access', _81 => _81.projectsConfigurations, 'access', _82 => _82.projects, 'optionalAccess', _83 => _83[context.projectName], 'optionalAccess', _84 => _84.sourceRoot]),
1060
1118
  format: options.format,
1061
1119
  platform: options.format
1062
1120
  });
@@ -1099,7 +1157,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
1099
1157
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
1100
1158
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
1101
1159
  async function sizeLimitExecutorFn(options, context, config) {
1102
- if (!_optionalChain([context, 'optionalAccess', _79 => _79.projectName]) || !_optionalChain([context, 'access', _80 => _80.projectsConfigurations, 'optionalAccess', _81 => _81.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
1160
+ if (!_optionalChain([context, 'optionalAccess', _85 => _85.projectName]) || !_optionalChain([context, 'access', _86 => _86.projectsConfigurations, 'optionalAccess', _87 => _87.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
1103
1161
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
1104
1162
  }
1105
1163
  _chunkV7LBWOVVjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
@@ -1108,7 +1166,7 @@ async function sizeLimitExecutorFn(options, context, config) {
1108
1166
  _esbuild3.default,
1109
1167
  _esbuildwhy2.default
1110
1168
  ], {
1111
- checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _82 => _82.projectsConfigurations, 'access', _83 => _83.projects, 'access', _84 => _84[context.projectName], 'optionalAccess', _85 => _85.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context, 'access', _86 => _86.projectsConfigurations, 'access', _87 => _87.projects, 'access', _88 => _88[context.projectName], 'optionalAccess', _89 => _89.root]), () => ( "./")), "src")))
1169
+ checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _88 => _88.projectsConfigurations, 'access', _89 => _89.projects, 'access', _90 => _90[context.projectName], 'optionalAccess', _91 => _91.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context, 'access', _92 => _92.projectsConfigurations, 'access', _93 => _93.projects, 'access', _94 => _94[context.projectName], 'optionalAccess', _95 => _95.root]), () => ( "./")), "src")))
1112
1170
  }).then((result) => {
1113
1171
  _chunkV7LBWOVVjs.writeInfo.call(void 0, `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1114
1172
  });
@@ -1167,7 +1225,7 @@ var executor_default8 = withRunExecutor("Typia runtime validation generator", ty
1167
1225
  var _jiti = require('jiti');
1168
1226
  async function unbuildExecutorFn(options, context, config) {
1169
1227
  _chunkV7LBWOVVjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1170
- if (!_optionalChain([context, 'access', _90 => _90.projectsConfigurations, 'optionalAccess', _91 => _91.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
1228
+ if (!_optionalChain([context, 'access', _96 => _96.projectsConfigurations, 'optionalAccess', _97 => _97.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
1171
1229
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
1172
1230
  }
1173
1231
  if (!context.projectsConfigurations.projects[context.projectName].root) {
@@ -1251,7 +1309,7 @@ var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (nam
1251
1309
  - workspaceRoot: ${workspaceRoot3}`, config);
1252
1310
  config = await _chunkIVLCYFXDjs.getConfig.call(void 0, workspaceRoot3);
1253
1311
  }
1254
- if (_optionalChain([generatorOptions, 'optionalAccess', _92 => _92.hooks, 'optionalAccess', _93 => _93.applyDefaultOptions])) {
1312
+ if (_optionalChain([generatorOptions, 'optionalAccess', _98 => _98.hooks, 'optionalAccess', _99 => _99.applyDefaultOptions])) {
1255
1313
  _chunkV7LBWOVVjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
1256
1314
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
1257
1315
  _chunkV7LBWOVVjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
@@ -1262,22 +1320,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1262
1320
  workspaceRoot: tree.root,
1263
1321
  config
1264
1322
  }, applyWorkspaceBaseTokens);
1265
- if (_optionalChain([generatorOptions, 'optionalAccess', _94 => _94.hooks, 'optionalAccess', _95 => _95.preProcess])) {
1323
+ if (_optionalChain([generatorOptions, 'optionalAccess', _100 => _100.hooks, 'optionalAccess', _101 => _101.preProcess])) {
1266
1324
  _chunkV7LBWOVVjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
1267
1325
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
1268
1326
  _chunkV7LBWOVVjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
1269
1327
  }
1270
1328
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
1271
1329
  if (result) {
1272
- if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _96 => _96.error, 'optionalAccess', _97 => _97.message]) && typeof _optionalChain([result, 'optionalAccess', _98 => _98.error, 'optionalAccess', _99 => _99.message]) === "string" && _optionalChain([result, 'optionalAccess', _100 => _100.error, 'optionalAccess', _101 => _101.name]) && typeof _optionalChain([result, 'optionalAccess', _102 => _102.error, 'optionalAccess', _103 => _103.name]) === "string") {
1330
+ if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _102 => _102.error, 'optionalAccess', _103 => _103.message]) && typeof _optionalChain([result, 'optionalAccess', _104 => _104.error, 'optionalAccess', _105 => _105.message]) === "string" && _optionalChain([result, 'optionalAccess', _106 => _106.error, 'optionalAccess', _107 => _107.name]) && typeof _optionalChain([result, 'optionalAccess', _108 => _108.error, 'optionalAccess', _109 => _109.name]) === "string") {
1273
1331
  throw new Error(`The ${name} generator failed to run`, {
1274
- cause: _optionalChain([result, 'optionalAccess', _104 => _104.error])
1332
+ cause: _optionalChain([result, 'optionalAccess', _110 => _110.error])
1275
1333
  });
1276
1334
  } else if (result.success && result.data) {
1277
1335
  return result;
1278
1336
  }
1279
1337
  }
1280
- if (_optionalChain([generatorOptions, 'optionalAccess', _105 => _105.hooks, 'optionalAccess', _106 => _106.postProcess])) {
1338
+ if (_optionalChain([generatorOptions, 'optionalAccess', _111 => _111.hooks, 'optionalAccess', _112 => _112.postProcess])) {
1281
1339
  _chunkV7LBWOVVjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
1282
1340
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
1283
1341
  _chunkV7LBWOVVjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
@@ -1387,15 +1445,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1387
1445
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
1388
1446
  let repository = {
1389
1447
  type: "github",
1390
- url: _optionalChain([config, 'optionalAccess', _107 => _107.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _108 => _108.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _109 => _109.namespace]) || _optionalChain([config, 'optionalAccess', _110 => _110.name]) || "repository"}.git`
1448
+ url: _optionalChain([config, 'optionalAccess', _113 => _113.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _114 => _114.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _115 => _115.namespace]) || _optionalChain([config, 'optionalAccess', _116 => _116.name]) || "repository"}.git`
1391
1449
  };
1392
1450
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
1393
1451
  if (tree.exists("package.json")) {
1394
1452
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
1395
- if (_optionalChain([packageJson, 'optionalAccess', _111 => _111.repository])) {
1453
+ if (_optionalChain([packageJson, 'optionalAccess', _117 => _117.repository])) {
1396
1454
  repository = packageJson.repository;
1397
1455
  }
1398
- if (_optionalChain([packageJson, 'optionalAccess', _112 => _112.description])) {
1456
+ if (_optionalChain([packageJson, 'optionalAccess', _118 => _118.description])) {
1399
1457
  description = packageJson.description;
1400
1458
  }
1401
1459
  }
@@ -1450,9 +1508,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1450
1508
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
1451
1509
  ...json,
1452
1510
  pnpm: {
1453
- ..._optionalChain([json, 'optionalAccess', _113 => _113.pnpm]),
1511
+ ..._optionalChain([json, 'optionalAccess', _119 => _119.pnpm]),
1454
1512
  overrides: {
1455
- ..._optionalChain([json, 'optionalAccess', _114 => _114.pnpm, 'optionalAccess', _115 => _115.overrides]),
1513
+ ..._optionalChain([json, 'optionalAccess', _120 => _120.pnpm, 'optionalAccess', _121 => _121.overrides]),
1456
1514
  [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
1457
1515
  }
1458
1516
  }
@@ -1466,10 +1524,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1466
1524
  ]);
1467
1525
  if (tree.exists("package.json")) {
1468
1526
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
1469
- if (_optionalChain([packageJson, 'optionalAccess', _116 => _116.repository])) {
1527
+ if (_optionalChain([packageJson, 'optionalAccess', _122 => _122.repository])) {
1470
1528
  repository = packageJson.repository;
1471
1529
  }
1472
- if (_optionalChain([packageJson, 'optionalAccess', _117 => _117.description])) {
1530
+ if (_optionalChain([packageJson, 'optionalAccess', _123 => _123.description])) {
1473
1531
  description = packageJson.description;
1474
1532
  }
1475
1533
  }
@@ -1517,24 +1575,24 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
1517
1575
  function createProjectTsConfigJson(tree, options) {
1518
1576
  const tsconfig = {
1519
1577
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
1520
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _118 => _118.tsconfigOptions]), () => ( {})),
1578
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _124 => _124.tsconfigOptions]), () => ( {})),
1521
1579
  compilerOptions: {
1522
1580
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
1523
1581
  outDir: _chunkV7LBWOVVjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
1524
1582
  noEmit: true,
1525
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _119 => _119.tsconfigOptions, 'optionalAccess', _120 => _120.compilerOptions]), () => ( {}))
1583
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _125 => _125.tsconfigOptions, 'optionalAccess', _126 => _126.compilerOptions]), () => ( {}))
1526
1584
  },
1527
1585
  files: [
1528
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _121 => _121.tsconfigOptions, 'optionalAccess', _122 => _122.files]), () => ( []))
1586
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _127 => _127.tsconfigOptions, 'optionalAccess', _128 => _128.files]), () => ( []))
1529
1587
  ],
1530
1588
  include: [
1531
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _123 => _123.tsconfigOptions, 'optionalAccess', _124 => _124.include]), () => ( [])),
1589
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _129 => _129.tsconfigOptions, 'optionalAccess', _130 => _130.include]), () => ( [])),
1532
1590
  "src/**/*.ts",
1533
1591
  "src/**/*.js",
1534
1592
  "bin/**/*"
1535
1593
  ],
1536
1594
  exclude: [
1537
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _125 => _125.tsconfigOptions, 'optionalAccess', _126 => _126.exclude]), () => ( [])),
1595
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _131 => _131.tsconfigOptions, 'optionalAccess', _132 => _132.exclude]), () => ( [])),
1538
1596
  "jest.config.ts",
1539
1597
  "src/**/*.spec.ts",
1540
1598
  "src/**/*.test.ts"
@@ -1545,8 +1603,8 @@ function createProjectTsConfigJson(tree, options) {
1545
1603
  _chunkJ5SB6L2Ljs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
1546
1604
  async function normalizeOptions(tree, options, config) {
1547
1605
  let importPath = options.importPath;
1548
- if (!importPath && _optionalChain([config, 'optionalAccess', _127 => _127.namespace])) {
1549
- importPath = `@${_optionalChain([config, 'optionalAccess', _128 => _128.namespace])}/${options.name}`;
1606
+ if (!importPath && _optionalChain([config, 'optionalAccess', _133 => _133.namespace])) {
1607
+ importPath = `@${_optionalChain([config, 'optionalAccess', _134 => _134.namespace])}/${options.name}`;
1550
1608
  }
1551
1609
  if (options.publishable) {
1552
1610
  if (!importPath) {
@@ -1678,7 +1736,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
1678
1736
  name: "StormWorkspaceConfiguration"
1679
1737
  });
1680
1738
  _chunkV7LBWOVVjs.writeTrace.call(void 0, jsonSchema, config);
1681
- const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _129 => _129.workspaceRoot]), () => ( _chunkV7LBWOVVjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _130 => _130.outputFile, 'optionalAccess', _131 => _131.startsWith, 'call', _132 => _132("./")]) ? "" : "./");
1739
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _135 => _135.workspaceRoot]), () => ( _chunkV7LBWOVVjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _136 => _136.outputFile, 'optionalAccess', _137 => _137.startsWith, 'call', _138 => _138("./")]) ? "" : "./");
1682
1740
  _chunkV7LBWOVVjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
1683
1741
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
1684
1742
  spaces: 2
@@ -1942,7 +2000,7 @@ async function presetGeneratorFn(tree, options) {
1942
2000
  };
1943
2001
  return json;
1944
2002
  });
1945
- _devkit.generateFiles.call(void 0, tree, path3.join(__dirname, "files"), projectRoot, {
2003
+ _devkit.generateFiles.call(void 0, tree, path4.join(__dirname, "files"), projectRoot, {
1946
2004
  ...options,
1947
2005
  pnpmVersion,
1948
2006
  nodeVersion
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-LUFRAFX6.mjs";
3
+ } from "./chunk-7WFWEE3W.mjs";
4
4
  import {
5
5
  getConfig
6
6
  } from "./chunk-KGEVN742.mjs";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkFRBDGKHTjs = require('./chunk-FRBDGKHT.js');
3
+ var _chunk2ZTNJEQQjs = require('./chunk-2ZTNJEQQ.js');
4
4
 
5
5
 
6
6
  var _chunkIVLCYFXDjs = require('./chunk-IVLCYFXD.js');
@@ -52,7 +52,7 @@ async function applicationGenerator(tree, schema) {
52
52
  ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`, config);
53
53
  const options = await normalizeOptions(tree, schema, config);
54
54
  const tasks = [];
55
- tasks.push(await _chunkFRBDGKHTjs.generator_default.call(void 0, tree, {
55
+ tasks.push(await _chunk2ZTNJEQQjs.generator_default.call(void 0, tree, {
56
56
  ...options,
57
57
  skipFormat: true
58
58
  }));
@@ -402,7 +402,8 @@ import https from "node:https";
402
402
  var LARGE_BUFFER = 1024 * 1e6;
403
403
 
404
404
  // ../esbuild/src/build.ts
405
- import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile } from "@nx/devkit";
405
+ import * as esbuild from "esbuild";
406
+ import { globbySync } from "globby";
406
407
 
407
408
  // ../build-tools/src/config.ts
408
409
  var DEFAULT_COMPILED_BANNER = `/*****************************************
@@ -623,16 +624,17 @@ import { readFile as readFile3 } from "node:fs/promises";
623
624
  // ../build-tools/src/utilities/task-graph.ts
624
625
  import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-runner/create-task-graph";
625
626
 
626
- // ../esbuild/src/build.ts
627
- import { watch as createWatcher } from "chokidar";
628
- import defu2 from "defu";
629
- import { debounce } from "es-toolkit";
630
- import * as esbuild from "esbuild";
631
- import { globbySync } from "globby";
632
- import { existsSync as existsSync3 } from "node:fs";
633
- import hf from "node:fs/promises";
634
- import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
635
- import { build as tsup } from "tsup";
627
+ // ../esbuild/src/assets.ts
628
+ async function copyBuildAssets(context) {
629
+ if (context.result?.errors.length === 0) {
630
+ writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`, context.workspaceConfig);
631
+ const stopwatch = getStopwatch(`${context.options.name} asset copy`);
632
+ await copyAssets(context.workspaceConfig, context.options.assets ?? [], context.outputPath, context.options.projectRoot, context.sourceRoot, true, false);
633
+ stopwatch();
634
+ }
635
+ return context;
636
+ }
637
+ __name(copyBuildAssets, "copyBuildAssets");
636
638
 
637
639
  // ../esbuild/src/clean.ts
638
640
  import { rm } from "node:fs/promises";
@@ -644,6 +646,13 @@ async function cleanDirectories(directory) {
644
646
  }
645
647
  __name(cleanDirectories, "cleanDirectories");
646
648
 
649
+ // ../esbuild/src/context.ts
650
+ import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2 } from "@nx/devkit";
651
+ import defu2 from "defu";
652
+ import { existsSync as existsSync3 } from "node:fs";
653
+ import hf from "node:fs/promises";
654
+ import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
655
+
647
656
  // ../esbuild/src/config.ts
648
657
  var DEFAULT_BUILD_OPTIONS = {
649
658
  assets: [],
@@ -689,97 +698,51 @@ var DEFAULT_BUILD_OPTIONS = {
689
698
  }
690
699
  };
691
700
 
692
- // ../esbuild/src/plugins/deps-check.ts
693
- import { builtinModules as builtinModules2 } from "node:module";
701
+ // ../esbuild/src/plugins/resolve-paths.ts
694
702
  import path2 from "node:path";
695
- var unusedIgnore = [
696
- // these are our dev dependencies
697
- /@types\/.*?/,
698
- /@typescript-eslint.*?/,
699
- /eslint.*?/,
700
- "esbuild",
701
- "husky",
702
- "is-ci",
703
- "lint-staged",
704
- "prettier",
705
- "typescript",
706
- "ts-node",
707
- "ts-jest",
708
- "@swc/core",
709
- "@swc/jest",
710
- "jest",
711
- // these are missing 3rd party deps
712
- "spdx-exceptions",
713
- "spdx-license-ids",
714
- // type-only, so it is not detected
715
- "ts-toolbelt",
716
- // these are indirectly used by build
717
- "buffer"
718
- ];
719
- var missingIgnore = [
720
- ".prisma",
721
- "@prisma/client",
722
- "ts-toolbelt"
723
- ];
724
- var depsCheckPlugin = /* @__PURE__ */ __name((bundle) => ({
725
- name: "storm:deps-check",
703
+ function resolvePathsConfig(options, cwd) {
704
+ if (options?.compilerOptions?.paths) {
705
+ const paths = Object.entries(options.compilerOptions.paths);
706
+ const resolvedPaths = paths.map(([key, paths2]) => {
707
+ return [
708
+ key,
709
+ paths2.map((v) => path2.resolve(cwd, v))
710
+ ];
711
+ });
712
+ return Object.fromEntries(resolvedPaths);
713
+ }
714
+ if (options.extends) {
715
+ const extendsPath = path2.resolve(cwd, options.extends);
716
+ const extendsDir = path2.dirname(extendsPath);
717
+ const extendsConfig = __require(extendsPath);
718
+ return resolvePathsConfig(extendsConfig, extendsDir);
719
+ }
720
+ return [];
721
+ }
722
+ __name(resolvePathsConfig, "resolvePathsConfig");
723
+ var resolvePathsPlugin = /* @__PURE__ */ __name((context) => ({
724
+ name: "storm:resolve-paths",
726
725
  setup(build3) {
727
- const pkgJsonPath = path2.join(process.cwd(), "package.json");
728
- const pkgContents = __require(pkgJsonPath);
729
- const regDependencies = Object.keys(pkgContents["dependencies"] ?? {});
730
- const devDependencies = Object.keys(pkgContents["devDependencies"] ?? {});
731
- const peerDependencies = Object.keys(pkgContents["peerDependencies"] ?? {});
732
- const dependencies = [
733
- ...regDependencies,
734
- ...bundle ? devDependencies : []
735
- ];
736
- const collectedDependencies = /* @__PURE__ */ new Set();
737
- const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
726
+ const parentTsConfig = build3.initialOptions.tsconfig ? __require(joinPaths(context.workspaceConfig.workspaceRoot, build3.initialOptions.tsconfig)) : __require(joinPaths(context.workspaceConfig.workspaceRoot, "tsconfig.json"));
727
+ const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot);
728
+ const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
738
729
  build3.onResolve({
739
- filter: onlyPackages
730
+ filter: packagesRegex
740
731
  }, (args) => {
741
- if (args.importer.includes(process.cwd())) {
742
- if (args.path[0] === "@") {
743
- const [org, pkg] = args.path.split("/");
744
- collectedDependencies.add(`${org}/${pkg}`);
745
- } else {
746
- const [pkg] = args.path.split("/");
747
- collectedDependencies.add(pkg);
748
- }
732
+ if (build3.initialOptions.external?.includes(args.path)) {
733
+ return {
734
+ path: args.path,
735
+ external: true
736
+ };
749
737
  }
750
738
  return {
751
- external: true
739
+ path: `${resolvedTsPaths[args.path][0]}/index.ts`
752
740
  };
753
741
  });
754
- build3.onEnd(() => {
755
- const unusedDependencies = [
756
- ...dependencies
757
- ].filter((dep) => {
758
- return !collectedDependencies.has(dep) || builtinModules2.includes(dep);
759
- });
760
- const missingDependencies = [
761
- ...collectedDependencies
762
- ].filter((dep) => {
763
- return !dependencies.includes(dep) && !builtinModules2.includes(dep);
764
- });
765
- const filteredUnusedDeps = unusedDependencies.filter((dep) => {
766
- return !unusedIgnore.some((pattern) => dep.match(pattern));
767
- });
768
- const filteredMissingDeps = missingDependencies.filter((dep) => {
769
- return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
770
- });
771
- writeWarning(`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
772
- writeError(`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
773
- if (filteredMissingDeps.length > 0) {
774
- throw new Error(`Missing dependencies detected - please install them:
775
- ${JSON.stringify(filteredMissingDeps)}
776
- `);
777
- }
778
- });
779
742
  }
780
- }), "depsCheckPlugin");
743
+ }), "resolvePathsPlugin");
781
744
 
782
- // ../esbuild/src/build.ts
745
+ // ../esbuild/src/context.ts
783
746
  async function resolveContext(userOptions) {
784
747
  const projectRoot = userOptions.projectRoot;
785
748
  const workspaceRoot3 = findWorkspaceRoot2(projectRoot);
@@ -833,7 +796,7 @@ async function resolveContext(userOptions) {
833
796
  }
834
797
  };
835
798
  stopwatch();
836
- return {
799
+ const context = {
837
800
  options: resolvedOptions,
838
801
  clean: userOptions.clean !== false,
839
802
  workspaceConfig,
@@ -844,17 +807,27 @@ async function resolveContext(userOptions) {
844
807
  outputPath: resolvedOptions.outputPath || joinPaths(workspaceConfig.workspaceRoot, "dist", resolvedOptions.projectRoot),
845
808
  minify: resolvedOptions.minify || resolvedOptions.mode === "production"
846
809
  };
810
+ context.options.esbuildPlugins = [
811
+ resolvePathsPlugin(context),
812
+ ...context.options.esbuildPlugins ?? []
813
+ ];
814
+ return context;
847
815
  }
848
816
  __name(resolveContext, "resolveContext");
817
+
818
+ // ../esbuild/src/package-json.ts
819
+ import { writeJsonFile } from "@nx/devkit";
820
+ import { existsSync as existsSync4 } from "node:fs";
821
+ import hf2 from "node:fs/promises";
849
822
  async function generatePackageJson(context) {
850
- if (context.options.generatePackageJson !== false && existsSync3(joinPaths(context.options.projectRoot, "package.json"))) {
823
+ if (context.options.generatePackageJson !== false && existsSync4(joinPaths(context.options.projectRoot, "package.json"))) {
851
824
  writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
852
825
  const stopwatch = getStopwatch("Write package.json file");
853
826
  const packageJsonPath = joinPaths(context.options.projectRoot, "project.json");
854
- if (!existsSync3(packageJsonPath)) {
827
+ if (!existsSync4(packageJsonPath)) {
855
828
  throw new Error("Cannot find package.json configuration");
856
829
  }
857
- const packageJsonFile = await hf.readFile(joinPaths(context.workspaceConfig.workspaceRoot, context.options.projectRoot, "package.json"), "utf8");
830
+ const packageJsonFile = await hf2.readFile(joinPaths(context.workspaceConfig.workspaceRoot, context.options.projectRoot, "package.json"), "utf8");
858
831
  let packageJson = JSON.parse(packageJsonFile);
859
832
  if (!packageJson) {
860
833
  throw new Error("Cannot find package.json configuration file");
@@ -944,6 +917,99 @@ async function generatePackageJson(context) {
944
917
  return context;
945
918
  }
946
919
  __name(generatePackageJson, "generatePackageJson");
920
+
921
+ // ../esbuild/src/plugins/deps-check.ts
922
+ import { builtinModules as builtinModules2 } from "node:module";
923
+ import path3 from "node:path";
924
+ var unusedIgnore = [
925
+ // these are our dev dependencies
926
+ /@types\/.*?/,
927
+ /@typescript-eslint.*?/,
928
+ /eslint.*?/,
929
+ "esbuild",
930
+ "husky",
931
+ "is-ci",
932
+ "lint-staged",
933
+ "prettier",
934
+ "typescript",
935
+ "ts-node",
936
+ "ts-jest",
937
+ "@swc/core",
938
+ "@swc/jest",
939
+ "jest",
940
+ // these are missing 3rd party deps
941
+ "spdx-exceptions",
942
+ "spdx-license-ids",
943
+ // type-only, so it is not detected
944
+ "ts-toolbelt",
945
+ // these are indirectly used by build
946
+ "buffer"
947
+ ];
948
+ var missingIgnore = [
949
+ ".prisma",
950
+ "@prisma/client",
951
+ "ts-toolbelt"
952
+ ];
953
+ var depsCheckPlugin = /* @__PURE__ */ __name((bundle) => ({
954
+ name: "storm:deps-check",
955
+ setup(build3) {
956
+ const pkgJsonPath = path3.join(process.cwd(), "package.json");
957
+ const pkgContents = __require(pkgJsonPath);
958
+ const regDependencies = Object.keys(pkgContents["dependencies"] ?? {});
959
+ const devDependencies = Object.keys(pkgContents["devDependencies"] ?? {});
960
+ const peerDependencies = Object.keys(pkgContents["peerDependencies"] ?? {});
961
+ const dependencies = [
962
+ ...regDependencies,
963
+ ...bundle ? devDependencies : []
964
+ ];
965
+ const collectedDependencies = /* @__PURE__ */ new Set();
966
+ const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
967
+ build3.onResolve({
968
+ filter: onlyPackages
969
+ }, (args) => {
970
+ if (args.importer.includes(process.cwd())) {
971
+ if (args.path[0] === "@") {
972
+ const [org, pkg] = args.path.split("/");
973
+ collectedDependencies.add(`${org}/${pkg}`);
974
+ } else {
975
+ const [pkg] = args.path.split("/");
976
+ collectedDependencies.add(pkg);
977
+ }
978
+ }
979
+ return {
980
+ external: true
981
+ };
982
+ });
983
+ build3.onEnd(() => {
984
+ const unusedDependencies = [
985
+ ...dependencies
986
+ ].filter((dep) => {
987
+ return !collectedDependencies.has(dep) || builtinModules2.includes(dep);
988
+ });
989
+ const missingDependencies = [
990
+ ...collectedDependencies
991
+ ].filter((dep) => {
992
+ return !dependencies.includes(dep) && !builtinModules2.includes(dep);
993
+ });
994
+ const filteredUnusedDeps = unusedDependencies.filter((dep) => {
995
+ return !unusedIgnore.some((pattern) => dep.match(pattern));
996
+ });
997
+ const filteredMissingDeps = missingDependencies.filter((dep) => {
998
+ return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
999
+ });
1000
+ writeWarning(`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
1001
+ writeError(`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
1002
+ if (filteredMissingDeps.length > 0) {
1003
+ throw new Error(`Missing dependencies detected - please install them:
1004
+ ${JSON.stringify(filteredMissingDeps)}
1005
+ `);
1006
+ }
1007
+ });
1008
+ }
1009
+ }), "depsCheckPlugin");
1010
+
1011
+ // ../esbuild/src/tsup.ts
1012
+ import { build as tsup } from "tsup";
947
1013
  async function executeTsup(context) {
948
1014
  writeDebug(` \u{1F680} Running ${context.options.name} build`, context.workspaceConfig);
949
1015
  const stopwatch = getStopwatch(`${context.options.name} build`);
@@ -956,16 +1022,8 @@ async function executeTsup(context) {
956
1022
  return context;
957
1023
  }
958
1024
  __name(executeTsup, "executeTsup");
959
- async function copyBuildAssets(context) {
960
- if (context.result?.errors.length === 0) {
961
- writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`, context.workspaceConfig);
962
- const stopwatch = getStopwatch(`${context.options.name} asset copy`);
963
- await copyAssets(context.workspaceConfig, context.options.assets ?? [], context.outputPath, context.options.projectRoot, context.sourceRoot, true, false);
964
- stopwatch();
965
- }
966
- return context;
967
- }
968
- __name(copyBuildAssets, "copyBuildAssets");
1025
+
1026
+ // ../esbuild/src/build.ts
969
1027
  async function reportResults(context) {
970
1028
  if (context.result?.errors.length === 0) {
971
1029
  if (context.result.warnings.length > 0) {
@@ -1085,7 +1143,7 @@ import { execSync as execSync3 } from "node:child_process";
1085
1143
  import { readFile as readFile5 } from "node:fs/promises";
1086
1144
 
1087
1145
  // ../workspace-tools/src/utils/pnpm-deps-update.ts
1088
- import { existsSync as existsSync4 } from "node:fs";
1146
+ import { existsSync as existsSync5 } from "node:fs";
1089
1147
  import { readFile as readFile4, writeFile as writeFile2 } from "node:fs/promises";
1090
1148
  import { format } from "prettier";
1091
1149
  import readYamlFile from "read-yaml-file";
@@ -1795,7 +1853,7 @@ var generator_default4 = withRunGenerator("TypeScript Library Creator (NodeJs Pl
1795
1853
 
1796
1854
  // ../workspace-tools/src/generators/preset/generator.ts
1797
1855
  import { addDependenciesToPackageJson as addDependenciesToPackageJson3, addProjectConfiguration as addProjectConfiguration2, formatFiles as formatFiles7, generateFiles as generateFiles4, joinPathFragments as joinPathFragments4, updateJson as updateJson2 } from "@nx/devkit";
1798
- import * as path3 from "node:path";
1856
+ import * as path4 from "node:path";
1799
1857
  async function presetGeneratorFn(tree, options) {
1800
1858
  const projectRoot = ".";
1801
1859
  options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
@@ -1943,7 +2001,7 @@ async function presetGeneratorFn(tree, options) {
1943
2001
  };
1944
2002
  return json;
1945
2003
  });
1946
- generateFiles4(tree, path3.join(__dirname, "files"), projectRoot, {
2004
+ generateFiles4(tree, path4.join(__dirname, "files"), projectRoot, {
1947
2005
  ...options,
1948
2006
  pnpmVersion,
1949
2007
  nodeVersion
@@ -2648,7 +2706,7 @@ import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/proj
2648
2706
 
2649
2707
  // ../workspace-tools/src/utils/lock-file.ts
2650
2708
  import { output as output2, readJsonFile, workspaceRoot as workspaceRoot2 } from "@nx/devkit";
2651
- import { existsSync as existsSync5 } from "node:fs";
2709
+ import { existsSync as existsSync6 } from "node:fs";
2652
2710
  import { join as join2 } from "node:path";
2653
2711
  import { getNpmLockfileDependencies, getNpmLockfileNodes } from "nx/src/plugins/js/lock-file/npm-parser";
2654
2712
  import { getPnpmLockfileDependencies, getPnpmLockfileNodes } from "nx/src/plugins/js/lock-file/pnpm-parser";
@@ -2663,7 +2721,7 @@ var PNPM_LOCK_PATH = join2(workspaceRoot2, PNPM_LOCK_FILE);
2663
2721
  // ../workspace-tools/src/utils/plugin-helpers.ts
2664
2722
  import { readJsonFile as readJsonFile2 } from "@nx/devkit";
2665
2723
  import defu4 from "defu";
2666
- import { existsSync as existsSync6 } from "node:fs";
2724
+ import { existsSync as existsSync7 } from "node:fs";
2667
2725
  import { dirname, join as join3 } from "node:path";
2668
2726
 
2669
2727
  // ../workspace-tools/src/utils/typia-transform.ts
package/dist/executors.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";require('./chunk-XO66D74Z.js');
2
2
  require('./chunk-R7AIVBS7.js');
3
- require('./chunk-X275XPRR.js');
4
3
  require('./chunk-6B5PUF7X.js');
5
4
  require('./chunk-QGRENI3O.js');
5
+ require('./chunk-OC47VPKM.js');
6
6
  require('./chunk-VTHBMY4B.js');
7
7
  require('./chunk-IVLCYFXD.js');
8
8
  require('./chunk-V7LBWOVV.js');
@@ -1,8 +1,8 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
2
  import "./chunk-ZTKU4P4C.mjs";
3
- import "./chunk-L4E4ZISE.mjs";
4
3
  import "./chunk-5EOQCEFP.mjs";
5
4
  import "./chunk-TH2W32CX.mjs";
5
+ import "./chunk-UGO3OQQ7.mjs";
6
6
  import "./chunk-7OJAYAYY.mjs";
7
7
  import "./chunk-KGEVN742.mjs";
8
8
  import "./chunk-UPK4D74Z.mjs";
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkAYSQEPGSjs = require('./chunk-AYSQEPGS.js');
5
+ var _chunkSBPKKTZCjs = require('./chunk-SBPKKTZC.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkFRBDGKHTjs = require('./chunk-FRBDGKHT.js');
9
+ var _chunk2ZTNJEQQjs = require('./chunk-2ZTNJEQQ.js');
10
10
  require('./chunk-IVLCYFXD.js');
11
11
  require('./chunk-V7LBWOVV.js');
12
12
  require('./chunk-J5SB6L2L.js');
@@ -15,4 +15,4 @@ require('./chunk-J5SB6L2L.js');
15
15
 
16
16
 
17
17
 
18
- exports.applicationGenerator = _chunkAYSQEPGSjs.applicationGenerator; exports.applicationSchematic = _chunkAYSQEPGSjs.applicationSchematic; exports.initGenerator = _chunkFRBDGKHTjs.initGenerator; exports.initSchematic = _chunkFRBDGKHTjs.initSchematic;
18
+ exports.applicationGenerator = _chunkSBPKKTZCjs.applicationGenerator; exports.applicationSchematic = _chunkSBPKKTZCjs.applicationSchematic; exports.initGenerator = _chunk2ZTNJEQQjs.initGenerator; exports.initSchematic = _chunk2ZTNJEQQjs.initSchematic;
@@ -2,11 +2,11 @@ import "./chunk-3J7KBHMJ.mjs";
2
2
  import {
3
3
  applicationGenerator,
4
4
  applicationSchematic
5
- } from "./chunk-QDLAITVL.mjs";
5
+ } from "./chunk-S5IUIHDY.mjs";
6
6
  import {
7
7
  initGenerator,
8
8
  initSchematic
9
- } from "./chunk-LUFRAFX6.mjs";
9
+ } from "./chunk-7WFWEE3W.mjs";
10
10
  import "./chunk-KGEVN742.mjs";
11
11
  import "./chunk-UPK4D74Z.mjs";
12
12
  import "./chunk-LGGVU67H.mjs";
package/dist/index.js CHANGED
@@ -1,21 +1,21 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('./chunk-XO66D74Z.js');
2
+ require('./chunk-R7AIVBS7.js');
2
3
  require('./chunk-DHBG5ASJ.js');
3
4
 
4
5
 
5
6
 
6
- var _chunkAYSQEPGSjs = require('./chunk-AYSQEPGS.js');
7
+ var _chunkSBPKKTZCjs = require('./chunk-SBPKKTZC.js');
7
8
 
8
9
 
9
10
 
10
- var _chunkFRBDGKHTjs = require('./chunk-FRBDGKHT.js');
11
+ var _chunk2ZTNJEQQjs = require('./chunk-2ZTNJEQQ.js');
11
12
  require('./chunk-CVGPWUNP.js');
12
- require('./chunk-R7AIVBS7.js');
13
- require('./chunk-X275XPRR.js');
14
13
  require('./chunk-6B5PUF7X.js');
15
14
 
16
15
 
17
16
 
18
17
  var _chunkQGRENI3Ojs = require('./chunk-QGRENI3O.js');
18
+ require('./chunk-OC47VPKM.js');
19
19
 
20
20
 
21
21
 
@@ -148,4 +148,4 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, createPackageJson, "createPackageJson");
148
148
 
149
149
 
150
150
 
151
- exports.applicationGenerator = _chunkAYSQEPGSjs.applicationGenerator; exports.applicationSchematic = _chunkAYSQEPGSjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkQGRENI3Ojs.getInternalDependencies; exports.initGenerator = _chunkFRBDGKHTjs.initGenerator; exports.initSchematic = _chunkFRBDGKHTjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkQGRENI3Ojs.r2UploadFile;
151
+ exports.applicationGenerator = _chunkSBPKKTZCjs.applicationGenerator; exports.applicationSchematic = _chunkSBPKKTZCjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkQGRENI3Ojs.getInternalDependencies; exports.initGenerator = _chunk2ZTNJEQQjs.initGenerator; exports.initSchematic = _chunk2ZTNJEQQjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkQGRENI3Ojs.r2UploadFile;
package/dist/index.mjs CHANGED
@@ -1,21 +1,21 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
+ import "./chunk-ZTKU4P4C.mjs";
2
3
  import "./chunk-3J7KBHMJ.mjs";
3
4
  import {
4
5
  applicationGenerator,
5
6
  applicationSchematic
6
- } from "./chunk-QDLAITVL.mjs";
7
+ } from "./chunk-S5IUIHDY.mjs";
7
8
  import {
8
9
  initGenerator,
9
10
  initSchematic
10
- } from "./chunk-LUFRAFX6.mjs";
11
+ } from "./chunk-7WFWEE3W.mjs";
11
12
  import "./chunk-7Z5PILRU.mjs";
12
- import "./chunk-ZTKU4P4C.mjs";
13
- import "./chunk-L4E4ZISE.mjs";
14
13
  import "./chunk-5EOQCEFP.mjs";
15
14
  import {
16
15
  getInternalDependencies,
17
16
  r2UploadFile
18
17
  } from "./chunk-TH2W32CX.mjs";
18
+ import "./chunk-UGO3OQQ7.mjs";
19
19
  import {
20
20
  ProjectTagConstants,
21
21
  addProjectTag
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
  var _chunkR7AIVBS7js = require('../../../chunk-R7AIVBS7.js');
4
- require('../../../chunk-X275XPRR.js');
4
+ require('../../../chunk-OC47VPKM.js');
5
5
  require('../../../chunk-VTHBMY4B.js');
6
6
  require('../../../chunk-IVLCYFXD.js');
7
7
  require('../../../chunk-V7LBWOVV.js');
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runExecutor
3
3
  } from "../../../chunk-ZTKU4P4C.mjs";
4
- import "../../../chunk-L4E4ZISE.mjs";
4
+ import "../../../chunk-UGO3OQQ7.mjs";
5
5
  import "../../../chunk-7OJAYAYY.mjs";
6
6
  import "../../../chunk-KGEVN742.mjs";
7
7
  import "../../../chunk-UPK4D74Z.mjs";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkX275XPRRjs = require('../../../chunk-X275XPRR.js');
3
+ var _chunkOC47VPKMjs = require('../../../chunk-OC47VPKM.js');
4
4
 
5
5
 
6
6
  var _chunkVTHBMY4Bjs = require('../../../chunk-VTHBMY4B.js');
@@ -60,7 +60,7 @@ async function* serveExecutor(options, context, config) {
60
60
  };
61
61
  }
62
62
  _chunkJ5SB6L2Ljs.__name.call(void 0, serveExecutor, "serveExecutor");
63
- var executor_default = _chunkX275XPRRjs.withRunExecutor.call(void 0, "Cloudflare Serve executor", serveExecutor, {
63
+ var executor_default = _chunkOC47VPKMjs.withRunExecutor.call(void 0, "Cloudflare Serve executor", serveExecutor, {
64
64
  skipReadingConfig: false,
65
65
  hooks: {
66
66
  applyDefaultOptions: /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "../../../chunk-L4E4ZISE.mjs";
3
+ } from "../../../chunk-UGO3OQQ7.mjs";
4
4
  import {
5
5
  createCliOptions
6
6
  } from "../../../chunk-7OJAYAYY.mjs";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkFRBDGKHTjs = require('../../../chunk-FRBDGKHT.js');
5
+ var _chunk2ZTNJEQQjs = require('../../../chunk-2ZTNJEQQ.js');
6
6
  require('../../../chunk-J5SB6L2L.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunkFRBDGKHTjs.generator_default; exports.initGenerator = _chunkFRBDGKHTjs.initGenerator; exports.initSchematic = _chunkFRBDGKHTjs.initSchematic;
11
+ exports.default = _chunk2ZTNJEQQjs.generator_default; exports.initGenerator = _chunk2ZTNJEQQjs.initGenerator; exports.initSchematic = _chunk2ZTNJEQQjs.initSchematic;
@@ -2,7 +2,7 @@ import {
2
2
  generator_default,
3
3
  initGenerator,
4
4
  initSchematic
5
- } from "../../../chunk-LUFRAFX6.mjs";
5
+ } from "../../../chunk-7WFWEE3W.mjs";
6
6
  import "../../../chunk-LGGVU67H.mjs";
7
7
  export {
8
8
  generator_default as default,
@@ -2,8 +2,8 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkAYSQEPGSjs = require('../../../chunk-AYSQEPGS.js');
6
- require('../../../chunk-FRBDGKHT.js');
5
+ var _chunkSBPKKTZCjs = require('../../../chunk-SBPKKTZC.js');
6
+ require('../../../chunk-2ZTNJEQQ.js');
7
7
  require('../../../chunk-IVLCYFXD.js');
8
8
  require('../../../chunk-V7LBWOVV.js');
9
9
  require('../../../chunk-J5SB6L2L.js');
@@ -11,4 +11,4 @@ require('../../../chunk-J5SB6L2L.js');
11
11
 
12
12
 
13
13
 
14
- exports.applicationGenerator = _chunkAYSQEPGSjs.applicationGenerator; exports.applicationSchematic = _chunkAYSQEPGSjs.applicationSchematic; exports.default = _chunkAYSQEPGSjs.generator_default;
14
+ exports.applicationGenerator = _chunkSBPKKTZCjs.applicationGenerator; exports.applicationSchematic = _chunkSBPKKTZCjs.applicationSchematic; exports.default = _chunkSBPKKTZCjs.generator_default;
@@ -2,8 +2,8 @@ import {
2
2
  applicationGenerator,
3
3
  applicationSchematic,
4
4
  generator_default
5
- } from "../../../chunk-QDLAITVL.mjs";
6
- import "../../../chunk-LUFRAFX6.mjs";
5
+ } from "../../../chunk-S5IUIHDY.mjs";
6
+ import "../../../chunk-7WFWEE3W.mjs";
7
7
  import "../../../chunk-KGEVN742.mjs";
8
8
  import "../../../chunk-UPK4D74Z.mjs";
9
9
  import "../../../chunk-LGGVU67H.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/cloudflare-tools",
3
- "version": "0.55.74",
3
+ "version": "0.55.75",
4
4
  "description": "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
5
5
  "repository": {
6
6
  "type": "github",