@storm-software/cloudflare-tools 0.55.41 → 0.55.43
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-JF2LLENH.js → chunk-247N3JYF.js} +2 -2
- package/dist/{chunk-2GWCBDS7.mjs → chunk-5QU7G4BP.mjs} +1 -1
- package/dist/{chunk-NGA2REMH.js → chunk-6D3NUIUL.js} +42 -34
- package/dist/{chunk-PDLA5ACW.mjs → chunk-E22S7JBO.mjs} +14 -6
- package/dist/{chunk-IA5NNUZK.js → chunk-PW324BYD.js} +1 -1
- package/dist/{chunk-BV5FWJGL.mjs → chunk-Q67NQSCF.mjs} +1 -1
- package/dist/executors.js +1 -1
- package/dist/executors.mjs +1 -1
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/src/executors/cloudflare-publish/executor.js +1 -1
- package/dist/src/executors/cloudflare-publish/executor.mjs +1 -1
- package/dist/src/executors/serve/executor.js +2 -2
- package/dist/src/executors/serve/executor.mjs +1 -1
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/dist/src/generators/worker/generator.js +3 -3
- package/dist/src/generators/worker/generator.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.55.43](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.43) (2025-03-18)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([4a6eeab3f](https://github.com/storm-software/storm-ops/commit/4a6eeab3f))
|
|
11
|
+
|
|
12
|
+
## [0.55.42](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.42) (2025-03-18)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Regenerate README markdown files
|
|
17
|
+
([2d7343483](https://github.com/storm-software/storm-ops/commit/2d7343483))
|
|
18
|
+
|
|
5
19
|
## [0.55.41](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.41) (2025-03-17)
|
|
6
20
|
|
|
7
21
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkPW324BYDjs = require('./chunk-PW324BYD.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkH2ML72QFjs = require('./chunk-H2ML72QF.js');
|
|
@@ -52,7 +52,7 @@ async function applicationGenerator(tree, schema) {
|
|
|
52
52
|
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`, config);
|
|
53
53
|
const options = await normalizeOptions(tree, schema, config);
|
|
54
54
|
const tasks = [];
|
|
55
|
-
tasks.push(await
|
|
55
|
+
tasks.push(await _chunkPW324BYDjs.generator_default.call(void 0, tree, {
|
|
56
56
|
...options,
|
|
57
57
|
skipFormat: true
|
|
58
58
|
}));
|
|
@@ -1435,15 +1435,19 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1435
1435
|
}, {})
|
|
1436
1436
|
},
|
|
1437
1437
|
inject: [
|
|
1438
|
-
options.format === "cjs" && options.injectShims ? _chunkFK6PN2T3js.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") :
|
|
1439
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkFK6PN2T3js.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") :
|
|
1440
|
-
]
|
|
1438
|
+
options.format === "cjs" && options.injectShims ? _chunkFK6PN2T3js.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : void 0,
|
|
1439
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkFK6PN2T3js.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : void 0
|
|
1440
|
+
].filter(Boolean)
|
|
1441
1441
|
};
|
|
1442
1442
|
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( getDefaultBuildPlugins(userOptions, result)));
|
|
1443
|
-
if (options.inject) {
|
|
1444
|
-
|
|
1443
|
+
if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
|
|
1444
|
+
result.inject = options.inject.reduce((ret, inj) => {
|
|
1445
|
+
if (inj && typeof inj === "string" && ret.includes(inj)) {
|
|
1446
|
+
ret.push(inj);
|
|
1447
|
+
}
|
|
1448
|
+
return ret;
|
|
1449
|
+
}, result.inject);
|
|
1445
1450
|
}
|
|
1446
|
-
_optionalChain([options, 'access', _72 => _72.inject, 'optionalAccess', _73 => _73.filter, 'call', _74 => _74(Boolean)]);
|
|
1447
1451
|
delete result.entry;
|
|
1448
1452
|
delete result.outputPath;
|
|
1449
1453
|
stopwatch();
|
|
@@ -1535,6 +1539,10 @@ async function executeEsBuild(context2) {
|
|
|
1535
1539
|
...context2.options
|
|
1536
1540
|
};
|
|
1537
1541
|
options.outdir = _chunkFK6PN2T3js.joinPaths.call(void 0, context2.options.outdir, context2.options.distDir);
|
|
1542
|
+
if (!options.inject || !Array.isArray(options.inject) || options.inject.length === 0 || // eslint-disable-next-line no-constant-binary-expression, @typescript-eslint/no-explicit-any
|
|
1543
|
+
options.inject === {}) {
|
|
1544
|
+
delete options.inject;
|
|
1545
|
+
}
|
|
1538
1546
|
delete options.env;
|
|
1539
1547
|
delete options.name;
|
|
1540
1548
|
delete options.assets;
|
|
@@ -1569,7 +1577,7 @@ ${_chunkFK6PN2T3js.formatLogMessage.call(void 0, options)}`, context2.options.co
|
|
|
1569
1577
|
}
|
|
1570
1578
|
_chunkJ5SB6L2Ljs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
1571
1579
|
async function copyBuildAssets(context2) {
|
|
1572
|
-
if (_optionalChain([context2, 'access',
|
|
1580
|
+
if (_optionalChain([context2, 'access', _72 => _72.result, 'optionalAccess', _73 => _73.errors, 'access', _74 => _74.length]) === 0) {
|
|
1573
1581
|
_chunkFK6PN2T3js.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
1574
1582
|
const stopwatch = _chunkFK6PN2T3js.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
1575
1583
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
@@ -1579,7 +1587,7 @@ async function copyBuildAssets(context2) {
|
|
|
1579
1587
|
}
|
|
1580
1588
|
_chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
1581
1589
|
async function reportResults(context2) {
|
|
1582
|
-
if (_optionalChain([context2, 'access',
|
|
1590
|
+
if (_optionalChain([context2, 'access', _75 => _75.result, 'optionalAccess', _76 => _76.errors, 'access', _77 => _77.length]) === 0) {
|
|
1583
1591
|
if (context2.result.warnings.length > 0) {
|
|
1584
1592
|
_chunkFK6PN2T3js.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
1585
1593
|
}
|
|
@@ -1680,14 +1688,14 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
|
|
|
1680
1688
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1681
1689
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1682
1690
|
_chunkFK6PN2T3js.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1683
|
-
if (!_optionalChain([context2, 'access',
|
|
1691
|
+
if (!_optionalChain([context2, 'access', _78 => _78.projectsConfigurations, 'optionalAccess', _79 => _79.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _80 => _80.projectsConfigurations, 'access', _81 => _81.projects, 'access', _82 => _82[context2.projectName], 'optionalAccess', _83 => _83.root])) {
|
|
1684
1692
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1685
1693
|
}
|
|
1686
1694
|
await build3({
|
|
1687
1695
|
...options,
|
|
1688
|
-
projectRoot: _optionalChain([context2, 'access',
|
|
1696
|
+
projectRoot: _optionalChain([context2, 'access', _84 => _84.projectsConfigurations, 'access', _85 => _85.projects, 'optionalAccess', _86 => _86[context2.projectName], 'access', _87 => _87.root]),
|
|
1689
1697
|
projectName: context2.projectName,
|
|
1690
|
-
sourceRoot: _optionalChain([context2, 'access',
|
|
1698
|
+
sourceRoot: _optionalChain([context2, 'access', _88 => _88.projectsConfigurations, 'access', _89 => _89.projects, 'optionalAccess', _90 => _90[context2.projectName], 'optionalAccess', _91 => _91.sourceRoot]),
|
|
1691
1699
|
format: options.format,
|
|
1692
1700
|
platform: options.format
|
|
1693
1701
|
});
|
|
@@ -1730,7 +1738,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
|
|
|
1730
1738
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
1731
1739
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
1732
1740
|
async function sizeLimitExecutorFn(options, context2, config) {
|
|
1733
|
-
if (!_optionalChain([context2, 'optionalAccess',
|
|
1741
|
+
if (!_optionalChain([context2, 'optionalAccess', _92 => _92.projectName]) || !_optionalChain([context2, 'access', _93 => _93.projectsConfigurations, 'optionalAccess', _94 => _94.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1734
1742
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
1735
1743
|
}
|
|
1736
1744
|
_chunkFK6PN2T3js.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
|
|
@@ -1739,7 +1747,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
1739
1747
|
_esbuild3.default,
|
|
1740
1748
|
_esbuildwhy2.default
|
|
1741
1749
|
], {
|
|
1742
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access',
|
|
1750
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _95 => _95.projectsConfigurations, 'access', _96 => _96.projects, 'access', _97 => _97[context2.projectName], 'optionalAccess', _98 => _98.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _99 => _99.projectsConfigurations, 'access', _100 => _100.projects, 'access', _101 => _101[context2.projectName], 'optionalAccess', _102 => _102.root]), () => ( "./")), "src")))
|
|
1743
1751
|
}).then((result) => {
|
|
1744
1752
|
_chunkFK6PN2T3js.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
1745
1753
|
});
|
|
@@ -1798,7 +1806,7 @@ var executor_default8 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
1798
1806
|
var _jiti = require('jiti');
|
|
1799
1807
|
async function unbuildExecutorFn(options, context2, config) {
|
|
1800
1808
|
_chunkFK6PN2T3js.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1801
|
-
if (!_optionalChain([context2, 'access',
|
|
1809
|
+
if (!_optionalChain([context2, 'access', _103 => _103.projectsConfigurations, 'optionalAccess', _104 => _104.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1802
1810
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
1803
1811
|
}
|
|
1804
1812
|
if (!context2.projectsConfigurations.projects[context2.projectName].root) {
|
|
@@ -1881,7 +1889,7 @@ var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (nam
|
|
|
1881
1889
|
- workspaceRoot: ${workspaceRoot3}`, config);
|
|
1882
1890
|
config = await _chunkH2ML72QFjs.getConfig.call(void 0, workspaceRoot3);
|
|
1883
1891
|
}
|
|
1884
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1892
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _105 => _105.hooks, 'optionalAccess', _106 => _106.applyDefaultOptions])) {
|
|
1885
1893
|
_chunkFK6PN2T3js.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1886
1894
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
1887
1895
|
_chunkFK6PN2T3js.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
@@ -1892,22 +1900,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1892
1900
|
workspaceRoot: tree.root,
|
|
1893
1901
|
config
|
|
1894
1902
|
}, applyWorkspaceBaseTokens);
|
|
1895
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1903
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _107 => _107.hooks, 'optionalAccess', _108 => _108.preProcess])) {
|
|
1896
1904
|
_chunkFK6PN2T3js.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1897
1905
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
1898
1906
|
_chunkFK6PN2T3js.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1899
1907
|
}
|
|
1900
1908
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
1901
1909
|
if (result) {
|
|
1902
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
1910
|
+
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _109 => _109.error, 'optionalAccess', _110 => _110.message]) && typeof _optionalChain([result, 'optionalAccess', _111 => _111.error, 'optionalAccess', _112 => _112.message]) === "string" && _optionalChain([result, 'optionalAccess', _113 => _113.error, 'optionalAccess', _114 => _114.name]) && typeof _optionalChain([result, 'optionalAccess', _115 => _115.error, 'optionalAccess', _116 => _116.name]) === "string") {
|
|
1903
1911
|
throw new Error(`The ${name} generator failed to run`, {
|
|
1904
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
1912
|
+
cause: _optionalChain([result, 'optionalAccess', _117 => _117.error])
|
|
1905
1913
|
});
|
|
1906
1914
|
} else if (result.success && result.data) {
|
|
1907
1915
|
return result;
|
|
1908
1916
|
}
|
|
1909
1917
|
}
|
|
1910
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
1918
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _118 => _118.hooks, 'optionalAccess', _119 => _119.postProcess])) {
|
|
1911
1919
|
_chunkFK6PN2T3js.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1912
1920
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1913
1921
|
_chunkFK6PN2T3js.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
@@ -2017,15 +2025,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2017
2025
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
2018
2026
|
let repository = {
|
|
2019
2027
|
type: "github",
|
|
2020
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
2028
|
+
url: _optionalChain([config, 'optionalAccess', _120 => _120.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _121 => _121.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _122 => _122.namespace]) || _optionalChain([config, 'optionalAccess', _123 => _123.name]) || "repository"}.git`
|
|
2021
2029
|
};
|
|
2022
2030
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
2023
2031
|
if (tree.exists("package.json")) {
|
|
2024
2032
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2025
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2033
|
+
if (_optionalChain([packageJson, 'optionalAccess', _124 => _124.repository])) {
|
|
2026
2034
|
repository = packageJson.repository;
|
|
2027
2035
|
}
|
|
2028
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2036
|
+
if (_optionalChain([packageJson, 'optionalAccess', _125 => _125.description])) {
|
|
2029
2037
|
description = packageJson.description;
|
|
2030
2038
|
}
|
|
2031
2039
|
}
|
|
@@ -2080,9 +2088,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2080
2088
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
2081
2089
|
...json,
|
|
2082
2090
|
pnpm: {
|
|
2083
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2091
|
+
..._optionalChain([json, 'optionalAccess', _126 => _126.pnpm]),
|
|
2084
2092
|
overrides: {
|
|
2085
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2093
|
+
..._optionalChain([json, 'optionalAccess', _127 => _127.pnpm, 'optionalAccess', _128 => _128.overrides]),
|
|
2086
2094
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
2087
2095
|
}
|
|
2088
2096
|
}
|
|
@@ -2096,10 +2104,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2096
2104
|
]);
|
|
2097
2105
|
if (tree.exists("package.json")) {
|
|
2098
2106
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2099
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2107
|
+
if (_optionalChain([packageJson, 'optionalAccess', _129 => _129.repository])) {
|
|
2100
2108
|
repository = packageJson.repository;
|
|
2101
2109
|
}
|
|
2102
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2110
|
+
if (_optionalChain([packageJson, 'optionalAccess', _130 => _130.description])) {
|
|
2103
2111
|
description = packageJson.description;
|
|
2104
2112
|
}
|
|
2105
2113
|
}
|
|
@@ -2147,24 +2155,24 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
|
2147
2155
|
function createProjectTsConfigJson(tree, options) {
|
|
2148
2156
|
const tsconfig = {
|
|
2149
2157
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
2150
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2158
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _131 => _131.tsconfigOptions]), () => ( {})),
|
|
2151
2159
|
compilerOptions: {
|
|
2152
2160
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2153
2161
|
outDir: _chunkFK6PN2T3js.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2154
2162
|
noEmit: true,
|
|
2155
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2163
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _132 => _132.tsconfigOptions, 'optionalAccess', _133 => _133.compilerOptions]), () => ( {}))
|
|
2156
2164
|
},
|
|
2157
2165
|
files: [
|
|
2158
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2166
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _134 => _134.tsconfigOptions, 'optionalAccess', _135 => _135.files]), () => ( []))
|
|
2159
2167
|
],
|
|
2160
2168
|
include: [
|
|
2161
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2169
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _136 => _136.tsconfigOptions, 'optionalAccess', _137 => _137.include]), () => ( [])),
|
|
2162
2170
|
"src/**/*.ts",
|
|
2163
2171
|
"src/**/*.js",
|
|
2164
2172
|
"bin/**/*"
|
|
2165
2173
|
],
|
|
2166
2174
|
exclude: [
|
|
2167
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2175
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _138 => _138.tsconfigOptions, 'optionalAccess', _139 => _139.exclude]), () => ( [])),
|
|
2168
2176
|
"jest.config.ts",
|
|
2169
2177
|
"src/**/*.spec.ts",
|
|
2170
2178
|
"src/**/*.test.ts"
|
|
@@ -2175,8 +2183,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2175
2183
|
_chunkJ5SB6L2Ljs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
2176
2184
|
async function normalizeOptions(tree, options, config) {
|
|
2177
2185
|
let importPath = options.importPath;
|
|
2178
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
2179
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
2186
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _140 => _140.namespace])) {
|
|
2187
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _141 => _141.namespace])}/${options.name}`;
|
|
2180
2188
|
}
|
|
2181
2189
|
if (options.publishable) {
|
|
2182
2190
|
if (!importPath) {
|
|
@@ -2308,7 +2316,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
2308
2316
|
name: "StormWorkspaceConfiguration"
|
|
2309
2317
|
});
|
|
2310
2318
|
_chunkFK6PN2T3js.writeTrace.call(void 0, jsonSchema, config);
|
|
2311
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
2319
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _142 => _142.workspaceRoot]), () => ( _chunkFK6PN2T3js.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _143 => _143.outputFile, 'optionalAccess', _144 => _144.startsWith, 'call', _145 => _145("./")]) ? "" : "./");
|
|
2312
2320
|
_chunkFK6PN2T3js.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
2313
2321
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
2314
2322
|
spaces: 2
|
|
@@ -1436,15 +1436,19 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
1436
1436
|
}, {})
|
|
1437
1437
|
},
|
|
1438
1438
|
inject: [
|
|
1439
|
-
options.format === "cjs" && options.injectShims ? joinPaths(__dirname, "../assets/cjs_shims.js") :
|
|
1440
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ? joinPaths(__dirname, "../assets/esm_shims.js") :
|
|
1441
|
-
]
|
|
1439
|
+
options.format === "cjs" && options.injectShims ? joinPaths(__dirname, "../assets/cjs_shims.js") : void 0,
|
|
1440
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? joinPaths(__dirname, "../assets/esm_shims.js") : void 0
|
|
1441
|
+
].filter(Boolean)
|
|
1442
1442
|
};
|
|
1443
1443
|
result.plugins = userOptions.plugins ?? getDefaultBuildPlugins(userOptions, result);
|
|
1444
|
-
if (options.inject) {
|
|
1445
|
-
|
|
1444
|
+
if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
|
|
1445
|
+
result.inject = options.inject.reduce((ret, inj) => {
|
|
1446
|
+
if (inj && typeof inj === "string" && ret.includes(inj)) {
|
|
1447
|
+
ret.push(inj);
|
|
1448
|
+
}
|
|
1449
|
+
return ret;
|
|
1450
|
+
}, result.inject);
|
|
1446
1451
|
}
|
|
1447
|
-
options.inject?.filter(Boolean);
|
|
1448
1452
|
delete result.entry;
|
|
1449
1453
|
delete result.outputPath;
|
|
1450
1454
|
stopwatch();
|
|
@@ -1536,6 +1540,10 @@ async function executeEsBuild(context2) {
|
|
|
1536
1540
|
...context2.options
|
|
1537
1541
|
};
|
|
1538
1542
|
options.outdir = joinPaths(context2.options.outdir, context2.options.distDir);
|
|
1543
|
+
if (!options.inject || !Array.isArray(options.inject) || options.inject.length === 0 || // eslint-disable-next-line no-constant-binary-expression, @typescript-eslint/no-explicit-any
|
|
1544
|
+
options.inject === {}) {
|
|
1545
|
+
delete options.inject;
|
|
1546
|
+
}
|
|
1539
1547
|
delete options.env;
|
|
1540
1548
|
delete options.name;
|
|
1541
1549
|
delete options.assets;
|
|
@@ -8,7 +8,7 @@ var require_package = _chunkJ5SB6L2Ljs.__commonJS.call(void 0, {
|
|
|
8
8
|
"package.json"(exports, module) {
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "@storm-software/cloudflare-tools",
|
|
11
|
-
version: "0.55.
|
|
11
|
+
version: "0.55.43",
|
|
12
12
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
13
13
|
repository: {
|
|
14
14
|
type: "github",
|
|
@@ -8,7 +8,7 @@ var require_package = __commonJS({
|
|
|
8
8
|
"package.json"(exports, module) {
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "@storm-software/cloudflare-tools",
|
|
11
|
-
version: "0.55.
|
|
11
|
+
version: "0.55.43",
|
|
12
12
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
13
13
|
repository: {
|
|
14
14
|
type: "github",
|
package/dist/executors.js
CHANGED
package/dist/executors.mjs
CHANGED
package/dist/generators.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk247N3JYFjs = require('./chunk-247N3JYF.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkPW324BYDjs = require('./chunk-PW324BYD.js');
|
|
10
10
|
require('./chunk-H2ML72QF.js');
|
|
11
11
|
require('./chunk-FK6PN2T3.js');
|
|
12
12
|
require('./chunk-J5SB6L2L.js');
|
|
@@ -15,4 +15,4 @@ require('./chunk-J5SB6L2L.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.applicationGenerator =
|
|
18
|
+
exports.applicationGenerator = _chunk247N3JYFjs.applicationGenerator; exports.applicationSchematic = _chunk247N3JYFjs.applicationSchematic; exports.initGenerator = _chunkPW324BYDjs.initGenerator; exports.initSchematic = _chunkPW324BYDjs.initSchematic;
|
package/dist/generators.mjs
CHANGED
|
@@ -2,11 +2,11 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
applicationGenerator,
|
|
4
4
|
applicationSchematic
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5QU7G4BP.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator,
|
|
8
8
|
initSchematic
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Q67NQSCF.mjs";
|
|
10
10
|
import "./chunk-MESLYSHV.mjs";
|
|
11
11
|
import "./chunk-M4FHQYTZ.mjs";
|
|
12
12
|
import "./chunk-3HMZSKJD.mjs";
|
package/dist/index.js
CHANGED
|
@@ -3,14 +3,14 @@ require('./chunk-DHBG5ASJ.js');
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk247N3JYFjs = require('./chunk-247N3JYF.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkPW324BYDjs = require('./chunk-PW324BYD.js');
|
|
11
11
|
require('./chunk-CVGPWUNP.js');
|
|
12
12
|
require('./chunk-R7AIVBS7.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-6D3NUIUL.js');
|
|
14
14
|
require('./chunk-MCQ4YOON.js');
|
|
15
15
|
|
|
16
16
|
|
|
@@ -148,4 +148,4 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, createPackageJson, "createPackageJson");
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
exports.applicationGenerator =
|
|
151
|
+
exports.applicationGenerator = _chunk247N3JYFjs.applicationGenerator; exports.applicationSchematic = _chunk247N3JYFjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkHF5FM2V2js.getInternalDependencies; exports.initGenerator = _chunkPW324BYDjs.initGenerator; exports.initSchematic = _chunkPW324BYDjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkHF5FM2V2js.r2UploadFile;
|
package/dist/index.mjs
CHANGED
|
@@ -3,14 +3,14 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
applicationGenerator,
|
|
5
5
|
applicationSchematic
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5QU7G4BP.mjs";
|
|
7
7
|
import {
|
|
8
8
|
initGenerator,
|
|
9
9
|
initSchematic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Q67NQSCF.mjs";
|
|
11
11
|
import "./chunk-7Z5PILRU.mjs";
|
|
12
12
|
import "./chunk-VNLZQQ5C.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-E22S7JBO.mjs";
|
|
14
14
|
import "./chunk-S3S7EN37.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getInternalDependencies,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
var _chunkR7AIVBS7js = require('../../../chunk-R7AIVBS7.js');
|
|
4
|
-
require('../../../chunk-
|
|
4
|
+
require('../../../chunk-6D3NUIUL.js');
|
|
5
5
|
require('../../../chunk-VTHBMY4B.js');
|
|
6
6
|
require('../../../chunk-H2ML72QF.js');
|
|
7
7
|
require('../../../chunk-FK6PN2T3.js');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk6D3NUIULjs = require('../../../chunk-6D3NUIUL.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkVTHBMY4Bjs = require('../../../chunk-VTHBMY4B.js');
|
|
@@ -60,7 +60,7 @@ async function* serveExecutor(options, context, config) {
|
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
_chunkJ5SB6L2Ljs.__name.call(void 0, serveExecutor, "serveExecutor");
|
|
63
|
-
var executor_default =
|
|
63
|
+
var executor_default = _chunk6D3NUIULjs.withRunExecutor.call(void 0, "Cloudflare Serve executor", serveExecutor, {
|
|
64
64
|
skipReadingConfig: false,
|
|
65
65
|
hooks: {
|
|
66
66
|
applyDefaultOptions: /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options) => {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkPW324BYDjs = require('../../../chunk-PW324BYD.js');
|
|
6
6
|
require('../../../chunk-J5SB6L2L.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkPW324BYDjs.generator_default; exports.initGenerator = _chunkPW324BYDjs.initGenerator; exports.initSchematic = _chunkPW324BYDjs.initSchematic;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
5
|
+
var _chunk247N3JYFjs = require('../../../chunk-247N3JYF.js');
|
|
6
|
+
require('../../../chunk-PW324BYD.js');
|
|
7
7
|
require('../../../chunk-H2ML72QF.js');
|
|
8
8
|
require('../../../chunk-FK6PN2T3.js');
|
|
9
9
|
require('../../../chunk-J5SB6L2L.js');
|
|
@@ -11,4 +11,4 @@ require('../../../chunk-J5SB6L2L.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.applicationGenerator =
|
|
14
|
+
exports.applicationGenerator = _chunk247N3JYFjs.applicationGenerator; exports.applicationSchematic = _chunk247N3JYFjs.applicationSchematic; exports.default = _chunk247N3JYFjs.generator_default;
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
applicationGenerator,
|
|
3
3
|
applicationSchematic,
|
|
4
4
|
generator_default
|
|
5
|
-
} from "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
5
|
+
} from "../../../chunk-5QU7G4BP.mjs";
|
|
6
|
+
import "../../../chunk-Q67NQSCF.mjs";
|
|
7
7
|
import "../../../chunk-MESLYSHV.mjs";
|
|
8
8
|
import "../../../chunk-M4FHQYTZ.mjs";
|
|
9
9
|
import "../../../chunk-3HMZSKJD.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/cloudflare-tools",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.43",
|
|
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",
|