@storm-software/cloudflare-tools 0.54.2 → 0.54.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-KVL4WOIH.mjs → chunk-23YXGFBU.mjs} +1 -1
  4. package/dist/{chunk-ZPVFJJMY.js → chunk-4FP3SZAK.js} +12 -12
  5. package/dist/{chunk-H63GI4CR.js → chunk-BM5BCBD5.js} +3 -3
  6. package/dist/{chunk-6OLSW63F.mjs → chunk-CYTUL65E.mjs} +1 -1
  7. package/dist/{chunk-THKJZT32.js → chunk-DFG3KJWS.js} +119 -70
  8. package/dist/{chunk-6H63LE3D.mjs → chunk-DQHMNZ47.mjs} +88 -39
  9. package/dist/{chunk-W6YNIJQD.js → chunk-ILLCSSWN.js} +20 -17
  10. package/dist/{chunk-3D3WO4IH.mjs → chunk-IXEWBCGZ.mjs} +17 -14
  11. package/dist/{chunk-U6QKP7CG.js → chunk-LXXVBXFM.js} +16 -16
  12. package/dist/{chunk-WL2BHAOY.js → chunk-PR2M4S7F.js} +1 -1
  13. package/dist/{chunk-H43VNU3H.js → chunk-TDFLX6AI.js} +211 -248
  14. package/dist/{chunk-UJORUWGK.mjs → chunk-WG5F7OJK.mjs} +5 -5
  15. package/dist/{chunk-BGWUN6JU.mjs → chunk-XIDK2YZE.mjs} +5 -5
  16. package/dist/{chunk-CU5DCV52.mjs → chunk-YBA7ROY5.mjs} +35 -72
  17. package/dist/executors.js +5 -5
  18. package/dist/executors.mjs +5 -5
  19. package/dist/generators.js +5 -5
  20. package/dist/generators.mjs +4 -4
  21. package/dist/index.js +8 -8
  22. package/dist/index.mjs +7 -7
  23. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  24. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  25. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  26. package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
  27. package/dist/src/executors/serve/executor.d.mts +3 -3
  28. package/dist/src/executors/serve/executor.d.ts +3 -3
  29. package/dist/src/executors/serve/executor.js +4 -4
  30. package/dist/src/executors/serve/executor.mjs +3 -3
  31. package/dist/src/generators/init/generator.js +2 -2
  32. package/dist/src/generators/init/generator.mjs +1 -1
  33. package/dist/src/generators/worker/generator.js +5 -5
  34. package/dist/src/generators/worker/generator.mjs +4 -4
  35. package/dist/src/utils/index.js +3 -3
  36. package/dist/src/utils/index.mjs +2 -2
  37. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  38. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  39. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-6OLSW63F.mjs";
3
+ } from "./chunk-CYTUL65E.mjs";
4
4
  import {
5
- loadStormConfig
6
- } from "./chunk-6H63LE3D.mjs";
5
+ getConfig
6
+ } from "./chunk-DQHMNZ47.mjs";
7
7
  import {
8
8
  findWorkspaceRoot,
9
9
  getStopwatch,
@@ -12,7 +12,7 @@ import {
12
12
  writeFatal,
13
13
  writeInfo,
14
14
  writeTrace
15
- } from "./chunk-3D3WO4IH.mjs";
15
+ } from "./chunk-IXEWBCGZ.mjs";
16
16
  import {
17
17
  __dirname,
18
18
  __name
@@ -48,7 +48,7 @@ async function applicationGenerator(tree, schema) {
48
48
  const workspaceRoot = findWorkspaceRoot();
49
49
  writeDebug(`Loading the Storm Config from environment variables and storm.json file...
50
50
  - workspaceRoot: ${workspaceRoot}`, config);
51
- config = await loadStormConfig(workspaceRoot);
51
+ config = await getConfig(workspaceRoot);
52
52
  writeTrace(`Loaded Storm config into env:
53
53
  ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`, config);
54
54
  const options = await normalizeOptions(tree, schema, config);
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  getInternalDependencies,
3
3
  r2UploadFile
4
- } from "./chunk-KVL4WOIH.mjs";
4
+ } from "./chunk-23YXGFBU.mjs";
5
5
  import {
6
6
  createCliOptions,
7
7
  getPackageInfo
8
8
  } from "./chunk-XU6MTFCV.mjs";
9
9
  import {
10
- loadStormConfig
11
- } from "./chunk-6H63LE3D.mjs";
10
+ getConfig
11
+ } from "./chunk-DQHMNZ47.mjs";
12
12
  import {
13
13
  findWorkspaceRoot,
14
14
  writeDebug,
15
15
  writeInfo,
16
16
  writeSuccess,
17
17
  writeWarning
18
- } from "./chunk-3D3WO4IH.mjs";
18
+ } from "./chunk-IXEWBCGZ.mjs";
19
19
  import {
20
20
  __name
21
21
  } from "./chunk-A7FFSBE6.mjs";
@@ -37,7 +37,7 @@ async function runExecutor(options, context) {
37
37
  }
38
38
  try {
39
39
  const workspaceRoot = findWorkspaceRoot();
40
- const config = await loadStormConfig(workspaceRoot);
40
+ const config = await getConfig(workspaceRoot);
41
41
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
42
42
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
43
43
  const projectDetails = getPackageInfo(context.projectsConfigurations.projects[context.projectName]);
@@ -3,8 +3,8 @@ import {
3
3
  addProjectTag
4
4
  } from "./chunk-XU6MTFCV.mjs";
5
5
  import {
6
- loadStormConfig
7
- } from "./chunk-6H63LE3D.mjs";
6
+ getConfig
7
+ } from "./chunk-DQHMNZ47.mjs";
8
8
  import {
9
9
  StormConfigSchema,
10
10
  correctPaths,
@@ -20,7 +20,7 @@ import {
20
20
  writeSuccess,
21
21
  writeTrace,
22
22
  writeWarning
23
- } from "./chunk-3D3WO4IH.mjs";
23
+ } from "./chunk-IXEWBCGZ.mjs";
24
24
  import {
25
25
  __dirname,
26
26
  __name,
@@ -124,7 +124,7 @@ var withRunExecutor = /* @__PURE__ */ __name((name, executorFn, executorOptions
124
124
  - sourceRoot: ${sourceRoot}
125
125
  - projectName: ${projectName}
126
126
  `, config);
127
- config = await loadStormConfig(workspaceRoot3);
127
+ config = await getConfig(workspaceRoot3);
128
128
  }
129
129
  if (executorOptions?.hooks?.applyDefaultOptions) {
130
130
  writeDebug("Running the applyDefaultOptions hook...", config);
@@ -423,7 +423,7 @@ var LARGE_BUFFER2 = 1024 * 1e6;
423
423
 
424
424
  // ../esbuild/src/build.ts
425
425
  import { hfs as hfs3 } from "@humanfs/node";
426
- import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile } from "@nx/devkit";
426
+ import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph, writeJsonFile } from "@nx/devkit";
427
427
 
428
428
  // ../build-tools/src/config.ts
429
429
  var DEFAULT_COMPILED_BANNER = `
@@ -450,30 +450,10 @@ import { stripIndents } from "@nx/devkit";
450
450
  import { relative as relative2 } from "path";
451
451
 
452
452
  // ../build-tools/src/utilities/copy-assets.ts
453
- import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "@nx/devkit";
454
- import { copyAssets as copyAssetsBase } from "@nx/js";
453
+ import { CopyAssetsHandler } from "@nx/js/src/utils/assets/copy-assets-handler";
455
454
  import { glob } from "glob";
456
- import { readFile as readFile2, writeFile } from "node:fs/promises";
457
-
458
- // ../build-tools/src/utilities/read-nx-config.ts
459
- import { existsSync } from "node:fs";
460
- import { readFile } from "node:fs/promises";
461
- var readNxConfig = /* @__PURE__ */ __name(async (workspaceRoot3) => {
462
- let rootDir = workspaceRoot3;
463
- if (!rootDir) {
464
- const config = await loadStormConfig();
465
- rootDir = config.workspaceRoot;
466
- }
467
- const nxJsonPath = joinPaths(rootDir, "nx.json");
468
- if (!existsSync(nxJsonPath)) {
469
- throw new Error("Cannot find project.json configuration");
470
- }
471
- const configContent = await readFile(nxJsonPath, "utf8");
472
- return JSON.parse(configContent);
473
- }, "readNxConfig");
474
-
475
- // ../build-tools/src/utilities/copy-assets.ts
476
- var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
455
+ import { readFile, writeFile } from "node:fs/promises";
456
+ var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
477
457
  const pendingAssets = Array.from(assets ?? []);
478
458
  pendingAssets.push({
479
459
  input: projectRoot,
@@ -481,7 +461,7 @@ var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, proje
481
461
  output: "."
482
462
  });
483
463
  pendingAssets.push({
484
- input: config.workspaceRoot,
464
+ input: ".",
485
465
  glob: "LICENSE",
486
466
  output: "."
487
467
  });
@@ -499,36 +479,15 @@ var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, proje
499
479
  output: "src/"
500
480
  });
501
481
  }
502
- const nxJson = readNxConfig(config.workspaceRoot);
503
- const projectGraph = readCachedProjectGraph();
504
- const projectsConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
505
- if (!projectsConfigurations?.projects?.[projectName]) {
506
- 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.");
507
- }
508
- const buildTarget = projectsConfigurations.projects[projectName].targets?.build;
509
- if (!buildTarget) {
510
- throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${joinPaths(projectRoot, "project.json")}`);
511
- }
512
482
  writeTrace(`\u{1F4DD} Copying the following assets to the output directory:
513
483
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`, config);
514
- const result = await copyAssetsBase({
515
- assets: pendingAssets,
516
- watch: false,
517
- outputPath
518
- }, {
519
- root: config.workspaceRoot,
520
- targetName: "build",
521
- target: buildTarget,
522
- projectName,
523
- projectGraph,
524
- projectsConfigurations,
525
- nxJsonConfiguration: nxJson,
526
- cwd: config.workspaceRoot,
527
- isVerbose: isVerbose(config.logLevel)
484
+ const assetHandler = new CopyAssetsHandler({
485
+ projectDir: projectRoot,
486
+ rootDir: config.workspaceRoot,
487
+ outputDir: outputPath,
488
+ assets: pendingAssets
528
489
  });
529
- if (!result.success) {
530
- throw new Error("The Build process failed trying to copy assets");
531
- }
490
+ await assetHandler.processAllAssetsOnce();
532
491
  if (includeSrc === true) {
533
492
  writeDebug(`\u{1F4DD} Adding banner and writing source files: ${joinPaths(outputPath, "src")}`, config);
534
493
  const files = await glob([
@@ -539,7 +498,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
539
498
  ]);
540
499
  await Promise.allSettled(files.map(async (file) => writeFile(file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
541
500
 
542
- ${await readFile2(file, "utf8")}
501
+ ${await readFile(file, "utf8")}
543
502
 
544
503
  ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `// ${footer}` : ""}`)));
545
504
  }
@@ -548,18 +507,18 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
548
507
  // ../build-tools/src/utilities/generate-package-json.ts
549
508
  import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
550
509
  import { Glob } from "glob";
551
- import { existsSync as existsSync2 } from "node:fs";
552
- import { readFile as readFile3 } from "node:fs/promises";
553
- import { readCachedProjectGraph as readCachedProjectGraph2 } from "nx/src/project-graph/project-graph";
510
+ import { existsSync } from "node:fs";
511
+ import { readFile as readFile2 } from "node:fs/promises";
512
+ import { readCachedProjectGraph } from "nx/src/project-graph/project-graph";
554
513
  var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, projectRoot, projectName, packageJson) => {
555
- const projectDependencies = calculateProjectBuildableDependencies(void 0, readCachedProjectGraph2(), workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
514
+ const projectDependencies = calculateProjectBuildableDependencies(void 0, readCachedProjectGraph(), workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
556
515
  const localPackages = [];
557
516
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
558
517
  const projectNode = project.node;
559
518
  if (projectNode.data.root) {
560
519
  const projectPackageJsonPath = joinPaths(workspaceRoot3, projectNode.data.root, "package.json");
561
- if (existsSync2(projectPackageJsonPath)) {
562
- const projectPackageJsonContent = await readFile3(projectPackageJsonPath, "utf8");
520
+ if (existsSync(projectPackageJsonPath)) {
521
+ const projectPackageJsonContent = await readFile2(projectPackageJsonPath, "utf8");
563
522
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
564
523
  if (projectPackageJson.private !== false) {
565
524
  localPackages.push(projectPackageJson);
@@ -596,7 +555,7 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, proje
596
555
  }, "addPackageDependencies");
597
556
  var addWorkspacePackageJsonFields = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
598
557
  const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : findWorkspaceRoot();
599
- const workspacePackageJsonContent = await readFile3(joinPaths(workspaceRoot3, "package.json"), "utf8");
558
+ const workspacePackageJsonContent = await readFile2(joinPaths(workspaceRoot3, "package.json"), "utf8");
600
559
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
601
560
  packageJson.type ??= "module";
602
561
  packageJson.sideEffects ??= false;
@@ -736,6 +695,10 @@ function getOutExtension(format2, pkgType) {
736
695
  }
737
696
  __name(getOutExtension, "getOutExtension");
738
697
 
698
+ // ../build-tools/src/utilities/read-nx-config.ts
699
+ import { existsSync as existsSync2 } from "node:fs";
700
+ import { readFile as readFile3 } from "node:fs/promises";
701
+
739
702
  // ../build-tools/src/utilities/task-graph.ts
740
703
  import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-runner/create-task-graph";
741
704
 
@@ -1396,7 +1359,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1396
1359
  if (!workspaceRoot3) {
1397
1360
  throw new Error("Cannot find Nx workspace root");
1398
1361
  }
1399
- const config = await loadStormConfig(workspaceRoot3.dir);
1362
+ const config = await getConfig(workspaceRoot3.dir);
1400
1363
  writeDebug(" \u2699\uFE0F Resolving build options", config);
1401
1364
  const stopwatch = getStopwatch("Build options resolution");
1402
1365
  const projectGraph = await createProjectGraphAsync({
@@ -1408,7 +1371,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1408
1371
  }
1409
1372
  const projectJson = await hfs3.json(projectJsonPath);
1410
1373
  const projectName = projectJson.name;
1411
- const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
1374
+ const projectConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
1412
1375
  if (!projectConfigurations?.projects?.[projectName]) {
1413
1376
  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.");
1414
1377
  }
@@ -1588,7 +1551,7 @@ async function copyBuildAssets(context2) {
1588
1551
  if (context2.result?.errors.length === 0) {
1589
1552
  writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1590
1553
  const stopwatch = getStopwatch(`${context2.options.name} asset copy`);
1591
- await copyAssets(context2.options.config, context2.options.assets ?? [], context2.options.outdir, context2.options.projectRoot, context2.options.projectName, context2.options.sourceRoot, true, false);
1554
+ await copyAssets(context2.options.config, context2.options.assets ?? [], context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
1592
1555
  stopwatch();
1593
1556
  }
1594
1557
  return context2;
@@ -1772,7 +1735,7 @@ var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor",
1772
1735
 
1773
1736
  // ../tsdown/src/build.ts
1774
1737
  import { hfs as hfs5 } from "@humanfs/node";
1775
- import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3, writeJsonFile as writeJsonFile2 } from "@nx/devkit";
1738
+ import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile as writeJsonFile2 } from "@nx/devkit";
1776
1739
  import defu3 from "defu";
1777
1740
  import { findWorkspaceRoot as findWorkspaceRoot3 } from "nx/src/utils/find-workspace-root";
1778
1741
  import { build as tsdown } from "tsdown";
@@ -1816,7 +1779,7 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
1816
1779
  if (!workspaceRoot3) {
1817
1780
  throw new Error("Cannot find Nx workspace root");
1818
1781
  }
1819
- const config = await loadStormConfig(workspaceRoot3.dir);
1782
+ const config = await getConfig(workspaceRoot3.dir);
1820
1783
  writeDebug(" \u2699\uFE0F Resolving build options", config);
1821
1784
  const stopwatch = getStopwatch("Build options resolution");
1822
1785
  const projectGraph = await createProjectGraphAsync2({
@@ -1828,7 +1791,7 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
1828
1791
  }
1829
1792
  const projectJson = await hfs5.json(projectJsonPath);
1830
1793
  const projectName = projectJson.name;
1831
- const projectConfigurations = readProjectsConfigurationFromProjectGraph3(projectGraph);
1794
+ const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
1832
1795
  if (!projectConfigurations?.projects?.[projectName]) {
1833
1796
  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.");
1834
1797
  }
@@ -1958,7 +1921,7 @@ __name(executeTSDown, "executeTSDown");
1958
1921
  async function copyBuildAssets2(options) {
1959
1922
  writeDebug(` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
1960
1923
  const stopwatch = getStopwatch(`${options.name} asset copy`);
1961
- await copyAssets(options.config, options.assets ?? [], options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
1924
+ await copyAssets(options.config, options.assets ?? [], options.outdir, options.projectRoot, options.sourceRoot, true, false);
1962
1925
  stopwatch();
1963
1926
  return options;
1964
1927
  }
@@ -2162,7 +2125,7 @@ var withRunGenerator = /* @__PURE__ */ __name((name, generatorFn, generatorOptio
2162
2125
  if (!generatorOptions.skipReadingConfig) {
2163
2126
  writeDebug(`Loading the Storm Config from environment variables and storm.config.js file...
2164
2127
  - workspaceRoot: ${workspaceRoot3}`, config);
2165
- config = await loadStormConfig(workspaceRoot3);
2128
+ config = await getConfig(workspaceRoot3);
2166
2129
  }
2167
2130
  if (generatorOptions?.hooks?.applyDefaultOptions) {
2168
2131
  writeDebug("Running the applyDefaultOptions hook...", config);
package/dist/executors.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";require('./chunk-XO66D74Z.js');
2
2
  require('./chunk-R7AIVBS7.js');
3
- require('./chunk-H43VNU3H.js');
4
- require('./chunk-U6QKP7CG.js');
5
- require('./chunk-H63GI4CR.js');
3
+ require('./chunk-TDFLX6AI.js');
4
+ require('./chunk-LXXVBXFM.js');
5
+ require('./chunk-BM5BCBD5.js');
6
6
  require('./chunk-VTHBMY4B.js');
7
- require('./chunk-THKJZT32.js');
8
- require('./chunk-W6YNIJQD.js');
7
+ require('./chunk-DFG3KJWS.js');
8
+ require('./chunk-ILLCSSWN.js');
9
9
  require('./chunk-J5SB6L2L.js');
@@ -1,9 +1,9 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
2
  import "./chunk-QEWY5YJA.mjs";
3
- import "./chunk-CU5DCV52.mjs";
4
- import "./chunk-BGWUN6JU.mjs";
5
- import "./chunk-KVL4WOIH.mjs";
3
+ import "./chunk-YBA7ROY5.mjs";
4
+ import "./chunk-XIDK2YZE.mjs";
5
+ import "./chunk-23YXGFBU.mjs";
6
6
  import "./chunk-XU6MTFCV.mjs";
7
- import "./chunk-6H63LE3D.mjs";
8
- import "./chunk-3D3WO4IH.mjs";
7
+ import "./chunk-DQHMNZ47.mjs";
8
+ import "./chunk-IXEWBCGZ.mjs";
9
9
  import "./chunk-A7FFSBE6.mjs";
@@ -2,17 +2,17 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkZPVFJJMYjs = require('./chunk-ZPVFJJMY.js');
5
+ var _chunk4FP3SZAKjs = require('./chunk-4FP3SZAK.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkWL2BHAOYjs = require('./chunk-WL2BHAOY.js');
10
- require('./chunk-THKJZT32.js');
11
- require('./chunk-W6YNIJQD.js');
9
+ var _chunkPR2M4S7Fjs = require('./chunk-PR2M4S7F.js');
10
+ require('./chunk-DFG3KJWS.js');
11
+ require('./chunk-ILLCSSWN.js');
12
12
  require('./chunk-J5SB6L2L.js');
13
13
 
14
14
 
15
15
 
16
16
 
17
17
 
18
- exports.applicationGenerator = _chunkZPVFJJMYjs.applicationGenerator; exports.applicationSchematic = _chunkZPVFJJMYjs.applicationSchematic; exports.initGenerator = _chunkWL2BHAOYjs.initGenerator; exports.initSchematic = _chunkWL2BHAOYjs.initSchematic;
18
+ exports.applicationGenerator = _chunk4FP3SZAKjs.applicationGenerator; exports.applicationSchematic = _chunk4FP3SZAKjs.applicationSchematic; exports.initGenerator = _chunkPR2M4S7Fjs.initGenerator; exports.initSchematic = _chunkPR2M4S7Fjs.initSchematic;
@@ -2,13 +2,13 @@ import "./chunk-3J7KBHMJ.mjs";
2
2
  import {
3
3
  applicationGenerator,
4
4
  applicationSchematic
5
- } from "./chunk-UJORUWGK.mjs";
5
+ } from "./chunk-WG5F7OJK.mjs";
6
6
  import {
7
7
  initGenerator,
8
8
  initSchematic
9
- } from "./chunk-6OLSW63F.mjs";
10
- import "./chunk-6H63LE3D.mjs";
11
- import "./chunk-3D3WO4IH.mjs";
9
+ } from "./chunk-CYTUL65E.mjs";
10
+ import "./chunk-DQHMNZ47.mjs";
11
+ import "./chunk-IXEWBCGZ.mjs";
12
12
  import "./chunk-A7FFSBE6.mjs";
13
13
  export {
14
14
  applicationGenerator,
package/dist/index.js CHANGED
@@ -3,25 +3,25 @@ require('./chunk-DHBG5ASJ.js');
3
3
 
4
4
 
5
5
 
6
- var _chunkZPVFJJMYjs = require('./chunk-ZPVFJJMY.js');
6
+ var _chunk4FP3SZAKjs = require('./chunk-4FP3SZAK.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkWL2BHAOYjs = require('./chunk-WL2BHAOY.js');
10
+ var _chunkPR2M4S7Fjs = require('./chunk-PR2M4S7F.js');
11
11
  require('./chunk-CVGPWUNP.js');
12
12
  require('./chunk-R7AIVBS7.js');
13
- require('./chunk-H43VNU3H.js');
14
- require('./chunk-U6QKP7CG.js');
13
+ require('./chunk-TDFLX6AI.js');
14
+ require('./chunk-LXXVBXFM.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkH63GI4CRjs = require('./chunk-H63GI4CR.js');
18
+ var _chunkBM5BCBD5js = require('./chunk-BM5BCBD5.js');
19
19
 
20
20
 
21
21
 
22
22
  var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
23
- require('./chunk-THKJZT32.js');
24
- require('./chunk-W6YNIJQD.js');
23
+ require('./chunk-DFG3KJWS.js');
24
+ require('./chunk-ILLCSSWN.js');
25
25
 
26
26
 
27
27
  var _chunkJ5SB6L2Ljs = require('./chunk-J5SB6L2L.js');
@@ -148,4 +148,4 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, createPackageJson, "createPackageJson");
148
148
 
149
149
 
150
150
 
151
- exports.applicationGenerator = _chunkZPVFJJMYjs.applicationGenerator; exports.applicationSchematic = _chunkZPVFJJMYjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkH63GI4CRjs.getInternalDependencies; exports.initGenerator = _chunkWL2BHAOYjs.initGenerator; exports.initSchematic = _chunkWL2BHAOYjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkH63GI4CRjs.r2UploadFile;
151
+ exports.applicationGenerator = _chunk4FP3SZAKjs.applicationGenerator; exports.applicationSchematic = _chunk4FP3SZAKjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkBM5BCBD5js.getInternalDependencies; exports.initGenerator = _chunkPR2M4S7Fjs.initGenerator; exports.initSchematic = _chunkPR2M4S7Fjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkBM5BCBD5js.r2UploadFile;
package/dist/index.mjs CHANGED
@@ -3,25 +3,25 @@ import "./chunk-3J7KBHMJ.mjs";
3
3
  import {
4
4
  applicationGenerator,
5
5
  applicationSchematic
6
- } from "./chunk-UJORUWGK.mjs";
6
+ } from "./chunk-WG5F7OJK.mjs";
7
7
  import {
8
8
  initGenerator,
9
9
  initSchematic
10
- } from "./chunk-6OLSW63F.mjs";
10
+ } from "./chunk-CYTUL65E.mjs";
11
11
  import "./chunk-7Z5PILRU.mjs";
12
12
  import "./chunk-QEWY5YJA.mjs";
13
- import "./chunk-CU5DCV52.mjs";
14
- import "./chunk-BGWUN6JU.mjs";
13
+ import "./chunk-YBA7ROY5.mjs";
14
+ import "./chunk-XIDK2YZE.mjs";
15
15
  import {
16
16
  getInternalDependencies,
17
17
  r2UploadFile
18
- } from "./chunk-KVL4WOIH.mjs";
18
+ } from "./chunk-23YXGFBU.mjs";
19
19
  import {
20
20
  ProjectTagConstants,
21
21
  addProjectTag
22
22
  } from "./chunk-XU6MTFCV.mjs";
23
- import "./chunk-6H63LE3D.mjs";
24
- import "./chunk-3D3WO4IH.mjs";
23
+ import "./chunk-DQHMNZ47.mjs";
24
+ import "./chunk-IXEWBCGZ.mjs";
25
25
  import {
26
26
  __name
27
27
  } from "./chunk-A7FFSBE6.mjs";
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
  var _chunkR7AIVBS7js = require('../../../chunk-R7AIVBS7.js');
4
- require('../../../chunk-H43VNU3H.js');
4
+ require('../../../chunk-TDFLX6AI.js');
5
5
  require('../../../chunk-VTHBMY4B.js');
6
- require('../../../chunk-THKJZT32.js');
7
- require('../../../chunk-W6YNIJQD.js');
6
+ require('../../../chunk-DFG3KJWS.js');
7
+ require('../../../chunk-ILLCSSWN.js');
8
8
  require('../../../chunk-J5SB6L2L.js');
9
9
 
10
10
 
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  runExecutor
3
3
  } from "../../../chunk-QEWY5YJA.mjs";
4
- import "../../../chunk-CU5DCV52.mjs";
4
+ import "../../../chunk-YBA7ROY5.mjs";
5
5
  import "../../../chunk-XU6MTFCV.mjs";
6
- import "../../../chunk-6H63LE3D.mjs";
7
- import "../../../chunk-3D3WO4IH.mjs";
6
+ import "../../../chunk-DQHMNZ47.mjs";
7
+ import "../../../chunk-IXEWBCGZ.mjs";
8
8
  import "../../../chunk-A7FFSBE6.mjs";
9
9
  export {
10
10
  runExecutor as default
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkU6QKP7CGjs = require('../../../chunk-U6QKP7CG.js');
4
- require('../../../chunk-H63GI4CR.js');
3
+ var _chunkLXXVBXFMjs = require('../../../chunk-LXXVBXFM.js');
4
+ require('../../../chunk-BM5BCBD5.js');
5
5
  require('../../../chunk-VTHBMY4B.js');
6
- require('../../../chunk-THKJZT32.js');
7
- require('../../../chunk-W6YNIJQD.js');
6
+ require('../../../chunk-DFG3KJWS.js');
7
+ require('../../../chunk-ILLCSSWN.js');
8
8
  require('../../../chunk-J5SB6L2L.js');
9
9
 
10
10
 
11
- exports.default = _chunkU6QKP7CGjs.runExecutor;
11
+ exports.default = _chunkLXXVBXFMjs.runExecutor;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  runExecutor
3
- } from "../../../chunk-BGWUN6JU.mjs";
4
- import "../../../chunk-KVL4WOIH.mjs";
3
+ } from "../../../chunk-XIDK2YZE.mjs";
4
+ import "../../../chunk-23YXGFBU.mjs";
5
5
  import "../../../chunk-XU6MTFCV.mjs";
6
- import "../../../chunk-6H63LE3D.mjs";
7
- import "../../../chunk-3D3WO4IH.mjs";
6
+ import "../../../chunk-DQHMNZ47.mjs";
7
+ import "../../../chunk-IXEWBCGZ.mjs";
8
8
  import "../../../chunk-A7FFSBE6.mjs";
9
9
  export {
10
10
  runExecutor as default
@@ -6,7 +6,7 @@ import z from 'zod';
6
6
  */
7
7
  declare const StormConfigSchema: z.ZodObject<{
8
8
  $schema: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodString>>>>;
9
- extends: z.ZodOptional<z.ZodString>;
9
+ extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
10
10
  name: z.ZodOptional<z.ZodString>;
11
11
  namespace: z.ZodOptional<z.ZodString>;
12
12
  organization: z.ZodDefault<z.ZodString>;
@@ -980,7 +980,7 @@ declare const StormConfigSchema: z.ZodObject<{
980
980
  extensions: Record<string, any>;
981
981
  name?: string | undefined;
982
982
  $schema?: string | null | undefined;
983
- extends?: string | undefined;
983
+ extends?: string | string[] | undefined;
984
984
  namespace?: string | undefined;
985
985
  repository?: string | undefined;
986
986
  preid?: string | undefined;
@@ -1146,7 +1146,7 @@ declare const StormConfigSchema: z.ZodObject<{
1146
1146
  }>;
1147
1147
  name?: string | undefined;
1148
1148
  $schema?: string | null | undefined;
1149
- extends?: string | undefined;
1149
+ extends?: string | string[] | undefined;
1150
1150
  namespace?: string | undefined;
1151
1151
  organization?: string | undefined;
1152
1152
  repository?: string | undefined;
@@ -6,7 +6,7 @@ import z from 'zod';
6
6
  */
7
7
  declare const StormConfigSchema: z.ZodObject<{
8
8
  $schema: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodString>>>>;
9
- extends: z.ZodOptional<z.ZodString>;
9
+ extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
10
10
  name: z.ZodOptional<z.ZodString>;
11
11
  namespace: z.ZodOptional<z.ZodString>;
12
12
  organization: z.ZodDefault<z.ZodString>;
@@ -980,7 +980,7 @@ declare const StormConfigSchema: z.ZodObject<{
980
980
  extensions: Record<string, any>;
981
981
  name?: string | undefined;
982
982
  $schema?: string | null | undefined;
983
- extends?: string | undefined;
983
+ extends?: string | string[] | undefined;
984
984
  namespace?: string | undefined;
985
985
  repository?: string | undefined;
986
986
  preid?: string | undefined;
@@ -1146,7 +1146,7 @@ declare const StormConfigSchema: z.ZodObject<{
1146
1146
  }>;
1147
1147
  name?: string | undefined;
1148
1148
  $schema?: string | null | undefined;
1149
- extends?: string | undefined;
1149
+ extends?: string | string[] | undefined;
1150
1150
  namespace?: string | undefined;
1151
1151
  organization?: string | undefined;
1152
1152
  repository?: string | undefined;
@@ -1,11 +1,11 @@
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 _chunkH43VNU3Hjs = require('../../../chunk-H43VNU3H.js');
3
+ var _chunkTDFLX6AIjs = require('../../../chunk-TDFLX6AI.js');
4
4
 
5
5
 
6
6
  var _chunkVTHBMY4Bjs = require('../../../chunk-VTHBMY4B.js');
7
- require('../../../chunk-THKJZT32.js');
8
- require('../../../chunk-W6YNIJQD.js');
7
+ require('../../../chunk-DFG3KJWS.js');
8
+ require('../../../chunk-ILLCSSWN.js');
9
9
 
10
10
 
11
11
 
@@ -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 = _chunkH43VNU3Hjs.withRunExecutor.call(void 0, "Cloudflare Serve executor", serveExecutor, {
63
+ var executor_default = _chunkTDFLX6AIjs.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,11 +1,11 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "../../../chunk-CU5DCV52.mjs";
3
+ } from "../../../chunk-YBA7ROY5.mjs";
4
4
  import {
5
5
  createCliOptions
6
6
  } from "../../../chunk-XU6MTFCV.mjs";
7
- import "../../../chunk-6H63LE3D.mjs";
8
- import "../../../chunk-3D3WO4IH.mjs";
7
+ import "../../../chunk-DQHMNZ47.mjs";
8
+ import "../../../chunk-IXEWBCGZ.mjs";
9
9
  import {
10
10
  __name,
11
11
  __require
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkWL2BHAOYjs = require('../../../chunk-WL2BHAOY.js');
5
+ var _chunkPR2M4S7Fjs = require('../../../chunk-PR2M4S7F.js');
6
6
  require('../../../chunk-J5SB6L2L.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunkWL2BHAOYjs.generator_default; exports.initGenerator = _chunkWL2BHAOYjs.initGenerator; exports.initSchematic = _chunkWL2BHAOYjs.initSchematic;
11
+ exports.default = _chunkPR2M4S7Fjs.generator_default; exports.initGenerator = _chunkPR2M4S7Fjs.initGenerator; exports.initSchematic = _chunkPR2M4S7Fjs.initSchematic;
@@ -2,7 +2,7 @@ import {
2
2
  generator_default,
3
3
  initGenerator,
4
4
  initSchematic
5
- } from "../../../chunk-6OLSW63F.mjs";
5
+ } from "../../../chunk-CYTUL65E.mjs";
6
6
  import "../../../chunk-A7FFSBE6.mjs";
7
7
  export {
8
8
  generator_default as default,