@storm-software/cloudflare-tools 0.55.45 → 0.55.47
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 +14 -0
- package/README.md +1 -1
- package/dist/{chunk-ZGZLK5XZ.js → chunk-3DVY2QHL.js} +2 -2
- package/dist/{chunk-BDADKXEW.mjs → chunk-6FRQN6OH.mjs} +83 -70
- package/dist/{chunk-P7YORNEH.js → chunk-IEHGWQ4M.js} +1 -1
- package/dist/{chunk-WGEGIRE6.mjs → chunk-S3EDQJGN.mjs} +1 -1
- package/dist/{chunk-DZPVDJXE.js → chunk-SN2MOXTV.js} +115 -102
- package/dist/{chunk-ZTEXBI4T.mjs → chunk-UH5EDA2E.mjs} +1 -1
- package/dist/executors.js +1 -1
- package/dist/executors.mjs +1 -1
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/src/executors/cloudflare-publish/executor.js +1 -1
- package/dist/src/executors/cloudflare-publish/executor.mjs +1 -1
- package/dist/src/executors/serve/executor.js +2 -2
- package/dist/src/executors/serve/executor.mjs +1 -1
- 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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.55.47](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.47) (2025-04-08)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([082eec9a5](https://github.com/storm-software/storm-ops/commit/082eec9a5))
|
|
11
|
+
|
|
12
|
+
## [0.55.46](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.46) (2025-04-07)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Regenerate README markdown files
|
|
17
|
+
([1ac4c6ad4](https://github.com/storm-software/storm-ops/commit/1ac4c6ad4))
|
|
18
|
+
|
|
5
19
|
## [0.55.45](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.45) (2025-04-04)
|
|
6
20
|
|
|
7
21
|
### 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 -->
|
|
@@ -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 _chunkIEHGWQ4Mjs = require('./chunk-IEHGWQ4M.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkZ5XL2UL5js = require('./chunk-Z5XL2UL5.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 _chunkIEHGWQ4Mjs.generator_default.call(void 0, tree, {
|
|
56
56
|
...options,
|
|
57
57
|
skipFormat: true
|
|
58
58
|
}));
|
|
@@ -612,57 +612,6 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ __name(async (config, projec
|
|
|
612
612
|
|
|
613
613
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
614
614
|
import { glob as glob2 } from "glob";
|
|
615
|
-
var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
616
|
-
const workspaceRoot3 = config.workspaceRoot || findWorkspaceRoot();
|
|
617
|
-
const entryPoints = [];
|
|
618
|
-
if (entry) {
|
|
619
|
-
if (typeof entry === "string") {
|
|
620
|
-
entryPoints.push(entry);
|
|
621
|
-
} else if (Array.isArray(entry)) {
|
|
622
|
-
entryPoints.push(...entry);
|
|
623
|
-
} else {
|
|
624
|
-
entryPoints.push(...Object.values(entry));
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
if (emitOnAll) {
|
|
628
|
-
entryPoints.push(joinPaths(workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
629
|
-
}
|
|
630
|
-
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
631
|
-
const paths = [];
|
|
632
|
-
if (entryPoint.includes("*")) {
|
|
633
|
-
const files = await glob2(entryPoint, {
|
|
634
|
-
withFileTypes: true,
|
|
635
|
-
ignore: [
|
|
636
|
-
"**/node_modules/**"
|
|
637
|
-
]
|
|
638
|
-
});
|
|
639
|
-
paths.push(...files.reduce((ret, filePath) => {
|
|
640
|
-
const result = correctPaths(joinPaths(filePath.path, filePath.name).replaceAll(correctPaths(workspaceRoot3), "").replaceAll(correctPaths(projectRoot), ""));
|
|
641
|
-
if (result) {
|
|
642
|
-
writeDebug(`Trying to add entry point ${result} at "${joinPaths(filePath.path, filePath.name)}"`, config);
|
|
643
|
-
if (!paths.includes(result)) {
|
|
644
|
-
paths.push(result);
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
return ret;
|
|
648
|
-
}, []));
|
|
649
|
-
} else {
|
|
650
|
-
writeDebug(`Trying to add entry point ${entryPoint}"`, config);
|
|
651
|
-
if (!paths.includes(entryPoint)) {
|
|
652
|
-
paths.push(entryPoint);
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
return paths;
|
|
656
|
-
}));
|
|
657
|
-
return results.filter(Boolean).reduce((ret, result) => {
|
|
658
|
-
result.forEach((res) => {
|
|
659
|
-
if (res && !ret.includes(res)) {
|
|
660
|
-
ret.push(res);
|
|
661
|
-
}
|
|
662
|
-
});
|
|
663
|
-
return ret;
|
|
664
|
-
}, []);
|
|
665
|
-
}, "getEntryPoints");
|
|
666
615
|
|
|
667
616
|
// ../build-tools/src/utilities/get-env.ts
|
|
668
617
|
var getEnv = /* @__PURE__ */ __name((builder, options) => {
|
|
@@ -1086,10 +1035,10 @@ var tscPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
|
1086
1035
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
1087
1036
|
await run(resolvedOptions.config, `pnpm exec tsc --project ${resolvedOptions.tsconfig}`, resolvedOptions.config.workspaceRoot);
|
|
1088
1037
|
}
|
|
1089
|
-
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && resolvedOptions.entryPoints[0] && resolvedOptions.entryPoints[0].endsWith(".ts")) {
|
|
1038
|
+
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && resolvedOptions.entryPoints[0]?.in && resolvedOptions.entryPoints[0].in.endsWith(".ts")) {
|
|
1090
1039
|
const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
|
|
1091
1040
|
const typeOutDir = resolvedOptions.outdir;
|
|
1092
|
-
const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
1041
|
+
const entryPoint = resolvedOptions.entryPoints[0].in.replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
1093
1042
|
const bundlePath = joinPaths(resolvedOptions.outdir, entryPoint);
|
|
1094
1043
|
let dtsPath;
|
|
1095
1044
|
if (existsSync3(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
@@ -1280,6 +1229,84 @@ var shebangRenderer = {
|
|
|
1280
1229
|
}
|
|
1281
1230
|
};
|
|
1282
1231
|
|
|
1232
|
+
// ../esbuild/src/utilities/get-entry-points.ts
|
|
1233
|
+
import { glob as glob3 } from "glob";
|
|
1234
|
+
var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
1235
|
+
const workspaceRoot3 = config.workspaceRoot || findWorkspaceRoot();
|
|
1236
|
+
const entryPoints = [];
|
|
1237
|
+
if (entry) {
|
|
1238
|
+
if (typeof entry === "string") {
|
|
1239
|
+
entryPoints.push({
|
|
1240
|
+
in: entry,
|
|
1241
|
+
out: entry
|
|
1242
|
+
});
|
|
1243
|
+
} else if (Array.isArray(entry)) {
|
|
1244
|
+
entryPoints.push(...entry.map((entry2) => ({
|
|
1245
|
+
in: entry2,
|
|
1246
|
+
out: entry2
|
|
1247
|
+
})));
|
|
1248
|
+
} else {
|
|
1249
|
+
entryPoints.push(...Object.entries(entry).map(([key, value]) => {
|
|
1250
|
+
if (typeof value === "string") {
|
|
1251
|
+
return {
|
|
1252
|
+
in: value,
|
|
1253
|
+
out: key
|
|
1254
|
+
};
|
|
1255
|
+
} else {
|
|
1256
|
+
return {
|
|
1257
|
+
in: key,
|
|
1258
|
+
out: key
|
|
1259
|
+
};
|
|
1260
|
+
}
|
|
1261
|
+
}));
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
if (emitOnAll) {
|
|
1265
|
+
entryPoints.push({
|
|
1266
|
+
in: joinPaths(workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"),
|
|
1267
|
+
out: joinPaths(workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}")
|
|
1268
|
+
});
|
|
1269
|
+
}
|
|
1270
|
+
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
1271
|
+
const paths = [];
|
|
1272
|
+
if (entryPoint.in.includes("*")) {
|
|
1273
|
+
const files = await glob3(entryPoint.in, {
|
|
1274
|
+
withFileTypes: true,
|
|
1275
|
+
ignore: [
|
|
1276
|
+
"**/node_modules/**"
|
|
1277
|
+
]
|
|
1278
|
+
});
|
|
1279
|
+
paths.push(...files.reduce((ret, filePath) => {
|
|
1280
|
+
const result = correctPaths(joinPaths(filePath.path, filePath.name).replaceAll(correctPaths(workspaceRoot3), "").replaceAll(correctPaths(projectRoot), ""));
|
|
1281
|
+
if (result) {
|
|
1282
|
+
writeDebug(`Trying to add entry point ${result} at "${joinPaths(filePath.path, filePath.name)}"`, config);
|
|
1283
|
+
if (!paths.some((p) => p.in === result)) {
|
|
1284
|
+
paths.push({
|
|
1285
|
+
in: result,
|
|
1286
|
+
out: entryPoint.out.replace(entryPoint.in, result)
|
|
1287
|
+
});
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
return ret;
|
|
1291
|
+
}, []));
|
|
1292
|
+
} else {
|
|
1293
|
+
writeDebug(`Trying to add entry point ${entryPoint}"`, config);
|
|
1294
|
+
if (!paths.some((p) => p.in === entryPoint.in)) {
|
|
1295
|
+
paths.push(entryPoint);
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
return paths;
|
|
1299
|
+
}));
|
|
1300
|
+
return results.filter(Boolean).reduce((ret, result) => {
|
|
1301
|
+
result.forEach((res) => {
|
|
1302
|
+
if (res && !ret.some((p) => p.in === res.in)) {
|
|
1303
|
+
ret.push(res);
|
|
1304
|
+
}
|
|
1305
|
+
});
|
|
1306
|
+
return ret;
|
|
1307
|
+
}, []);
|
|
1308
|
+
}, "getEntryPoints");
|
|
1309
|
+
|
|
1283
1310
|
// ../esbuild/src/utilities/helpers.ts
|
|
1284
1311
|
function handleSync(fn) {
|
|
1285
1312
|
try {
|
|
@@ -1474,23 +1501,9 @@ async function generatePackageJson(context2) {
|
|
|
1474
1501
|
packageJson.exports ??= {};
|
|
1475
1502
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
1476
1503
|
packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
|
|
1477
|
-
|
|
1478
|
-
{
|
|
1479
|
-
|
|
1480
|
-
out: "./src/index.ts"
|
|
1481
|
-
}
|
|
1482
|
-
];
|
|
1483
|
-
if (context2.options.entryPoints) {
|
|
1484
|
-
if (Array.isArray(context2.options.entryPoints)) {
|
|
1485
|
-
entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
|
|
1486
|
-
in: entryPoint,
|
|
1487
|
-
out: correctPaths(entryPoint.replaceAll(correctPaths(context2.options.config.workspaceRoot), "").replaceAll(correctPaths(context2.options.projectRoot), ""))
|
|
1488
|
-
} : entryPoint);
|
|
1489
|
-
}
|
|
1490
|
-
for (const entryPoint of entryPoints) {
|
|
1491
|
-
const split = entryPoint.out.split(".");
|
|
1492
|
-
split.pop();
|
|
1493
|
-
const entry = split.join(".").replaceAll("\\", "/");
|
|
1504
|
+
for (const entryPoint of context2.options.entryPoints) {
|
|
1505
|
+
if (entryPoint.out) {
|
|
1506
|
+
const entry = entryPoint.out.replaceAll("\\", "/").replaceAll(/^(\.\/)*/, "").replace(/\.([cm])?[jt]s(x)?$/, "");
|
|
1494
1507
|
packageJson.exports[`./${entry}`] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/${entry}.js`;
|
|
1495
1508
|
}
|
|
1496
1509
|
}
|
|
@@ -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.47",
|
|
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",
|
|
@@ -8,7 +8,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.47",
|
|
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",
|
|
@@ -611,57 +611,6 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call
|
|
|
611
611
|
|
|
612
612
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
613
613
|
|
|
614
|
-
var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
615
|
-
const workspaceRoot3 = config.workspaceRoot || _chunkQQQD2SINjs.findWorkspaceRoot.call(void 0, );
|
|
616
|
-
const entryPoints = [];
|
|
617
|
-
if (entry) {
|
|
618
|
-
if (typeof entry === "string") {
|
|
619
|
-
entryPoints.push(entry);
|
|
620
|
-
} else if (Array.isArray(entry)) {
|
|
621
|
-
entryPoints.push(...entry);
|
|
622
|
-
} else {
|
|
623
|
-
entryPoints.push(...Object.values(entry));
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
if (emitOnAll) {
|
|
627
|
-
entryPoints.push(_chunkQQQD2SINjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
628
|
-
}
|
|
629
|
-
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
630
|
-
const paths = [];
|
|
631
|
-
if (entryPoint.includes("*")) {
|
|
632
|
-
const files = await _glob.glob.call(void 0, entryPoint, {
|
|
633
|
-
withFileTypes: true,
|
|
634
|
-
ignore: [
|
|
635
|
-
"**/node_modules/**"
|
|
636
|
-
]
|
|
637
|
-
});
|
|
638
|
-
paths.push(...files.reduce((ret, filePath) => {
|
|
639
|
-
const result = _chunkQQQD2SINjs.correctPaths.call(void 0, _chunkQQQD2SINjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkQQQD2SINjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkQQQD2SINjs.correctPaths.call(void 0, projectRoot), ""));
|
|
640
|
-
if (result) {
|
|
641
|
-
_chunkQQQD2SINjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkQQQD2SINjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
642
|
-
if (!paths.includes(result)) {
|
|
643
|
-
paths.push(result);
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
return ret;
|
|
647
|
-
}, []));
|
|
648
|
-
} else {
|
|
649
|
-
_chunkQQQD2SINjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
|
|
650
|
-
if (!paths.includes(entryPoint)) {
|
|
651
|
-
paths.push(entryPoint);
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
return paths;
|
|
655
|
-
}));
|
|
656
|
-
return results.filter(Boolean).reduce((ret, result) => {
|
|
657
|
-
result.forEach((res) => {
|
|
658
|
-
if (res && !ret.includes(res)) {
|
|
659
|
-
ret.push(res);
|
|
660
|
-
}
|
|
661
|
-
});
|
|
662
|
-
return ret;
|
|
663
|
-
}, []);
|
|
664
|
-
}, "getEntryPoints");
|
|
665
614
|
|
|
666
615
|
// ../build-tools/src/utilities/get-env.ts
|
|
667
616
|
var getEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (builder, options) => {
|
|
@@ -1085,10 +1034,10 @@ var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, r
|
|
|
1085
1034
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
1086
1035
|
await run(resolvedOptions.config, `pnpm exec tsc --project ${resolvedOptions.tsconfig}`, resolvedOptions.config.workspaceRoot);
|
|
1087
1036
|
}
|
|
1088
|
-
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && resolvedOptions.entryPoints[0] && resolvedOptions.entryPoints[0].endsWith(".ts")) {
|
|
1037
|
+
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && _optionalChain([resolvedOptions, 'access', _68 => _68.entryPoints, 'access', _69 => _69[0], 'optionalAccess', _70 => _70.in]) && resolvedOptions.entryPoints[0].in.endsWith(".ts")) {
|
|
1089
1038
|
const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
|
|
1090
1039
|
const typeOutDir = resolvedOptions.outdir;
|
|
1091
|
-
const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
1040
|
+
const entryPoint = resolvedOptions.entryPoints[0].in.replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
1092
1041
|
const bundlePath = _chunkQQQD2SINjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
|
|
1093
1042
|
let dtsPath;
|
|
1094
1043
|
if (_fs.existsSync.call(void 0, _chunkQQQD2SINjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
@@ -1111,7 +1060,7 @@ var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, r
|
|
|
1111
1060
|
function getTypeDependencyPackageName(npmPackage) {
|
|
1112
1061
|
if (npmPackage.startsWith("@")) {
|
|
1113
1062
|
const [scope, name] = npmPackage.split("/");
|
|
1114
|
-
return `@types/${_optionalChain([scope, 'optionalAccess',
|
|
1063
|
+
return `@types/${_optionalChain([scope, 'optionalAccess', _71 => _71.slice, 'call', _72 => _72(1)])}__${name}`;
|
|
1115
1064
|
}
|
|
1116
1065
|
return `@types/${npmPackage}`;
|
|
1117
1066
|
}
|
|
@@ -1279,6 +1228,84 @@ var shebangRenderer = {
|
|
|
1279
1228
|
}
|
|
1280
1229
|
};
|
|
1281
1230
|
|
|
1231
|
+
// ../esbuild/src/utilities/get-entry-points.ts
|
|
1232
|
+
|
|
1233
|
+
var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
1234
|
+
const workspaceRoot3 = config.workspaceRoot || _chunkQQQD2SINjs.findWorkspaceRoot.call(void 0, );
|
|
1235
|
+
const entryPoints = [];
|
|
1236
|
+
if (entry) {
|
|
1237
|
+
if (typeof entry === "string") {
|
|
1238
|
+
entryPoints.push({
|
|
1239
|
+
in: entry,
|
|
1240
|
+
out: entry
|
|
1241
|
+
});
|
|
1242
|
+
} else if (Array.isArray(entry)) {
|
|
1243
|
+
entryPoints.push(...entry.map((entry2) => ({
|
|
1244
|
+
in: entry2,
|
|
1245
|
+
out: entry2
|
|
1246
|
+
})));
|
|
1247
|
+
} else {
|
|
1248
|
+
entryPoints.push(...Object.entries(entry).map(([key, value]) => {
|
|
1249
|
+
if (typeof value === "string") {
|
|
1250
|
+
return {
|
|
1251
|
+
in: value,
|
|
1252
|
+
out: key
|
|
1253
|
+
};
|
|
1254
|
+
} else {
|
|
1255
|
+
return {
|
|
1256
|
+
in: key,
|
|
1257
|
+
out: key
|
|
1258
|
+
};
|
|
1259
|
+
}
|
|
1260
|
+
}));
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
if (emitOnAll) {
|
|
1264
|
+
entryPoints.push({
|
|
1265
|
+
in: _chunkQQQD2SINjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"),
|
|
1266
|
+
out: _chunkQQQD2SINjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}")
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
1270
|
+
const paths = [];
|
|
1271
|
+
if (entryPoint.in.includes("*")) {
|
|
1272
|
+
const files = await _glob.glob.call(void 0, entryPoint.in, {
|
|
1273
|
+
withFileTypes: true,
|
|
1274
|
+
ignore: [
|
|
1275
|
+
"**/node_modules/**"
|
|
1276
|
+
]
|
|
1277
|
+
});
|
|
1278
|
+
paths.push(...files.reduce((ret, filePath) => {
|
|
1279
|
+
const result = _chunkQQQD2SINjs.correctPaths.call(void 0, _chunkQQQD2SINjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkQQQD2SINjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkQQQD2SINjs.correctPaths.call(void 0, projectRoot), ""));
|
|
1280
|
+
if (result) {
|
|
1281
|
+
_chunkQQQD2SINjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkQQQD2SINjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
1282
|
+
if (!paths.some((p) => p.in === result)) {
|
|
1283
|
+
paths.push({
|
|
1284
|
+
in: result,
|
|
1285
|
+
out: entryPoint.out.replace(entryPoint.in, result)
|
|
1286
|
+
});
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
return ret;
|
|
1290
|
+
}, []));
|
|
1291
|
+
} else {
|
|
1292
|
+
_chunkQQQD2SINjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
|
|
1293
|
+
if (!paths.some((p) => p.in === entryPoint.in)) {
|
|
1294
|
+
paths.push(entryPoint);
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
return paths;
|
|
1298
|
+
}));
|
|
1299
|
+
return results.filter(Boolean).reduce((ret, result) => {
|
|
1300
|
+
result.forEach((res) => {
|
|
1301
|
+
if (res && !ret.some((p) => p.in === res.in)) {
|
|
1302
|
+
ret.push(res);
|
|
1303
|
+
}
|
|
1304
|
+
});
|
|
1305
|
+
return ret;
|
|
1306
|
+
}, []);
|
|
1307
|
+
}, "getEntryPoints");
|
|
1308
|
+
|
|
1282
1309
|
// ../esbuild/src/utilities/helpers.ts
|
|
1283
1310
|
function handleSync(fn) {
|
|
1284
1311
|
try {
|
|
@@ -1327,7 +1354,7 @@ function pipeSync(fn, ...fns) {
|
|
|
1327
1354
|
return (...args) => {
|
|
1328
1355
|
let result = fn(...args);
|
|
1329
1356
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
1330
|
-
result = _optionalChain([fns, 'access',
|
|
1357
|
+
result = _optionalChain([fns, 'access', _73 => _73[i], 'optionalCall', _74 => _74(result)]);
|
|
1331
1358
|
}
|
|
1332
1359
|
return result;
|
|
1333
1360
|
};
|
|
@@ -1337,7 +1364,7 @@ function pipeAsync(fn, ...fns) {
|
|
|
1337
1364
|
return async (...args) => {
|
|
1338
1365
|
let result = await fn(...args);
|
|
1339
1366
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
1340
|
-
result = await _optionalChain([fns, 'access',
|
|
1367
|
+
result = await _optionalChain([fns, 'access', _75 => _75[i], 'optionalCall', _76 => _76(result)]);
|
|
1341
1368
|
}
|
|
1342
1369
|
return result;
|
|
1343
1370
|
};
|
|
@@ -1367,7 +1394,7 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1367
1394
|
const projectJson = JSON.parse(projectJsonFile);
|
|
1368
1395
|
const projectName = projectJson.name;
|
|
1369
1396
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
1370
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
1397
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _77 => _77.projects, 'optionalAccess', _78 => _78[projectName]])) {
|
|
1371
1398
|
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.");
|
|
1372
1399
|
}
|
|
1373
1400
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
@@ -1473,23 +1500,9 @@ async function generatePackageJson(context2) {
|
|
|
1473
1500
|
packageJson.exports ??= {};
|
|
1474
1501
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
1475
1502
|
packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
|
|
1476
|
-
|
|
1477
|
-
{
|
|
1478
|
-
|
|
1479
|
-
out: "./src/index.ts"
|
|
1480
|
-
}
|
|
1481
|
-
];
|
|
1482
|
-
if (context2.options.entryPoints) {
|
|
1483
|
-
if (Array.isArray(context2.options.entryPoints)) {
|
|
1484
|
-
entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
|
|
1485
|
-
in: entryPoint,
|
|
1486
|
-
out: _chunkQQQD2SINjs.correctPaths.call(void 0, entryPoint.replaceAll(_chunkQQQD2SINjs.correctPaths.call(void 0, context2.options.config.workspaceRoot), "").replaceAll(_chunkQQQD2SINjs.correctPaths.call(void 0, context2.options.projectRoot), ""))
|
|
1487
|
-
} : entryPoint);
|
|
1488
|
-
}
|
|
1489
|
-
for (const entryPoint of entryPoints) {
|
|
1490
|
-
const split = entryPoint.out.split(".");
|
|
1491
|
-
split.pop();
|
|
1492
|
-
const entry = split.join(".").replaceAll("\\", "/");
|
|
1503
|
+
for (const entryPoint of context2.options.entryPoints) {
|
|
1504
|
+
if (entryPoint.out) {
|
|
1505
|
+
const entry = entryPoint.out.replaceAll("\\", "/").replaceAll(/^(\.\/)*/, "").replace(/\.([cm])?[jt]s(x)?$/, "");
|
|
1493
1506
|
packageJson.exports[`./${entry}`] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/${entry}.js`;
|
|
1494
1507
|
}
|
|
1495
1508
|
}
|
|
@@ -1581,7 +1594,7 @@ ${_chunkQQQD2SINjs.formatLogMessage.call(void 0, {
|
|
|
1581
1594
|
}
|
|
1582
1595
|
_chunkJ5SB6L2Ljs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
1583
1596
|
async function copyBuildAssets(context2) {
|
|
1584
|
-
if (_optionalChain([context2, 'access',
|
|
1597
|
+
if (_optionalChain([context2, 'access', _79 => _79.result, 'optionalAccess', _80 => _80.errors, 'access', _81 => _81.length]) === 0) {
|
|
1585
1598
|
_chunkQQQD2SINjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
1586
1599
|
const stopwatch = _chunkQQQD2SINjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
1587
1600
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
@@ -1591,7 +1604,7 @@ async function copyBuildAssets(context2) {
|
|
|
1591
1604
|
}
|
|
1592
1605
|
_chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
1593
1606
|
async function reportResults(context2) {
|
|
1594
|
-
if (_optionalChain([context2, 'access',
|
|
1607
|
+
if (_optionalChain([context2, 'access', _82 => _82.result, 'optionalAccess', _83 => _83.errors, 'access', _84 => _84.length]) === 0) {
|
|
1595
1608
|
if (context2.result.warnings.length > 0) {
|
|
1596
1609
|
_chunkQQQD2SINjs.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);
|
|
1597
1610
|
}
|
|
@@ -1692,14 +1705,14 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
|
|
|
1692
1705
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1693
1706
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1694
1707
|
_chunkQQQD2SINjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1695
|
-
if (!_optionalChain([context2, 'access',
|
|
1708
|
+
if (!_optionalChain([context2, 'access', _85 => _85.projectsConfigurations, 'optionalAccess', _86 => _86.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _87 => _87.projectsConfigurations, 'access', _88 => _88.projects, 'access', _89 => _89[context2.projectName], 'optionalAccess', _90 => _90.root])) {
|
|
1696
1709
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1697
1710
|
}
|
|
1698
1711
|
await build3({
|
|
1699
1712
|
...options,
|
|
1700
|
-
projectRoot: _optionalChain([context2, 'access',
|
|
1713
|
+
projectRoot: _optionalChain([context2, 'access', _91 => _91.projectsConfigurations, 'access', _92 => _92.projects, 'optionalAccess', _93 => _93[context2.projectName], 'access', _94 => _94.root]),
|
|
1701
1714
|
projectName: context2.projectName,
|
|
1702
|
-
sourceRoot: _optionalChain([context2, 'access',
|
|
1715
|
+
sourceRoot: _optionalChain([context2, 'access', _95 => _95.projectsConfigurations, 'access', _96 => _96.projects, 'optionalAccess', _97 => _97[context2.projectName], 'optionalAccess', _98 => _98.sourceRoot]),
|
|
1703
1716
|
format: options.format,
|
|
1704
1717
|
platform: options.format
|
|
1705
1718
|
});
|
|
@@ -1742,7 +1755,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
|
|
|
1742
1755
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
1743
1756
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
1744
1757
|
async function sizeLimitExecutorFn(options, context2, config) {
|
|
1745
|
-
if (!_optionalChain([context2, 'optionalAccess',
|
|
1758
|
+
if (!_optionalChain([context2, 'optionalAccess', _99 => _99.projectName]) || !_optionalChain([context2, 'access', _100 => _100.projectsConfigurations, 'optionalAccess', _101 => _101.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1746
1759
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
1747
1760
|
}
|
|
1748
1761
|
_chunkQQQD2SINjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
|
|
@@ -1751,7 +1764,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
1751
1764
|
_esbuild3.default,
|
|
1752
1765
|
_esbuildwhy2.default
|
|
1753
1766
|
], {
|
|
1754
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access',
|
|
1767
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _102 => _102.projectsConfigurations, 'access', _103 => _103.projects, 'access', _104 => _104[context2.projectName], 'optionalAccess', _105 => _105.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _106 => _106.projectsConfigurations, 'access', _107 => _107.projects, 'access', _108 => _108[context2.projectName], 'optionalAccess', _109 => _109.root]), () => ( "./")), "src")))
|
|
1755
1768
|
}).then((result) => {
|
|
1756
1769
|
_chunkQQQD2SINjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
1757
1770
|
});
|
|
@@ -1810,7 +1823,7 @@ var executor_default8 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
1810
1823
|
var _jiti = require('jiti');
|
|
1811
1824
|
async function unbuildExecutorFn(options, context2, config) {
|
|
1812
1825
|
_chunkQQQD2SINjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1813
|
-
if (!_optionalChain([context2, 'access',
|
|
1826
|
+
if (!_optionalChain([context2, 'access', _110 => _110.projectsConfigurations, 'optionalAccess', _111 => _111.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1814
1827
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
1815
1828
|
}
|
|
1816
1829
|
if (!context2.projectsConfigurations.projects[context2.projectName].root) {
|
|
@@ -1893,7 +1906,7 @@ var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (nam
|
|
|
1893
1906
|
- workspaceRoot: ${workspaceRoot3}`, config);
|
|
1894
1907
|
config = await _chunkZ5XL2UL5js.getConfig.call(void 0, workspaceRoot3);
|
|
1895
1908
|
}
|
|
1896
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1909
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _112 => _112.hooks, 'optionalAccess', _113 => _113.applyDefaultOptions])) {
|
|
1897
1910
|
_chunkQQQD2SINjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1898
1911
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
1899
1912
|
_chunkQQQD2SINjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
@@ -1904,22 +1917,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1904
1917
|
workspaceRoot: tree.root,
|
|
1905
1918
|
config
|
|
1906
1919
|
}, applyWorkspaceBaseTokens);
|
|
1907
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1920
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _114 => _114.hooks, 'optionalAccess', _115 => _115.preProcess])) {
|
|
1908
1921
|
_chunkQQQD2SINjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1909
1922
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
1910
1923
|
_chunkQQQD2SINjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1911
1924
|
}
|
|
1912
1925
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
1913
1926
|
if (result) {
|
|
1914
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
1927
|
+
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _116 => _116.error, 'optionalAccess', _117 => _117.message]) && typeof _optionalChain([result, 'optionalAccess', _118 => _118.error, 'optionalAccess', _119 => _119.message]) === "string" && _optionalChain([result, 'optionalAccess', _120 => _120.error, 'optionalAccess', _121 => _121.name]) && typeof _optionalChain([result, 'optionalAccess', _122 => _122.error, 'optionalAccess', _123 => _123.name]) === "string") {
|
|
1915
1928
|
throw new Error(`The ${name} generator failed to run`, {
|
|
1916
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
1929
|
+
cause: _optionalChain([result, 'optionalAccess', _124 => _124.error])
|
|
1917
1930
|
});
|
|
1918
1931
|
} else if (result.success && result.data) {
|
|
1919
1932
|
return result;
|
|
1920
1933
|
}
|
|
1921
1934
|
}
|
|
1922
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1935
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _125 => _125.hooks, 'optionalAccess', _126 => _126.postProcess])) {
|
|
1923
1936
|
_chunkQQQD2SINjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1924
1937
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1925
1938
|
_chunkQQQD2SINjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
@@ -2029,15 +2042,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2029
2042
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
2030
2043
|
let repository = {
|
|
2031
2044
|
type: "github",
|
|
2032
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
2045
|
+
url: _optionalChain([config, 'optionalAccess', _127 => _127.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _128 => _128.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _129 => _129.namespace]) || _optionalChain([config, 'optionalAccess', _130 => _130.name]) || "repository"}.git`
|
|
2033
2046
|
};
|
|
2034
2047
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
2035
2048
|
if (tree.exists("package.json")) {
|
|
2036
2049
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2037
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2050
|
+
if (_optionalChain([packageJson, 'optionalAccess', _131 => _131.repository])) {
|
|
2038
2051
|
repository = packageJson.repository;
|
|
2039
2052
|
}
|
|
2040
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2053
|
+
if (_optionalChain([packageJson, 'optionalAccess', _132 => _132.description])) {
|
|
2041
2054
|
description = packageJson.description;
|
|
2042
2055
|
}
|
|
2043
2056
|
}
|
|
@@ -2092,9 +2105,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2092
2105
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
2093
2106
|
...json,
|
|
2094
2107
|
pnpm: {
|
|
2095
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2108
|
+
..._optionalChain([json, 'optionalAccess', _133 => _133.pnpm]),
|
|
2096
2109
|
overrides: {
|
|
2097
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2110
|
+
..._optionalChain([json, 'optionalAccess', _134 => _134.pnpm, 'optionalAccess', _135 => _135.overrides]),
|
|
2098
2111
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
2099
2112
|
}
|
|
2100
2113
|
}
|
|
@@ -2108,10 +2121,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2108
2121
|
]);
|
|
2109
2122
|
if (tree.exists("package.json")) {
|
|
2110
2123
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2111
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2124
|
+
if (_optionalChain([packageJson, 'optionalAccess', _136 => _136.repository])) {
|
|
2112
2125
|
repository = packageJson.repository;
|
|
2113
2126
|
}
|
|
2114
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2127
|
+
if (_optionalChain([packageJson, 'optionalAccess', _137 => _137.description])) {
|
|
2115
2128
|
description = packageJson.description;
|
|
2116
2129
|
}
|
|
2117
2130
|
}
|
|
@@ -2159,24 +2172,24 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
|
2159
2172
|
function createProjectTsConfigJson(tree, options) {
|
|
2160
2173
|
const tsconfig = {
|
|
2161
2174
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
2162
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2175
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _138 => _138.tsconfigOptions]), () => ( {})),
|
|
2163
2176
|
compilerOptions: {
|
|
2164
2177
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2165
2178
|
outDir: _chunkQQQD2SINjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2166
2179
|
noEmit: true,
|
|
2167
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2180
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _139 => _139.tsconfigOptions, 'optionalAccess', _140 => _140.compilerOptions]), () => ( {}))
|
|
2168
2181
|
},
|
|
2169
2182
|
files: [
|
|
2170
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2183
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _141 => _141.tsconfigOptions, 'optionalAccess', _142 => _142.files]), () => ( []))
|
|
2171
2184
|
],
|
|
2172
2185
|
include: [
|
|
2173
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2186
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _143 => _143.tsconfigOptions, 'optionalAccess', _144 => _144.include]), () => ( [])),
|
|
2174
2187
|
"src/**/*.ts",
|
|
2175
2188
|
"src/**/*.js",
|
|
2176
2189
|
"bin/**/*"
|
|
2177
2190
|
],
|
|
2178
2191
|
exclude: [
|
|
2179
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2192
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _145 => _145.tsconfigOptions, 'optionalAccess', _146 => _146.exclude]), () => ( [])),
|
|
2180
2193
|
"jest.config.ts",
|
|
2181
2194
|
"src/**/*.spec.ts",
|
|
2182
2195
|
"src/**/*.test.ts"
|
|
@@ -2187,8 +2200,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2187
2200
|
_chunkJ5SB6L2Ljs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
2188
2201
|
async function normalizeOptions(tree, options, config) {
|
|
2189
2202
|
let importPath = options.importPath;
|
|
2190
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
2191
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
2203
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _147 => _147.namespace])) {
|
|
2204
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _148 => _148.namespace])}/${options.name}`;
|
|
2192
2205
|
}
|
|
2193
2206
|
if (options.publishable) {
|
|
2194
2207
|
if (!importPath) {
|
|
@@ -2320,7 +2333,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
2320
2333
|
name: "StormWorkspaceConfiguration"
|
|
2321
2334
|
});
|
|
2322
2335
|
_chunkQQQD2SINjs.writeTrace.call(void 0, jsonSchema, config);
|
|
2323
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
2336
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _149 => _149.workspaceRoot]), () => ( _chunkQQQD2SINjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _150 => _150.outputFile, 'optionalAccess', _151 => _151.startsWith, 'call', _152 => _152("./")]) ? "" : "./");
|
|
2324
2337
|
_chunkQQQD2SINjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
2325
2338
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
2326
2339
|
spaces: 2
|
package/dist/executors.js
CHANGED
package/dist/executors.mjs
CHANGED
package/dist/generators.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk3DVY2QHLjs = require('./chunk-3DVY2QHL.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkIEHGWQ4Mjs = require('./chunk-IEHGWQ4M.js');
|
|
10
10
|
require('./chunk-Z5XL2UL5.js');
|
|
11
11
|
require('./chunk-QQQD2SIN.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 = _chunk3DVY2QHLjs.applicationGenerator; exports.applicationSchematic = _chunk3DVY2QHLjs.applicationSchematic; exports.initGenerator = _chunkIEHGWQ4Mjs.initGenerator; exports.initSchematic = _chunkIEHGWQ4Mjs.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-UH5EDA2E.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator,
|
|
8
8
|
initSchematic
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-S3EDQJGN.mjs";
|
|
10
10
|
import "./chunk-2P5TGL2R.mjs";
|
|
11
11
|
import "./chunk-YBYGEO5L.mjs";
|
|
12
12
|
import "./chunk-3HMZSKJD.mjs";
|
package/dist/index.js
CHANGED
|
@@ -3,14 +3,14 @@ require('./chunk-DHBG5ASJ.js');
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3DVY2QHLjs = require('./chunk-3DVY2QHL.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkIEHGWQ4Mjs = require('./chunk-IEHGWQ4M.js');
|
|
11
11
|
require('./chunk-CVGPWUNP.js');
|
|
12
12
|
require('./chunk-R7AIVBS7.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-SN2MOXTV.js');
|
|
14
14
|
require('./chunk-4P4IIN6G.js');
|
|
15
15
|
|
|
16
16
|
|
|
@@ -148,4 +148,4 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, createPackageJson, "createPackageJson");
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
exports.applicationGenerator =
|
|
151
|
+
exports.applicationGenerator = _chunk3DVY2QHLjs.applicationGenerator; exports.applicationSchematic = _chunk3DVY2QHLjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkS5NUDAJRjs.getInternalDependencies; exports.initGenerator = _chunkIEHGWQ4Mjs.initGenerator; exports.initSchematic = _chunkIEHGWQ4Mjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkS5NUDAJRjs.r2UploadFile;
|
package/dist/index.mjs
CHANGED
|
@@ -3,14 +3,14 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
applicationGenerator,
|
|
5
5
|
applicationSchematic
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UH5EDA2E.mjs";
|
|
7
7
|
import {
|
|
8
8
|
initGenerator,
|
|
9
9
|
initSchematic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S3EDQJGN.mjs";
|
|
11
11
|
import "./chunk-7Z5PILRU.mjs";
|
|
12
12
|
import "./chunk-VNLZQQ5C.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-6FRQN6OH.mjs";
|
|
14
14
|
import "./chunk-QGY5FTZR.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getInternalDependencies,
|
|
@@ -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-SN2MOXTV.js');
|
|
5
5
|
require('../../../chunk-VTHBMY4B.js');
|
|
6
6
|
require('../../../chunk-Z5XL2UL5.js');
|
|
7
7
|
require('../../../chunk-QQQD2SIN.js');
|
|
@@ -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 _chunkSN2MOXTVjs = require('../../../chunk-SN2MOXTV.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 = _chunkSN2MOXTVjs.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) => {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkIEHGWQ4Mjs = require('../../../chunk-IEHGWQ4M.js');
|
|
6
6
|
require('../../../chunk-J5SB6L2L.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkIEHGWQ4Mjs.generator_default; exports.initGenerator = _chunkIEHGWQ4Mjs.initGenerator; exports.initSchematic = _chunkIEHGWQ4Mjs.initSchematic;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
5
|
+
var _chunk3DVY2QHLjs = require('../../../chunk-3DVY2QHL.js');
|
|
6
|
+
require('../../../chunk-IEHGWQ4M.js');
|
|
7
7
|
require('../../../chunk-Z5XL2UL5.js');
|
|
8
8
|
require('../../../chunk-QQQD2SIN.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 = _chunk3DVY2QHLjs.applicationGenerator; exports.applicationSchematic = _chunk3DVY2QHLjs.applicationSchematic; exports.default = _chunk3DVY2QHLjs.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-UH5EDA2E.mjs";
|
|
6
|
+
import "../../../chunk-S3EDQJGN.mjs";
|
|
7
7
|
import "../../../chunk-2P5TGL2R.mjs";
|
|
8
8
|
import "../../../chunk-YBYGEO5L.mjs";
|
|
9
9
|
import "../../../chunk-3HMZSKJD.mjs";
|
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.47",
|
|
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",
|