@storm-software/cloudflare-tools 0.55.19 → 0.55.21
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-3GBUWFDY.js → chunk-5WDALT4X.js} +1 -1
- package/dist/{chunk-ZPZYYSN3.mjs → chunk-AHEAMC5D.mjs} +5 -5
- package/dist/{chunk-NU6KVH6M.mjs → chunk-C7LFNTNE.mjs} +38 -24
- package/dist/{chunk-MMV7N7QY.mjs → chunk-IMI2SM4Q.mjs} +1 -1
- package/dist/{chunk-XU6MTFCV.mjs → chunk-KFNKJP2U.mjs} +1 -1
- package/dist/{chunk-2NMEF6LP.mjs → chunk-LI7SJBJ3.mjs} +2 -2
- package/dist/{chunk-HXUMSWIK.mjs → chunk-PAM7JMC5.mjs} +2 -2
- package/dist/{chunk-QEWY5YJA.mjs → chunk-PDHMNSTI.mjs} +2 -2
- package/dist/{chunk-NB2S3V4K.mjs → chunk-R5IK37XB.mjs} +4 -4
- package/dist/{chunk-WQCCOPHE.js → chunk-VN5NKV4M.js} +2 -2
- package/dist/{chunk-DEAG3BRL.mjs → chunk-WBCAYK6X.mjs} +2 -2
- package/dist/{chunk-A7FFSBE6.mjs → chunk-Y3XZCCPP.mjs} +1 -1
- package/dist/{chunk-AOQHEVKD.js → chunk-ZO73VQJ6.js} +72 -58
- 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 +6 -6
- 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.mjs +6 -6
- 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.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 0.55.21 (2025-02-02)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous
|
|
4
|
+
|
|
5
|
+
- **monorepo:** Regenerate README markdown files ([e3b80ea7](https://github.com/storm-software/storm-ops/commit/e3b80ea7))
|
|
6
|
+
|
|
7
|
+
## 0.55.20 (2025-02-01)
|
|
8
|
+
|
|
9
|
+
### Miscellaneous
|
|
10
|
+
|
|
11
|
+
- **monorepo:** Regenerate README markdown files ([af5c80fa](https://github.com/storm-software/storm-ops/commit/af5c80fa))
|
|
12
|
+
|
|
1
13
|
## 0.55.19 (2025-01-29)
|
|
2
14
|
|
|
3
15
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -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.21",
|
|
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",
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getInternalDependencies,
|
|
3
3
|
r2UploadFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PAM7JMC5.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCliOptions,
|
|
7
7
|
getPackageInfo
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KFNKJP2U.mjs";
|
|
9
9
|
import {
|
|
10
10
|
getConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LI7SJBJ3.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-IMI2SM4Q.mjs";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Y3XZCCPP.mjs";
|
|
22
22
|
|
|
23
23
|
// src/executors/r2-upload-publish/executor.ts
|
|
24
24
|
import { S3 } from "@aws-sdk/client-s3";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProjectTagConstants,
|
|
3
3
|
addProjectTag
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KFNKJP2U.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LI7SJBJ3.mjs";
|
|
8
8
|
import {
|
|
9
9
|
StormConfigSchema,
|
|
10
10
|
correctPaths,
|
|
@@ -20,12 +20,12 @@ import {
|
|
|
20
20
|
writeSuccess,
|
|
21
21
|
writeTrace,
|
|
22
22
|
writeWarning
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IMI2SM4Q.mjs";
|
|
24
24
|
import {
|
|
25
25
|
__dirname,
|
|
26
26
|
__name,
|
|
27
27
|
__require
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-Y3XZCCPP.mjs";
|
|
29
29
|
|
|
30
30
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
31
31
|
var applyWorkspaceBaseTokens = /* @__PURE__ */ __name(async (option, tokenParams) => {
|
|
@@ -423,7 +423,7 @@ import https from "node:https";
|
|
|
423
423
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
424
424
|
|
|
425
425
|
// ../esbuild/src/build.ts
|
|
426
|
-
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph, writeJsonFile } from "@nx/devkit";
|
|
426
|
+
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile } from "@nx/devkit";
|
|
427
427
|
|
|
428
428
|
// ../build-tools/src/config.ts
|
|
429
429
|
var DEFAULT_COMPILED_BANNER = `
|
|
@@ -507,11 +507,12 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
507
507
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
508
508
|
import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
|
|
509
509
|
import { Glob } from "glob";
|
|
510
|
-
import { existsSync } from "node:fs";
|
|
510
|
+
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
511
511
|
import { readFile as readFile2 } from "node:fs/promises";
|
|
512
|
-
import { readCachedProjectGraph } from "nx/src/project-graph/project-graph";
|
|
512
|
+
import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "nx/src/project-graph/project-graph";
|
|
513
513
|
var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, projectRoot, projectName, packageJson) => {
|
|
514
|
-
const
|
|
514
|
+
const projectGraph = readCachedProjectGraph();
|
|
515
|
+
const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot3, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
515
516
|
const localPackages = [];
|
|
516
517
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
|
|
517
518
|
const projectNode = project.node;
|
|
@@ -528,26 +529,38 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot3, proje
|
|
|
528
529
|
}
|
|
529
530
|
if (localPackages.length > 0) {
|
|
530
531
|
writeTrace(`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
532
|
+
const projectJsonFile = await readFile2(joinPaths(projectRoot, "project.json"), "utf8");
|
|
533
|
+
const projectJson = JSON.parse(projectJsonFile);
|
|
534
|
+
const projectName2 = projectJson.name;
|
|
535
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
536
|
+
if (!projectConfigurations?.projects?.[projectName2]) {
|
|
537
|
+
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.");
|
|
538
|
+
}
|
|
539
|
+
const implicitDependencies = projectConfigurations.projects?.[projectName2].implicitDependencies?.reduce((ret, dep) => {
|
|
540
|
+
if (projectConfigurations.projects?.[dep]) {
|
|
541
|
+
const depPackageJsonPath = joinPaths(workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
|
|
542
|
+
if (existsSync(depPackageJsonPath)) {
|
|
543
|
+
const depPackageJsonContent = readFileSync2(depPackageJsonPath, "utf8");
|
|
544
|
+
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
545
|
+
if (depPackageJson.private !== true && !ret.includes(depPackageJson.name)) {
|
|
546
|
+
ret.push(depPackageJson.name);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
534
549
|
}
|
|
535
550
|
return ret;
|
|
536
|
-
},
|
|
537
|
-
packageJson.
|
|
538
|
-
if (!ret[localPackage.name]) {
|
|
539
|
-
ret[localPackage.name] = {
|
|
540
|
-
optional: false
|
|
541
|
-
};
|
|
551
|
+
}, []);
|
|
552
|
+
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
553
|
+
if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name)) {
|
|
554
|
+
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
542
555
|
}
|
|
543
556
|
return ret;
|
|
544
|
-
}, packageJson.
|
|
557
|
+
}, packageJson.dependencies ?? {});
|
|
545
558
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
546
|
-
if (!ret[localPackage.name]) {
|
|
559
|
+
if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name)) {
|
|
547
560
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
548
561
|
}
|
|
549
562
|
return ret;
|
|
550
|
-
}, packageJson.
|
|
563
|
+
}, packageJson.devDependencies ?? {});
|
|
551
564
|
} else {
|
|
552
565
|
writeTrace("\u{1F4E6} No local packages dependencies to add to package.json");
|
|
553
566
|
}
|
|
@@ -1375,7 +1388,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
1375
1388
|
const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
|
|
1376
1389
|
const projectJson = JSON.parse(projectJsonFile);
|
|
1377
1390
|
const projectName = projectJson.name;
|
|
1378
|
-
const projectConfigurations =
|
|
1391
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
|
|
1379
1392
|
if (!projectConfigurations?.projects?.[projectName]) {
|
|
1380
1393
|
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.");
|
|
1381
1394
|
}
|
|
@@ -1743,7 +1756,7 @@ var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor",
|
|
|
1743
1756
|
});
|
|
1744
1757
|
|
|
1745
1758
|
// ../tsdown/src/build.ts
|
|
1746
|
-
import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as
|
|
1759
|
+
import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3, writeJsonFile as writeJsonFile2 } from "@nx/devkit";
|
|
1747
1760
|
import defu3 from "defu";
|
|
1748
1761
|
import { existsSync as existsSync6 } from "node:fs";
|
|
1749
1762
|
import hf2 from "node:fs/promises";
|
|
@@ -1802,7 +1815,7 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
1802
1815
|
const projectJsonFile = await hf2.readFile(projectJsonPath, "utf8");
|
|
1803
1816
|
const projectJson = JSON.parse(projectJsonFile);
|
|
1804
1817
|
const projectName = projectJson.name;
|
|
1805
|
-
const projectConfigurations =
|
|
1818
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph3(projectGraph);
|
|
1806
1819
|
if (!projectConfigurations?.projects?.[projectName]) {
|
|
1807
1820
|
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.");
|
|
1808
1821
|
}
|
|
@@ -2482,7 +2495,8 @@ async function normalizeOptions(tree, options, config) {
|
|
|
2482
2495
|
projectRoot,
|
|
2483
2496
|
parsedTags: options.tags ? options.tags.split(",").map((s) => s.trim()) : [],
|
|
2484
2497
|
importPath: normalizedImportPath,
|
|
2485
|
-
rootProject
|
|
2498
|
+
rootProject,
|
|
2499
|
+
shouldUseSwcJest: false
|
|
2486
2500
|
};
|
|
2487
2501
|
}
|
|
2488
2502
|
__name(normalizeOptions, "normalizeOptions");
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
joinPaths,
|
|
15
15
|
writeTrace,
|
|
16
16
|
writeWarning
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IMI2SM4Q.mjs";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Y3XZCCPP.mjs";
|
|
21
21
|
|
|
22
22
|
// ../config-tools/src/create-storm-config.ts
|
|
23
23
|
import defu2 from "defu";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeDebug,
|
|
3
3
|
writeWarning
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IMI2SM4Q.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__name
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Y3XZCCPP.mjs";
|
|
8
8
|
|
|
9
9
|
// src/utils/r2-bucket-helpers.ts
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KFNKJP2U.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__name,
|
|
6
6
|
__require
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Y3XZCCPP.mjs";
|
|
8
8
|
|
|
9
9
|
// src/executors/cloudflare-publish/executor.ts
|
|
10
10
|
import { joinPathFragments } from "@nx/devkit";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WBCAYK6X.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LI7SJBJ3.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-IMI2SM4Q.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__dirname,
|
|
18
18
|
__name
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Y3XZCCPP.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";
|
|
@@ -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 _chunk5WDALT4Xjs = require('./chunk-5WDALT4X.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkBRNE2OJCjs = require('./chunk-BRNE2OJC.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 _chunk5WDALT4Xjs.generator_default.call(void 0, tree, {
|
|
56
56
|
...options,
|
|
57
57
|
skipFormat: true
|
|
58
58
|
}));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__commonJS,
|
|
3
3
|
__name
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Y3XZCCPP.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.21",
|
|
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",
|
|
@@ -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.3.5_@microsoft+api-extractor@7.49.
|
|
14
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.2_@types+node@22.13.0__@swc+core@1.7.26_@swc+helpers_kupakjppxzf7wv7pnek6irqjpq/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");
|
|
@@ -510,7 +510,8 @@ var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
|
510
510
|
|
|
511
511
|
var _projectgraph = require('nx/src/project-graph/project-graph');
|
|
512
512
|
var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (workspaceRoot3, projectRoot, projectName, packageJson) => {
|
|
513
|
-
const
|
|
513
|
+
const projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
|
|
514
|
+
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);
|
|
514
515
|
const localPackages = [];
|
|
515
516
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot3)) {
|
|
516
517
|
const projectNode = project.node;
|
|
@@ -527,26 +528,38 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
|
|
|
527
528
|
}
|
|
528
529
|
if (localPackages.length > 0) {
|
|
529
530
|
_chunkX6VJDRKIjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
531
|
+
const projectJsonFile = await _promises.readFile.call(void 0, _chunkX6VJDRKIjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
532
|
+
const projectJson = JSON.parse(projectJsonFile);
|
|
533
|
+
const projectName2 = projectJson.name;
|
|
534
|
+
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
535
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _29 => _29.projects, 'optionalAccess', _30 => _30[projectName2]])) {
|
|
536
|
+
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.");
|
|
537
|
+
}
|
|
538
|
+
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _31 => _31.projects, 'optionalAccess', _32 => _32[projectName2], 'access', _33 => _33.implicitDependencies, 'optionalAccess', _34 => _34.reduce, 'call', _35 => _35((ret, dep) => {
|
|
539
|
+
if (_optionalChain([projectConfigurations, 'access', _36 => _36.projects, 'optionalAccess', _37 => _37[dep]])) {
|
|
540
|
+
const depPackageJsonPath = _chunkX6VJDRKIjs.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
|
|
541
|
+
if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
|
|
542
|
+
const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
|
|
543
|
+
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
544
|
+
if (depPackageJson.private !== true && !ret.includes(depPackageJson.name)) {
|
|
545
|
+
ret.push(depPackageJson.name);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
533
548
|
}
|
|
534
549
|
return ret;
|
|
535
|
-
},
|
|
536
|
-
packageJson.
|
|
537
|
-
if (!ret[localPackage.name]) {
|
|
538
|
-
ret[localPackage.name] = {
|
|
539
|
-
optional: false
|
|
540
|
-
};
|
|
550
|
+
}, [])]);
|
|
551
|
+
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
552
|
+
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _38 => _38.includes, 'call', _39 => _39(localPackage.name)])) {
|
|
553
|
+
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
541
554
|
}
|
|
542
555
|
return ret;
|
|
543
|
-
}, _nullishCoalesce(packageJson.
|
|
556
|
+
}, _nullishCoalesce(packageJson.dependencies, () => ( {})));
|
|
544
557
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
545
|
-
if (!ret[localPackage.name]) {
|
|
558
|
+
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _40 => _40.includes, 'call', _41 => _41(localPackage.name)])) {
|
|
546
559
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
547
560
|
}
|
|
548
561
|
return ret;
|
|
549
|
-
}, _nullishCoalesce(packageJson.
|
|
562
|
+
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
550
563
|
} else {
|
|
551
564
|
_chunkX6VJDRKIjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
552
565
|
}
|
|
@@ -778,15 +791,15 @@ var RendererEngine = class {
|
|
|
778
791
|
if (!relativePath.startsWith("\\\\?\\")) {
|
|
779
792
|
relativePath = relativePath.replace(/\\/g, "/");
|
|
780
793
|
}
|
|
781
|
-
const meta = _optionalChain([metafile, 'optionalAccess',
|
|
794
|
+
const meta = _optionalChain([metafile, 'optionalAccess', _42 => _42.outputs, 'access', _43 => _43[relativePath]]);
|
|
782
795
|
return {
|
|
783
796
|
type: "chunk",
|
|
784
797
|
path: file.path,
|
|
785
798
|
code: file.text,
|
|
786
|
-
map: _optionalChain([outputFiles, 'access',
|
|
787
|
-
entryPoint: _optionalChain([meta, 'optionalAccess',
|
|
788
|
-
exports: _optionalChain([meta, 'optionalAccess',
|
|
789
|
-
imports: _optionalChain([meta, 'optionalAccess',
|
|
799
|
+
map: _optionalChain([outputFiles, 'access', _44 => _44.find, 'call', _45 => _45((f) => f.path === `${file.path}.map`), 'optionalAccess', _46 => _46.text]),
|
|
800
|
+
entryPoint: _optionalChain([meta, 'optionalAccess', _47 => _47.entryPoint]),
|
|
801
|
+
exports: _optionalChain([meta, 'optionalAccess', _48 => _48.exports]),
|
|
802
|
+
imports: _optionalChain([meta, 'optionalAccess', _49 => _49.imports])
|
|
790
803
|
};
|
|
791
804
|
} else {
|
|
792
805
|
return {
|
|
@@ -869,7 +882,7 @@ var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void
|
|
|
869
882
|
name: "storm:esm-split-code-to-cjs",
|
|
870
883
|
setup(build5) {
|
|
871
884
|
build5.onEnd(async (result) => {
|
|
872
|
-
const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access',
|
|
885
|
+
const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _50 => _50.metafile, 'optionalAccess', _51 => _51.outputs]), () => ( {})));
|
|
873
886
|
const jsFiles = outFiles.filter((f) => f.endsWith("js"));
|
|
874
887
|
await esbuild.build({
|
|
875
888
|
outdir: resolvedOptions.outdir,
|
|
@@ -991,7 +1004,7 @@ ${result.errors.map((error) => error.text).join("\n")}
|
|
|
991
1004
|
// ../esbuild/src/plugins/resolve-paths.ts
|
|
992
1005
|
|
|
993
1006
|
function resolvePathsConfig(options, cwd) {
|
|
994
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
1007
|
+
if (_optionalChain([options, 'optionalAccess', _52 => _52.compilerOptions, 'optionalAccess', _53 => _53.paths])) {
|
|
995
1008
|
const paths = Object.entries(options.compilerOptions.paths);
|
|
996
1009
|
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
997
1010
|
return [
|
|
@@ -1019,7 +1032,7 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (o
|
|
|
1019
1032
|
build5.onResolve({
|
|
1020
1033
|
filter: packagesRegex
|
|
1021
1034
|
}, (args) => {
|
|
1022
|
-
if (_optionalChain([build5, 'access',
|
|
1035
|
+
if (_optionalChain([build5, 'access', _54 => _54.initialOptions, 'access', _55 => _55.external, 'optionalAccess', _56 => _56.includes, 'call', _57 => _57(args.path)])) {
|
|
1023
1036
|
return {
|
|
1024
1037
|
path: args.path,
|
|
1025
1038
|
external: true
|
|
@@ -1128,7 +1141,7 @@ var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, r
|
|
|
1128
1141
|
function getTypeDependencyPackageName(npmPackage) {
|
|
1129
1142
|
if (npmPackage.startsWith("@")) {
|
|
1130
1143
|
const [scope, name] = npmPackage.split("/");
|
|
1131
|
-
return `@types/${_optionalChain([scope, 'optionalAccess',
|
|
1144
|
+
return `@types/${_optionalChain([scope, 'optionalAccess', _58 => _58.slice, 'call', _59 => _59(1)])}__${name}`;
|
|
1132
1145
|
}
|
|
1133
1146
|
return `@types/${npmPackage}`;
|
|
1134
1147
|
}
|
|
@@ -1335,7 +1348,7 @@ function pipeSync(fn, ...fns) {
|
|
|
1335
1348
|
return (...args) => {
|
|
1336
1349
|
let result = fn(...args);
|
|
1337
1350
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
1338
|
-
result = _optionalChain([fns, 'access',
|
|
1351
|
+
result = _optionalChain([fns, 'access', _60 => _60[i], 'optionalCall', _61 => _61(result)]);
|
|
1339
1352
|
}
|
|
1340
1353
|
return result;
|
|
1341
1354
|
};
|
|
@@ -1345,7 +1358,7 @@ function pipeAsync(fn, ...fns) {
|
|
|
1345
1358
|
return async (...args) => {
|
|
1346
1359
|
let result = await fn(...args);
|
|
1347
1360
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
1348
|
-
result = await _optionalChain([fns, 'access',
|
|
1361
|
+
result = await _optionalChain([fns, 'access', _62 => _62[i], 'optionalCall', _63 => _63(result)]);
|
|
1349
1362
|
}
|
|
1350
1363
|
return result;
|
|
1351
1364
|
};
|
|
@@ -1375,7 +1388,7 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1375
1388
|
const projectJson = JSON.parse(projectJsonFile);
|
|
1376
1389
|
const projectName = projectJson.name;
|
|
1377
1390
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
1378
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
1391
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _64 => _64.projects, 'optionalAccess', _65 => _65[projectName]])) {
|
|
1379
1392
|
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.");
|
|
1380
1393
|
}
|
|
1381
1394
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
@@ -1553,7 +1566,7 @@ async function executeEsBuild(context2) {
|
|
|
1553
1566
|
}
|
|
1554
1567
|
_chunkJ5SB6L2Ljs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
1555
1568
|
async function copyBuildAssets(context2) {
|
|
1556
|
-
if (_optionalChain([context2, 'access',
|
|
1569
|
+
if (_optionalChain([context2, 'access', _66 => _66.result, 'optionalAccess', _67 => _67.errors, 'access', _68 => _68.length]) === 0) {
|
|
1557
1570
|
_chunkX6VJDRKIjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
1558
1571
|
const stopwatch = _chunkX6VJDRKIjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
1559
1572
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
@@ -1563,7 +1576,7 @@ async function copyBuildAssets(context2) {
|
|
|
1563
1576
|
}
|
|
1564
1577
|
_chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
1565
1578
|
async function reportResults(context2) {
|
|
1566
|
-
if (_optionalChain([context2, 'access',
|
|
1579
|
+
if (_optionalChain([context2, 'access', _69 => _69.result, 'optionalAccess', _70 => _70.errors, 'access', _71 => _71.length]) === 0) {
|
|
1567
1580
|
if (context2.result.warnings.length > 0) {
|
|
1568
1581
|
_chunkX6VJDRKIjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
1569
1582
|
}
|
|
@@ -1664,14 +1677,14 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
|
|
|
1664
1677
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1665
1678
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1666
1679
|
_chunkX6VJDRKIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1667
|
-
if (!_optionalChain([context2, 'access',
|
|
1680
|
+
if (!_optionalChain([context2, 'access', _72 => _72.projectsConfigurations, 'optionalAccess', _73 => _73.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _74 => _74.projectsConfigurations, 'access', _75 => _75.projects, 'access', _76 => _76[context2.projectName], 'optionalAccess', _77 => _77.root])) {
|
|
1668
1681
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1669
1682
|
}
|
|
1670
1683
|
await build3({
|
|
1671
1684
|
...options,
|
|
1672
|
-
projectRoot: _optionalChain([context2, 'access',
|
|
1685
|
+
projectRoot: _optionalChain([context2, 'access', _78 => _78.projectsConfigurations, 'access', _79 => _79.projects, 'optionalAccess', _80 => _80[context2.projectName], 'access', _81 => _81.root]),
|
|
1673
1686
|
projectName: context2.projectName,
|
|
1674
|
-
sourceRoot: _optionalChain([context2, 'access',
|
|
1687
|
+
sourceRoot: _optionalChain([context2, 'access', _82 => _82.projectsConfigurations, 'access', _83 => _83.projects, 'optionalAccess', _84 => _84[context2.projectName], 'optionalAccess', _85 => _85.sourceRoot]),
|
|
1675
1688
|
format: options.format,
|
|
1676
1689
|
platform: options.format
|
|
1677
1690
|
});
|
|
@@ -1714,7 +1727,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
|
|
|
1714
1727
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
1715
1728
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
1716
1729
|
async function sizeLimitExecutorFn(options, context2, config) {
|
|
1717
|
-
if (!_optionalChain([context2, 'optionalAccess',
|
|
1730
|
+
if (!_optionalChain([context2, 'optionalAccess', _86 => _86.projectName]) || !_optionalChain([context2, 'access', _87 => _87.projectsConfigurations, 'optionalAccess', _88 => _88.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1718
1731
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
1719
1732
|
}
|
|
1720
1733
|
_chunkX6VJDRKIjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
|
|
@@ -1723,7 +1736,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
1723
1736
|
_esbuild3.default,
|
|
1724
1737
|
_esbuildwhy2.default
|
|
1725
1738
|
], {
|
|
1726
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access',
|
|
1739
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _89 => _89.projectsConfigurations, 'access', _90 => _90.projects, 'access', _91 => _91[context2.projectName], 'optionalAccess', _92 => _92.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _93 => _93.projectsConfigurations, 'access', _94 => _94.projects, 'access', _95 => _95[context2.projectName], 'optionalAccess', _96 => _96.root]), () => ( "./")), "src")))
|
|
1727
1740
|
}).then((result) => {
|
|
1728
1741
|
_chunkX6VJDRKIjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
1729
1742
|
});
|
|
@@ -1802,7 +1815,7 @@ var resolveOptions2 = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1802
1815
|
const projectJson = JSON.parse(projectJsonFile);
|
|
1803
1816
|
const projectName = projectJson.name;
|
|
1804
1817
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
1805
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
1818
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _97 => _97.projects, 'optionalAccess', _98 => _98[projectName]])) {
|
|
1806
1819
|
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.");
|
|
1807
1820
|
}
|
|
1808
1821
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS2);
|
|
@@ -1986,14 +1999,14 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, build4, "build");
|
|
|
1986
1999
|
// ../workspace-tools/src/executors/tsdown/executor.ts
|
|
1987
2000
|
async function tsdownExecutorFn(options, context2, config) {
|
|
1988
2001
|
_chunkX6VJDRKIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
|
|
1989
|
-
if (!_optionalChain([context2, 'access',
|
|
2002
|
+
if (!_optionalChain([context2, 'access', _99 => _99.projectsConfigurations, 'optionalAccess', _100 => _100.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _101 => _101.projectsConfigurations, 'access', _102 => _102.projects, 'access', _103 => _103[context2.projectName], 'optionalAccess', _104 => _104.root])) {
|
|
1990
2003
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1991
2004
|
}
|
|
1992
2005
|
await build4({
|
|
1993
2006
|
...options,
|
|
1994
|
-
projectRoot: _optionalChain([context2, 'access',
|
|
2007
|
+
projectRoot: _optionalChain([context2, 'access', _105 => _105.projectsConfigurations, 'access', _106 => _106.projects, 'optionalAccess', _107 => _107[context2.projectName], 'access', _108 => _108.root]),
|
|
1995
2008
|
projectName: context2.projectName,
|
|
1996
|
-
sourceRoot: _optionalChain([context2, 'access',
|
|
2009
|
+
sourceRoot: _optionalChain([context2, 'access', _109 => _109.projectsConfigurations, 'access', _110 => _110.projects, 'optionalAccess', _111 => _111[context2.projectName], 'optionalAccess', _112 => _112.sourceRoot]),
|
|
1997
2010
|
format: options.format,
|
|
1998
2011
|
platform: options.platform
|
|
1999
2012
|
});
|
|
@@ -2057,7 +2070,7 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
2057
2070
|
var _jiti = require('jiti');
|
|
2058
2071
|
async function unbuildExecutorFn(options, context2, config) {
|
|
2059
2072
|
_chunkX6VJDRKIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
2060
|
-
if (!_optionalChain([context2, 'access',
|
|
2073
|
+
if (!_optionalChain([context2, 'access', _113 => _113.projectsConfigurations, 'optionalAccess', _114 => _114.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
2061
2074
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
2062
2075
|
}
|
|
2063
2076
|
if (!context2.projectsConfigurations.projects[context2.projectName].root) {
|
|
@@ -2140,7 +2153,7 @@ var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (nam
|
|
|
2140
2153
|
- workspaceRoot: ${workspaceRoot3}`, config);
|
|
2141
2154
|
config = await _chunkBRNE2OJCjs.getConfig.call(void 0, workspaceRoot3);
|
|
2142
2155
|
}
|
|
2143
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
2156
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _115 => _115.hooks, 'optionalAccess', _116 => _116.applyDefaultOptions])) {
|
|
2144
2157
|
_chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
2145
2158
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
2146
2159
|
_chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
@@ -2151,22 +2164,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
2151
2164
|
workspaceRoot: tree.root,
|
|
2152
2165
|
config
|
|
2153
2166
|
}, applyWorkspaceBaseTokens);
|
|
2154
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
2167
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _117 => _117.hooks, 'optionalAccess', _118 => _118.preProcess])) {
|
|
2155
2168
|
_chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
2156
2169
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
2157
2170
|
_chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
2158
2171
|
}
|
|
2159
2172
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
2160
2173
|
if (result) {
|
|
2161
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
2174
|
+
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _119 => _119.error, 'optionalAccess', _120 => _120.message]) && typeof _optionalChain([result, 'optionalAccess', _121 => _121.error, 'optionalAccess', _122 => _122.message]) === "string" && _optionalChain([result, 'optionalAccess', _123 => _123.error, 'optionalAccess', _124 => _124.name]) && typeof _optionalChain([result, 'optionalAccess', _125 => _125.error, 'optionalAccess', _126 => _126.name]) === "string") {
|
|
2162
2175
|
throw new Error(`The ${name} generator failed to run`, {
|
|
2163
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
2176
|
+
cause: _optionalChain([result, 'optionalAccess', _127 => _127.error])
|
|
2164
2177
|
});
|
|
2165
2178
|
} else if (result.success && result.data) {
|
|
2166
2179
|
return result;
|
|
2167
2180
|
}
|
|
2168
2181
|
}
|
|
2169
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
2182
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _128 => _128.hooks, 'optionalAccess', _129 => _129.postProcess])) {
|
|
2170
2183
|
_chunkX6VJDRKIjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
2171
2184
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
2172
2185
|
_chunkX6VJDRKIjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
@@ -2276,15 +2289,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2276
2289
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
2277
2290
|
let repository = {
|
|
2278
2291
|
type: "github",
|
|
2279
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
2292
|
+
url: _optionalChain([config, 'optionalAccess', _130 => _130.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _131 => _131.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _132 => _132.namespace]) || _optionalChain([config, 'optionalAccess', _133 => _133.name]) || "repository"}.git`
|
|
2280
2293
|
};
|
|
2281
2294
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
2282
2295
|
if (tree.exists("package.json")) {
|
|
2283
2296
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2284
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2297
|
+
if (_optionalChain([packageJson, 'optionalAccess', _134 => _134.repository])) {
|
|
2285
2298
|
repository = packageJson.repository;
|
|
2286
2299
|
}
|
|
2287
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2300
|
+
if (_optionalChain([packageJson, 'optionalAccess', _135 => _135.description])) {
|
|
2288
2301
|
description = packageJson.description;
|
|
2289
2302
|
}
|
|
2290
2303
|
}
|
|
@@ -2339,9 +2352,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2339
2352
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
2340
2353
|
...json,
|
|
2341
2354
|
pnpm: {
|
|
2342
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2355
|
+
..._optionalChain([json, 'optionalAccess', _136 => _136.pnpm]),
|
|
2343
2356
|
overrides: {
|
|
2344
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2357
|
+
..._optionalChain([json, 'optionalAccess', _137 => _137.pnpm, 'optionalAccess', _138 => _138.overrides]),
|
|
2345
2358
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
2346
2359
|
}
|
|
2347
2360
|
}
|
|
@@ -2355,10 +2368,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2355
2368
|
]);
|
|
2356
2369
|
if (tree.exists("package.json")) {
|
|
2357
2370
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2358
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2371
|
+
if (_optionalChain([packageJson, 'optionalAccess', _139 => _139.repository])) {
|
|
2359
2372
|
repository = packageJson.repository;
|
|
2360
2373
|
}
|
|
2361
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2374
|
+
if (_optionalChain([packageJson, 'optionalAccess', _140 => _140.description])) {
|
|
2362
2375
|
description = packageJson.description;
|
|
2363
2376
|
}
|
|
2364
2377
|
}
|
|
@@ -2406,24 +2419,24 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
|
2406
2419
|
function createProjectTsConfigJson(tree, options) {
|
|
2407
2420
|
const tsconfig = {
|
|
2408
2421
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
2409
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2422
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _141 => _141.tsconfigOptions]), () => ( {})),
|
|
2410
2423
|
compilerOptions: {
|
|
2411
2424
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2412
2425
|
outDir: _chunkX6VJDRKIjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2413
2426
|
noEmit: true,
|
|
2414
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2427
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _142 => _142.tsconfigOptions, 'optionalAccess', _143 => _143.compilerOptions]), () => ( {}))
|
|
2415
2428
|
},
|
|
2416
2429
|
files: [
|
|
2417
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2430
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _144 => _144.tsconfigOptions, 'optionalAccess', _145 => _145.files]), () => ( []))
|
|
2418
2431
|
],
|
|
2419
2432
|
include: [
|
|
2420
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2433
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _146 => _146.tsconfigOptions, 'optionalAccess', _147 => _147.include]), () => ( [])),
|
|
2421
2434
|
"src/**/*.ts",
|
|
2422
2435
|
"src/**/*.js",
|
|
2423
2436
|
"bin/**/*"
|
|
2424
2437
|
],
|
|
2425
2438
|
exclude: [
|
|
2426
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2439
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _148 => _148.tsconfigOptions, 'optionalAccess', _149 => _149.exclude]), () => ( [])),
|
|
2427
2440
|
"jest.config.ts",
|
|
2428
2441
|
"src/**/*.spec.ts",
|
|
2429
2442
|
"src/**/*.test.ts"
|
|
@@ -2434,8 +2447,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2434
2447
|
_chunkJ5SB6L2Ljs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
2435
2448
|
async function normalizeOptions(tree, options, config) {
|
|
2436
2449
|
let importPath = options.importPath;
|
|
2437
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
2438
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
2450
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _150 => _150.namespace])) {
|
|
2451
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _151 => _151.namespace])}/${options.name}`;
|
|
2439
2452
|
}
|
|
2440
2453
|
if (options.publishable) {
|
|
2441
2454
|
if (!importPath) {
|
|
@@ -2481,7 +2494,8 @@ async function normalizeOptions(tree, options, config) {
|
|
|
2481
2494
|
projectRoot,
|
|
2482
2495
|
parsedTags: options.tags ? options.tags.split(",").map((s) => s.trim()) : [],
|
|
2483
2496
|
importPath: normalizedImportPath,
|
|
2484
|
-
rootProject
|
|
2497
|
+
rootProject,
|
|
2498
|
+
shouldUseSwcJest: false
|
|
2485
2499
|
};
|
|
2486
2500
|
}
|
|
2487
2501
|
_chunkJ5SB6L2Ljs.__name.call(void 0, normalizeOptions, "normalizeOptions");
|
|
@@ -2566,7 +2580,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
2566
2580
|
name: "StormWorkspaceConfiguration"
|
|
2567
2581
|
});
|
|
2568
2582
|
_chunkX6VJDRKIjs.writeTrace.call(void 0, jsonSchema, config);
|
|
2569
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
2583
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _152 => _152.workspaceRoot]), () => ( _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _153 => _153.outputFile, 'optionalAccess', _154 => _154.startsWith, 'call', _155 => _155("./")]) ? "" : "./");
|
|
2570
2584
|
_chunkX6VJDRKIjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
2571
2585
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
2572
2586
|
spaces: 2
|
package/dist/executors.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";require('./chunk-XO66D74Z.js');
|
|
2
|
+
require('./chunk-R7AIVBS7.js');
|
|
3
|
+
require('./chunk-ZO73VQJ6.js');
|
|
2
4
|
require('./chunk-MUNYIY4Y.js');
|
|
3
5
|
require('./chunk-T4IWTHDS.js');
|
|
4
|
-
require('./chunk-R7AIVBS7.js');
|
|
5
|
-
require('./chunk-AOQHEVKD.js');
|
|
6
6
|
require('./chunk-VTHBMY4B.js');
|
|
7
7
|
require('./chunk-BRNE2OJC.js');
|
|
8
8
|
require('./chunk-X6VJDRKI.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-PDHMNSTI.mjs";
|
|
3
|
+
import "./chunk-C7LFNTNE.mjs";
|
|
4
|
+
import "./chunk-AHEAMC5D.mjs";
|
|
5
|
+
import "./chunk-PAM7JMC5.mjs";
|
|
6
|
+
import "./chunk-KFNKJP2U.mjs";
|
|
7
|
+
import "./chunk-LI7SJBJ3.mjs";
|
|
8
|
+
import "./chunk-IMI2SM4Q.mjs";
|
|
9
|
+
import "./chunk-Y3XZCCPP.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkVN5NKV4Mjs = require('./chunk-VN5NKV4M.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk5WDALT4Xjs = require('./chunk-5WDALT4X.js');
|
|
10
10
|
require('./chunk-BRNE2OJC.js');
|
|
11
11
|
require('./chunk-X6VJDRKI.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 = _chunkVN5NKV4Mjs.applicationGenerator; exports.applicationSchematic = _chunkVN5NKV4Mjs.applicationSchematic; exports.initGenerator = _chunk5WDALT4Xjs.initGenerator; exports.initSchematic = _chunk5WDALT4Xjs.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-R5IK37XB.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-WBCAYK6X.mjs";
|
|
10
|
+
import "./chunk-LI7SJBJ3.mjs";
|
|
11
|
+
import "./chunk-IMI2SM4Q.mjs";
|
|
12
|
+
import "./chunk-Y3XZCCPP.mjs";
|
|
13
13
|
export {
|
|
14
14
|
applicationGenerator,
|
|
15
15
|
applicationSchematic,
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('./chunk-XO66D74Z.js');
|
|
2
|
-
require('./chunk-MUNYIY4Y.js');
|
|
3
2
|
require('./chunk-DHBG5ASJ.js');
|
|
4
3
|
|
|
5
4
|
|
|
6
5
|
|
|
7
|
-
var
|
|
6
|
+
var _chunkVN5NKV4Mjs = require('./chunk-VN5NKV4M.js');
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
|
|
11
|
-
var
|
|
10
|
+
var _chunk5WDALT4Xjs = require('./chunk-5WDALT4X.js');
|
|
12
11
|
require('./chunk-CVGPWUNP.js');
|
|
12
|
+
require('./chunk-R7AIVBS7.js');
|
|
13
|
+
require('./chunk-ZO73VQJ6.js');
|
|
14
|
+
require('./chunk-MUNYIY4Y.js');
|
|
13
15
|
|
|
14
16
|
|
|
15
17
|
|
|
16
18
|
var _chunkT4IWTHDSjs = require('./chunk-T4IWTHDS.js');
|
|
17
|
-
require('./chunk-R7AIVBS7.js');
|
|
18
|
-
require('./chunk-AOQHEVKD.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -148,4 +148,4 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, createPackageJson, "createPackageJson");
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
exports.applicationGenerator =
|
|
151
|
+
exports.applicationGenerator = _chunkVN5NKV4Mjs.applicationGenerator; exports.applicationSchematic = _chunkVN5NKV4Mjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkT4IWTHDSjs.getInternalDependencies; exports.initGenerator = _chunk5WDALT4Xjs.initGenerator; exports.initSchematic = _chunk5WDALT4Xjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkT4IWTHDSjs.r2UploadFile;
|
package/dist/index.mjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import "./chunk-YSCEY447.mjs";
|
|
2
|
-
import "./chunk-ZPZYYSN3.mjs";
|
|
3
2
|
import "./chunk-3J7KBHMJ.mjs";
|
|
4
3
|
import {
|
|
5
4
|
applicationGenerator,
|
|
6
5
|
applicationSchematic
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-R5IK37XB.mjs";
|
|
8
7
|
import {
|
|
9
8
|
initGenerator,
|
|
10
9
|
initSchematic
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WBCAYK6X.mjs";
|
|
12
11
|
import "./chunk-7Z5PILRU.mjs";
|
|
12
|
+
import "./chunk-PDHMNSTI.mjs";
|
|
13
|
+
import "./chunk-C7LFNTNE.mjs";
|
|
14
|
+
import "./chunk-AHEAMC5D.mjs";
|
|
13
15
|
import {
|
|
14
16
|
getInternalDependencies,
|
|
15
17
|
r2UploadFile
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-QEWY5YJA.mjs";
|
|
18
|
-
import "./chunk-NU6KVH6M.mjs";
|
|
18
|
+
} from "./chunk-PAM7JMC5.mjs";
|
|
19
19
|
import {
|
|
20
20
|
ProjectTagConstants,
|
|
21
21
|
addProjectTag
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-KFNKJP2U.mjs";
|
|
23
|
+
import "./chunk-LI7SJBJ3.mjs";
|
|
24
|
+
import "./chunk-IMI2SM4Q.mjs";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-Y3XZCCPP.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-ZO73VQJ6.js');
|
|
5
5
|
require('../../../chunk-VTHBMY4B.js');
|
|
6
6
|
require('../../../chunk-BRNE2OJC.js');
|
|
7
7
|
require('../../../chunk-X6VJDRKI.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-PDHMNSTI.mjs";
|
|
4
|
+
import "../../../chunk-C7LFNTNE.mjs";
|
|
5
|
+
import "../../../chunk-KFNKJP2U.mjs";
|
|
6
|
+
import "../../../chunk-LI7SJBJ3.mjs";
|
|
7
|
+
import "../../../chunk-IMI2SM4Q.mjs";
|
|
8
|
+
import "../../../chunk-Y3XZCCPP.mjs";
|
|
9
9
|
export {
|
|
10
10
|
runExecutor as default
|
|
11
11
|
};
|
|
@@ -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-AHEAMC5D.mjs";
|
|
4
|
+
import "../../../chunk-PAM7JMC5.mjs";
|
|
5
|
+
import "../../../chunk-KFNKJP2U.mjs";
|
|
6
|
+
import "../../../chunk-LI7SJBJ3.mjs";
|
|
7
|
+
import "../../../chunk-IMI2SM4Q.mjs";
|
|
8
|
+
import "../../../chunk-Y3XZCCPP.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}); 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 _chunkZO73VQJ6js = require('../../../chunk-ZO73VQJ6.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkVTHBMY4Bjs = require('../../../chunk-VTHBMY4B.js');
|
|
@@ -60,7 +60,7 @@ async function* serveExecutor(options, context, config) {
|
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
_chunkJ5SB6L2Ljs.__name.call(void 0, serveExecutor, "serveExecutor");
|
|
63
|
-
var executor_default =
|
|
63
|
+
var executor_default = _chunkZO73VQJ6js.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,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-C7LFNTNE.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createCliOptions
|
|
6
|
-
} from "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
6
|
+
} from "../../../chunk-KFNKJP2U.mjs";
|
|
7
|
+
import "../../../chunk-LI7SJBJ3.mjs";
|
|
8
|
+
import "../../../chunk-IMI2SM4Q.mjs";
|
|
9
9
|
import {
|
|
10
10
|
__name,
|
|
11
11
|
__require
|
|
12
|
-
} from "../../../chunk-
|
|
12
|
+
} from "../../../chunk-Y3XZCCPP.mjs";
|
|
13
13
|
|
|
14
14
|
// src/executors/serve/executor.ts
|
|
15
15
|
import { createAsyncIterable } from "@nx/devkit/src/utils/async-iterable";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk5WDALT4Xjs = require('../../../chunk-5WDALT4X.js');
|
|
6
6
|
require('../../../chunk-J5SB6L2L.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunk5WDALT4Xjs.generator_default; exports.initGenerator = _chunk5WDALT4Xjs.initGenerator; exports.initSchematic = _chunk5WDALT4Xjs.initSchematic;
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
generator_default,
|
|
3
3
|
initGenerator,
|
|
4
4
|
initSchematic
|
|
5
|
-
} from "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
5
|
+
} from "../../../chunk-WBCAYK6X.mjs";
|
|
6
|
+
import "../../../chunk-Y3XZCCPP.mjs";
|
|
7
7
|
export {
|
|
8
8
|
generator_default as default,
|
|
9
9
|
initGenerator,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
5
|
+
var _chunkVN5NKV4Mjs = require('../../../chunk-VN5NKV4M.js');
|
|
6
|
+
require('../../../chunk-5WDALT4X.js');
|
|
7
7
|
require('../../../chunk-BRNE2OJC.js');
|
|
8
8
|
require('../../../chunk-X6VJDRKI.js');
|
|
9
9
|
require('../../../chunk-J5SB6L2L.js');
|
|
@@ -11,4 +11,4 @@ require('../../../chunk-J5SB6L2L.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.applicationGenerator =
|
|
14
|
+
exports.applicationGenerator = _chunkVN5NKV4Mjs.applicationGenerator; exports.applicationSchematic = _chunkVN5NKV4Mjs.applicationSchematic; exports.default = _chunkVN5NKV4Mjs.generator_default;
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
applicationGenerator,
|
|
3
3
|
applicationSchematic,
|
|
4
4
|
generator_default
|
|
5
|
-
} from "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
5
|
+
} from "../../../chunk-R5IK37XB.mjs";
|
|
6
|
+
import "../../../chunk-WBCAYK6X.mjs";
|
|
7
|
+
import "../../../chunk-LI7SJBJ3.mjs";
|
|
8
|
+
import "../../../chunk-IMI2SM4Q.mjs";
|
|
9
|
+
import "../../../chunk-Y3XZCCPP.mjs";
|
|
10
10
|
export {
|
|
11
11
|
applicationGenerator,
|
|
12
12
|
applicationSchematic,
|
package/dist/src/utils/index.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import "../../chunk-7Z5PILRU.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
getInternalDependencies,
|
|
4
4
|
r2UploadFile
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-PAM7JMC5.mjs";
|
|
6
|
+
import "../../chunk-IMI2SM4Q.mjs";
|
|
7
|
+
import "../../chunk-Y3XZCCPP.mjs";
|
|
8
8
|
export {
|
|
9
9
|
getInternalDependencies,
|
|
10
10
|
r2UploadFile
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getInternalDependencies,
|
|
3
3
|
r2UploadFile
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-PAM7JMC5.mjs";
|
|
5
|
+
import "../../chunk-IMI2SM4Q.mjs";
|
|
6
|
+
import "../../chunk-Y3XZCCPP.mjs";
|
|
7
7
|
export {
|
|
8
8
|
getInternalDependencies,
|
|
9
9
|
r2UploadFile
|
package/dist/tsup.config.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/cloudflare-tools",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.21",
|
|
4
4
|
"description": "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|