@storm-software/cloudflare-tools 0.55.73 → 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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-UIXU352Q.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 _chunkSUWWSOPYjs = require('./chunk-SUWWSOPY.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 _chunkSUWWSOPYjs.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: [],
@@ -657,6 +666,7 @@ var DEFAULT_BUILD_OPTIONS = {
657
666
  keepNames: true,
658
667
  metafile: false,
659
668
  treeshake: true,
669
+ splitting: true,
660
670
  shims: false,
661
671
  watch: false,
662
672
  bundle: true,
@@ -688,97 +698,51 @@ var DEFAULT_BUILD_OPTIONS = {
688
698
  }
689
699
  };
690
700
 
691
- // ../esbuild/src/plugins/deps-check.ts
692
- import { builtinModules as builtinModules2 } from "node:module";
701
+ // ../esbuild/src/plugins/resolve-paths.ts
693
702
  import path2 from "node:path";
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__ */ __name((bundle) => ({
724
- 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",
725
725
  setup(build3) {
726
- const pkgJsonPath = path2.join(process.cwd(), "package.json");
727
- const pkgContents = __require(pkgJsonPath);
728
- const regDependencies = Object.keys(pkgContents["dependencies"] ?? {});
729
- const devDependencies = Object.keys(pkgContents["devDependencies"] ?? {});
730
- const peerDependencies = Object.keys(pkgContents["peerDependencies"] ?? {});
731
- const dependencies = [
732
- ...regDependencies,
733
- ...bundle ? devDependencies : []
734
- ];
735
- const collectedDependencies = /* @__PURE__ */ new Set();
736
- 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("|")})$`);
737
729
  build3.onResolve({
738
- filter: onlyPackages
730
+ filter: packagesRegex
739
731
  }, (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
- }
732
+ if (build3.initialOptions.external?.includes(args.path)) {
733
+ return {
734
+ path: args.path,
735
+ external: true
736
+ };
748
737
  }
749
738
  return {
750
- external: true
739
+ path: `${resolvedTsPaths[args.path][0]}/index.ts`
751
740
  };
752
741
  });
753
- build3.onEnd(() => {
754
- const unusedDependencies = [
755
- ...dependencies
756
- ].filter((dep) => {
757
- return !collectedDependencies.has(dep) || builtinModules2.includes(dep);
758
- });
759
- const missingDependencies = [
760
- ...collectedDependencies
761
- ].filter((dep) => {
762
- return !dependencies.includes(dep) && !builtinModules2.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
- writeWarning(`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
771
- writeError(`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
742
  }
779
- }), "depsCheckPlugin");
743
+ }), "resolvePathsPlugin");
780
744
 
781
- // ../esbuild/src/build.ts
745
+ // ../esbuild/src/context.ts
782
746
  async function resolveContext(userOptions) {
783
747
  const projectRoot = userOptions.projectRoot;
784
748
  const workspaceRoot3 = findWorkspaceRoot2(projectRoot);
@@ -805,24 +769,23 @@ async function resolveContext(userOptions) {
805
769
  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
770
  }
807
771
  const options = defu2(userOptions, DEFAULT_BUILD_OPTIONS);
772
+ options.name ??= projectName;
808
773
  const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
809
774
  if (!existsSync3(packageJsonPath)) {
810
775
  throw new Error("Cannot find package.json configuration");
811
776
  }
812
777
  const env = getEnv("esbuild", options);
778
+ const define = defu2(options.define ?? {}, env ?? {});
813
779
  const resolvedOptions = {
814
- name: projectName,
815
780
  ...options,
816
781
  tsconfig: joinPaths(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
817
782
  metafile: userOptions.mode === "development",
818
783
  clean: false,
819
- splitting: options.format === "iife" ? false : options.treeshake === void 0 ? options.splitting : true,
820
784
  env,
821
785
  define: {
822
786
  STORM_FORMAT: JSON.stringify(options.format),
823
- ...options.define,
824
- ...Object.keys(env || {}).reduce((res, key) => {
825
- const value = JSON.stringify(env[key]);
787
+ ...Object.keys(define).filter((key) => define[key] !== void 0).reduce((res, key) => {
788
+ const value = JSON.stringify(define[key]);
826
789
  const safeKey = key.replaceAll("(", "").replaceAll(")", "");
827
790
  return {
828
791
  ...res,
@@ -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-ET3UGPTR.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-GLAB5E6Z.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 _chunkQDH5WMZVjs = require('./chunk-QDH5WMZV.js');
5
+ var _chunkSBPKKTZCjs = require('./chunk-SBPKKTZC.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkSUWWSOPYjs = require('./chunk-SUWWSOPY.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 = _chunkQDH5WMZVjs.applicationGenerator; exports.applicationSchematic = _chunkQDH5WMZVjs.applicationSchematic; exports.initGenerator = _chunkSUWWSOPYjs.initGenerator; exports.initSchematic = _chunkSUWWSOPYjs.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-F5RZ2WMA.mjs";
5
+ } from "./chunk-S5IUIHDY.mjs";
6
6
  import {
7
7
  initGenerator,
8
8
  initSchematic
9
- } from "./chunk-UIXU352Q.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 _chunkQDH5WMZVjs = require('./chunk-QDH5WMZV.js');
7
+ var _chunkSBPKKTZCjs = require('./chunk-SBPKKTZC.js');
7
8
 
8
9
 
9
10
 
10
- var _chunkSUWWSOPYjs = require('./chunk-SUWWSOPY.js');
11
+ var _chunk2ZTNJEQQjs = require('./chunk-2ZTNJEQQ.js');
11
12
  require('./chunk-CVGPWUNP.js');
12
- require('./chunk-R7AIVBS7.js');
13
- require('./chunk-ET3UGPTR.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 = _chunkQDH5WMZVjs.applicationGenerator; exports.applicationSchematic = _chunkQDH5WMZVjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkQGRENI3Ojs.getInternalDependencies; exports.initGenerator = _chunkSUWWSOPYjs.initGenerator; exports.initSchematic = _chunkSUWWSOPYjs.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-F5RZ2WMA.mjs";
7
+ } from "./chunk-S5IUIHDY.mjs";
7
8
  import {
8
9
  initGenerator,
9
10
  initSchematic
10
- } from "./chunk-UIXU352Q.mjs";
11
+ } from "./chunk-7WFWEE3W.mjs";
11
12
  import "./chunk-7Z5PILRU.mjs";
12
- import "./chunk-ZTKU4P4C.mjs";
13
- import "./chunk-GLAB5E6Z.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-ET3UGPTR.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-GLAB5E6Z.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 _chunkET3UGPTRjs = require('../../../chunk-ET3UGPTR.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 = _chunkET3UGPTRjs.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-GLAB5E6Z.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 _chunkSUWWSOPYjs = require('../../../chunk-SUWWSOPY.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 = _chunkSUWWSOPYjs.generator_default; exports.initGenerator = _chunkSUWWSOPYjs.initGenerator; exports.initSchematic = _chunkSUWWSOPYjs.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-UIXU352Q.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 _chunkQDH5WMZVjs = require('../../../chunk-QDH5WMZV.js');
6
- require('../../../chunk-SUWWSOPY.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 = _chunkQDH5WMZVjs.applicationGenerator; exports.applicationSchematic = _chunkQDH5WMZVjs.applicationSchematic; exports.default = _chunkQDH5WMZVjs.generator_default;
14
+ exports.applicationGenerator = _chunkSBPKKTZCjs.applicationGenerator; exports.applicationSchematic = _chunkSBPKKTZCjs.applicationSchematic; exports.default = _chunkSBPKKTZCjs.generator_default;