@storm-software/cloudflare-tools 0.69.11 → 0.69.13
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-ZKRNXBH6.mjs → chunk-3JOI5EX3.mjs} +1 -1
- package/dist/{chunk-KIYU2U77.mjs → chunk-3ND7IFGL.mjs} +1 -1
- package/dist/{chunk-XVWYWKVD.mjs → chunk-4O3KCW5B.mjs} +2 -2
- package/dist/{chunk-FAJOO4I6.js → chunk-4XOYLZYF.js} +3 -3
- package/dist/{chunk-NTAV5AUH.mjs → chunk-75UCMKKR.mjs} +1 -1
- package/dist/{chunk-VDXJ4LVM.js → chunk-DTVTFZ3M.js} +4 -4
- package/dist/{chunk-DBC7P4X5.mjs → chunk-E2ZFCCN4.mjs} +3 -3
- package/dist/{chunk-OLYTJT2T.js → chunk-EY6DBLWN.js} +2 -2
- package/dist/{chunk-SUVYUU6A.js → chunk-FHZTER4G.js} +62 -62
- package/dist/{chunk-5NQCOBLB.mjs → chunk-G7URSO75.mjs} +3 -3
- package/dist/{chunk-TPY4DQD7.mjs → chunk-RSNYZTUY.mjs} +4 -4
- package/dist/{chunk-4QVKIGEH.js → chunk-ZEALFYUV.js} +5 -5
- package/dist/executors.js +3 -3
- package/dist/executors.mjs +5 -5
- package/dist/generators.js +4 -4
- package/dist/generators.mjs +4 -4
- package/dist/index.js +6 -6
- package/dist/index.mjs +7 -7
- package/dist/src/executors/cloudflare-publish/executor.js +2 -2
- package/dist/src/executors/cloudflare-publish/executor.mjs +4 -4
- package/dist/src/executors/r2-upload-publish/executor.js +3 -3
- package/dist/src/executors/r2-upload-publish/executor.mjs +3 -3
- package/dist/src/executors/serve/executor.js +3 -3
- package/dist/src/executors/serve/executor.mjs +3 -3
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +2 -2
- package/dist/src/generators/worker/generator.js +4 -4
- package/dist/src/generators/worker/generator.mjs +4 -4
- package/dist/src/utils/index.mjs +1 -1
- package/dist/src/utils/r2-bucket-helpers.mjs +1 -1
- package/dist/tsup.config.mjs +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.69.12](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.69.12) (2025-10-05)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update workspace package links
|
|
10
|
+
([5d087ae37](https://github.com/storm-software/storm-ops/commit/5d087ae37))
|
|
11
|
+
|
|
12
|
+
## [0.69.11](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.69.11) (2025-10-05)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Update workspace package links
|
|
17
|
+
([125d73a6a](https://github.com/storm-software/storm-ops/commit/125d73a6a))
|
|
18
|
+
|
|
5
19
|
## [0.69.10](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.69.10) (2025-10-05)
|
|
6
20
|
|
|
7
21
|
### Bug Fixes
|
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 -->
|
|
@@ -9,7 +9,7 @@ var __commonJS = (cb, mod) => function __require2() {
|
|
|
9
9
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
12
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__ec4aa22eb3298e2424e2aeac2c3d9326/node_modules/tsup/assets/esm_shims.js
|
|
13
13
|
import { fileURLToPath } from "url";
|
|
14
14
|
import path from "path";
|
|
15
15
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
joinPaths,
|
|
10
10
|
schemaRegistry,
|
|
11
11
|
workspaceConfigSchema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RSNYZTUY.mjs";
|
|
13
13
|
import {
|
|
14
14
|
formatLogMessage,
|
|
15
15
|
getStopwatch,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-V44DYGWX.mjs";
|
|
24
24
|
import {
|
|
25
25
|
__dirname
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3JOI5EX3.mjs";
|
|
27
27
|
|
|
28
28
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
29
29
|
var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
@@ -9,7 +9,7 @@ var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkDTVTFZ3Mjs = require('./chunk-DTVTFZ3M.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -39,8 +39,8 @@ async function runExecutor(options, context) {
|
|
|
39
39
|
throw new Error("The executor requires projectsConfigurations.");
|
|
40
40
|
}
|
|
41
41
|
try {
|
|
42
|
-
const workspaceRoot =
|
|
43
|
-
const config = await
|
|
42
|
+
const workspaceRoot = _chunkDTVTFZ3Mjs.findWorkspaceRoot.call(void 0, );
|
|
43
|
+
const config = await _chunkDTVTFZ3Mjs.getConfig.call(void 0, workspaceRoot);
|
|
44
44
|
const sourceRoot = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.sourceRoot]), () => ( workspaceRoot));
|
|
45
45
|
const projectName = _nullishCoalesce(_optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.name]), () => ( context.projectName));
|
|
46
46
|
const projectDetails = _chunkNU34IEWNjs.getPackageInfo.call(void 0,
|
|
@@ -1668,16 +1668,16 @@ ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0, config)}`,
|
|
|
1668
1668
|
};
|
|
1669
1669
|
|
|
1670
1670
|
// ../config-tools/src/get-config.ts
|
|
1671
|
-
|
|
1671
|
+
function getConfig(workspaceRoot, skipLogs = false) {
|
|
1672
1672
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1673
|
+
}
|
|
1674
|
+
function getWorkspaceConfig(skipLogs = true, options = {}) {
|
|
1675
1675
|
let workspaceRoot = options.workspaceRoot;
|
|
1676
1676
|
if (!workspaceRoot) {
|
|
1677
1677
|
workspaceRoot = findWorkspaceRoot(options.cwd);
|
|
1678
1678
|
}
|
|
1679
1679
|
return getConfig(workspaceRoot, skipLogs);
|
|
1680
|
-
}
|
|
1680
|
+
}
|
|
1681
1681
|
|
|
1682
1682
|
|
|
1683
1683
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-G7URSO75.mjs";
|
|
4
4
|
import {
|
|
5
5
|
findWorkspaceRoot,
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RSNYZTUY.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getStopwatch,
|
|
10
10
|
writeDebug,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-V44DYGWX.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__dirname
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3JOI5EX3.mjs";
|
|
19
19
|
|
|
20
20
|
// src/generators/worker/generator.ts
|
|
21
21
|
import {
|
|
@@ -7,7 +7,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.69.
|
|
10
|
+
version: "0.69.12",
|
|
11
11
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
12
12
|
repository: {
|
|
13
13
|
type: "github",
|
|
@@ -176,7 +176,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
176
176
|
nx: "catalog:",
|
|
177
177
|
tsup: "catalog:",
|
|
178
178
|
untyped: "catalog:",
|
|
179
|
-
wrangler: "^4.42.
|
|
179
|
+
wrangler: "^4.42.1"
|
|
180
180
|
},
|
|
181
181
|
publishConfig: {
|
|
182
182
|
access: "public"
|
|
@@ -9,7 +9,7 @@ var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkDTVTFZ3Mjs = require('./chunk-DTVTFZ3M.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -57,7 +57,7 @@ var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
|
57
57
|
if (result.includes("{workspaceRoot}")) {
|
|
58
58
|
result = result.replaceAll(
|
|
59
59
|
"{workspaceRoot}",
|
|
60
|
-
_nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => (
|
|
60
|
+
_nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunkDTVTFZ3Mjs.findWorkspaceRoot.call(void 0, )))
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
63
|
return result;
|
|
@@ -106,7 +106,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
106
106
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
|
-
const workspaceRoot3 =
|
|
109
|
+
const workspaceRoot3 = _chunkDTVTFZ3Mjs.findWorkspaceRoot.call(void 0, );
|
|
110
110
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot3;
|
|
111
111
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot3;
|
|
112
112
|
const projectName = context.projectName;
|
|
@@ -122,7 +122,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
122
122
|
`,
|
|
123
123
|
config5
|
|
124
124
|
);
|
|
125
|
-
config5 = await
|
|
125
|
+
config5 = await _chunkDTVTFZ3Mjs.getConfig.call(void 0, workspaceRoot3);
|
|
126
126
|
}
|
|
127
127
|
if (_optionalChain([executorOptions, 'optionalAccess', _7 => _7.hooks, 'optionalAccess', _8 => _8.applyDefaultOptions])) {
|
|
128
128
|
_chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config5);
|
|
@@ -504,7 +504,7 @@ var copyAssets = async (config5, assets, outputPath, projectRoot, sourceRoot, ge
|
|
|
504
504
|
}
|
|
505
505
|
_chunk2CDSXWFAjs.writeTrace.call(void 0,
|
|
506
506
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
507
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
507
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkDTVTFZ3Mjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
508
508
|
config5
|
|
509
509
|
);
|
|
510
510
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -517,17 +517,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
517
517
|
_chunk2CDSXWFAjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config5);
|
|
518
518
|
if (includeSrc === true) {
|
|
519
519
|
_chunk2CDSXWFAjs.writeDebug.call(void 0,
|
|
520
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
520
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
521
521
|
outputPath,
|
|
522
522
|
"src"
|
|
523
523
|
)}`,
|
|
524
524
|
config5
|
|
525
525
|
);
|
|
526
526
|
const files = await _glob.glob.call(void 0, [
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
527
|
+
_chunkDTVTFZ3Mjs.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
528
|
+
_chunkDTVTFZ3Mjs.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
529
|
+
_chunkDTVTFZ3Mjs.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.js"),
|
|
530
|
+
_chunkDTVTFZ3Mjs.joinPaths.call(void 0, config5.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
531
531
|
]);
|
|
532
532
|
await Promise.allSettled(
|
|
533
533
|
files.map(
|
|
@@ -582,7 +582,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
582
582
|
)) {
|
|
583
583
|
const projectNode = project.node;
|
|
584
584
|
if (projectNode.data.root) {
|
|
585
|
-
const projectPackageJsonPath =
|
|
585
|
+
const projectPackageJsonPath = _chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
586
586
|
workspaceRoot3,
|
|
587
587
|
projectNode.data.root,
|
|
588
588
|
"package.json"
|
|
@@ -604,7 +604,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
604
604
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
605
605
|
);
|
|
606
606
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
607
|
-
|
|
607
|
+
_chunkDTVTFZ3Mjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
608
608
|
"utf8"
|
|
609
609
|
);
|
|
610
610
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -617,7 +617,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
617
617
|
}
|
|
618
618
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _37 => _37.projects, 'optionalAccess', _38 => _38[projectName2], 'access', _39 => _39.implicitDependencies, 'optionalAccess', _40 => _40.reduce, 'call', _41 => _41((ret, dep) => {
|
|
619
619
|
if (_optionalChain([projectConfigurations, 'access', _42 => _42.projects, 'optionalAccess', _43 => _43[dep]])) {
|
|
620
|
-
const depPackageJsonPath =
|
|
620
|
+
const depPackageJsonPath = _chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
621
621
|
workspaceRoot3,
|
|
622
622
|
projectConfigurations.projects[dep].root,
|
|
623
623
|
"package.json"
|
|
@@ -653,9 +653,9 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
653
653
|
return packageJson;
|
|
654
654
|
};
|
|
655
655
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
656
|
-
const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot :
|
|
656
|
+
const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkDTVTFZ3Mjs.findWorkspaceRoot.call(void 0, );
|
|
657
657
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
658
|
-
|
|
658
|
+
_chunkDTVTFZ3Mjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
659
659
|
"utf8"
|
|
660
660
|
);
|
|
661
661
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -666,7 +666,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
666
666
|
if (distSrc.startsWith("/")) {
|
|
667
667
|
distSrc = distSrc.substring(1);
|
|
668
668
|
}
|
|
669
|
-
packageJson.source ??= `${
|
|
669
|
+
packageJson.source ??= `${_chunkDTVTFZ3Mjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
670
670
|
}
|
|
671
671
|
packageJson.files ??= ["dist/**/*"];
|
|
672
672
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -691,7 +691,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
691
691
|
packageJson.contributors = [packageJson.author];
|
|
692
692
|
}
|
|
693
693
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
694
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
694
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkDTVTFZ3Mjs.joinPaths.call(void 0, "packages", projectName);
|
|
695
695
|
return packageJson;
|
|
696
696
|
};
|
|
697
697
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -830,7 +830,7 @@ async function resolveContext(userOptions) {
|
|
|
830
830
|
if (!workspaceRoot3) {
|
|
831
831
|
throw new Error("Cannot find Nx workspace root");
|
|
832
832
|
}
|
|
833
|
-
const workspaceConfig = await
|
|
833
|
+
const workspaceConfig = await _chunkDTVTFZ3Mjs.getWorkspaceConfig.call(void 0, true, {
|
|
834
834
|
workspaceRoot: workspaceRoot3.dir
|
|
835
835
|
});
|
|
836
836
|
_chunk2CDSXWFAjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
@@ -838,7 +838,7 @@ async function resolveContext(userOptions) {
|
|
|
838
838
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
839
839
|
exitOnError: true
|
|
840
840
|
});
|
|
841
|
-
const projectJsonPath =
|
|
841
|
+
const projectJsonPath = _chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
842
842
|
workspaceRoot3.dir,
|
|
843
843
|
projectRoot,
|
|
844
844
|
"project.json"
|
|
@@ -857,7 +857,7 @@ async function resolveContext(userOptions) {
|
|
|
857
857
|
}
|
|
858
858
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
859
859
|
options.name ??= projectName;
|
|
860
|
-
const packageJsonPath =
|
|
860
|
+
const packageJsonPath = _chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
861
861
|
workspaceRoot3.dir,
|
|
862
862
|
options.projectRoot,
|
|
863
863
|
"package.json"
|
|
@@ -869,7 +869,7 @@ async function resolveContext(userOptions) {
|
|
|
869
869
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
870
870
|
const resolvedOptions = {
|
|
871
871
|
...options,
|
|
872
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
872
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkDTVTFZ3Mjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
|
|
873
873
|
metafile: userOptions.mode === "development",
|
|
874
874
|
clean: false,
|
|
875
875
|
env,
|
|
@@ -894,8 +894,8 @@ async function resolveContext(userOptions) {
|
|
|
894
894
|
projectConfigurations,
|
|
895
895
|
projectName,
|
|
896
896
|
projectGraph,
|
|
897
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
898
|
-
outputPath: resolvedOptions.outputPath ||
|
|
897
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkDTVTFZ3Mjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
898
|
+
outputPath: resolvedOptions.outputPath || _chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
899
899
|
workspaceConfig.workspaceRoot,
|
|
900
900
|
"dist",
|
|
901
901
|
resolvedOptions.projectRoot
|
|
@@ -919,10 +919,10 @@ ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0, context.options)}`,
|
|
|
919
919
|
|
|
920
920
|
|
|
921
921
|
async function generatePackageJson(context) {
|
|
922
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
922
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkDTVTFZ3Mjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
923
923
|
_chunk2CDSXWFAjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
924
924
|
const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, "Write package.json file");
|
|
925
|
-
const packageJsonPath =
|
|
925
|
+
const packageJsonPath = _chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
926
926
|
context.options.projectRoot,
|
|
927
927
|
"project.json"
|
|
928
928
|
);
|
|
@@ -930,7 +930,7 @@ async function generatePackageJson(context) {
|
|
|
930
930
|
throw new Error("Cannot find package.json configuration");
|
|
931
931
|
}
|
|
932
932
|
const packageJsonFile = await _promises2.default.readFile(
|
|
933
|
-
|
|
933
|
+
_chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
934
934
|
context.workspaceConfig.workspaceRoot,
|
|
935
935
|
context.options.projectRoot,
|
|
936
936
|
"package.json"
|
|
@@ -1036,7 +1036,7 @@ async function generatePackageJson(context) {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
1038
1038
|
await _devkit.writeJsonFile.call(void 0,
|
|
1039
|
-
|
|
1039
|
+
_chunkDTVTFZ3Mjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
1040
1040
|
packageJson
|
|
1041
1041
|
);
|
|
1042
1042
|
stopwatch();
|
|
@@ -1054,7 +1054,7 @@ async function executeTsup(context) {
|
|
|
1054
1054
|
const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
1055
1055
|
await _tsup.build.call(void 0, {
|
|
1056
1056
|
...context.options,
|
|
1057
|
-
outDir: context.options.distDir ?
|
|
1057
|
+
outDir: context.options.distDir ? _chunkDTVTFZ3Mjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
1058
1058
|
workspaceConfig: context.workspaceConfig
|
|
1059
1059
|
});
|
|
1060
1060
|
stopwatch();
|
|
@@ -1281,11 +1281,11 @@ function toTSDownFormat(format3) {
|
|
|
1281
1281
|
// ../tsdown/src/build.ts
|
|
1282
1282
|
var resolveOptions = async (userOptions) => {
|
|
1283
1283
|
const options = getDefaultOptions(userOptions);
|
|
1284
|
-
const workspaceRoot3 =
|
|
1284
|
+
const workspaceRoot3 = _chunkDTVTFZ3Mjs.findWorkspaceRoot.call(void 0, options.projectRoot);
|
|
1285
1285
|
if (!workspaceRoot3) {
|
|
1286
1286
|
throw new Error("Cannot find Nx workspace root");
|
|
1287
1287
|
}
|
|
1288
|
-
const workspaceConfig = await
|
|
1288
|
+
const workspaceConfig = await _chunkDTVTFZ3Mjs.getWorkspaceConfig.call(void 0, options.debug === true, {
|
|
1289
1289
|
workspaceRoot: workspaceRoot3
|
|
1290
1290
|
});
|
|
1291
1291
|
_chunk2CDSXWFAjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
@@ -1293,7 +1293,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
1293
1293
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
1294
1294
|
exitOnError: true
|
|
1295
1295
|
});
|
|
1296
|
-
const projectJsonPath =
|
|
1296
|
+
const projectJsonPath = _chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
1297
1297
|
workspaceRoot3,
|
|
1298
1298
|
options.projectRoot,
|
|
1299
1299
|
"project.json"
|
|
@@ -1310,7 +1310,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
1310
1310
|
"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."
|
|
1311
1311
|
);
|
|
1312
1312
|
}
|
|
1313
|
-
const packageJsonPath =
|
|
1313
|
+
const packageJsonPath = _chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
1314
1314
|
workspaceRoot3,
|
|
1315
1315
|
options.projectRoot,
|
|
1316
1316
|
"package.json"
|
|
@@ -1319,13 +1319,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
1319
1319
|
throw new Error("Cannot find package.json configuration");
|
|
1320
1320
|
}
|
|
1321
1321
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
1322
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
1322
|
+
const sourceRoot = projectJson.sourceRoot || _chunkDTVTFZ3Mjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
1323
1323
|
const result = {
|
|
1324
1324
|
name: projectName,
|
|
1325
1325
|
mode: "production",
|
|
1326
1326
|
target: DEFAULT_TARGET,
|
|
1327
1327
|
generatePackageJson: true,
|
|
1328
|
-
outDir:
|
|
1328
|
+
outDir: _chunkDTVTFZ3Mjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
1329
1329
|
minify: !debug,
|
|
1330
1330
|
plugins: [],
|
|
1331
1331
|
assets: [],
|
|
@@ -1337,12 +1337,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
1337
1337
|
clean: false,
|
|
1338
1338
|
fixedExtension: true,
|
|
1339
1339
|
nodeProtocol: true,
|
|
1340
|
-
tsconfig:
|
|
1340
|
+
tsconfig: _chunkDTVTFZ3Mjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
1341
1341
|
debug,
|
|
1342
1342
|
sourceRoot,
|
|
1343
1343
|
cwd: workspaceConfig.workspaceRoot,
|
|
1344
1344
|
entry: {
|
|
1345
|
-
["index"]:
|
|
1345
|
+
["index"]: _chunkDTVTFZ3Mjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
1346
1346
|
},
|
|
1347
1347
|
workspace: true,
|
|
1348
1348
|
...options,
|
|
@@ -1361,15 +1361,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
1361
1361
|
return result;
|
|
1362
1362
|
};
|
|
1363
1363
|
async function generatePackageJson2(options) {
|
|
1364
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
1364
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkDTVTFZ3Mjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
1365
1365
|
_chunk2CDSXWFAjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
1366
1366
|
const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, "Write package.json file");
|
|
1367
|
-
const packageJsonPath =
|
|
1367
|
+
const packageJsonPath = _chunkDTVTFZ3Mjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
1368
1368
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1369
1369
|
throw new Error("Cannot find package.json configuration");
|
|
1370
1370
|
}
|
|
1371
1371
|
const packageJsonFile = await _promises2.default.readFile(
|
|
1372
|
-
|
|
1372
|
+
_chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
1373
1373
|
options.workspaceConfig.workspaceRoot,
|
|
1374
1374
|
options.projectRoot,
|
|
1375
1375
|
"package.json"
|
|
@@ -1431,7 +1431,7 @@ async function generatePackageJson2(options) {
|
|
|
1431
1431
|
},
|
|
1432
1432
|
packageJson.exports
|
|
1433
1433
|
);
|
|
1434
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
1434
|
+
await _devkit.writeJsonFile.call(void 0, _chunkDTVTFZ3Mjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
1435
1435
|
stopwatch();
|
|
1436
1436
|
}
|
|
1437
1437
|
return options;
|
|
@@ -1623,7 +1623,7 @@ async function unbuildExecutorFn(options, context, config5) {
|
|
|
1623
1623
|
);
|
|
1624
1624
|
}
|
|
1625
1625
|
const jiti = _jiti.createJiti.call(void 0, config5.workspaceRoot, {
|
|
1626
|
-
fsCache: config5.skipCache ? false :
|
|
1626
|
+
fsCache: config5.skipCache ? false : _chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
1627
1627
|
config5.workspaceRoot,
|
|
1628
1628
|
config5.directories.cache || "node_modules/.cache/storm",
|
|
1629
1629
|
"jiti"
|
|
@@ -1645,7 +1645,7 @@ async function unbuildExecutorFn(options, context, config5) {
|
|
|
1645
1645
|
{
|
|
1646
1646
|
stubOptions: {
|
|
1647
1647
|
jiti: {
|
|
1648
|
-
fsCache: config5.skipCache ? false :
|
|
1648
|
+
fsCache: config5.skipCache ? false : _chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
1649
1649
|
config5.workspaceRoot,
|
|
1650
1650
|
config5.directories.cache || "node_modules/.cache/storm",
|
|
1651
1651
|
"jiti"
|
|
@@ -1712,14 +1712,14 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
1712
1712
|
_chunk2CDSXWFAjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
1713
1713
|
|
|
1714
1714
|
`, config5);
|
|
1715
|
-
const workspaceRoot3 =
|
|
1715
|
+
const workspaceRoot3 = _chunkDTVTFZ3Mjs.findWorkspaceRoot.call(void 0, );
|
|
1716
1716
|
if (!generatorOptions.skipReadingConfig) {
|
|
1717
1717
|
_chunk2CDSXWFAjs.writeDebug.call(void 0,
|
|
1718
1718
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
1719
1719
|
- workspaceRoot: ${workspaceRoot3}`,
|
|
1720
1720
|
config5
|
|
1721
1721
|
);
|
|
1722
|
-
config5 = await
|
|
1722
|
+
config5 = await _chunkDTVTFZ3Mjs.getConfig.call(void 0, workspaceRoot3);
|
|
1723
1723
|
}
|
|
1724
1724
|
if (_optionalChain([generatorOptions, 'optionalAccess', _111 => _111.hooks, 'optionalAccess', _112 => _112.applyDefaultOptions])) {
|
|
1725
1725
|
_chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config5);
|
|
@@ -1838,16 +1838,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
|
|
|
1838
1838
|
const projectConfig = {
|
|
1839
1839
|
root: normalized.directory,
|
|
1840
1840
|
projectType: "library",
|
|
1841
|
-
sourceRoot:
|
|
1841
|
+
sourceRoot: _chunkDTVTFZ3Mjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
1842
1842
|
targets: {
|
|
1843
1843
|
build: {
|
|
1844
1844
|
executor: options.buildExecutor,
|
|
1845
1845
|
outputs: ["{options.outputPath}"],
|
|
1846
1846
|
options: {
|
|
1847
|
-
entry: [
|
|
1847
|
+
entry: [_chunkDTVTFZ3Mjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
1848
1848
|
outputPath: getOutputPath(normalized),
|
|
1849
|
-
tsconfig:
|
|
1850
|
-
project:
|
|
1849
|
+
tsconfig: _chunkDTVTFZ3Mjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
1850
|
+
project: _chunkDTVTFZ3Mjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
1851
1851
|
defaultConfiguration: "production",
|
|
1852
1852
|
platform: "neutral",
|
|
1853
1853
|
assets: [
|
|
@@ -1904,7 +1904,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
|
|
|
1904
1904
|
if (!normalized.importPath) {
|
|
1905
1905
|
normalized.importPath = normalized.name;
|
|
1906
1906
|
}
|
|
1907
|
-
const packageJsonPath =
|
|
1907
|
+
const packageJsonPath = _chunkDTVTFZ3Mjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
1908
1908
|
if (tree.exists(packageJsonPath)) {
|
|
1909
1909
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
1910
1910
|
if (!normalized.importPath) {
|
|
@@ -1961,14 +1961,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
|
|
|
1961
1961
|
}));
|
|
1962
1962
|
}
|
|
1963
1963
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
1964
|
-
|
|
1964
|
+
_chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
1965
1965
|
normalized.projectRoot,
|
|
1966
1966
|
"./src",
|
|
1967
1967
|
`index.${normalized.js ? "js" : "ts"}`
|
|
1968
1968
|
)
|
|
1969
1969
|
]);
|
|
1970
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
1971
|
-
|
|
1970
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkDTVTFZ3Mjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
1971
|
+
_chunkDTVTFZ3Mjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
1972
1972
|
]);
|
|
1973
1973
|
if (tree.exists("package.json")) {
|
|
1974
1974
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -1979,7 +1979,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config5) {
|
|
|
1979
1979
|
description = packageJson.description;
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
1982
|
-
const tsconfigPath =
|
|
1982
|
+
const tsconfigPath = _chunkDTVTFZ3Mjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
1983
1983
|
if (tree.exists(tsconfigPath)) {
|
|
1984
1984
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
1985
1985
|
json.composite ??= true;
|
|
@@ -2007,7 +2007,7 @@ function getOutputPath(options) {
|
|
|
2007
2007
|
} else {
|
|
2008
2008
|
parts.push(options.projectRoot);
|
|
2009
2009
|
}
|
|
2010
|
-
return
|
|
2010
|
+
return _chunkDTVTFZ3Mjs.joinPaths.call(void 0, ...parts);
|
|
2011
2011
|
}
|
|
2012
2012
|
function createProjectTsConfigJson(tree, options) {
|
|
2013
2013
|
const tsconfig = {
|
|
@@ -2015,7 +2015,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2015
2015
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _140 => _140.tsconfigOptions]), () => ( {})),
|
|
2016
2016
|
compilerOptions: {
|
|
2017
2017
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2018
|
-
outDir:
|
|
2018
|
+
outDir: _chunkDTVTFZ3Mjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2019
2019
|
noEmit: true,
|
|
2020
2020
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _141 => _141.tsconfigOptions, 'optionalAccess', _142 => _142.compilerOptions]), () => ( {}))
|
|
2021
2021
|
},
|
|
@@ -2033,7 +2033,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2033
2033
|
"src/**/*.test.ts"
|
|
2034
2034
|
]
|
|
2035
2035
|
};
|
|
2036
|
-
_devkit.writeJson.call(void 0, tree,
|
|
2036
|
+
_devkit.writeJson.call(void 0, tree, _chunkDTVTFZ3Mjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
2037
2037
|
}
|
|
2038
2038
|
async function normalizeOptions(tree, options, config5) {
|
|
2039
2039
|
let importPath = options.importPath;
|
|
@@ -2098,7 +2098,7 @@ async function normalizeOptions(tree, options, config5) {
|
|
|
2098
2098
|
|
|
2099
2099
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
2100
2100
|
async function browserLibraryGeneratorFn(tree, schema, config5) {
|
|
2101
|
-
const filesDir =
|
|
2101
|
+
const filesDir = _chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
2102
2102
|
__dirname,
|
|
2103
2103
|
"src",
|
|
2104
2104
|
"generators",
|
|
@@ -2189,9 +2189,9 @@ async function configSchemaGeneratorFn(tree, options, config5) {
|
|
|
2189
2189
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
2190
2190
|
config5
|
|
2191
2191
|
);
|
|
2192
|
-
const jsonSchema = z.toJSONSchema(
|
|
2192
|
+
const jsonSchema = z.toJSONSchema(_chunkDTVTFZ3Mjs.workspaceConfigSchema, {
|
|
2193
2193
|
target: "draft-7",
|
|
2194
|
-
metadata:
|
|
2194
|
+
metadata: _chunkDTVTFZ3Mjs.schemaRegistry
|
|
2195
2195
|
});
|
|
2196
2196
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
2197
2197
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
@@ -2203,7 +2203,7 @@ async function configSchemaGeneratorFn(tree, options, config5) {
|
|
|
2203
2203
|
);
|
|
2204
2204
|
}
|
|
2205
2205
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
2206
|
-
_nullishCoalesce(_optionalChain([config5, 'optionalAccess', _151 => _151.workspaceRoot]), () => (
|
|
2206
|
+
_nullishCoalesce(_optionalChain([config5, 'optionalAccess', _151 => _151.workspaceRoot]), () => ( _chunkDTVTFZ3Mjs.findWorkspaceRoot.call(void 0, ))),
|
|
2207
2207
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
2208
2208
|
);
|
|
2209
2209
|
_chunk2CDSXWFAjs.writeTrace.call(void 0,
|
|
@@ -2247,7 +2247,7 @@ var generator_default2 = withRunGenerator(
|
|
|
2247
2247
|
|
|
2248
2248
|
|
|
2249
2249
|
async function neutralLibraryGeneratorFn(tree, schema, config5) {
|
|
2250
|
-
const filesDir =
|
|
2250
|
+
const filesDir = _chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
2251
2251
|
__dirname,
|
|
2252
2252
|
"src",
|
|
2253
2253
|
"generators",
|
|
@@ -2306,7 +2306,7 @@ var generator_default3 = withRunGenerator(
|
|
|
2306
2306
|
|
|
2307
2307
|
|
|
2308
2308
|
async function nodeLibraryGeneratorFn(tree, schema, config5) {
|
|
2309
|
-
const filesDir =
|
|
2309
|
+
const filesDir = _chunkDTVTFZ3Mjs.joinPaths.call(void 0,
|
|
2310
2310
|
__dirname,
|
|
2311
2311
|
"src",
|
|
2312
2312
|
"generators",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__commonJS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3JOI5EX3.mjs";
|
|
4
4
|
|
|
5
5
|
// package.json
|
|
6
6
|
var require_package = __commonJS({
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.69.
|
|
10
|
+
version: "0.69.12",
|
|
11
11
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
12
12
|
repository: {
|
|
13
13
|
type: "github",
|
|
@@ -176,7 +176,7 @@ var require_package = __commonJS({
|
|
|
176
176
|
nx: "catalog:",
|
|
177
177
|
tsup: "catalog:",
|
|
178
178
|
untyped: "catalog:",
|
|
179
|
-
wrangler: "^4.42.
|
|
179
|
+
wrangler: "^4.42.1"
|
|
180
180
|
},
|
|
181
181
|
publishConfig: {
|
|
182
182
|
access: "public"
|
|
@@ -1668,16 +1668,16 @@ ${formatLogMessage(config)}`,
|
|
|
1668
1668
|
};
|
|
1669
1669
|
|
|
1670
1670
|
// ../config-tools/src/get-config.ts
|
|
1671
|
-
|
|
1671
|
+
function getConfig(workspaceRoot, skipLogs = false) {
|
|
1672
1672
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1673
|
+
}
|
|
1674
|
+
function getWorkspaceConfig(skipLogs = true, options = {}) {
|
|
1675
1675
|
let workspaceRoot = options.workspaceRoot;
|
|
1676
1676
|
if (!workspaceRoot) {
|
|
1677
1677
|
workspaceRoot = findWorkspaceRoot(options.cwd);
|
|
1678
1678
|
}
|
|
1679
1679
|
return getConfig(workspaceRoot, skipLogs);
|
|
1680
|
-
}
|
|
1680
|
+
}
|
|
1681
1681
|
|
|
1682
1682
|
export {
|
|
1683
1683
|
joinPaths,
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkEY6DBLWNjs = require('./chunk-EY6DBLWN.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkDTVTFZ3Mjs = require('./chunk-DTVTFZ3M.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -51,13 +51,13 @@ async function applicationGenerator(tree, schema) {
|
|
|
51
51
|
_chunk2CDSXWFAjs.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
|
|
52
52
|
|
|
53
53
|
`, config);
|
|
54
|
-
const workspaceRoot =
|
|
54
|
+
const workspaceRoot = _chunkDTVTFZ3Mjs.findWorkspaceRoot.call(void 0, );
|
|
55
55
|
_chunk2CDSXWFAjs.writeDebug.call(void 0,
|
|
56
56
|
`Loading the Storm Config from environment variables and storm.json file...
|
|
57
57
|
- workspaceRoot: ${workspaceRoot}`,
|
|
58
58
|
config
|
|
59
59
|
);
|
|
60
|
-
config = await
|
|
60
|
+
config = await _chunkDTVTFZ3Mjs.getConfig.call(void 0, workspaceRoot);
|
|
61
61
|
_chunk2CDSXWFAjs.writeTrace.call(void 0,
|
|
62
62
|
`Loaded Storm config into env:
|
|
63
63
|
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`,
|
|
@@ -66,7 +66,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
66
66
|
const options = await normalizeOptions(tree, schema, config);
|
|
67
67
|
const tasks = [];
|
|
68
68
|
tasks.push(
|
|
69
|
-
await
|
|
69
|
+
await _chunkEY6DBLWNjs.generator_default.call(void 0, tree, {
|
|
70
70
|
...options,
|
|
71
71
|
skipFormat: true
|
|
72
72
|
})
|
package/dist/executors.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";require('./chunk-XO66D74Z.js');
|
|
2
2
|
require('./chunk-IRORGRVZ.js');
|
|
3
|
-
require('./chunk-
|
|
4
|
-
require('./chunk-
|
|
3
|
+
require('./chunk-FHZTER4G.js');
|
|
4
|
+
require('./chunk-4XOYLZYF.js');
|
|
5
5
|
require('./chunk-NCQM44P3.js');
|
|
6
6
|
require('./chunk-NU34IEWN.js');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-DTVTFZ3M.js');
|
|
8
8
|
require('./chunk-2CDSXWFA.js');
|
|
9
9
|
require('./chunk-MCKGQKYU.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-
|
|
2
|
+
import "./chunk-75UCMKKR.mjs";
|
|
3
|
+
import "./chunk-4O3KCW5B.mjs";
|
|
4
|
+
import "./chunk-3ND7IFGL.mjs";
|
|
5
5
|
import "./chunk-IANDAPQS.mjs";
|
|
6
6
|
import "./chunk-PH3DHY4Q.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-RSNYZTUY.mjs";
|
|
8
8
|
import "./chunk-V44DYGWX.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-3JOI5EX3.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkZEALFYUVjs = require('./chunk-ZEALFYUV.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
9
|
+
var _chunkEY6DBLWNjs = require('./chunk-EY6DBLWN.js');
|
|
10
|
+
require('./chunk-DTVTFZ3M.js');
|
|
11
11
|
require('./chunk-2CDSXWFA.js');
|
|
12
12
|
require('./chunk-MCKGQKYU.js');
|
|
13
13
|
|
|
@@ -15,4 +15,4 @@ require('./chunk-MCKGQKYU.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.applicationGenerator =
|
|
18
|
+
exports.applicationGenerator = _chunkZEALFYUVjs.applicationGenerator; exports.applicationSchematic = _chunkZEALFYUVjs.applicationSchematic; exports.initGenerator = _chunkEY6DBLWNjs.initGenerator; exports.initSchematic = _chunkEY6DBLWNjs.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-E2ZFCCN4.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator,
|
|
8
8
|
initSchematic
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-G7URSO75.mjs";
|
|
10
|
+
import "./chunk-RSNYZTUY.mjs";
|
|
11
11
|
import "./chunk-V44DYGWX.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-3JOI5EX3.mjs";
|
|
13
13
|
export {
|
|
14
14
|
applicationGenerator,
|
|
15
15
|
applicationSchematic,
|
package/dist/index.js
CHANGED
|
@@ -3,15 +3,15 @@ require('./chunk-DHBG5ASJ.js');
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZEALFYUVjs = require('./chunk-ZEALFYUV.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkEY6DBLWNjs = require('./chunk-EY6DBLWN.js');
|
|
11
11
|
require('./chunk-CVGPWUNP.js');
|
|
12
12
|
require('./chunk-IRORGRVZ.js');
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-FHZTER4G.js');
|
|
14
|
+
require('./chunk-4XOYLZYF.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -20,7 +20,7 @@ var _chunkNCQM44P3js = require('./chunk-NCQM44P3.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-DTVTFZ3M.js');
|
|
24
24
|
require('./chunk-2CDSXWFA.js');
|
|
25
25
|
require('./chunk-MCKGQKYU.js');
|
|
26
26
|
|
|
@@ -163,4 +163,4 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
|
|
|
163
163
|
|
|
164
164
|
|
|
165
165
|
|
|
166
|
-
exports.applicationGenerator =
|
|
166
|
+
exports.applicationGenerator = _chunkZEALFYUVjs.applicationGenerator; exports.applicationSchematic = _chunkZEALFYUVjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkNCQM44P3js.getInternalDependencies; exports.initGenerator = _chunkEY6DBLWNjs.initGenerator; exports.initSchematic = _chunkEY6DBLWNjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkNCQM44P3js.r2UploadFile;
|
package/dist/index.mjs
CHANGED
|
@@ -3,15 +3,15 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
applicationGenerator,
|
|
5
5
|
applicationSchematic
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E2ZFCCN4.mjs";
|
|
7
7
|
import {
|
|
8
8
|
initGenerator,
|
|
9
9
|
initSchematic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-G7URSO75.mjs";
|
|
11
11
|
import "./chunk-7Z5PILRU.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-75UCMKKR.mjs";
|
|
13
|
+
import "./chunk-4O3KCW5B.mjs";
|
|
14
|
+
import "./chunk-3ND7IFGL.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getInternalDependencies,
|
|
17
17
|
r2UploadFile
|
|
@@ -20,9 +20,9 @@ import {
|
|
|
20
20
|
ProjectTagConstants,
|
|
21
21
|
addProjectTag
|
|
22
22
|
} from "./chunk-PH3DHY4Q.mjs";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-RSNYZTUY.mjs";
|
|
24
24
|
import "./chunk-V44DYGWX.mjs";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-3JOI5EX3.mjs";
|
|
26
26
|
|
|
27
27
|
// src/plugins/index.ts
|
|
28
28
|
import {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
var _chunkIRORGRVZjs = require('../../../chunk-IRORGRVZ.js');
|
|
4
|
-
require('../../../chunk-
|
|
4
|
+
require('../../../chunk-FHZTER4G.js');
|
|
5
5
|
require('../../../chunk-NU34IEWN.js');
|
|
6
|
-
require('../../../chunk-
|
|
6
|
+
require('../../../chunk-DTVTFZ3M.js');
|
|
7
7
|
require('../../../chunk-2CDSXWFA.js');
|
|
8
8
|
require('../../../chunk-MCKGQKYU.js');
|
|
9
9
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-75UCMKKR.mjs";
|
|
4
|
+
import "../../../chunk-4O3KCW5B.mjs";
|
|
5
5
|
import "../../../chunk-PH3DHY4Q.mjs";
|
|
6
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-RSNYZTUY.mjs";
|
|
7
7
|
import "../../../chunk-V44DYGWX.mjs";
|
|
8
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-3JOI5EX3.mjs";
|
|
9
9
|
export {
|
|
10
10
|
runExecutor as default
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4XOYLZYFjs = require('../../../chunk-4XOYLZYF.js');
|
|
4
4
|
require('../../../chunk-NCQM44P3.js');
|
|
5
5
|
require('../../../chunk-NU34IEWN.js');
|
|
6
|
-
require('../../../chunk-
|
|
6
|
+
require('../../../chunk-DTVTFZ3M.js');
|
|
7
7
|
require('../../../chunk-2CDSXWFA.js');
|
|
8
8
|
require('../../../chunk-MCKGQKYU.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunk4XOYLZYFjs.runExecutor;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-3ND7IFGL.mjs";
|
|
4
4
|
import "../../../chunk-IANDAPQS.mjs";
|
|
5
5
|
import "../../../chunk-PH3DHY4Q.mjs";
|
|
6
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-RSNYZTUY.mjs";
|
|
7
7
|
import "../../../chunk-V44DYGWX.mjs";
|
|
8
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-3JOI5EX3.mjs";
|
|
9
9
|
export {
|
|
10
10
|
runExecutor as default
|
|
11
11
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkFHZTER4Gjs = require('../../../chunk-FHZTER4G.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkNU34IEWNjs = require('../../../chunk-NU34IEWN.js');
|
|
7
|
-
require('../../../chunk-
|
|
7
|
+
require('../../../chunk-DTVTFZ3M.js');
|
|
8
8
|
require('../../../chunk-2CDSXWFA.js');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -55,7 +55,7 @@ async function* serveExecutor(options, context) {
|
|
|
55
55
|
success: true
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
var executor_default =
|
|
58
|
+
var executor_default = _chunkFHZTER4Gjs.withRunExecutor.call(void 0,
|
|
59
59
|
"Cloudflare Serve executor",
|
|
60
60
|
serveExecutor,
|
|
61
61
|
{
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-4O3KCW5B.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createCliOptions
|
|
6
6
|
} from "../../../chunk-PH3DHY4Q.mjs";
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-RSNYZTUY.mjs";
|
|
8
8
|
import "../../../chunk-V44DYGWX.mjs";
|
|
9
9
|
import {
|
|
10
10
|
__require
|
|
11
|
-
} from "../../../chunk-
|
|
11
|
+
} from "../../../chunk-3JOI5EX3.mjs";
|
|
12
12
|
|
|
13
13
|
// src/executors/serve/executor.ts
|
|
14
14
|
import { createAsyncIterable } from "@nx/devkit/src/utils/async-iterable";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkEY6DBLWNjs = require('../../../chunk-EY6DBLWN.js');
|
|
6
6
|
require('../../../chunk-MCKGQKYU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkEY6DBLWNjs.generator_default; exports.initGenerator = _chunkEY6DBLWNjs.initGenerator; exports.initSchematic = _chunkEY6DBLWNjs.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-G7URSO75.mjs";
|
|
6
|
+
import "../../../chunk-3JOI5EX3.mjs";
|
|
7
7
|
export {
|
|
8
8
|
generator_default as default,
|
|
9
9
|
initGenerator,
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
5
|
+
var _chunkZEALFYUVjs = require('../../../chunk-ZEALFYUV.js');
|
|
6
|
+
require('../../../chunk-EY6DBLWN.js');
|
|
7
|
+
require('../../../chunk-DTVTFZ3M.js');
|
|
8
8
|
require('../../../chunk-2CDSXWFA.js');
|
|
9
9
|
require('../../../chunk-MCKGQKYU.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.applicationGenerator =
|
|
14
|
+
exports.applicationGenerator = _chunkZEALFYUVjs.applicationGenerator; exports.applicationSchematic = _chunkZEALFYUVjs.applicationSchematic; exports.default = _chunkZEALFYUVjs.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-
|
|
5
|
+
} from "../../../chunk-E2ZFCCN4.mjs";
|
|
6
|
+
import "../../../chunk-G7URSO75.mjs";
|
|
7
|
+
import "../../../chunk-RSNYZTUY.mjs";
|
|
8
8
|
import "../../../chunk-V44DYGWX.mjs";
|
|
9
|
-
import "../../../chunk-
|
|
9
|
+
import "../../../chunk-3JOI5EX3.mjs";
|
|
10
10
|
export {
|
|
11
11
|
applicationGenerator,
|
|
12
12
|
applicationSchematic,
|
package/dist/src/utils/index.mjs
CHANGED
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.69.
|
|
3
|
+
"version": "0.69.13",
|
|
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",
|
|
@@ -145,10 +145,10 @@
|
|
|
145
145
|
"nx": "^21.4.1",
|
|
146
146
|
"tsup": "8.4.0",
|
|
147
147
|
"untyped": "^1.5.2",
|
|
148
|
-
"wrangler": "^4.42.
|
|
148
|
+
"wrangler": "^4.42.1"
|
|
149
149
|
},
|
|
150
150
|
"publishConfig": { "access": "public" },
|
|
151
151
|
"executors": "./executors.json",
|
|
152
152
|
"generators": "./generators.json",
|
|
153
|
-
"gitHead": "
|
|
153
|
+
"gitHead": "cf3b0a3f2a3390e2e62adeeb56c0571a6bf75b2d"
|
|
154
154
|
}
|