@storm-software/cloudflare-tools 0.55.65 → 0.55.66
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 +7 -0
- package/dist/{chunk-4KLMKQMN.mjs → chunk-2FAHL7XD.mjs} +2 -2
- package/dist/{chunk-XPLMFM2J.mjs → chunk-3RLBM7SP.mjs} +1 -1
- package/dist/{chunk-UQLMM4XV.js → chunk-4O3YATGZ.js} +10 -1
- package/dist/{chunk-NGKRYZY2.mjs → chunk-4XAH2R5U.mjs} +9 -7
- package/dist/{chunk-PFHP5EL7.mjs → chunk-5VCVZQT4.mjs} +2 -2
- package/dist/{chunk-2YQVZSHO.js → chunk-6B5PUF7X.js} +8 -2
- package/dist/{chunk-65QGIJV4.mjs → chunk-AMOQ2QRI.mjs} +17 -8
- package/dist/{chunk-NNDGLEEI.js → chunk-ENYRBMQC.js} +2 -2
- package/dist/{chunk-6YO5XRT2.mjs → chunk-IEYD3WT2.mjs} +1 -1
- package/dist/{chunk-U2DL5OU3.mjs → chunk-IGW2CIUT.mjs} +2 -2
- package/dist/{chunk-U5WWE2HS.mjs → chunk-LEJPLULT.mjs} +1 -1
- package/dist/{chunk-7TRJIJ2N.mjs → chunk-QWFEAV3X.mjs} +4 -4
- package/dist/{chunk-DWDJDH7W.js → chunk-U4CFTRNN.js} +8 -6
- package/dist/{chunk-YV555N5S.mjs → chunk-W2PVKWMH.mjs} +14 -8
- package/dist/executors.js +2 -2
- package/dist/executors.mjs +8 -8
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +5 -5
- package/dist/index.js +5 -5
- package/dist/index.mjs +10 -10
- package/dist/src/executors/cloudflare-publish/executor.js +1 -1
- package/dist/src/executors/cloudflare-publish/executor.mjs +6 -6
- package/dist/src/executors/r2-upload-publish/executor.js +2 -2
- package/dist/src/executors/r2-upload-publish/executor.mjs +6 -6
- package/dist/src/executors/serve/executor.d.mts +2 -1300
- package/dist/src/executors/serve/executor.d.ts +2 -1300
- package/dist/src/executors/serve/executor.js +2 -2
- package/dist/src/executors/serve/executor.mjs +5 -5
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +2 -2
- package/dist/src/generators/worker/generator.js +3 -3
- package/dist/src/generators/worker/generator.mjs +5 -5
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/r2-bucket-helpers.mjs +3 -3
- package/dist/tsup.config.d.mts +3 -3
- package/dist/tsup.config.d.ts +3 -3
- package/dist/tsup.config.js +2 -1
- package/dist/tsup.config.mjs +3 -2
- package/package.json +8 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.55.66](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.66) (2025-04-27)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **git-tools:** Ensure project graph is regenerated if not in cache
|
|
10
|
+
([817e291e6](https://github.com/storm-software/storm-ops/commit/817e291e6))
|
|
11
|
+
|
|
5
12
|
## [0.55.64](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.64) (2025-04-25)
|
|
6
13
|
|
|
7
14
|
### Miscellaneous
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
stormWorkspaceConfigSchema,
|
|
15
15
|
writeTrace,
|
|
16
16
|
writeWarning
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LEJPLULT.mjs";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IEYD3WT2.mjs";
|
|
21
21
|
|
|
22
22
|
// ../config-tools/src/create-storm-config.ts
|
|
23
23
|
import defu2 from "defu";
|
|
@@ -489,7 +489,16 @@ var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
|
489
489
|
|
|
490
490
|
var _projectgraph = require('nx/src/project-graph/project-graph');
|
|
491
491
|
var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (workspaceRoot3, projectRoot, projectName, packageJson) => {
|
|
492
|
-
|
|
492
|
+
let projectGraph;
|
|
493
|
+
try {
|
|
494
|
+
projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
|
|
495
|
+
} catch (e2) {
|
|
496
|
+
await _projectgraph.createProjectGraphAsync.call(void 0, );
|
|
497
|
+
projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
|
|
498
|
+
}
|
|
499
|
+
if (!projectGraph) {
|
|
500
|
+
throw new Error("The Build process failed because the project graph is not available. Please run the build command again.");
|
|
501
|
+
}
|
|
493
502
|
const projectDependencies = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0, void 0, projectGraph, workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
494
503
|
const localPackages = [];
|
|
495
504
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _29 => _29.node, 'access', _30 => _30.data, 'optionalAccess', _31 => _31.root]) !== projectRoot && _optionalChain([dep, 'access', _32 => _32.node, 'access', _33 => _33.data, 'optionalAccess', _34 => _34.root]) !== workspaceRoot3)) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__commonJS,
|
|
3
3
|
__name
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IEYD3WT2.mjs";
|
|
5
5
|
|
|
6
6
|
// package.json
|
|
7
7
|
var require_package = __commonJS({
|
|
8
8
|
"package.json"(exports, module) {
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "@storm-software/cloudflare-tools",
|
|
11
|
-
version: "0.55.
|
|
11
|
+
version: "0.55.66",
|
|
12
12
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
13
13
|
repository: {
|
|
14
14
|
type: "github",
|
|
@@ -134,10 +134,14 @@ var require_package = __commonJS({
|
|
|
134
134
|
],
|
|
135
135
|
peerDependencies: {
|
|
136
136
|
"@nx/devkit": "catalog:",
|
|
137
|
+
"@nx/js": "catalog:",
|
|
137
138
|
"@nx/node": "catalog:",
|
|
138
139
|
"@nx/web": "catalog:",
|
|
139
|
-
"@
|
|
140
|
+
"@storm-software/config": "1.113.5",
|
|
141
|
+
"@storm-software/config-tools": "1.163.5",
|
|
142
|
+
"@storm-software/workspace-tools": "1.267.0",
|
|
140
143
|
nx: "catalog:",
|
|
144
|
+
tsup: "catalog:",
|
|
141
145
|
wrangler: ">=3.58.0"
|
|
142
146
|
},
|
|
143
147
|
peerDependenciesMeta: {
|
|
@@ -162,9 +166,7 @@ var require_package = __commonJS({
|
|
|
162
166
|
},
|
|
163
167
|
dependencies: {
|
|
164
168
|
"@aws-sdk/client-s3": "3.47.0",
|
|
165
|
-
|
|
166
|
-
glob: "catalog:",
|
|
167
|
-
"jest-resolve": "29.7.0"
|
|
169
|
+
glob: "catalog:"
|
|
168
170
|
},
|
|
169
171
|
devDependencies: {
|
|
170
172
|
"@nx/devkit": "catalog:",
|
|
@@ -174,7 +176,7 @@ var require_package = __commonJS({
|
|
|
174
176
|
nx: "catalog:",
|
|
175
177
|
tsup: "catalog:",
|
|
176
178
|
untyped: "catalog:",
|
|
177
|
-
wrangler: "
|
|
179
|
+
wrangler: "^4.13.2"
|
|
178
180
|
},
|
|
179
181
|
publishConfig: {
|
|
180
182
|
access: "public"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3RLBM7SP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__name,
|
|
6
6
|
__require
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IEYD3WT2.mjs";
|
|
8
8
|
|
|
9
9
|
// src/executors/cloudflare-publish/executor.ts
|
|
10
10
|
import { joinPathFragments } from "@nx/devkit";
|
|
@@ -58,9 +58,15 @@ async function runExecutor(options, context) {
|
|
|
58
58
|
throw new Error("The AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables are not set. Please set these environment variables to upload to the Cyclone Registry.");
|
|
59
59
|
}
|
|
60
60
|
const endpoint = _optionalChain([options, 'optionalAccess', _17 => _17.registry]) ? options.registry : `https://${cloudflareAccountId}.r2.cloudflarestorage.com`;
|
|
61
|
-
|
|
61
|
+
let projectGraph;
|
|
62
|
+
try {
|
|
63
|
+
projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
|
|
64
|
+
} catch (e) {
|
|
65
|
+
await _devkit.createProjectGraphAsync.call(void 0, );
|
|
66
|
+
projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
|
|
67
|
+
}
|
|
62
68
|
if (!projectGraph) {
|
|
63
|
-
throw new Error("
|
|
69
|
+
throw new Error("The executor failed because the project graph is not available. Please run the build command again.");
|
|
64
70
|
}
|
|
65
71
|
_chunkV7LBWOVVjs.writeInfo.call(void 0, `Publishing ${context.projectName} to the Storm Registry at ${endpoint}`);
|
|
66
72
|
const s3Client = new (0, _clients3.S3)({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProjectTagConstants,
|
|
3
3
|
addProjectTag
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3RLBM7SP.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig,
|
|
7
7
|
getWorkspaceConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2FAHL7XD.mjs";
|
|
9
9
|
import {
|
|
10
10
|
findWorkspaceRoot,
|
|
11
11
|
formatLogMessage,
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
writeSuccess,
|
|
20
20
|
writeTrace,
|
|
21
21
|
writeWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LEJPLULT.mjs";
|
|
23
23
|
import {
|
|
24
24
|
__dirname,
|
|
25
25
|
__name,
|
|
26
26
|
__require
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-IEYD3WT2.mjs";
|
|
28
28
|
|
|
29
29
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
30
30
|
var applyWorkspaceBaseTokens = /* @__PURE__ */ __name(async (option, tokenParams) => {
|
|
@@ -402,7 +402,7 @@ import https from "node:https";
|
|
|
402
402
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
403
403
|
|
|
404
404
|
// ../esbuild/src/build.ts
|
|
405
|
-
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile } from "@nx/devkit";
|
|
405
|
+
import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile } from "@nx/devkit";
|
|
406
406
|
|
|
407
407
|
// ../build-tools/src/config.ts
|
|
408
408
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
@@ -488,9 +488,18 @@ import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildabl
|
|
|
488
488
|
import { Glob } from "glob";
|
|
489
489
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
490
490
|
import { readFile as readFile2 } from "node:fs/promises";
|
|
491
|
-
import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "nx/src/project-graph/project-graph";
|
|
491
|
+
import { createProjectGraphAsync, readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "nx/src/project-graph/project-graph";
|
|
492
492
|
var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, projectRoot, projectName, packageJson) => {
|
|
493
|
-
|
|
493
|
+
let projectGraph;
|
|
494
|
+
try {
|
|
495
|
+
projectGraph = readCachedProjectGraph();
|
|
496
|
+
} catch {
|
|
497
|
+
await createProjectGraphAsync();
|
|
498
|
+
projectGraph = readCachedProjectGraph();
|
|
499
|
+
}
|
|
500
|
+
if (!projectGraph) {
|
|
501
|
+
throw new Error("The Build process failed because the project graph is not available. Please run the build command again.");
|
|
502
|
+
}
|
|
494
503
|
const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
495
504
|
const localPackages = [];
|
|
496
505
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data?.root !== projectRoot && dep.node.data?.root !== workspaceRoot3)) {
|
|
@@ -783,7 +792,7 @@ async function resolveContext(userOptions) {
|
|
|
783
792
|
});
|
|
784
793
|
writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
785
794
|
const stopwatch = getStopwatch("Build options resolution");
|
|
786
|
-
const projectGraph = await
|
|
795
|
+
const projectGraph = await createProjectGraphAsync2({
|
|
787
796
|
exitOnError: true
|
|
788
797
|
});
|
|
789
798
|
const projectJsonPath = joinPaths(workspaceRoot3.dir, projectRoot, "project.json");
|
|
@@ -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
|
|
3
|
+
var _chunkU4CFTRNNjs = require('./chunk-U4CFTRNN.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
|
|
55
|
+
tasks.push(await _chunkU4CFTRNNjs.generator_default.call(void 0, tree, {
|
|
56
56
|
...options,
|
|
57
57
|
skipFormat: true
|
|
58
58
|
}));
|
|
@@ -11,7 +11,7 @@ var __commonJS = (cb, mod) => function __require2() {
|
|
|
11
11
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
14
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=6f5ec3d4990820b9e30a2e3135e1e171cde70966824e3b0ca9c0d2f02fc93f24__9307484d50c72e46fbc92a7dc6ac998d/node_modules/tsup/assets/esm_shims.js
|
|
15
15
|
import { fileURLToPath } from "url";
|
|
16
16
|
import path from "path";
|
|
17
17
|
var getFilename = /* @__PURE__ */ __name(() => fileURLToPath(import.meta.url), "getFilename");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeDebug,
|
|
3
3
|
writeWarning
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LEJPLULT.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__name
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IEYD3WT2.mjs";
|
|
8
8
|
|
|
9
9
|
// src/utils/r2-bucket-helpers.ts
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4XAH2R5U.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2FAHL7XD.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot,
|
|
9
9
|
getStopwatch,
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
writeFatal,
|
|
13
13
|
writeInfo,
|
|
14
14
|
writeTrace
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LEJPLULT.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__dirname,
|
|
18
18
|
__name
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IEYD3WT2.mjs";
|
|
20
20
|
|
|
21
21
|
// src/generators/worker/generator.ts
|
|
22
22
|
import { convertNxGenerator, ensurePackage, formatFiles, generateFiles, joinPathFragments, names, readProjectConfiguration, runTasksInSerial, updateJson, updateProjectConfiguration } from "@nx/devkit";
|
|
@@ -8,7 +8,7 @@ var require_package = _chunkJ5SB6L2Ljs.__commonJS.call(void 0, {
|
|
|
8
8
|
"package.json"(exports, module) {
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "@storm-software/cloudflare-tools",
|
|
11
|
-
version: "0.55.
|
|
11
|
+
version: "0.55.66",
|
|
12
12
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
13
13
|
repository: {
|
|
14
14
|
type: "github",
|
|
@@ -134,10 +134,14 @@ var require_package = _chunkJ5SB6L2Ljs.__commonJS.call(void 0, {
|
|
|
134
134
|
],
|
|
135
135
|
peerDependencies: {
|
|
136
136
|
"@nx/devkit": "catalog:",
|
|
137
|
+
"@nx/js": "catalog:",
|
|
137
138
|
"@nx/node": "catalog:",
|
|
138
139
|
"@nx/web": "catalog:",
|
|
139
|
-
"@
|
|
140
|
+
"@storm-software/config": "1.113.5",
|
|
141
|
+
"@storm-software/config-tools": "1.163.5",
|
|
142
|
+
"@storm-software/workspace-tools": "1.267.0",
|
|
140
143
|
nx: "catalog:",
|
|
144
|
+
tsup: "catalog:",
|
|
141
145
|
wrangler: ">=3.58.0"
|
|
142
146
|
},
|
|
143
147
|
peerDependenciesMeta: {
|
|
@@ -162,9 +166,7 @@ var require_package = _chunkJ5SB6L2Ljs.__commonJS.call(void 0, {
|
|
|
162
166
|
},
|
|
163
167
|
dependencies: {
|
|
164
168
|
"@aws-sdk/client-s3": "3.47.0",
|
|
165
|
-
|
|
166
|
-
glob: "catalog:",
|
|
167
|
-
"jest-resolve": "29.7.0"
|
|
169
|
+
glob: "catalog:"
|
|
168
170
|
},
|
|
169
171
|
devDependencies: {
|
|
170
172
|
"@nx/devkit": "catalog:",
|
|
@@ -174,7 +176,7 @@ var require_package = _chunkJ5SB6L2Ljs.__commonJS.call(void 0, {
|
|
|
174
176
|
nx: "catalog:",
|
|
175
177
|
tsup: "catalog:",
|
|
176
178
|
untyped: "catalog:",
|
|
177
|
-
wrangler: "
|
|
179
|
+
wrangler: "^4.13.2"
|
|
178
180
|
},
|
|
179
181
|
publishConfig: {
|
|
180
182
|
access: "public"
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getInternalDependencies,
|
|
3
3
|
r2UploadFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IGW2CIUT.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCliOptions,
|
|
7
7
|
getPackageInfo
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3RLBM7SP.mjs";
|
|
9
9
|
import {
|
|
10
10
|
getConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2FAHL7XD.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-LEJPLULT.mjs";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IEYD3WT2.mjs";
|
|
22
22
|
|
|
23
23
|
// src/executors/r2-upload-publish/executor.ts
|
|
24
24
|
import { S3 } from "@aws-sdk/client-s3";
|
|
25
|
-
import { joinPathFragments, readCachedProjectGraph } from "@nx/devkit";
|
|
25
|
+
import { createProjectGraphAsync, joinPathFragments, readCachedProjectGraph } from "@nx/devkit";
|
|
26
26
|
import { glob } from "glob";
|
|
27
27
|
import { execSync } from "node:child_process";
|
|
28
28
|
import { readFile } from "node:fs/promises";
|
|
@@ -58,9 +58,15 @@ async function runExecutor(options, context) {
|
|
|
58
58
|
throw new Error("The AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables are not set. Please set these environment variables to upload to the Cyclone Registry.");
|
|
59
59
|
}
|
|
60
60
|
const endpoint = options?.registry ? options.registry : `https://${cloudflareAccountId}.r2.cloudflarestorage.com`;
|
|
61
|
-
|
|
61
|
+
let projectGraph;
|
|
62
|
+
try {
|
|
63
|
+
projectGraph = readCachedProjectGraph();
|
|
64
|
+
} catch {
|
|
65
|
+
await createProjectGraphAsync();
|
|
66
|
+
projectGraph = readCachedProjectGraph();
|
|
67
|
+
}
|
|
62
68
|
if (!projectGraph) {
|
|
63
|
-
throw new Error("
|
|
69
|
+
throw new Error("The executor failed because the project graph is not available. Please run the build command again.");
|
|
64
70
|
}
|
|
65
71
|
writeInfo(`Publishing ${context.projectName} to the Storm Registry at ${endpoint}`);
|
|
66
72
|
const s3Client = new S3({
|
package/dist/executors.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";require('./chunk-XO66D74Z.js');
|
|
2
2
|
require('./chunk-R7AIVBS7.js');
|
|
3
|
-
require('./chunk-
|
|
4
|
-
require('./chunk-
|
|
3
|
+
require('./chunk-4O3YATGZ.js');
|
|
4
|
+
require('./chunk-6B5PUF7X.js');
|
|
5
5
|
require('./chunk-QGRENI3O.js');
|
|
6
6
|
require('./chunk-VTHBMY4B.js');
|
|
7
7
|
require('./chunk-IVLCYFXD.js');
|
package/dist/executors.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./chunk-YSCEY447.mjs";
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-5VCVZQT4.mjs";
|
|
3
|
+
import "./chunk-AMOQ2QRI.mjs";
|
|
4
|
+
import "./chunk-W2PVKWMH.mjs";
|
|
5
|
+
import "./chunk-IGW2CIUT.mjs";
|
|
6
|
+
import "./chunk-3RLBM7SP.mjs";
|
|
7
|
+
import "./chunk-2FAHL7XD.mjs";
|
|
8
|
+
import "./chunk-LEJPLULT.mjs";
|
|
9
|
+
import "./chunk-IEYD3WT2.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkENYRBMQCjs = require('./chunk-ENYRBMQC.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkU4CFTRNNjs = require('./chunk-U4CFTRNN.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 =
|
|
18
|
+
exports.applicationGenerator = _chunkENYRBMQCjs.applicationGenerator; exports.applicationSchematic = _chunkENYRBMQCjs.applicationSchematic; exports.initGenerator = _chunkU4CFTRNNjs.initGenerator; exports.initSchematic = _chunkU4CFTRNNjs.initSchematic;
|
package/dist/generators.mjs
CHANGED
|
@@ -2,14 +2,14 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
applicationGenerator,
|
|
4
4
|
applicationSchematic
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QWFEAV3X.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator,
|
|
8
8
|
initSchematic
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-4XAH2R5U.mjs";
|
|
10
|
+
import "./chunk-2FAHL7XD.mjs";
|
|
11
|
+
import "./chunk-LEJPLULT.mjs";
|
|
12
|
+
import "./chunk-IEYD3WT2.mjs";
|
|
13
13
|
export {
|
|
14
14
|
applicationGenerator,
|
|
15
15
|
applicationSchematic,
|
package/dist/index.js
CHANGED
|
@@ -3,15 +3,15 @@ require('./chunk-DHBG5ASJ.js');
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkENYRBMQCjs = require('./chunk-ENYRBMQC.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkU4CFTRNNjs = require('./chunk-U4CFTRNN.js');
|
|
11
11
|
require('./chunk-CVGPWUNP.js');
|
|
12
12
|
require('./chunk-R7AIVBS7.js');
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-4O3YATGZ.js');
|
|
14
|
+
require('./chunk-6B5PUF7X.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -148,4 +148,4 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, createPackageJson, "createPackageJson");
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
exports.applicationGenerator =
|
|
151
|
+
exports.applicationGenerator = _chunkENYRBMQCjs.applicationGenerator; exports.applicationSchematic = _chunkENYRBMQCjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkQGRENI3Ojs.getInternalDependencies; exports.initGenerator = _chunkU4CFTRNNjs.initGenerator; exports.initSchematic = _chunkU4CFTRNNjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkQGRENI3Ojs.r2UploadFile;
|
package/dist/index.mjs
CHANGED
|
@@ -3,28 +3,28 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
applicationGenerator,
|
|
5
5
|
applicationSchematic
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QWFEAV3X.mjs";
|
|
7
7
|
import {
|
|
8
8
|
initGenerator,
|
|
9
9
|
initSchematic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4XAH2R5U.mjs";
|
|
11
11
|
import "./chunk-7Z5PILRU.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-5VCVZQT4.mjs";
|
|
13
|
+
import "./chunk-AMOQ2QRI.mjs";
|
|
14
|
+
import "./chunk-W2PVKWMH.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getInternalDependencies,
|
|
17
17
|
r2UploadFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IGW2CIUT.mjs";
|
|
19
19
|
import {
|
|
20
20
|
ProjectTagConstants,
|
|
21
21
|
addProjectTag
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-3RLBM7SP.mjs";
|
|
23
|
+
import "./chunk-2FAHL7XD.mjs";
|
|
24
|
+
import "./chunk-LEJPLULT.mjs";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-IEYD3WT2.mjs";
|
|
28
28
|
|
|
29
29
|
// src/plugins/index.ts
|
|
30
30
|
import { existsSync } from "node:fs";
|
|
@@ -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-
|
|
4
|
+
require('../../../chunk-4O3YATGZ.js');
|
|
5
5
|
require('../../../chunk-VTHBMY4B.js');
|
|
6
6
|
require('../../../chunk-IVLCYFXD.js');
|
|
7
7
|
require('../../../chunk-V7LBWOVV.js');
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-5VCVZQT4.mjs";
|
|
4
|
+
import "../../../chunk-AMOQ2QRI.mjs";
|
|
5
|
+
import "../../../chunk-3RLBM7SP.mjs";
|
|
6
|
+
import "../../../chunk-2FAHL7XD.mjs";
|
|
7
|
+
import "../../../chunk-LEJPLULT.mjs";
|
|
8
|
+
import "../../../chunk-IEYD3WT2.mjs";
|
|
9
9
|
export {
|
|
10
10
|
runExecutor as default
|
|
11
11
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk6B5PUF7Xjs = require('../../../chunk-6B5PUF7X.js');
|
|
4
4
|
require('../../../chunk-QGRENI3O.js');
|
|
5
5
|
require('../../../chunk-VTHBMY4B.js');
|
|
6
6
|
require('../../../chunk-IVLCYFXD.js');
|
|
@@ -8,4 +8,4 @@ require('../../../chunk-V7LBWOVV.js');
|
|
|
8
8
|
require('../../../chunk-J5SB6L2L.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunk6B5PUF7Xjs.runExecutor;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-W2PVKWMH.mjs";
|
|
4
|
+
import "../../../chunk-IGW2CIUT.mjs";
|
|
5
|
+
import "../../../chunk-3RLBM7SP.mjs";
|
|
6
|
+
import "../../../chunk-2FAHL7XD.mjs";
|
|
7
|
+
import "../../../chunk-LEJPLULT.mjs";
|
|
8
|
+
import "../../../chunk-IEYD3WT2.mjs";
|
|
9
9
|
export {
|
|
10
10
|
runExecutor as default
|
|
11
11
|
};
|