@storm-software/cloudflare-tools 0.68.2 → 0.68.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/dist/{chunk-N5AGCLFI.mjs → chunk-5YPTW2FW.mjs} +1 -1
- package/dist/{chunk-I6BFG7MU.js → chunk-ABCED6DU.js} +5 -5
- package/dist/{chunk-FX3NLTFW.js → chunk-CXMMI642.js} +1 -1
- package/dist/{chunk-UPFKACG7.js → chunk-J2NW6MQR.js} +3 -3
- package/dist/{chunk-F7YMEAER.js → chunk-JT2PYCGL.js} +13 -13
- package/dist/{chunk-DABMZ2CA.js → chunk-ULMEFX4N.js} +50 -50
- package/dist/{chunk-W2773SLY.mjs → chunk-VXKD4K7L.mjs} +2 -2
- package/dist/{chunk-R7J6VNPU.mjs → chunk-VYVQSZJP.mjs} +1 -1
- package/dist/{chunk-DC2YLD3R.mjs → chunk-YNMLQQKS.mjs} +1 -1
- package/dist/{chunk-RURJWWKQ.mjs → chunk-ZT2EKC3T.mjs} +1 -1
- package/dist/executors.js +3 -3
- package/dist/executors.mjs +3 -3
- package/dist/generators.js +4 -4
- package/dist/generators.mjs +3 -3
- package/dist/index.js +6 -6
- package/dist/index.mjs +5 -5
- package/dist/src/executors/cloudflare-publish/executor.js +2 -2
- package/dist/src/executors/cloudflare-publish/executor.mjs +2 -2
- package/dist/src/executors/r2-upload-publish/executor.js +3 -3
- package/dist/src/executors/r2-upload-publish/executor.mjs +2 -2
- package/dist/src/executors/serve/executor.js +3 -3
- package/dist/src/executors/serve/executor.mjs +2 -2
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/dist/src/generators/worker/generator.js +4 -4
- package/dist/src/generators/worker/generator.mjs +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.68.2](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.68.2) (2025-09-18)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update workspace package links
|
|
10
|
+
([89e2511ad](https://github.com/storm-software/storm-ops/commit/89e2511ad))
|
|
11
|
+
|
|
5
12
|
## [0.68.1](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.68.1) (2025-09-18)
|
|
6
13
|
|
|
7
14
|
### 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 -->
|
|
@@ -23,7 +23,7 @@ var correctPaths = function(path) {
|
|
|
23
23
|
return ".";
|
|
24
24
|
}
|
|
25
25
|
path = normalizeWindowsPath(path);
|
|
26
|
-
const isUNCPath = path
|
|
26
|
+
const isUNCPath = path?.match(_UNC_REGEX);
|
|
27
27
|
const isPathAbsolute = isAbsolute(path);
|
|
28
28
|
const trailingSeparator = path[path.length - 1] === "/";
|
|
29
29
|
path = normalizeString(path, !isPathAbsolute);
|
|
@@ -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 _chunkCXMMI642js = require('./chunk-CXMMI642.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJT2PYCGLjs = require('./chunk-JT2PYCGL.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 = _chunkJT2PYCGLjs.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 _chunkJT2PYCGLjs.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 _chunkCXMMI642js.generator_default.call(void 0, tree, {
|
|
70
70
|
...options,
|
|
71
71
|
skipFormat: true
|
|
72
72
|
})
|
|
@@ -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.68.
|
|
10
|
+
version: "0.68.2",
|
|
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",
|
|
@@ -9,7 +9,7 @@ var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkJT2PYCGLjs = require('./chunk-JT2PYCGL.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 = _chunkJT2PYCGLjs.findWorkspaceRoot.call(void 0, );
|
|
43
|
+
const config = await _chunkJT2PYCGLjs.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,
|
|
@@ -23,7 +23,7 @@ var correctPaths = function(path) {
|
|
|
23
23
|
return ".";
|
|
24
24
|
}
|
|
25
25
|
path = normalizeWindowsPath(path);
|
|
26
|
-
const isUNCPath = path.match(_UNC_REGEX);
|
|
26
|
+
const isUNCPath = _optionalChain([path, 'optionalAccess', _ => _.match, 'call', _2 => _2(_UNC_REGEX)]);
|
|
27
27
|
const isPathAbsolute = isAbsolute(path);
|
|
28
28
|
const trailingSeparator = path[path.length - 1] === "/";
|
|
29
29
|
path = normalizeString(path, !isPathAbsolute);
|
|
@@ -903,7 +903,7 @@ function applyDefaultConfig(config) {
|
|
|
903
903
|
if (!config.contact) {
|
|
904
904
|
config.contact = `${config.homepage}/contact`;
|
|
905
905
|
}
|
|
906
|
-
if (!_optionalChain([config, 'access',
|
|
906
|
+
if (!_optionalChain([config, 'access', _3 => _3.error, 'optionalAccess', _4 => _4.codesFile]) || !_optionalChain([config, 'optionalAccess', _5 => _5.error, 'optionalAccess', _6 => _6.url])) {
|
|
907
907
|
config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
|
|
908
908
|
if (config.homepage) {
|
|
909
909
|
config.error.url ??= `${config.homepage}/errors`;
|
|
@@ -921,7 +921,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
921
921
|
cwd: workspacePath,
|
|
922
922
|
packageJson: true,
|
|
923
923
|
name: fileName,
|
|
924
|
-
envName: _optionalChain([fileName, 'optionalAccess',
|
|
924
|
+
envName: _optionalChain([fileName, 'optionalAccess', _7 => _7.toUpperCase, 'call', _8 => _8()]),
|
|
925
925
|
jitiOptions: {
|
|
926
926
|
debug: false,
|
|
927
927
|
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
|
|
@@ -935,7 +935,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
935
935
|
cwd: workspacePath,
|
|
936
936
|
packageJson: true,
|
|
937
937
|
name: fileName,
|
|
938
|
-
envName: _optionalChain([fileName, 'optionalAccess',
|
|
938
|
+
envName: _optionalChain([fileName, 'optionalAccess', _9 => _9.toUpperCase, 'call', _10 => _10()]),
|
|
939
939
|
jitiOptions: {
|
|
940
940
|
debug: false,
|
|
941
941
|
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
|
|
@@ -969,7 +969,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
969
969
|
)
|
|
970
970
|
);
|
|
971
971
|
for (const result2 of results) {
|
|
972
|
-
if (_optionalChain([result2, 'optionalAccess',
|
|
972
|
+
if (_optionalChain([result2, 'optionalAccess', _11 => _11.config]) && _optionalChain([result2, 'optionalAccess', _12 => _12.configFile]) && Object.keys(result2.config).length > 0) {
|
|
973
973
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
974
974
|
_chunk2CDSXWFAjs.writeTrace.call(void 0,
|
|
975
975
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
@@ -1205,16 +1205,16 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1205
1205
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1206
1206
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
1207
1207
|
if (extension[key]) {
|
|
1208
|
-
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess',
|
|
1208
|
+
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _13 => _13.replace, 'call', _14 => _14(
|
|
1209
1209
|
/([A-Z])+/g,
|
|
1210
|
-
(input) => input ? _optionalChain([input, 'access',
|
|
1211
|
-
), 'access',
|
|
1210
|
+
(input) => input ? _optionalChain([input, 'access', _15 => _15[0], 'optionalAccess', _16 => _16.toUpperCase, 'call', _17 => _17()]) + input.slice(1) : ""
|
|
1211
|
+
), 'access', _18 => _18.split, 'call', _19 => _19(/(?=[A-Z])|[.\-\s_]/), 'access', _20 => _20.map, 'call', _21 => _21((x) => x.toLowerCase())]), () => ( []));
|
|
1212
1212
|
let extensionKey;
|
|
1213
1213
|
if (result.length === 0) {
|
|
1214
1214
|
return;
|
|
1215
1215
|
}
|
|
1216
1216
|
if (result.length === 1) {
|
|
1217
|
-
extensionKey = _nullishCoalesce(_optionalChain([result, 'access',
|
|
1217
|
+
extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _22 => _22[0], 'optionalAccess', _23 => _23.toUpperCase, 'call', _24 => _24()]), () => ( ""));
|
|
1218
1218
|
} else {
|
|
1219
1219
|
extensionKey = result.reduce((ret, part) => {
|
|
1220
1220
|
return `${ret}_${part.toLowerCase()}`;
|
|
@@ -1402,7 +1402,7 @@ var setConfigEnv = (config) => {
|
|
|
1402
1402
|
process.env.NODE_ENV = config.mode;
|
|
1403
1403
|
process.env.ENVIRONMENT = config.mode;
|
|
1404
1404
|
}
|
|
1405
|
-
if (_optionalChain([config, 'access',
|
|
1405
|
+
if (_optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26.base, 'optionalAccess', _27 => _27.light]) || _optionalChain([config, 'access', _28 => _28.colors, 'optionalAccess', _29 => _29.base, 'optionalAccess', _30 => _30.dark])) {
|
|
1406
1406
|
for (const key of Object.keys(config.colors)) {
|
|
1407
1407
|
setThemeColorsEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
1408
1408
|
}
|
|
@@ -1463,7 +1463,7 @@ var setConfigEnv = (config) => {
|
|
|
1463
1463
|
}
|
|
1464
1464
|
};
|
|
1465
1465
|
var setThemeColorsEnv = (prefix, config) => {
|
|
1466
|
-
return _optionalChain([config, 'optionalAccess',
|
|
1466
|
+
return _optionalChain([config, 'optionalAccess', _31 => _31.light, 'optionalAccess', _32 => _32.brand]) || _optionalChain([config, 'optionalAccess', _33 => _33.dark, 'optionalAccess', _34 => _34.brand]) ? setMultiThemeColorsEnv(prefix, config) : setSingleThemeColorsEnv(prefix, config);
|
|
1467
1467
|
};
|
|
1468
1468
|
var setSingleThemeColorsEnv = (prefix, config) => {
|
|
1469
1469
|
if (config.dark) {
|
|
@@ -1575,7 +1575,7 @@ var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
|
1575
1575
|
var _static_cache = void 0;
|
|
1576
1576
|
var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
|
|
1577
1577
|
let result;
|
|
1578
|
-
if (!_optionalChain([_static_cache, 'optionalAccess',
|
|
1578
|
+
if (!_optionalChain([_static_cache, 'optionalAccess', _35 => _35.data]) || !_optionalChain([_static_cache, 'optionalAccess', _36 => _36.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1579
1579
|
let _workspaceRoot = workspaceRoot;
|
|
1580
1580
|
if (!_workspaceRoot) {
|
|
1581
1581
|
_workspaceRoot = findWorkspaceRoot();
|
|
@@ -1606,7 +1606,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1606
1606
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1607
1607
|
} catch (error) {
|
|
1608
1608
|
throw new Error(
|
|
1609
|
-
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess',
|
|
1609
|
+
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _37 => _37.message]) ? `: ${error.message}` : ""}
|
|
1610
1610
|
|
|
1611
1611
|
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0,
|
|
1612
1612
|
configInput
|
|
@@ -9,7 +9,7 @@ var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkJT2PYCGLjs = require('./chunk-JT2PYCGL.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]))), () => ( _chunkJT2PYCGLjs.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 = _chunkJT2PYCGLjs.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
|
config
|
|
124
124
|
);
|
|
125
|
-
config = await
|
|
125
|
+
config = await _chunkJT2PYCGLjs.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...", config);
|
|
@@ -503,7 +503,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
503
503
|
}
|
|
504
504
|
_chunk2CDSXWFAjs.writeTrace.call(void 0,
|
|
505
505
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
506
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
506
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkJT2PYCGLjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
507
507
|
config
|
|
508
508
|
);
|
|
509
509
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -516,17 +516,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
516
516
|
_chunk2CDSXWFAjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
517
517
|
if (includeSrc === true) {
|
|
518
518
|
_chunk2CDSXWFAjs.writeDebug.call(void 0,
|
|
519
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
519
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkJT2PYCGLjs.joinPaths.call(void 0,
|
|
520
520
|
outputPath,
|
|
521
521
|
"src"
|
|
522
522
|
)}`,
|
|
523
523
|
config
|
|
524
524
|
);
|
|
525
525
|
const files = await _glob.glob.call(void 0, [
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
526
|
+
_chunkJT2PYCGLjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
527
|
+
_chunkJT2PYCGLjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
528
|
+
_chunkJT2PYCGLjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
529
|
+
_chunkJT2PYCGLjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
530
530
|
]);
|
|
531
531
|
await Promise.allSettled(
|
|
532
532
|
files.map(
|
|
@@ -581,7 +581,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
581
581
|
)) {
|
|
582
582
|
const projectNode = project.node;
|
|
583
583
|
if (projectNode.data.root) {
|
|
584
|
-
const projectPackageJsonPath =
|
|
584
|
+
const projectPackageJsonPath = _chunkJT2PYCGLjs.joinPaths.call(void 0,
|
|
585
585
|
workspaceRoot3,
|
|
586
586
|
projectNode.data.root,
|
|
587
587
|
"package.json"
|
|
@@ -603,7 +603,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
603
603
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
604
604
|
);
|
|
605
605
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
606
|
-
|
|
606
|
+
_chunkJT2PYCGLjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
607
607
|
"utf8"
|
|
608
608
|
);
|
|
609
609
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -616,7 +616,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
616
616
|
}
|
|
617
617
|
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) => {
|
|
618
618
|
if (_optionalChain([projectConfigurations, 'access', _42 => _42.projects, 'optionalAccess', _43 => _43[dep]])) {
|
|
619
|
-
const depPackageJsonPath =
|
|
619
|
+
const depPackageJsonPath = _chunkJT2PYCGLjs.joinPaths.call(void 0,
|
|
620
620
|
workspaceRoot3,
|
|
621
621
|
projectConfigurations.projects[dep].root,
|
|
622
622
|
"package.json"
|
|
@@ -652,9 +652,9 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
652
652
|
return packageJson;
|
|
653
653
|
};
|
|
654
654
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
655
|
-
const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot :
|
|
655
|
+
const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkJT2PYCGLjs.findWorkspaceRoot.call(void 0, );
|
|
656
656
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
657
|
-
|
|
657
|
+
_chunkJT2PYCGLjs.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
658
658
|
"utf8"
|
|
659
659
|
);
|
|
660
660
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -665,7 +665,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
665
665
|
if (distSrc.startsWith("/")) {
|
|
666
666
|
distSrc = distSrc.substring(1);
|
|
667
667
|
}
|
|
668
|
-
packageJson.source ??= `${
|
|
668
|
+
packageJson.source ??= `${_chunkJT2PYCGLjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
669
669
|
}
|
|
670
670
|
packageJson.files ??= ["dist/**/*"];
|
|
671
671
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -690,7 +690,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
690
690
|
packageJson.contributors = [packageJson.author];
|
|
691
691
|
}
|
|
692
692
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
693
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
693
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkJT2PYCGLjs.joinPaths.call(void 0, "packages", projectName);
|
|
694
694
|
return packageJson;
|
|
695
695
|
};
|
|
696
696
|
|
|
@@ -809,7 +809,7 @@ async function resolveContext(userOptions) {
|
|
|
809
809
|
if (!workspaceRoot3) {
|
|
810
810
|
throw new Error("Cannot find Nx workspace root");
|
|
811
811
|
}
|
|
812
|
-
const workspaceConfig = await
|
|
812
|
+
const workspaceConfig = await _chunkJT2PYCGLjs.getWorkspaceConfig.call(void 0, true, {
|
|
813
813
|
workspaceRoot: workspaceRoot3.dir
|
|
814
814
|
});
|
|
815
815
|
_chunk2CDSXWFAjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
@@ -817,7 +817,7 @@ async function resolveContext(userOptions) {
|
|
|
817
817
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
818
818
|
exitOnError: true
|
|
819
819
|
});
|
|
820
|
-
const projectJsonPath =
|
|
820
|
+
const projectJsonPath = _chunkJT2PYCGLjs.joinPaths.call(void 0,
|
|
821
821
|
workspaceRoot3.dir,
|
|
822
822
|
projectRoot,
|
|
823
823
|
"project.json"
|
|
@@ -836,7 +836,7 @@ async function resolveContext(userOptions) {
|
|
|
836
836
|
}
|
|
837
837
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
838
838
|
options.name ??= projectName;
|
|
839
|
-
const packageJsonPath =
|
|
839
|
+
const packageJsonPath = _chunkJT2PYCGLjs.joinPaths.call(void 0,
|
|
840
840
|
workspaceRoot3.dir,
|
|
841
841
|
options.projectRoot,
|
|
842
842
|
"package.json"
|
|
@@ -848,7 +848,7 @@ async function resolveContext(userOptions) {
|
|
|
848
848
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
849
849
|
const resolvedOptions = {
|
|
850
850
|
...options,
|
|
851
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
851
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkJT2PYCGLjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
|
|
852
852
|
metafile: userOptions.mode === "development",
|
|
853
853
|
clean: false,
|
|
854
854
|
env,
|
|
@@ -873,8 +873,8 @@ async function resolveContext(userOptions) {
|
|
|
873
873
|
projectConfigurations,
|
|
874
874
|
projectName,
|
|
875
875
|
projectGraph,
|
|
876
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
877
|
-
outputPath: resolvedOptions.outputPath ||
|
|
876
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkJT2PYCGLjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
877
|
+
outputPath: resolvedOptions.outputPath || _chunkJT2PYCGLjs.joinPaths.call(void 0,
|
|
878
878
|
workspaceConfig.workspaceRoot,
|
|
879
879
|
"dist",
|
|
880
880
|
resolvedOptions.projectRoot
|
|
@@ -898,10 +898,10 @@ ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0, context.options)}`,
|
|
|
898
898
|
|
|
899
899
|
|
|
900
900
|
async function generatePackageJson(context) {
|
|
901
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
901
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJT2PYCGLjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
902
902
|
_chunk2CDSXWFAjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
903
903
|
const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, "Write package.json file");
|
|
904
|
-
const packageJsonPath =
|
|
904
|
+
const packageJsonPath = _chunkJT2PYCGLjs.joinPaths.call(void 0,
|
|
905
905
|
context.options.projectRoot,
|
|
906
906
|
"project.json"
|
|
907
907
|
);
|
|
@@ -909,7 +909,7 @@ async function generatePackageJson(context) {
|
|
|
909
909
|
throw new Error("Cannot find package.json configuration");
|
|
910
910
|
}
|
|
911
911
|
const packageJsonFile = await _promises2.default.readFile(
|
|
912
|
-
|
|
912
|
+
_chunkJT2PYCGLjs.joinPaths.call(void 0,
|
|
913
913
|
context.workspaceConfig.workspaceRoot,
|
|
914
914
|
context.options.projectRoot,
|
|
915
915
|
"package.json"
|
|
@@ -1015,7 +1015,7 @@ async function generatePackageJson(context) {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
1017
|
await _devkit.writeJsonFile.call(void 0,
|
|
1018
|
-
|
|
1018
|
+
_chunkJT2PYCGLjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
1019
1019
|
packageJson
|
|
1020
1020
|
);
|
|
1021
1021
|
stopwatch();
|
|
@@ -1033,7 +1033,7 @@ async function executeTsup(context) {
|
|
|
1033
1033
|
const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
1034
1034
|
await _tsup.build.call(void 0, {
|
|
1035
1035
|
...context.options,
|
|
1036
|
-
outDir: context.options.distDir ?
|
|
1036
|
+
outDir: context.options.distDir ? _chunkJT2PYCGLjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
1037
1037
|
workspaceConfig: context.workspaceConfig
|
|
1038
1038
|
});
|
|
1039
1039
|
stopwatch();
|
|
@@ -1272,7 +1272,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1272
1272
|
);
|
|
1273
1273
|
}
|
|
1274
1274
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1275
|
-
fsCache: config.skipCache ? false :
|
|
1275
|
+
fsCache: config.skipCache ? false : _chunkJT2PYCGLjs.joinPaths.call(void 0,
|
|
1276
1276
|
config.workspaceRoot,
|
|
1277
1277
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1278
1278
|
"jiti"
|
|
@@ -1294,7 +1294,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
1294
1294
|
{
|
|
1295
1295
|
stubOptions: {
|
|
1296
1296
|
jiti: {
|
|
1297
|
-
fsCache: config.skipCache ? false :
|
|
1297
|
+
fsCache: config.skipCache ? false : _chunkJT2PYCGLjs.joinPaths.call(void 0,
|
|
1298
1298
|
config.workspaceRoot,
|
|
1299
1299
|
config.directories.cache || "node_modules/.cache/storm",
|
|
1300
1300
|
"jiti"
|
|
@@ -1361,14 +1361,14 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
1361
1361
|
_chunk2CDSXWFAjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
1362
1362
|
|
|
1363
1363
|
`, config);
|
|
1364
|
-
const workspaceRoot3 =
|
|
1364
|
+
const workspaceRoot3 = _chunkJT2PYCGLjs.findWorkspaceRoot.call(void 0, );
|
|
1365
1365
|
if (!generatorOptions.skipReadingConfig) {
|
|
1366
1366
|
_chunk2CDSXWFAjs.writeDebug.call(void 0,
|
|
1367
1367
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
1368
1368
|
- workspaceRoot: ${workspaceRoot3}`,
|
|
1369
1369
|
config
|
|
1370
1370
|
);
|
|
1371
|
-
config = await
|
|
1371
|
+
config = await _chunkJT2PYCGLjs.getConfig.call(void 0, workspaceRoot3);
|
|
1372
1372
|
}
|
|
1373
1373
|
if (_optionalChain([generatorOptions, 'optionalAccess', _95 => _95.hooks, 'optionalAccess', _96 => _96.applyDefaultOptions])) {
|
|
1374
1374
|
_chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
@@ -1487,16 +1487,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1487
1487
|
const projectConfig = {
|
|
1488
1488
|
root: normalized.directory,
|
|
1489
1489
|
projectType: "library",
|
|
1490
|
-
sourceRoot:
|
|
1490
|
+
sourceRoot: _chunkJT2PYCGLjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
1491
1491
|
targets: {
|
|
1492
1492
|
build: {
|
|
1493
1493
|
executor: options.buildExecutor,
|
|
1494
1494
|
outputs: ["{options.outputPath}"],
|
|
1495
1495
|
options: {
|
|
1496
|
-
entry: [
|
|
1496
|
+
entry: [_chunkJT2PYCGLjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
1497
1497
|
outputPath: getOutputPath(normalized),
|
|
1498
|
-
tsconfig:
|
|
1499
|
-
project:
|
|
1498
|
+
tsconfig: _chunkJT2PYCGLjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
1499
|
+
project: _chunkJT2PYCGLjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
1500
1500
|
defaultConfiguration: "production",
|
|
1501
1501
|
platform: "neutral",
|
|
1502
1502
|
assets: [
|
|
@@ -1553,7 +1553,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1553
1553
|
if (!normalized.importPath) {
|
|
1554
1554
|
normalized.importPath = normalized.name;
|
|
1555
1555
|
}
|
|
1556
|
-
const packageJsonPath =
|
|
1556
|
+
const packageJsonPath = _chunkJT2PYCGLjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
1557
1557
|
if (tree.exists(packageJsonPath)) {
|
|
1558
1558
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
1559
1559
|
if (!normalized.importPath) {
|
|
@@ -1610,14 +1610,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1610
1610
|
}));
|
|
1611
1611
|
}
|
|
1612
1612
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
1613
|
-
|
|
1613
|
+
_chunkJT2PYCGLjs.joinPaths.call(void 0,
|
|
1614
1614
|
normalized.projectRoot,
|
|
1615
1615
|
"./src",
|
|
1616
1616
|
`index.${normalized.js ? "js" : "ts"}`
|
|
1617
1617
|
)
|
|
1618
1618
|
]);
|
|
1619
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
1620
|
-
|
|
1619
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkJT2PYCGLjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
1620
|
+
_chunkJT2PYCGLjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
1621
1621
|
]);
|
|
1622
1622
|
if (tree.exists("package.json")) {
|
|
1623
1623
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -1628,7 +1628,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1628
1628
|
description = packageJson.description;
|
|
1629
1629
|
}
|
|
1630
1630
|
}
|
|
1631
|
-
const tsconfigPath =
|
|
1631
|
+
const tsconfigPath = _chunkJT2PYCGLjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
1632
1632
|
if (tree.exists(tsconfigPath)) {
|
|
1633
1633
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
1634
1634
|
json.composite ??= true;
|
|
@@ -1656,7 +1656,7 @@ function getOutputPath(options) {
|
|
|
1656
1656
|
} else {
|
|
1657
1657
|
parts.push(options.projectRoot);
|
|
1658
1658
|
}
|
|
1659
|
-
return
|
|
1659
|
+
return _chunkJT2PYCGLjs.joinPaths.call(void 0, ...parts);
|
|
1660
1660
|
}
|
|
1661
1661
|
function createProjectTsConfigJson(tree, options) {
|
|
1662
1662
|
const tsconfig = {
|
|
@@ -1664,7 +1664,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
1664
1664
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _124 => _124.tsconfigOptions]), () => ( {})),
|
|
1665
1665
|
compilerOptions: {
|
|
1666
1666
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
1667
|
-
outDir:
|
|
1667
|
+
outDir: _chunkJT2PYCGLjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
1668
1668
|
noEmit: true,
|
|
1669
1669
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _125 => _125.tsconfigOptions, 'optionalAccess', _126 => _126.compilerOptions]), () => ( {}))
|
|
1670
1670
|
},
|
|
@@ -1682,7 +1682,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
1682
1682
|
"src/**/*.test.ts"
|
|
1683
1683
|
]
|
|
1684
1684
|
};
|
|
1685
|
-
_devkit.writeJson.call(void 0, tree,
|
|
1685
|
+
_devkit.writeJson.call(void 0, tree, _chunkJT2PYCGLjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
1686
1686
|
}
|
|
1687
1687
|
async function normalizeOptions(tree, options, config) {
|
|
1688
1688
|
let importPath = options.importPath;
|
|
@@ -1747,7 +1747,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
1747
1747
|
|
|
1748
1748
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
1749
1749
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
1750
|
-
const filesDir =
|
|
1750
|
+
const filesDir = _chunkJT2PYCGLjs.joinPaths.call(void 0,
|
|
1751
1751
|
__dirname,
|
|
1752
1752
|
"src",
|
|
1753
1753
|
"generators",
|
|
@@ -1838,9 +1838,9 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
1838
1838
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
1839
1839
|
config
|
|
1840
1840
|
);
|
|
1841
|
-
const jsonSchema = z.toJSONSchema(
|
|
1841
|
+
const jsonSchema = z.toJSONSchema(_chunkJT2PYCGLjs.workspaceConfigSchema, {
|
|
1842
1842
|
target: "draft-7",
|
|
1843
|
-
metadata:
|
|
1843
|
+
metadata: _chunkJT2PYCGLjs.schemaRegistry
|
|
1844
1844
|
});
|
|
1845
1845
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
1846
1846
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
@@ -1852,7 +1852,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
1852
1852
|
);
|
|
1853
1853
|
}
|
|
1854
1854
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
1855
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _135 => _135.workspaceRoot]), () => (
|
|
1855
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _135 => _135.workspaceRoot]), () => ( _chunkJT2PYCGLjs.findWorkspaceRoot.call(void 0, ))),
|
|
1856
1856
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
1857
1857
|
);
|
|
1858
1858
|
_chunk2CDSXWFAjs.writeTrace.call(void 0,
|
|
@@ -1896,7 +1896,7 @@ var generator_default2 = withRunGenerator(
|
|
|
1896
1896
|
|
|
1897
1897
|
|
|
1898
1898
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
1899
|
-
const filesDir =
|
|
1899
|
+
const filesDir = _chunkJT2PYCGLjs.joinPaths.call(void 0,
|
|
1900
1900
|
__dirname,
|
|
1901
1901
|
"src",
|
|
1902
1902
|
"generators",
|
|
@@ -1955,7 +1955,7 @@ var generator_default3 = withRunGenerator(
|
|
|
1955
1955
|
|
|
1956
1956
|
|
|
1957
1957
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
1958
|
-
const filesDir =
|
|
1958
|
+
const filesDir = _chunkJT2PYCGLjs.joinPaths.call(void 0,
|
|
1959
1959
|
__dirname,
|
|
1960
1960
|
"src",
|
|
1961
1961
|
"generators",
|
|
@@ -7,7 +7,7 @@ var require_package = __commonJS({
|
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.68.
|
|
10
|
+
version: "0.68.2",
|
|
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",
|
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-ULMEFX4N.js');
|
|
4
|
+
require('./chunk-J2NW6MQR.js');
|
|
5
5
|
require('./chunk-NCQM44P3.js');
|
|
6
6
|
require('./chunk-NU34IEWN.js');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-JT2PYCGL.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
2
|
import "./chunk-GWFET2SG.mjs";
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-ZT2EKC3T.mjs";
|
|
4
|
+
import "./chunk-YNMLQQKS.mjs";
|
|
5
5
|
import "./chunk-IANDAPQS.mjs";
|
|
6
6
|
import "./chunk-PH3DHY4Q.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-5YPTW2FW.mjs";
|
|
8
8
|
import "./chunk-V44DYGWX.mjs";
|
|
9
9
|
import "./chunk-4RMMRGT6.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkABCED6DUjs = require('./chunk-ABCED6DU.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
9
|
+
var _chunkCXMMI642js = require('./chunk-CXMMI642.js');
|
|
10
|
+
require('./chunk-JT2PYCGL.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 = _chunkABCED6DUjs.applicationGenerator; exports.applicationSchematic = _chunkABCED6DUjs.applicationSchematic; exports.initGenerator = _chunkCXMMI642js.initGenerator; exports.initSchematic = _chunkCXMMI642js.initSchematic;
|
package/dist/generators.mjs
CHANGED
|
@@ -2,12 +2,12 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
applicationGenerator,
|
|
4
4
|
applicationSchematic
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VXKD4K7L.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator,
|
|
8
8
|
initSchematic
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-VYVQSZJP.mjs";
|
|
10
|
+
import "./chunk-5YPTW2FW.mjs";
|
|
11
11
|
import "./chunk-V44DYGWX.mjs";
|
|
12
12
|
import "./chunk-4RMMRGT6.mjs";
|
|
13
13
|
export {
|
package/dist/index.js
CHANGED
|
@@ -3,15 +3,15 @@ require('./chunk-DHBG5ASJ.js');
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkABCED6DUjs = require('./chunk-ABCED6DU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkCXMMI642js = require('./chunk-CXMMI642.js');
|
|
11
11
|
require('./chunk-CVGPWUNP.js');
|
|
12
12
|
require('./chunk-IRORGRVZ.js');
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-ULMEFX4N.js');
|
|
14
|
+
require('./chunk-J2NW6MQR.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-JT2PYCGL.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 = _chunkABCED6DUjs.applicationGenerator; exports.applicationSchematic = _chunkABCED6DUjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkNCQM44P3js.getInternalDependencies; exports.initGenerator = _chunkCXMMI642js.initGenerator; exports.initSchematic = _chunkCXMMI642js.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-VXKD4K7L.mjs";
|
|
7
7
|
import {
|
|
8
8
|
initGenerator,
|
|
9
9
|
initSchematic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VYVQSZJP.mjs";
|
|
11
11
|
import "./chunk-7Z5PILRU.mjs";
|
|
12
12
|
import "./chunk-GWFET2SG.mjs";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-ZT2EKC3T.mjs";
|
|
14
|
+
import "./chunk-YNMLQQKS.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getInternalDependencies,
|
|
17
17
|
r2UploadFile
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
ProjectTagConstants,
|
|
21
21
|
addProjectTag
|
|
22
22
|
} from "./chunk-PH3DHY4Q.mjs";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-5YPTW2FW.mjs";
|
|
24
24
|
import "./chunk-V44DYGWX.mjs";
|
|
25
25
|
import "./chunk-4RMMRGT6.mjs";
|
|
26
26
|
|
|
@@ -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-ULMEFX4N.js');
|
|
5
5
|
require('../../../chunk-NU34IEWN.js');
|
|
6
|
-
require('../../../chunk-
|
|
6
|
+
require('../../../chunk-JT2PYCGL.js');
|
|
7
7
|
require('../../../chunk-2CDSXWFA.js');
|
|
8
8
|
require('../../../chunk-MCKGQKYU.js');
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
3
|
} from "../../../chunk-GWFET2SG.mjs";
|
|
4
|
-
import "../../../chunk-
|
|
4
|
+
import "../../../chunk-ZT2EKC3T.mjs";
|
|
5
5
|
import "../../../chunk-PH3DHY4Q.mjs";
|
|
6
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-5YPTW2FW.mjs";
|
|
7
7
|
import "../../../chunk-V44DYGWX.mjs";
|
|
8
8
|
import "../../../chunk-4RMMRGT6.mjs";
|
|
9
9
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkJ2NW6MQRjs = require('../../../chunk-J2NW6MQR.js');
|
|
4
4
|
require('../../../chunk-NCQM44P3.js');
|
|
5
5
|
require('../../../chunk-NU34IEWN.js');
|
|
6
|
-
require('../../../chunk-
|
|
6
|
+
require('../../../chunk-JT2PYCGL.js');
|
|
7
7
|
require('../../../chunk-2CDSXWFA.js');
|
|
8
8
|
require('../../../chunk-MCKGQKYU.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkJ2NW6MQRjs.runExecutor;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-YNMLQQKS.mjs";
|
|
4
4
|
import "../../../chunk-IANDAPQS.mjs";
|
|
5
5
|
import "../../../chunk-PH3DHY4Q.mjs";
|
|
6
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-5YPTW2FW.mjs";
|
|
7
7
|
import "../../../chunk-V44DYGWX.mjs";
|
|
8
8
|
import "../../../chunk-4RMMRGT6.mjs";
|
|
9
9
|
export {
|
|
@@ -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 _chunkULMEFX4Njs = require('../../../chunk-ULMEFX4N.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkNU34IEWNjs = require('../../../chunk-NU34IEWN.js');
|
|
7
|
-
require('../../../chunk-
|
|
7
|
+
require('../../../chunk-JT2PYCGL.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 = _chunkULMEFX4Njs.withRunExecutor.call(void 0,
|
|
59
59
|
"Cloudflare Serve executor",
|
|
60
60
|
serveExecutor,
|
|
61
61
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-ZT2EKC3T.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createCliOptions
|
|
6
6
|
} from "../../../chunk-PH3DHY4Q.mjs";
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-5YPTW2FW.mjs";
|
|
8
8
|
import "../../../chunk-V44DYGWX.mjs";
|
|
9
9
|
import {
|
|
10
10
|
__require
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkCXMMI642js = require('../../../chunk-CXMMI642.js');
|
|
6
6
|
require('../../../chunk-MCKGQKYU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkCXMMI642js.generator_default; exports.initGenerator = _chunkCXMMI642js.initGenerator; exports.initSchematic = _chunkCXMMI642js.initSchematic;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
5
|
+
var _chunkABCED6DUjs = require('../../../chunk-ABCED6DU.js');
|
|
6
|
+
require('../../../chunk-CXMMI642.js');
|
|
7
|
+
require('../../../chunk-JT2PYCGL.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 = _chunkABCED6DUjs.applicationGenerator; exports.applicationSchematic = _chunkABCED6DUjs.applicationSchematic; exports.default = _chunkABCED6DUjs.generator_default;
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
applicationGenerator,
|
|
3
3
|
applicationSchematic,
|
|
4
4
|
generator_default
|
|
5
|
-
} from "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
5
|
+
} from "../../../chunk-VXKD4K7L.mjs";
|
|
6
|
+
import "../../../chunk-VYVQSZJP.mjs";
|
|
7
|
+
import "../../../chunk-5YPTW2FW.mjs";
|
|
8
8
|
import "../../../chunk-V44DYGWX.mjs";
|
|
9
9
|
import "../../../chunk-4RMMRGT6.mjs";
|
|
10
10
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/cloudflare-tools",
|
|
3
|
-
"version": "0.68.
|
|
3
|
+
"version": "0.68.3",
|
|
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",
|
|
@@ -150,5 +150,5 @@
|
|
|
150
150
|
"publishConfig": { "access": "public" },
|
|
151
151
|
"executors": "./executors.json",
|
|
152
152
|
"generators": "./generators.json",
|
|
153
|
-
"gitHead": "
|
|
153
|
+
"gitHead": "1b9f901274134d51c4200e5797348cf9587203dc"
|
|
154
154
|
}
|