@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.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/{chunk-KVL4WOIH.mjs → chunk-23YXGFBU.mjs} +1 -1
- package/dist/{chunk-ZPVFJJMY.js → chunk-4FP3SZAK.js} +12 -12
- package/dist/{chunk-H63GI4CR.js → chunk-BM5BCBD5.js} +3 -3
- package/dist/{chunk-6OLSW63F.mjs → chunk-CYTUL65E.mjs} +1 -1
- package/dist/{chunk-THKJZT32.js → chunk-DFG3KJWS.js} +119 -70
- package/dist/{chunk-6H63LE3D.mjs → chunk-DQHMNZ47.mjs} +88 -39
- package/dist/{chunk-W6YNIJQD.js → chunk-ILLCSSWN.js} +20 -17
- package/dist/{chunk-3D3WO4IH.mjs → chunk-IXEWBCGZ.mjs} +17 -14
- package/dist/{chunk-U6QKP7CG.js → chunk-LXXVBXFM.js} +16 -16
- package/dist/{chunk-WL2BHAOY.js → chunk-PR2M4S7F.js} +1 -1
- package/dist/{chunk-H43VNU3H.js → chunk-TDFLX6AI.js} +211 -248
- package/dist/{chunk-UJORUWGK.mjs → chunk-WG5F7OJK.mjs} +5 -5
- package/dist/{chunk-BGWUN6JU.mjs → chunk-XIDK2YZE.mjs} +5 -5
- package/dist/{chunk-CU5DCV52.mjs → chunk-YBA7ROY5.mjs} +35 -72
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +5 -5
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/executors/cloudflare-publish/executor.js +3 -3
- package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
- package/dist/src/executors/r2-upload-publish/executor.js +5 -5
- package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
- package/dist/src/executors/serve/executor.d.mts +3 -3
- package/dist/src/executors/serve/executor.d.ts +3 -3
- package/dist/src/executors/serve/executor.js +4 -4
- package/dist/src/executors/serve/executor.mjs +3 -3
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/dist/src/generators/worker/generator.js +5 -5
- package/dist/src/generators/worker/generator.mjs +4 -4
- package/dist/src/utils/index.js +3 -3
- package/dist/src/utils/index.mjs +2 -2
- package/dist/src/utils/r2-bucket-helpers.js +3 -3
- package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CYTUL65E.mjs";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
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
|
|
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-
|
|
4
|
+
} from "./chunk-23YXGFBU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCliOptions,
|
|
7
7
|
getPackageInfo
|
|
8
8
|
} from "./chunk-XU6MTFCV.mjs";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./chunk-
|
|
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-
|
|
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
|
|
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
|
-
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
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
|
|
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
|
|
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 {
|
|
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
|
|
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:
|
|
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
|
|
515
|
-
|
|
516
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
552
|
-
import { readFile as
|
|
553
|
-
import { readCachedProjectGraph
|
|
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,
|
|
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 (
|
|
562
|
-
const projectPackageJsonContent = await
|
|
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
|
|
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
|
|
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 =
|
|
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.
|
|
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
|
|
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
|
|
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 =
|
|
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.
|
|
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
|
|
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-
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
require('./chunk-TDFLX6AI.js');
|
|
4
|
+
require('./chunk-LXXVBXFM.js');
|
|
5
|
+
require('./chunk-BM5BCBD5.js');
|
|
6
6
|
require('./chunk-VTHBMY4B.js');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-DFG3KJWS.js');
|
|
8
|
+
require('./chunk-ILLCSSWN.js');
|
|
9
9
|
require('./chunk-J5SB6L2L.js');
|
package/dist/executors.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./chunk-YSCEY447.mjs";
|
|
2
2
|
import "./chunk-QEWY5YJA.mjs";
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-YBA7ROY5.mjs";
|
|
4
|
+
import "./chunk-XIDK2YZE.mjs";
|
|
5
|
+
import "./chunk-23YXGFBU.mjs";
|
|
6
6
|
import "./chunk-XU6MTFCV.mjs";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-DQHMNZ47.mjs";
|
|
8
|
+
import "./chunk-IXEWBCGZ.mjs";
|
|
9
9
|
import "./chunk-A7FFSBE6.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk4FP3SZAKjs = require('./chunk-4FP3SZAK.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
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 =
|
|
18
|
+
exports.applicationGenerator = _chunk4FP3SZAKjs.applicationGenerator; exports.applicationSchematic = _chunk4FP3SZAKjs.applicationSchematic; exports.initGenerator = _chunkPR2M4S7Fjs.initGenerator; exports.initSchematic = _chunkPR2M4S7Fjs.initSchematic;
|
package/dist/generators.mjs
CHANGED
|
@@ -2,13 +2,13 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
applicationGenerator,
|
|
4
4
|
applicationSchematic
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WG5F7OJK.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator,
|
|
8
8
|
initSchematic
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
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
|
|
6
|
+
var _chunk4FP3SZAKjs = require('./chunk-4FP3SZAK.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkPR2M4S7Fjs = require('./chunk-PR2M4S7F.js');
|
|
11
11
|
require('./chunk-CVGPWUNP.js');
|
|
12
12
|
require('./chunk-R7AIVBS7.js');
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-TDFLX6AI.js');
|
|
14
|
+
require('./chunk-LXXVBXFM.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkBM5BCBD5js = require('./chunk-BM5BCBD5.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
|
|
23
|
-
require('./chunk-
|
|
24
|
-
require('./chunk-
|
|
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 =
|
|
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-
|
|
6
|
+
} from "./chunk-WG5F7OJK.mjs";
|
|
7
7
|
import {
|
|
8
8
|
initGenerator,
|
|
9
9
|
initSchematic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CYTUL65E.mjs";
|
|
11
11
|
import "./chunk-7Z5PILRU.mjs";
|
|
12
12
|
import "./chunk-QEWY5YJA.mjs";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-YBA7ROY5.mjs";
|
|
14
|
+
import "./chunk-XIDK2YZE.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getInternalDependencies,
|
|
17
17
|
r2UploadFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-23YXGFBU.mjs";
|
|
19
19
|
import {
|
|
20
20
|
ProjectTagConstants,
|
|
21
21
|
addProjectTag
|
|
22
22
|
} from "./chunk-XU6MTFCV.mjs";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
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-
|
|
4
|
+
require('../../../chunk-TDFLX6AI.js');
|
|
5
5
|
require('../../../chunk-VTHBMY4B.js');
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
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-
|
|
4
|
+
import "../../../chunk-YBA7ROY5.mjs";
|
|
5
5
|
import "../../../chunk-XU6MTFCV.mjs";
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
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
|
|
4
|
-
require('../../../chunk-
|
|
3
|
+
var _chunkLXXVBXFMjs = require('../../../chunk-LXXVBXFM.js');
|
|
4
|
+
require('../../../chunk-BM5BCBD5.js');
|
|
5
5
|
require('../../../chunk-VTHBMY4B.js');
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
6
|
+
require('../../../chunk-DFG3KJWS.js');
|
|
7
|
+
require('../../../chunk-ILLCSSWN.js');
|
|
8
8
|
require('../../../chunk-J5SB6L2L.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkLXXVBXFMjs.runExecutor;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-XIDK2YZE.mjs";
|
|
4
|
+
import "../../../chunk-23YXGFBU.mjs";
|
|
5
5
|
import "../../../chunk-XU6MTFCV.mjs";
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
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
|
|
3
|
+
var _chunkTDFLX6AIjs = require('../../../chunk-TDFLX6AI.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkVTHBMY4Bjs = require('../../../chunk-VTHBMY4B.js');
|
|
7
|
-
require('../../../chunk-
|
|
8
|
-
require('../../../chunk-
|
|
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 =
|
|
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-
|
|
3
|
+
} from "../../../chunk-YBA7ROY5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createCliOptions
|
|
6
6
|
} from "../../../chunk-XU6MTFCV.mjs";
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
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
|
|
5
|
+
var _chunkPR2M4S7Fjs = require('../../../chunk-PR2M4S7F.js');
|
|
6
6
|
require('../../../chunk-J5SB6L2L.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkPR2M4S7Fjs.generator_default; exports.initGenerator = _chunkPR2M4S7Fjs.initGenerator; exports.initSchematic = _chunkPR2M4S7Fjs.initSchematic;
|