@storm-software/cloudflare-tools 0.71.223 → 0.71.224
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-U6OMVOFA.mjs → chunk-3E2GFJMN.mjs} +1 -1
- package/dist/{chunk-F6LJYBWD.js → chunk-4WESWVMR.js} +1 -1
- package/dist/{chunk-XB6S7S3C.js → chunk-62X6T4SY.js} +3 -3
- package/dist/{chunk-O327KKPU.js → chunk-HNDXHX7M.js} +2 -2
- package/dist/{chunk-E7ITICBK.js → chunk-NCVDTA5M.js} +2 -1
- package/dist/{chunk-WH4RGUNC.mjs → chunk-NPLOIBSW.mjs} +1 -1
- package/dist/{chunk-AIONW2LO.mjs → chunk-NTAVFPAR.mjs} +1 -1
- package/dist/{chunk-YLHBNFNJ.js → chunk-VFK7WI6O.js} +63 -50
- package/dist/{chunk-7LCOGL6D.mjs → chunk-WO7IPWNX.mjs} +1 -1
- package/dist/{chunk-QU27DXRB.mjs → chunk-WYT4G6BW.mjs} +18 -5
- package/dist/{chunk-CV2KQKMS.js → chunk-XSO2NEF3.js} +2 -2
- package/dist/{chunk-T6GKRQUF.mjs → chunk-ZXLMDNFQ.mjs} +1 -0
- package/dist/executors.js +4 -4
- package/dist/executors.mjs +4 -4
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +7 -7
- package/dist/index.mjs +6 -6
- package/dist/src/executors/cloudflare-publish/executor.js +4 -4
- package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
- package/dist/src/executors/r2-upload-publish/executor.js +3 -3
- package/dist/src/executors/r2-upload-publish/executor.mjs +2 -2
- package/dist/src/executors/serve/executor.js +4 -4
- package/dist/src/executors/serve/executor.mjs +2 -2
- 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 +3 -3
- package/dist/src/generators/worker/generator.mjs +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.71.223](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.223) (06/28/2026)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Upgrade workspace packages' dependencies ([fcc009e9d](https://github.com/storm-software/storm-ops/commit/fcc009e9d))
|
|
10
|
+
|
|
11
|
+
### Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated **config** to **v1.138.17**
|
|
14
|
+
- Updated **config-tools** to **v1.190.80**
|
|
15
|
+
- Updated **workspace-tools** to **v1.296.60**
|
|
16
|
+
|
|
5
17
|
## [0.71.222](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.222) (06/28/2026)
|
|
6
18
|
|
|
7
19
|
### Updated Dependencies
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -7,7 +7,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.71.
|
|
10
|
+
version: "0.71.223",
|
|
11
11
|
private: false,
|
|
12
12
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
13
13
|
keywords: [
|
|
@@ -9,7 +9,7 @@ var _chunkCLCKX6UNjs = require('./chunk-CLCKX6UN.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkNCVDTA5Mjs = require('./chunk-NCVDTA5M.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -56,7 +56,7 @@ async function runExecutor(options, context) {
|
|
|
56
56
|
const workspaceRoot = _chunkPGTHXO6Mjs.findWorkspaceRoot.call(void 0, );
|
|
57
57
|
const config = await _chunkPGTHXO6Mjs.getConfig.call(void 0, workspaceRoot);
|
|
58
58
|
const projectName = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.name]), () => ( context.projectName));
|
|
59
|
-
const projectDetails =
|
|
59
|
+
const projectDetails = _chunkNCVDTA5Mjs.getPackageInfo.call(void 0,
|
|
60
60
|
context.projectsConfigurations.projects[context.projectName]
|
|
61
61
|
);
|
|
62
62
|
const bucketId = options.bucketId;
|
|
@@ -64,7 +64,7 @@ async function runExecutor(options, context) {
|
|
|
64
64
|
if (!bucketId) {
|
|
65
65
|
throw new Error("The executor requires a bucketId.");
|
|
66
66
|
}
|
|
67
|
-
const args =
|
|
67
|
+
const args = _chunkNCVDTA5Mjs.createCliOptions.call(void 0, { ...options });
|
|
68
68
|
if (isDryRun) {
|
|
69
69
|
args.push("--dry-run");
|
|
70
70
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNCVDTA5Mjs = require('./chunk-NCVDTA5M.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkMCKGQKYUjs = require('./chunk-MCKGQKYU.js');
|
|
@@ -24,7 +24,7 @@ async function runExecutor(options, context) {
|
|
|
24
24
|
_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.root])
|
|
25
25
|
);
|
|
26
26
|
try {
|
|
27
|
-
const args =
|
|
27
|
+
const args = _chunkNCVDTA5Mjs.createCliOptions.call(void 0, { ...options });
|
|
28
28
|
if (isDryRun) {
|
|
29
29
|
args.push("--dry-run");
|
|
30
30
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkNCVDTA5Mjs = require('./chunk-NCVDTA5M.js');
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
|
|
4
7
|
|
|
5
8
|
|
|
@@ -229,6 +232,7 @@ var _devkit = require('@nx/devkit');
|
|
|
229
232
|
|
|
230
233
|
|
|
231
234
|
var _child_process = require('child_process');
|
|
235
|
+
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
232
236
|
var _path = require('path'); var path2 = _interopRequireWildcard(_path);
|
|
233
237
|
var INVALID_CARGO_ARGS = [
|
|
234
238
|
"allFeatures",
|
|
@@ -262,8 +266,17 @@ var buildCargoCommand = (baseCommand, options, context) => {
|
|
|
262
266
|
args.push(`--${key}`, String(value));
|
|
263
267
|
}
|
|
264
268
|
}
|
|
265
|
-
if (context.projectName) {
|
|
266
|
-
|
|
269
|
+
if (context.projectName && _optionalChain([context, 'access', _26 => _26.projectsConfigurations, 'optionalAccess', _27 => _27.projects]) && _optionalChain([context, 'access', _28 => _28.projectsConfigurations, 'optionalAccess', _29 => _29.projects, 'access', _30 => _30[context.projectName]]) && _optionalChain([context, 'access', _31 => _31.projectsConfigurations, 'optionalAccess', _32 => _32.projects, 'access', _33 => _33[context.projectName], 'optionalAccess', _34 => _34.root]) && _optionalChain([context, 'access', _35 => _35.projectsConfigurations, 'optionalAccess', _36 => _36.projects, 'access', _37 => _37[context.projectName], 'optionalAccess', _38 => _38.root, 'access', _39 => _39.includes, 'call', _40 => _40("Cargo.toml")])) {
|
|
270
|
+
const cargoToml = _chunkNCVDTA5Mjs.parseCargoToml.call(void 0,
|
|
271
|
+
_fs.readFileSync.call(void 0,
|
|
272
|
+
_devkit.joinPathFragments.call(void 0,
|
|
273
|
+
context.projectsConfigurations.projects[context.projectName].root,
|
|
274
|
+
"Cargo.toml"
|
|
275
|
+
),
|
|
276
|
+
"utf-8"
|
|
277
|
+
)
|
|
278
|
+
);
|
|
279
|
+
args.push("-p", cargoToml.package.name);
|
|
267
280
|
}
|
|
268
281
|
if (options.allFeatures && !args.includes("--all-features")) {
|
|
269
282
|
args.push("--all-features");
|
|
@@ -286,10 +299,10 @@ async function cargoCommand(workspaceRoot2, ...args) {
|
|
|
286
299
|
}
|
|
287
300
|
function cargoCommandSync(args = "", options) {
|
|
288
301
|
const normalizedOptions = {
|
|
289
|
-
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
302
|
+
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _41 => _41.stdio]), () => ( "inherit")),
|
|
290
303
|
env: {
|
|
291
304
|
...process.env,
|
|
292
|
-
..._optionalChain([options, 'optionalAccess',
|
|
305
|
+
..._optionalChain([options, 'optionalAccess', _42 => _42.env])
|
|
293
306
|
}
|
|
294
307
|
};
|
|
295
308
|
try {
|
|
@@ -322,7 +335,7 @@ function cargoMetadata() {
|
|
|
322
335
|
}
|
|
323
336
|
function runProcess(workspaceRoot2, processCmd, ...args) {
|
|
324
337
|
const metadata = cargoMetadata();
|
|
325
|
-
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess',
|
|
338
|
+
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _43 => _43.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, workspaceRoot2, "dist")));
|
|
326
339
|
return new Promise((resolve) => {
|
|
327
340
|
if (process.env.VERCEL) {
|
|
328
341
|
return resolve({ success: true });
|
|
@@ -453,7 +466,7 @@ var executor_default5 = withRunExecutor(
|
|
|
453
466
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
454
467
|
|
|
455
468
|
|
|
456
|
-
|
|
469
|
+
|
|
457
470
|
var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
458
471
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
459
472
|
|
|
@@ -591,7 +604,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
591
604
|
);
|
|
592
605
|
const localPackages = [];
|
|
593
606
|
for (const project of projectDependencies.dependencies.filter(
|
|
594
|
-
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access',
|
|
607
|
+
(dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _44 => _44.node, 'access', _45 => _45.data, 'optionalAccess', _46 => _46.root]) !== projectRoot && _optionalChain([dep, 'access', _47 => _47.node, 'access', _48 => _48.data, 'optionalAccess', _49 => _49.root]) !== workspaceRoot2
|
|
595
608
|
)) {
|
|
596
609
|
const projectNode = project.node;
|
|
597
610
|
if (projectNode.data.root) {
|
|
@@ -623,13 +636,13 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
623
636
|
const projectJson = JSON.parse(projectJsonFile);
|
|
624
637
|
const projectName2 = projectJson.name;
|
|
625
638
|
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
626
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
639
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _50 => _50.projects, 'optionalAccess', _51 => _51[projectName2]])) {
|
|
627
640
|
throw new Error(
|
|
628
641
|
"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."
|
|
629
642
|
);
|
|
630
643
|
}
|
|
631
|
-
const implicitDependencies = _optionalChain([projectConfigurations, 'access',
|
|
632
|
-
if (_optionalChain([projectConfigurations, 'access',
|
|
644
|
+
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _52 => _52.projects, 'optionalAccess', _53 => _53[projectName2], 'access', _54 => _54.implicitDependencies, 'optionalAccess', _55 => _55.reduce, 'call', _56 => _56((ret, dep) => {
|
|
645
|
+
if (_optionalChain([projectConfigurations, 'access', _57 => _57.projects, 'optionalAccess', _58 => _58[dep]])) {
|
|
633
646
|
const depPackageJsonPath = _chunkAWKQRM2Hjs.joinPaths.call(void 0,
|
|
634
647
|
workspaceRoot2,
|
|
635
648
|
projectConfigurations.projects[dep].root,
|
|
@@ -649,13 +662,13 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
649
662
|
return ret;
|
|
650
663
|
}, [])]);
|
|
651
664
|
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
652
|
-
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess',
|
|
665
|
+
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _59 => _59.includes, 'call', _60 => _60(localPackage.name)]) && _optionalChain([packageJson, 'access', _61 => _61.devDependencies, 'optionalAccess', _62 => _62[localPackage.name]]) === void 0) {
|
|
653
666
|
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
654
667
|
}
|
|
655
668
|
return ret;
|
|
656
669
|
}, _nullishCoalesce(packageJson.dependencies, () => ( {})));
|
|
657
670
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
658
|
-
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess',
|
|
671
|
+
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _63 => _63.includes, 'call', _64 => _64(localPackage.name)]) && _optionalChain([packageJson, 'access', _65 => _65.dependencies, 'optionalAccess', _66 => _66[localPackage.name]]) === void 0) {
|
|
659
672
|
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
660
673
|
}
|
|
661
674
|
return ret;
|
|
@@ -757,7 +770,7 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
757
770
|
|
|
758
771
|
// ../esbuild/src/assets.ts
|
|
759
772
|
async function copyBuildAssets(context) {
|
|
760
|
-
if (!_optionalChain([context, 'access',
|
|
773
|
+
if (!_optionalChain([context, 'access', _67 => _67.result, 'optionalAccess', _68 => _68.errors, 'access', _69 => _69.length]) && _optionalChain([context, 'access', _70 => _70.options, 'access', _71 => _71.assets, 'optionalAccess', _72 => _72.length])) {
|
|
761
774
|
_chunkAWKQRM2Hjs.writeDebug.call(void 0,
|
|
762
775
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
763
776
|
context.workspaceConfig
|
|
@@ -863,7 +876,7 @@ async function resolveContext(userOptions) {
|
|
|
863
876
|
const projectJson = JSON.parse(projectJsonFile);
|
|
864
877
|
const projectName = projectJson.name || userOptions.name;
|
|
865
878
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
866
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
879
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _73 => _73.projects, 'optionalAccess', _74 => _74[projectName]])) {
|
|
867
880
|
throw new Error(
|
|
868
881
|
"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."
|
|
869
882
|
);
|
|
@@ -1091,7 +1104,7 @@ async function executeTsup(context) {
|
|
|
1091
1104
|
|
|
1092
1105
|
// ../esbuild/src/build.ts
|
|
1093
1106
|
async function reportResults(context) {
|
|
1094
|
-
if (_optionalChain([context, 'access',
|
|
1107
|
+
if (_optionalChain([context, 'access', _75 => _75.result, 'optionalAccess', _76 => _76.errors, 'access', _77 => _77.length]) === 0) {
|
|
1095
1108
|
if (context.result.warnings.length > 0) {
|
|
1096
1109
|
_chunkAWKQRM2Hjs.writeWarning.call(void 0,
|
|
1097
1110
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
@@ -1102,7 +1115,7 @@ async function reportResults(context) {
|
|
|
1102
1115
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
1103
1116
|
context.workspaceConfig
|
|
1104
1117
|
);
|
|
1105
|
-
} else if (_optionalChain([context, 'access',
|
|
1118
|
+
} else if (_optionalChain([context, 'access', _78 => _78.result, 'optionalAccess', _79 => _79.errors]) && _optionalChain([context, 'access', _80 => _80.result, 'optionalAccess', _81 => _81.errors, 'access', _82 => _82.length]) > 0) {
|
|
1106
1119
|
_chunkAWKQRM2Hjs.writeError.call(void 0,
|
|
1107
1120
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
1108
1121
|
context.workspaceConfig
|
|
@@ -1155,7 +1168,7 @@ async function build2(options) {
|
|
|
1155
1168
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1156
1169
|
async function esbuildExecutorFn(options, context, config) {
|
|
1157
1170
|
_chunkAWKQRM2Hjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1158
|
-
if (!_optionalChain([context, 'access',
|
|
1171
|
+
if (!_optionalChain([context, 'access', _83 => _83.projectsConfigurations, 'optionalAccess', _84 => _84.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _85 => _85.projectsConfigurations, 'access', _86 => _86.projects, 'access', _87 => _87[context.projectName], 'optionalAccess', _88 => _88.root])) {
|
|
1159
1172
|
throw new Error(
|
|
1160
1173
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
1161
1174
|
);
|
|
@@ -1164,10 +1177,10 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
1164
1177
|
...options,
|
|
1165
1178
|
projectRoot: (
|
|
1166
1179
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1167
|
-
_optionalChain([context, 'access',
|
|
1180
|
+
_optionalChain([context, 'access', _89 => _89.projectsConfigurations, 'access', _90 => _90.projects, 'optionalAccess', _91 => _91[context.projectName], 'access', _92 => _92.root])
|
|
1168
1181
|
),
|
|
1169
1182
|
name: context.projectName,
|
|
1170
|
-
sourceRoot: _optionalChain([context, 'access',
|
|
1183
|
+
sourceRoot: _optionalChain([context, 'access', _93 => _93.projectsConfigurations, 'access', _94 => _94.projects, 'optionalAccess', _95 => _95[context.projectName], 'optionalAccess', _96 => _96.sourceRoot]),
|
|
1171
1184
|
format: options.format,
|
|
1172
1185
|
platform: options.platform
|
|
1173
1186
|
});
|
|
@@ -1206,12 +1219,12 @@ async function napiExecutor(options, context, config) {
|
|
|
1206
1219
|
const { NapiCli } = await jiti.import(
|
|
1207
1220
|
jiti.esmResolve("@napi-rs/cli")
|
|
1208
1221
|
);
|
|
1209
|
-
if (!_optionalChain([context, 'access',
|
|
1222
|
+
if (!_optionalChain([context, 'access', _97 => _97.projectGraph, 'optionalAccess', _98 => _98.nodes, 'access', _99 => _99[_nullishCoalesce(context.projectName, () => ( ""))]])) {
|
|
1210
1223
|
throw new Error(
|
|
1211
1224
|
"The Napi Build process failed because the project could not be found in the project graph. Please run this command from a workspace root directory."
|
|
1212
1225
|
);
|
|
1213
1226
|
}
|
|
1214
|
-
const projectRoot = _optionalChain([context, 'access',
|
|
1227
|
+
const projectRoot = _optionalChain([context, 'access', _100 => _100.projectGraph, 'optionalAccess', _101 => _101.nodes, 'access', _102 => _102[_nullishCoalesce(context.projectName, () => ( ""))], 'optionalAccess', _103 => _103.data, 'access', _104 => _104.root]);
|
|
1215
1228
|
const packageJson = _chunkAWKQRM2Hjs.joinPaths.call(void 0, _nullishCoalesce(projectRoot, () => ( ".")), "package.json");
|
|
1216
1229
|
if (!_fileutils.fileExists.call(void 0, packageJson)) {
|
|
1217
1230
|
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
@@ -1219,7 +1232,7 @@ async function napiExecutor(options, context, config) {
|
|
|
1219
1232
|
const napi = new NapiCli();
|
|
1220
1233
|
const normalizedOptions = { ...options };
|
|
1221
1234
|
const metadata = cargoMetadata();
|
|
1222
|
-
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess',
|
|
1235
|
+
normalizedOptions.targetDir = options.targetDir || _optionalChain([metadata, 'optionalAccess', _105 => _105.target_directory]) || _chunkAWKQRM2Hjs.joinPaths.call(void 0, config.workspaceRoot, "dist", "target");
|
|
1223
1236
|
normalizedOptions.outputDir = options.outputPath;
|
|
1224
1237
|
normalizedOptions.packageJsonPath ??= packageJson;
|
|
1225
1238
|
if (options.cwd) {
|
|
@@ -1342,15 +1355,15 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
|
|
|
1342
1355
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
1343
1356
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
1344
1357
|
async function sizeLimitExecutorFn(options, context, config) {
|
|
1345
|
-
if (!_optionalChain([context, 'optionalAccess',
|
|
1358
|
+
if (!_optionalChain([context, 'optionalAccess', _106 => _106.projectName]) || !_optionalChain([context, 'access', _107 => _107.projectsConfigurations, 'optionalAccess', _108 => _108.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1346
1359
|
throw new Error(
|
|
1347
1360
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
1348
1361
|
);
|
|
1349
1362
|
}
|
|
1350
1363
|
_chunkAWKQRM2Hjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
1351
1364
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
1352
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access',
|
|
1353
|
-
_nullishCoalesce(_optionalChain([context, 'access',
|
|
1365
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _109 => _109.projectsConfigurations, 'access', _110 => _110.projects, 'access', _111 => _111[context.projectName], 'optionalAccess', _112 => _112.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
1366
|
+
_nullishCoalesce(_optionalChain([context, 'access', _113 => _113.projectsConfigurations, 'access', _114 => _114.projects, 'access', _115 => _115[context.projectName], 'optionalAccess', _116 => _116.root]), () => ( "./")),
|
|
1354
1367
|
"src"
|
|
1355
1368
|
)))
|
|
1356
1369
|
}).then((result) => {
|
|
@@ -1448,7 +1461,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
1448
1461
|
const projectJson = JSON.parse(projectJsonFile);
|
|
1449
1462
|
const projectName = projectJson.name;
|
|
1450
1463
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
1451
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
1464
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _117 => _117.projects, 'optionalAccess', _118 => _118[projectName]])) {
|
|
1452
1465
|
throw new Error(
|
|
1453
1466
|
"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."
|
|
1454
1467
|
);
|
|
@@ -1669,7 +1682,7 @@ async function build3(options) {
|
|
|
1669
1682
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
1670
1683
|
async function tsdownExecutorFn(options, context, config) {
|
|
1671
1684
|
_chunkAWKQRM2Hjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
1672
|
-
if (!_optionalChain([context, 'access',
|
|
1685
|
+
if (!_optionalChain([context, 'access', _119 => _119.projectsConfigurations, 'optionalAccess', _120 => _120.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _121 => _121.projectsConfigurations, 'access', _122 => _122.projects, 'access', _123 => _123[context.projectName], 'optionalAccess', _124 => _124.root])) {
|
|
1673
1686
|
throw new Error(
|
|
1674
1687
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
1675
1688
|
);
|
|
@@ -1678,10 +1691,10 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
1678
1691
|
...options,
|
|
1679
1692
|
projectRoot: (
|
|
1680
1693
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1681
|
-
_optionalChain([context, 'access',
|
|
1694
|
+
_optionalChain([context, 'access', _125 => _125.projectsConfigurations, 'access', _126 => _126.projects, 'optionalAccess', _127 => _127[context.projectName], 'access', _128 => _128.root])
|
|
1682
1695
|
),
|
|
1683
1696
|
name: context.projectName,
|
|
1684
|
-
sourceRoot: _optionalChain([context, 'access',
|
|
1697
|
+
sourceRoot: _optionalChain([context, 'access', _129 => _129.projectsConfigurations, 'access', _130 => _130.projects, 'optionalAccess', _131 => _131[context.projectName], 'optionalAccess', _132 => _132.sourceRoot]),
|
|
1685
1698
|
format: options.format,
|
|
1686
1699
|
platform: options.platform
|
|
1687
1700
|
});
|
|
@@ -1749,7 +1762,7 @@ var executor_default10 = withRunExecutor(
|
|
|
1749
1762
|
|
|
1750
1763
|
async function unbuildExecutorFn(options, context, config) {
|
|
1751
1764
|
_chunkAWKQRM2Hjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1752
|
-
if (!_optionalChain([context, 'access',
|
|
1765
|
+
if (!_optionalChain([context, 'access', _133 => _133.projectsConfigurations, 'optionalAccess', _134 => _134.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1753
1766
|
throw new Error(
|
|
1754
1767
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
1755
1768
|
);
|
|
@@ -1866,7 +1879,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
1866
1879
|
);
|
|
1867
1880
|
config = await _chunkPGTHXO6Mjs.getConfig.call(void 0, workspaceRoot2);
|
|
1868
1881
|
}
|
|
1869
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1882
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _135 => _135.hooks, 'optionalAccess', _136 => _136.applyDefaultOptions])) {
|
|
1870
1883
|
_chunkAWKQRM2Hjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1871
1884
|
options = await Promise.resolve(
|
|
1872
1885
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
@@ -1883,7 +1896,7 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1883
1896
|
{ workspaceRoot: tree.root, config },
|
|
1884
1897
|
applyWorkspaceBaseTokens
|
|
1885
1898
|
);
|
|
1886
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1899
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _137 => _137.hooks, 'optionalAccess', _138 => _138.preProcess])) {
|
|
1887
1900
|
_chunkAWKQRM2Hjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1888
1901
|
await Promise.resolve(
|
|
1889
1902
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
@@ -1894,15 +1907,15 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1894
1907
|
generatorFn(tree, tokenized, config)
|
|
1895
1908
|
);
|
|
1896
1909
|
if (result) {
|
|
1897
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
1910
|
+
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _139 => _139.error, 'optionalAccess', _140 => _140.message]) && typeof _optionalChain([result, 'optionalAccess', _141 => _141.error, 'optionalAccess', _142 => _142.message]) === "string" && _optionalChain([result, 'optionalAccess', _143 => _143.error, 'optionalAccess', _144 => _144.name]) && typeof _optionalChain([result, 'optionalAccess', _145 => _145.error, 'optionalAccess', _146 => _146.name]) === "string") {
|
|
1898
1911
|
throw new Error(`The ${name} generator failed to run`, {
|
|
1899
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
1912
|
+
cause: _optionalChain([result, 'optionalAccess', _147 => _147.error])
|
|
1900
1913
|
});
|
|
1901
1914
|
} else if (result.success && result.data) {
|
|
1902
1915
|
return result;
|
|
1903
1916
|
}
|
|
1904
1917
|
}
|
|
1905
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1918
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _148 => _148.hooks, 'optionalAccess', _149 => _149.postProcess])) {
|
|
1906
1919
|
_chunkAWKQRM2Hjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1907
1920
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1908
1921
|
_chunkAWKQRM2Hjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
@@ -2034,15 +2047,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2034
2047
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
2035
2048
|
let repository = {
|
|
2036
2049
|
type: "github",
|
|
2037
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
2050
|
+
url: _optionalChain([config, 'optionalAccess', _150 => _150.repository]) || `https://github.com/${(typeof _optionalChain([config, 'optionalAccess', _151 => _151.organization]) === "string" ? _optionalChain([config, 'optionalAccess', _152 => _152.organization]) : _optionalChain([config, 'optionalAccess', _153 => _153.organization, 'optionalAccess', _154 => _154.name])) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _155 => _155.namespace]) || _optionalChain([config, 'optionalAccess', _156 => _156.name]) || "repository"}.git`
|
|
2038
2051
|
};
|
|
2039
2052
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
2040
2053
|
if (tree.exists("package.json")) {
|
|
2041
2054
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2042
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2055
|
+
if (_optionalChain([packageJson, 'optionalAccess', _157 => _157.repository])) {
|
|
2043
2056
|
repository = packageJson.repository;
|
|
2044
2057
|
}
|
|
2045
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2058
|
+
if (_optionalChain([packageJson, 'optionalAccess', _158 => _158.description])) {
|
|
2046
2059
|
description = packageJson.description;
|
|
2047
2060
|
}
|
|
2048
2061
|
}
|
|
@@ -2097,9 +2110,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2097
2110
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
2098
2111
|
...json,
|
|
2099
2112
|
pnpm: {
|
|
2100
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2113
|
+
..._optionalChain([json, 'optionalAccess', _159 => _159.pnpm]),
|
|
2101
2114
|
overrides: {
|
|
2102
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2115
|
+
..._optionalChain([json, 'optionalAccess', _160 => _160.pnpm, 'optionalAccess', _161 => _161.overrides]),
|
|
2103
2116
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
2104
2117
|
}
|
|
2105
2118
|
}
|
|
@@ -2117,10 +2130,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2117
2130
|
]);
|
|
2118
2131
|
if (tree.exists("package.json")) {
|
|
2119
2132
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2120
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2133
|
+
if (_optionalChain([packageJson, 'optionalAccess', _162 => _162.repository])) {
|
|
2121
2134
|
repository = packageJson.repository;
|
|
2122
2135
|
}
|
|
2123
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2136
|
+
if (_optionalChain([packageJson, 'optionalAccess', _163 => _163.description])) {
|
|
2124
2137
|
description = packageJson.description;
|
|
2125
2138
|
}
|
|
2126
2139
|
}
|
|
@@ -2157,22 +2170,22 @@ function getOutputPath(options) {
|
|
|
2157
2170
|
function createProjectTsConfigJson(tree, options) {
|
|
2158
2171
|
const tsconfig = {
|
|
2159
2172
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
2160
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2173
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _164 => _164.tsconfigOptions]), () => ( {})),
|
|
2161
2174
|
compilerOptions: {
|
|
2162
2175
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2163
2176
|
outDir: _chunkAWKQRM2Hjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2164
2177
|
noEmit: true,
|
|
2165
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2178
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _165 => _165.tsconfigOptions, 'optionalAccess', _166 => _166.compilerOptions]), () => ( {}))
|
|
2166
2179
|
},
|
|
2167
|
-
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2180
|
+
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _167 => _167.tsconfigOptions, 'optionalAccess', _168 => _168.files]), () => ( []))],
|
|
2168
2181
|
include: [
|
|
2169
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2182
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _169 => _169.tsconfigOptions, 'optionalAccess', _170 => _170.include]), () => ( [])),
|
|
2170
2183
|
"src/**/*.ts",
|
|
2171
2184
|
"src/**/*.js",
|
|
2172
2185
|
"bin/**/*"
|
|
2173
2186
|
],
|
|
2174
2187
|
exclude: [
|
|
2175
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2188
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _171 => _171.tsconfigOptions, 'optionalAccess', _172 => _172.exclude]), () => ( [])),
|
|
2176
2189
|
"jest.config.ts",
|
|
2177
2190
|
"src/**/*.spec.ts",
|
|
2178
2191
|
"src/**/*.test.ts"
|
|
@@ -2182,8 +2195,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2182
2195
|
}
|
|
2183
2196
|
async function normalizeOptions(tree, options, config) {
|
|
2184
2197
|
let importPath = options.importPath;
|
|
2185
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
2186
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
2198
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _173 => _173.namespace])) {
|
|
2199
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _174 => _174.namespace])}/${options.name}`;
|
|
2187
2200
|
}
|
|
2188
2201
|
if (options.publishable) {
|
|
2189
2202
|
if (!importPath) {
|
|
@@ -2348,7 +2361,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
2348
2361
|
);
|
|
2349
2362
|
}
|
|
2350
2363
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
2351
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
2364
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _175 => _175.workspaceRoot]), () => ( _chunkPGTHXO6Mjs.findWorkspaceRoot.call(void 0, ))),
|
|
2352
2365
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
2353
2366
|
);
|
|
2354
2367
|
_chunkAWKQRM2Hjs.writeTrace.call(void 0,
|
|
@@ -7,7 +7,7 @@ var require_package = __commonJS({
|
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.71.
|
|
10
|
+
version: "0.71.223",
|
|
11
11
|
private: false,
|
|
12
12
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
13
13
|
keywords: [
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
parseCargoToml
|
|
3
|
+
} from "./chunk-ZXLMDNFQ.mjs";
|
|
1
4
|
import {
|
|
2
5
|
findWorkspaceRoot,
|
|
3
6
|
getConfig,
|
|
@@ -232,6 +235,7 @@ import {
|
|
|
232
235
|
execSync,
|
|
233
236
|
spawn
|
|
234
237
|
} from "node:child_process";
|
|
238
|
+
import { readFileSync } from "node:fs";
|
|
235
239
|
import { relative as relative2 } from "node:path";
|
|
236
240
|
var INVALID_CARGO_ARGS = [
|
|
237
241
|
"allFeatures",
|
|
@@ -265,8 +269,17 @@ var buildCargoCommand = (baseCommand, options, context) => {
|
|
|
265
269
|
args.push(`--${key}`, String(value));
|
|
266
270
|
}
|
|
267
271
|
}
|
|
268
|
-
if (context.projectName) {
|
|
269
|
-
|
|
272
|
+
if (context.projectName && context.projectsConfigurations?.projects && context.projectsConfigurations?.projects[context.projectName] && context.projectsConfigurations?.projects[context.projectName]?.root && context.projectsConfigurations?.projects[context.projectName]?.root.includes("Cargo.toml")) {
|
|
273
|
+
const cargoToml = parseCargoToml(
|
|
274
|
+
readFileSync(
|
|
275
|
+
joinPathFragments(
|
|
276
|
+
context.projectsConfigurations.projects[context.projectName].root,
|
|
277
|
+
"Cargo.toml"
|
|
278
|
+
),
|
|
279
|
+
"utf-8"
|
|
280
|
+
)
|
|
281
|
+
);
|
|
282
|
+
args.push("-p", cargoToml.package.name);
|
|
270
283
|
}
|
|
271
284
|
if (options.allFeatures && !args.includes("--all-features")) {
|
|
272
285
|
args.push("--all-features");
|
|
@@ -456,7 +469,7 @@ var executor_default5 = withRunExecutor(
|
|
|
456
469
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
457
470
|
import { joinPathFragments as joinPathFragments2 } from "@nx/devkit";
|
|
458
471
|
import { execSync as execSync2 } from "node:child_process";
|
|
459
|
-
import { readFileSync } from "node:fs";
|
|
472
|
+
import { readFileSync as readFileSync2 } from "node:fs";
|
|
460
473
|
import https from "node:https";
|
|
461
474
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
462
475
|
|
|
@@ -563,7 +576,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
563
576
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
564
577
|
import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
|
|
565
578
|
import { Glob } from "glob";
|
|
566
|
-
import { existsSync, readFileSync as
|
|
579
|
+
import { existsSync, readFileSync as readFileSync3 } from "node:fs";
|
|
567
580
|
import { readFile as readFile2 } from "node:fs/promises";
|
|
568
581
|
import {
|
|
569
582
|
createProjectGraphAsync,
|
|
@@ -639,7 +652,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
639
652
|
"package.json"
|
|
640
653
|
);
|
|
641
654
|
if (existsSync(depPackageJsonPath)) {
|
|
642
|
-
const depPackageJsonContent =
|
|
655
|
+
const depPackageJsonContent = readFileSync3(
|
|
643
656
|
depPackageJsonPath,
|
|
644
657
|
"utf8"
|
|
645
658
|
);
|
|
@@ -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 _chunk4WESWVMRjs = require('./chunk-4WESWVMR.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -70,7 +70,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
70
70
|
const options = await normalizeOptions(tree, schema, config);
|
|
71
71
|
const tasks = [];
|
|
72
72
|
tasks.push(
|
|
73
|
-
await
|
|
73
|
+
await _chunk4WESWVMRjs.generator_default.call(void 0, tree, {
|
|
74
74
|
...options,
|
|
75
75
|
skipFormat: true
|
|
76
76
|
})
|
package/dist/executors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";require('./chunk-XO66D74Z.js');
|
|
2
|
-
require('./chunk-
|
|
2
|
+
require('./chunk-62X6T4SY.js');
|
|
3
3
|
require('./chunk-KUGEZPUO.js');
|
|
4
4
|
require('./chunk-CLCKX6UN.js');
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-HNDXHX7M.js');
|
|
6
|
+
require('./chunk-VFK7WI6O.js');
|
|
7
|
+
require('./chunk-NCVDTA5M.js');
|
|
8
8
|
require('./chunk-PGTHXO6M.js');
|
|
9
9
|
require('./chunk-FBLD25X4.js');
|
|
10
10
|
require('./chunk-AWKQRM2H.js');
|
package/dist/executors.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./chunk-YSCEY447.mjs";
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-3E2GFJMN.mjs";
|
|
3
3
|
import "./chunk-SWYYMID7.mjs";
|
|
4
4
|
import "./chunk-BY7MA3SM.mjs";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-NPLOIBSW.mjs";
|
|
6
|
+
import "./chunk-WYT4G6BW.mjs";
|
|
7
|
+
import "./chunk-ZXLMDNFQ.mjs";
|
|
8
8
|
import "./chunk-5MAMLVMV.mjs";
|
|
9
9
|
import "./chunk-CSTZEHUP.mjs";
|
|
10
10
|
import "./chunk-K4H5ZMYA.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXSO2NEF3js = require('./chunk-XSO2NEF3.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk4WESWVMRjs = require('./chunk-4WESWVMR.js');
|
|
10
10
|
require('./chunk-PGTHXO6M.js');
|
|
11
11
|
require('./chunk-AWKQRM2H.js');
|
|
12
12
|
require('./chunk-MCKGQKYU.js');
|
|
@@ -15,4 +15,4 @@ require('./chunk-MCKGQKYU.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.applicationGenerator =
|
|
18
|
+
exports.applicationGenerator = _chunkXSO2NEF3js.applicationGenerator; exports.applicationSchematic = _chunkXSO2NEF3js.applicationSchematic; exports.initGenerator = _chunk4WESWVMRjs.initGenerator; exports.initSchematic = _chunk4WESWVMRjs.initSchematic;
|
package/dist/generators.mjs
CHANGED
|
@@ -2,11 +2,11 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
applicationGenerator,
|
|
4
4
|
applicationSchematic
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NTAVFPAR.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator,
|
|
8
8
|
initSchematic
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WO7IPWNX.mjs";
|
|
10
10
|
import "./chunk-5MAMLVMV.mjs";
|
|
11
11
|
import "./chunk-K4H5ZMYA.mjs";
|
|
12
12
|
import "./chunk-KDPTLM6V.mjs";
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-XO66D74Z.js');
|
|
2
|
-
require('./chunk-
|
|
2
|
+
require('./chunk-62X6T4SY.js');
|
|
3
3
|
require('./chunk-DHBG5ASJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXSO2NEF3js = require('./chunk-XSO2NEF3.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk4WESWVMRjs = require('./chunk-4WESWVMR.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -21,9 +21,9 @@ require('./chunk-CVGPWUNP.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkCLCKX6UNjs = require('./chunk-CLCKX6UN.js');
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-HNDXHX7M.js');
|
|
25
|
+
require('./chunk-VFK7WI6O.js');
|
|
26
|
+
require('./chunk-NCVDTA5M.js');
|
|
27
27
|
require('./chunk-PGTHXO6M.js');
|
|
28
28
|
require('./chunk-FBLD25X4.js');
|
|
29
29
|
require('./chunk-AWKQRM2H.js');
|
|
@@ -39,4 +39,4 @@ require('./chunk-MCKGQKYU.js');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
exports.applicationGenerator =
|
|
42
|
+
exports.applicationGenerator = _chunkXSO2NEF3js.applicationGenerator; exports.applicationSchematic = _chunkXSO2NEF3js.applicationSchematic; exports.createNodesV2 = _chunkVJLWHQ5Bjs.createNodesV2; exports.getEncoding = _chunkCLCKX6UNjs.getEncoding; exports.getInternalDependencies = _chunkCLCKX6UNjs.getInternalDependencies; exports.initGenerator = _chunk4WESWVMRjs.initGenerator; exports.initSchematic = _chunk4WESWVMRjs.initSchematic; exports.isTextFile = _chunkCLCKX6UNjs.isTextFile; exports.name = _chunkVJLWHQ5Bjs.name; exports.uploadFile = _chunkCLCKX6UNjs.uploadFile;
|
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./chunk-YSCEY447.mjs";
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-3E2GFJMN.mjs";
|
|
3
3
|
import "./chunk-3J7KBHMJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
applicationGenerator,
|
|
6
6
|
applicationSchematic
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NTAVFPAR.mjs";
|
|
8
8
|
import {
|
|
9
9
|
initGenerator,
|
|
10
10
|
initSchematic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WO7IPWNX.mjs";
|
|
12
12
|
import {
|
|
13
13
|
createNodesV2,
|
|
14
14
|
name
|
|
@@ -21,9 +21,9 @@ import {
|
|
|
21
21
|
isTextFile,
|
|
22
22
|
uploadFile
|
|
23
23
|
} from "./chunk-BY7MA3SM.mjs";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-NPLOIBSW.mjs";
|
|
25
|
+
import "./chunk-WYT4G6BW.mjs";
|
|
26
|
+
import "./chunk-ZXLMDNFQ.mjs";
|
|
27
27
|
import "./chunk-5MAMLVMV.mjs";
|
|
28
28
|
import "./chunk-CSTZEHUP.mjs";
|
|
29
29
|
import "./chunk-K4H5ZMYA.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
require('../../../chunk-
|
|
3
|
+
var _chunkHNDXHX7Mjs = require('../../../chunk-HNDXHX7M.js');
|
|
4
|
+
require('../../../chunk-VFK7WI6O.js');
|
|
5
|
+
require('../../../chunk-NCVDTA5M.js');
|
|
6
6
|
require('../../../chunk-PGTHXO6M.js');
|
|
7
7
|
require('../../../chunk-FBLD25X4.js');
|
|
8
8
|
require('../../../chunk-AWKQRM2H.js');
|
|
9
9
|
require('../../../chunk-MCKGQKYU.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.default =
|
|
12
|
+
exports.default = _chunkHNDXHX7Mjs.runExecutor;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-NPLOIBSW.mjs";
|
|
4
|
+
import "../../../chunk-WYT4G6BW.mjs";
|
|
5
|
+
import "../../../chunk-ZXLMDNFQ.mjs";
|
|
6
6
|
import "../../../chunk-5MAMLVMV.mjs";
|
|
7
7
|
import "../../../chunk-CSTZEHUP.mjs";
|
|
8
8
|
import "../../../chunk-K4H5ZMYA.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk62X6T4SYjs = require('../../../chunk-62X6T4SY.js');
|
|
4
4
|
require('../../../chunk-KUGEZPUO.js');
|
|
5
5
|
require('../../../chunk-CLCKX6UN.js');
|
|
6
|
-
require('../../../chunk-
|
|
6
|
+
require('../../../chunk-NCVDTA5M.js');
|
|
7
7
|
require('../../../chunk-PGTHXO6M.js');
|
|
8
8
|
require('../../../chunk-FBLD25X4.js');
|
|
9
9
|
require('../../../chunk-AWKQRM2H.js');
|
|
10
10
|
require('../../../chunk-MCKGQKYU.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.default =
|
|
13
|
+
exports.default = _chunk62X6T4SYjs.runExecutor;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-3E2GFJMN.mjs";
|
|
4
4
|
import "../../../chunk-SWYYMID7.mjs";
|
|
5
5
|
import "../../../chunk-BY7MA3SM.mjs";
|
|
6
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-ZXLMDNFQ.mjs";
|
|
7
7
|
import "../../../chunk-5MAMLVMV.mjs";
|
|
8
8
|
import "../../../chunk-CSTZEHUP.mjs";
|
|
9
9
|
import "../../../chunk-K4H5ZMYA.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkVFK7WI6Ojs = require('../../../chunk-VFK7WI6O.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNCVDTA5Mjs = require('../../../chunk-NCVDTA5M.js');
|
|
7
7
|
require('../../../chunk-PGTHXO6M.js');
|
|
8
8
|
require('../../../chunk-FBLD25X4.js');
|
|
9
9
|
require('../../../chunk-AWKQRM2H.js');
|
|
@@ -20,7 +20,7 @@ async function* serveExecutor(options, context) {
|
|
|
20
20
|
throw new Error("Nx executor context was invalid");
|
|
21
21
|
}
|
|
22
22
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
23
|
-
const wranglerOptions =
|
|
23
|
+
const wranglerOptions = _chunkNCVDTA5Mjs.createCliOptions.call(void 0, { ...options });
|
|
24
24
|
const wranglerBin = _chunkMCKGQKYUjs.__require.resolve("wrangler/bin/wrangler");
|
|
25
25
|
yield* _asynciterable.createAsyncIterable.call(void 0,
|
|
26
26
|
async ({ done, next, error }) => {
|
|
@@ -56,7 +56,7 @@ async function* serveExecutor(options, context) {
|
|
|
56
56
|
success: true
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
var executor_default =
|
|
59
|
+
var executor_default = _chunkVFK7WI6Ojs.withRunExecutor.call(void 0,
|
|
60
60
|
"Cloudflare Serve executor",
|
|
61
61
|
serveExecutor,
|
|
62
62
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-WYT4G6BW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createCliOptions
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-ZXLMDNFQ.mjs";
|
|
7
7
|
import "../../../chunk-5MAMLVMV.mjs";
|
|
8
8
|
import "../../../chunk-CSTZEHUP.mjs";
|
|
9
9
|
import "../../../chunk-K4H5ZMYA.mjs";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk4WESWVMRjs = require('../../../chunk-4WESWVMR.js');
|
|
6
6
|
require('../../../chunk-MCKGQKYU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunk4WESWVMRjs.generator_default; exports.initGenerator = _chunk4WESWVMRjs.initGenerator; exports.initSchematic = _chunk4WESWVMRjs.initSchematic;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
5
|
+
var _chunkXSO2NEF3js = require('../../../chunk-XSO2NEF3.js');
|
|
6
|
+
require('../../../chunk-4WESWVMR.js');
|
|
7
7
|
require('../../../chunk-PGTHXO6M.js');
|
|
8
8
|
require('../../../chunk-AWKQRM2H.js');
|
|
9
9
|
require('../../../chunk-MCKGQKYU.js');
|
|
@@ -11,4 +11,4 @@ require('../../../chunk-MCKGQKYU.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.applicationGenerator =
|
|
14
|
+
exports.applicationGenerator = _chunkXSO2NEF3js.applicationGenerator; exports.applicationSchematic = _chunkXSO2NEF3js.applicationSchematic; exports.default = _chunkXSO2NEF3js.generator_default;
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
applicationGenerator,
|
|
3
3
|
applicationSchematic,
|
|
4
4
|
generator_default
|
|
5
|
-
} from "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
5
|
+
} from "../../../chunk-NTAVFPAR.mjs";
|
|
6
|
+
import "../../../chunk-WO7IPWNX.mjs";
|
|
7
7
|
import "../../../chunk-5MAMLVMV.mjs";
|
|
8
8
|
import "../../../chunk-K4H5ZMYA.mjs";
|
|
9
9
|
import "../../../chunk-KDPTLM6V.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/cloudflare-tools",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.224",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
6
6
|
"keywords": [
|
|
@@ -144,9 +144,9 @@
|
|
|
144
144
|
"@aws-sdk/client-s3": "^3.1075.0",
|
|
145
145
|
"@aws-sdk/lib-storage": "^3.1075.0",
|
|
146
146
|
"@smithy/node-http-handler": "^4.8.2",
|
|
147
|
-
"@storm-software/config": "1.138.
|
|
148
|
-
"@storm-software/config-tools": "1.190.
|
|
149
|
-
"@storm-software/workspace-tools": "1.296.
|
|
147
|
+
"@storm-software/config": "1.138.18",
|
|
148
|
+
"@storm-software/config-tools": "1.190.81",
|
|
149
|
+
"@storm-software/workspace-tools": "1.296.61",
|
|
150
150
|
"defu": "^6.1.7",
|
|
151
151
|
"glob": "^11.1.0",
|
|
152
152
|
"mime-types": "^3.0.2",
|
|
@@ -171,5 +171,5 @@
|
|
|
171
171
|
"publishConfig": { "access": "public" },
|
|
172
172
|
"executors": "./executors.json",
|
|
173
173
|
"generators": "./generators.json",
|
|
174
|
-
"gitHead": "
|
|
174
|
+
"gitHead": "61f91d519ffe77bde1a06627ba2d7dcda4c7ce20"
|
|
175
175
|
}
|