@storm-software/cloudflare-tools 0.55.40 → 0.55.41

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.55.41](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.41) (2025-03-17)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+ ([90d1828f9](https://github.com/storm-software/storm-ops/commit/90d1828f9))
11
+
5
12
  ## [0.55.40](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.40) (2025-03-17)
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
- [![Version](https://img.shields.io/badge/version-0.55.39-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.55.40-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-4QFFFPC5.mjs";
3
+ } from "./chunk-BV5FWJGL.mjs";
4
4
  import {
5
5
  getConfig
6
6
  } from "./chunk-MESLYSHV.mjs";
@@ -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.40",
11
+ version: "0.55.41",
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 = _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.40",
11
+ version: "0.55.41",
12
12
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
13
13
  repository: {
14
14
  type: "github",
@@ -1,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 _chunkLZLR3HJUjs = require('./chunk-LZLR3HJU.js');
3
+ var _chunkIA5NNUZKjs = require('./chunk-IA5NNUZK.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 _chunkLZLR3HJUjs.generator_default.call(void 0, tree, {
55
+ tasks.push(await _chunkIA5NNUZKjs.generator_default.call(void 0, tree, {
56
56
  ...options,
57
57
  skipFormat: true
58
58
  }));
@@ -1434,12 +1434,16 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
1434
1434
  };
1435
1435
  }, {})
1436
1436
  },
1437
- inject: _defu2.default.call(void 0, [
1437
+ inject: [
1438
1438
  options.format === "cjs" && options.injectShims ? _chunkFK6PN2T3js.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
1439
1439
  options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkFK6PN2T3js.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : ""
1440
- ], _nullishCoalesce(options.inject, () => ( []))).filter(Boolean)
1440
+ ]
1441
1441
  };
1442
1442
  result.plugins = _nullishCoalesce(userOptions.plugins, () => ( getDefaultBuildPlugins(userOptions, result)));
1443
+ if (options.inject) {
1444
+ options.inject = _defu2.default.call(void 0, result.inject, options.inject);
1445
+ }
1446
+ _optionalChain([options, 'access', _72 => _72.inject, 'optionalAccess', _73 => _73.filter, 'call', _74 => _74(Boolean)]);
1443
1447
  delete result.entry;
1444
1448
  delete result.outputPath;
1445
1449
  stopwatch();
@@ -1551,6 +1555,7 @@ async function executeEsBuild(context2) {
1551
1555
  delete options.renderers;
1552
1556
  delete options.config;
1553
1557
  delete options.injectShims;
1558
+ delete options.external;
1554
1559
  _chunkFK6PN2T3js.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
1555
1560
  ${_chunkFK6PN2T3js.formatLogMessage.call(void 0, options)}`, context2.options.config);
1556
1561
  const result = await esbuild2.build(options);
@@ -1564,7 +1569,7 @@ ${_chunkFK6PN2T3js.formatLogMessage.call(void 0, options)}`, context2.options.co
1564
1569
  }
1565
1570
  _chunkJ5SB6L2Ljs.__name.call(void 0, executeEsBuild, "executeEsBuild");
1566
1571
  async function copyBuildAssets(context2) {
1567
- if (_optionalChain([context2, 'access', _72 => _72.result, 'optionalAccess', _73 => _73.errors, 'access', _74 => _74.length]) === 0) {
1572
+ if (_optionalChain([context2, 'access', _75 => _75.result, 'optionalAccess', _76 => _76.errors, 'access', _77 => _77.length]) === 0) {
1568
1573
  _chunkFK6PN2T3js.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
1569
1574
  const stopwatch = _chunkFK6PN2T3js.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
1570
1575
  await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
@@ -1574,7 +1579,7 @@ async function copyBuildAssets(context2) {
1574
1579
  }
1575
1580
  _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
1576
1581
  async function reportResults(context2) {
1577
- if (_optionalChain([context2, 'access', _75 => _75.result, 'optionalAccess', _76 => _76.errors, 'access', _77 => _77.length]) === 0) {
1582
+ if (_optionalChain([context2, 'access', _78 => _78.result, 'optionalAccess', _79 => _79.errors, 'access', _80 => _80.length]) === 0) {
1578
1583
  if (context2.result.warnings.length > 0) {
1579
1584
  _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);
1580
1585
  }
@@ -1675,14 +1680,14 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
1675
1680
  // ../workspace-tools/src/executors/esbuild/executor.ts
1676
1681
  async function esbuildExecutorFn(options, context2, config) {
1677
1682
  _chunkFK6PN2T3js.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
1678
- 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])) {
1683
+ if (!_optionalChain([context2, 'access', _81 => _81.projectsConfigurations, 'optionalAccess', _82 => _82.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _83 => _83.projectsConfigurations, 'access', _84 => _84.projects, 'access', _85 => _85[context2.projectName], 'optionalAccess', _86 => _86.root])) {
1679
1684
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
1680
1685
  }
1681
1686
  await build3({
1682
1687
  ...options,
1683
- projectRoot: _optionalChain([context2, 'access', _84 => _84.projectsConfigurations, 'access', _85 => _85.projects, 'optionalAccess', _86 => _86[context2.projectName], 'access', _87 => _87.root]),
1688
+ projectRoot: _optionalChain([context2, 'access', _87 => _87.projectsConfigurations, 'access', _88 => _88.projects, 'optionalAccess', _89 => _89[context2.projectName], 'access', _90 => _90.root]),
1684
1689
  projectName: context2.projectName,
1685
- sourceRoot: _optionalChain([context2, 'access', _88 => _88.projectsConfigurations, 'access', _89 => _89.projects, 'optionalAccess', _90 => _90[context2.projectName], 'optionalAccess', _91 => _91.sourceRoot]),
1690
+ sourceRoot: _optionalChain([context2, 'access', _91 => _91.projectsConfigurations, 'access', _92 => _92.projects, 'optionalAccess', _93 => _93[context2.projectName], 'optionalAccess', _94 => _94.sourceRoot]),
1686
1691
  format: options.format,
1687
1692
  platform: options.format
1688
1693
  });
@@ -1725,7 +1730,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
1725
1730
  var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
1726
1731
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
1727
1732
  async function sizeLimitExecutorFn(options, context2, config) {
1728
- if (!_optionalChain([context2, 'optionalAccess', _92 => _92.projectName]) || !_optionalChain([context2, 'access', _93 => _93.projectsConfigurations, 'optionalAccess', _94 => _94.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1733
+ if (!_optionalChain([context2, 'optionalAccess', _95 => _95.projectName]) || !_optionalChain([context2, 'access', _96 => _96.projectsConfigurations, 'optionalAccess', _97 => _97.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
1729
1734
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
1730
1735
  }
1731
1736
  _chunkFK6PN2T3js.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
@@ -1734,7 +1739,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
1734
1739
  _esbuild3.default,
1735
1740
  _esbuildwhy2.default
1736
1741
  ], {
1737
- 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")))
1742
+ checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _98 => _98.projectsConfigurations, 'access', _99 => _99.projects, 'access', _100 => _100[context2.projectName], 'optionalAccess', _101 => _101.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _102 => _102.projectsConfigurations, 'access', _103 => _103.projects, 'access', _104 => _104[context2.projectName], 'optionalAccess', _105 => _105.root]), () => ( "./")), "src")))
1738
1743
  }).then((result) => {
1739
1744
  _chunkFK6PN2T3js.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
1740
1745
  });
@@ -1793,7 +1798,7 @@ var executor_default8 = withRunExecutor("Typia runtime validation generator", ty
1793
1798
  var _jiti = require('jiti');
1794
1799
  async function unbuildExecutorFn(options, context2, config) {
1795
1800
  _chunkFK6PN2T3js.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
1796
- if (!_optionalChain([context2, 'access', _103 => _103.projectsConfigurations, 'optionalAccess', _104 => _104.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
1801
+ if (!_optionalChain([context2, 'access', _106 => _106.projectsConfigurations, 'optionalAccess', _107 => _107.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
1797
1802
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
1798
1803
  }
1799
1804
  if (!context2.projectsConfigurations.projects[context2.projectName].root) {
@@ -1876,7 +1881,7 @@ var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (nam
1876
1881
  - workspaceRoot: ${workspaceRoot3}`, config);
1877
1882
  config = await _chunkH2ML72QFjs.getConfig.call(void 0, workspaceRoot3);
1878
1883
  }
1879
- if (_optionalChain([generatorOptions, 'optionalAccess', _105 => _105.hooks, 'optionalAccess', _106 => _106.applyDefaultOptions])) {
1884
+ if (_optionalChain([generatorOptions, 'optionalAccess', _108 => _108.hooks, 'optionalAccess', _109 => _109.applyDefaultOptions])) {
1880
1885
  _chunkFK6PN2T3js.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
1881
1886
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
1882
1887
  _chunkFK6PN2T3js.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
@@ -1887,22 +1892,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1887
1892
  workspaceRoot: tree.root,
1888
1893
  config
1889
1894
  }, applyWorkspaceBaseTokens);
1890
- if (_optionalChain([generatorOptions, 'optionalAccess', _107 => _107.hooks, 'optionalAccess', _108 => _108.preProcess])) {
1895
+ if (_optionalChain([generatorOptions, 'optionalAccess', _110 => _110.hooks, 'optionalAccess', _111 => _111.preProcess])) {
1891
1896
  _chunkFK6PN2T3js.writeDebug.call(void 0, "Running the preProcess hook...", config);
1892
1897
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
1893
1898
  _chunkFK6PN2T3js.writeDebug.call(void 0, "Completed the preProcess hook", config);
1894
1899
  }
1895
1900
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
1896
1901
  if (result) {
1897
- 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") {
1902
+ if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _112 => _112.error, 'optionalAccess', _113 => _113.message]) && typeof _optionalChain([result, 'optionalAccess', _114 => _114.error, 'optionalAccess', _115 => _115.message]) === "string" && _optionalChain([result, 'optionalAccess', _116 => _116.error, 'optionalAccess', _117 => _117.name]) && typeof _optionalChain([result, 'optionalAccess', _118 => _118.error, 'optionalAccess', _119 => _119.name]) === "string") {
1898
1903
  throw new Error(`The ${name} generator failed to run`, {
1899
- cause: _optionalChain([result, 'optionalAccess', _117 => _117.error])
1904
+ cause: _optionalChain([result, 'optionalAccess', _120 => _120.error])
1900
1905
  });
1901
1906
  } else if (result.success && result.data) {
1902
1907
  return result;
1903
1908
  }
1904
1909
  }
1905
- if (_optionalChain([generatorOptions, 'optionalAccess', _118 => _118.hooks, 'optionalAccess', _119 => _119.postProcess])) {
1910
+ if (_optionalChain([generatorOptions, 'optionalAccess', _121 => _121.hooks, 'optionalAccess', _122 => _122.postProcess])) {
1906
1911
  _chunkFK6PN2T3js.writeDebug.call(void 0, "Running the postProcess hook...", config);
1907
1912
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
1908
1913
  _chunkFK6PN2T3js.writeDebug.call(void 0, "Completed the postProcess hook", config);
@@ -2012,15 +2017,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2012
2017
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
2013
2018
  let repository = {
2014
2019
  type: "github",
2015
- 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`
2020
+ url: _optionalChain([config, 'optionalAccess', _123 => _123.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _124 => _124.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _125 => _125.namespace]) || _optionalChain([config, 'optionalAccess', _126 => _126.name]) || "repository"}.git`
2016
2021
  };
2017
2022
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
2018
2023
  if (tree.exists("package.json")) {
2019
2024
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2020
- if (_optionalChain([packageJson, 'optionalAccess', _124 => _124.repository])) {
2025
+ if (_optionalChain([packageJson, 'optionalAccess', _127 => _127.repository])) {
2021
2026
  repository = packageJson.repository;
2022
2027
  }
2023
- if (_optionalChain([packageJson, 'optionalAccess', _125 => _125.description])) {
2028
+ if (_optionalChain([packageJson, 'optionalAccess', _128 => _128.description])) {
2024
2029
  description = packageJson.description;
2025
2030
  }
2026
2031
  }
@@ -2075,9 +2080,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2075
2080
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
2076
2081
  ...json,
2077
2082
  pnpm: {
2078
- ..._optionalChain([json, 'optionalAccess', _126 => _126.pnpm]),
2083
+ ..._optionalChain([json, 'optionalAccess', _129 => _129.pnpm]),
2079
2084
  overrides: {
2080
- ..._optionalChain([json, 'optionalAccess', _127 => _127.pnpm, 'optionalAccess', _128 => _128.overrides]),
2085
+ ..._optionalChain([json, 'optionalAccess', _130 => _130.pnpm, 'optionalAccess', _131 => _131.overrides]),
2081
2086
  [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
2082
2087
  }
2083
2088
  }
@@ -2091,10 +2096,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2091
2096
  ]);
2092
2097
  if (tree.exists("package.json")) {
2093
2098
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
2094
- if (_optionalChain([packageJson, 'optionalAccess', _129 => _129.repository])) {
2099
+ if (_optionalChain([packageJson, 'optionalAccess', _132 => _132.repository])) {
2095
2100
  repository = packageJson.repository;
2096
2101
  }
2097
- if (_optionalChain([packageJson, 'optionalAccess', _130 => _130.description])) {
2102
+ if (_optionalChain([packageJson, 'optionalAccess', _133 => _133.description])) {
2098
2103
  description = packageJson.description;
2099
2104
  }
2100
2105
  }
@@ -2142,24 +2147,24 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
2142
2147
  function createProjectTsConfigJson(tree, options) {
2143
2148
  const tsconfig = {
2144
2149
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
2145
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _131 => _131.tsconfigOptions]), () => ( {})),
2150
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _134 => _134.tsconfigOptions]), () => ( {})),
2146
2151
  compilerOptions: {
2147
2152
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
2148
2153
  outDir: _chunkFK6PN2T3js.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
2149
2154
  noEmit: true,
2150
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _132 => _132.tsconfigOptions, 'optionalAccess', _133 => _133.compilerOptions]), () => ( {}))
2155
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _135 => _135.tsconfigOptions, 'optionalAccess', _136 => _136.compilerOptions]), () => ( {}))
2151
2156
  },
2152
2157
  files: [
2153
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _134 => _134.tsconfigOptions, 'optionalAccess', _135 => _135.files]), () => ( []))
2158
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _137 => _137.tsconfigOptions, 'optionalAccess', _138 => _138.files]), () => ( []))
2154
2159
  ],
2155
2160
  include: [
2156
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _136 => _136.tsconfigOptions, 'optionalAccess', _137 => _137.include]), () => ( [])),
2161
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _139 => _139.tsconfigOptions, 'optionalAccess', _140 => _140.include]), () => ( [])),
2157
2162
  "src/**/*.ts",
2158
2163
  "src/**/*.js",
2159
2164
  "bin/**/*"
2160
2165
  ],
2161
2166
  exclude: [
2162
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _138 => _138.tsconfigOptions, 'optionalAccess', _139 => _139.exclude]), () => ( [])),
2167
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _141 => _141.tsconfigOptions, 'optionalAccess', _142 => _142.exclude]), () => ( [])),
2163
2168
  "jest.config.ts",
2164
2169
  "src/**/*.spec.ts",
2165
2170
  "src/**/*.test.ts"
@@ -2170,8 +2175,8 @@ function createProjectTsConfigJson(tree, options) {
2170
2175
  _chunkJ5SB6L2Ljs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
2171
2176
  async function normalizeOptions(tree, options, config) {
2172
2177
  let importPath = options.importPath;
2173
- if (!importPath && _optionalChain([config, 'optionalAccess', _140 => _140.namespace])) {
2174
- importPath = `@${_optionalChain([config, 'optionalAccess', _141 => _141.namespace])}/${options.name}`;
2178
+ if (!importPath && _optionalChain([config, 'optionalAccess', _143 => _143.namespace])) {
2179
+ importPath = `@${_optionalChain([config, 'optionalAccess', _144 => _144.namespace])}/${options.name}`;
2175
2180
  }
2176
2181
  if (options.publishable) {
2177
2182
  if (!importPath) {
@@ -2303,7 +2308,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
2303
2308
  name: "StormWorkspaceConfiguration"
2304
2309
  });
2305
2310
  _chunkFK6PN2T3js.writeTrace.call(void 0, jsonSchema, config);
2306
- 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("./")]) ? "" : "./");
2311
+ const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _145 => _145.workspaceRoot]), () => ( _chunkFK6PN2T3js.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _146 => _146.outputFile, 'optionalAccess', _147 => _147.startsWith, 'call', _148 => _148("./")]) ? "" : "./");
2307
2312
  _chunkFK6PN2T3js.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
2308
2313
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
2309
2314
  spaces: 2
@@ -1435,12 +1435,16 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
1435
1435
  };
1436
1436
  }, {})
1437
1437
  },
1438
- inject: defu2([
1438
+ inject: [
1439
1439
  options.format === "cjs" && options.injectShims ? joinPaths(__dirname, "../assets/cjs_shims.js") : "",
1440
1440
  options.format === "esm" && options.injectShims && options.platform === "node" ? joinPaths(__dirname, "../assets/esm_shims.js") : ""
1441
- ], options.inject ?? []).filter(Boolean)
1441
+ ]
1442
1442
  };
1443
1443
  result.plugins = userOptions.plugins ?? getDefaultBuildPlugins(userOptions, result);
1444
+ if (options.inject) {
1445
+ options.inject = defu2(result.inject, options.inject);
1446
+ }
1447
+ options.inject?.filter(Boolean);
1444
1448
  delete result.entry;
1445
1449
  delete result.outputPath;
1446
1450
  stopwatch();
@@ -1552,6 +1556,7 @@ async function executeEsBuild(context2) {
1552
1556
  delete options.renderers;
1553
1557
  delete options.config;
1554
1558
  delete options.injectShims;
1559
+ delete options.external;
1555
1560
  writeTrace(`Run esbuild (${context2.options.name}) with the following options:
1556
1561
  ${formatLogMessage(options)}`, context2.options.config);
1557
1562
  const result = await esbuild2.build(options);
package/dist/executors.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";require('./chunk-XO66D74Z.js');
2
2
  require('./chunk-R7AIVBS7.js');
3
- require('./chunk-5KLP7KFL.js');
3
+ require('./chunk-NGA2REMH.js');
4
4
  require('./chunk-MCQ4YOON.js');
5
5
  require('./chunk-HF5FM2V2.js');
6
6
  require('./chunk-VTHBMY4B.js');
@@ -1,6 +1,6 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
2
  import "./chunk-VNLZQQ5C.mjs";
3
- import "./chunk-RHCFLN3R.mjs";
3
+ import "./chunk-PDLA5ACW.mjs";
4
4
  import "./chunk-S3S7EN37.mjs";
5
5
  import "./chunk-LEXIFHU6.mjs";
6
6
  import "./chunk-YYEF6TFG.mjs";
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk3SY45SUUjs = require('./chunk-3SY45SUU.js');
5
+ var _chunkJF2LLENHjs = require('./chunk-JF2LLENH.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkLZLR3HJUjs = require('./chunk-LZLR3HJU.js');
9
+ var _chunkIA5NNUZKjs = require('./chunk-IA5NNUZK.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 = _chunk3SY45SUUjs.applicationGenerator; exports.applicationSchematic = _chunk3SY45SUUjs.applicationSchematic; exports.initGenerator = _chunkLZLR3HJUjs.initGenerator; exports.initSchematic = _chunkLZLR3HJUjs.initSchematic;
18
+ exports.applicationGenerator = _chunkJF2LLENHjs.applicationGenerator; exports.applicationSchematic = _chunkJF2LLENHjs.applicationSchematic; exports.initGenerator = _chunkIA5NNUZKjs.initGenerator; exports.initSchematic = _chunkIA5NNUZKjs.initSchematic;
@@ -2,11 +2,11 @@ import "./chunk-3J7KBHMJ.mjs";
2
2
  import {
3
3
  applicationGenerator,
4
4
  applicationSchematic
5
- } from "./chunk-FQEGSK6L.mjs";
5
+ } from "./chunk-2GWCBDS7.mjs";
6
6
  import {
7
7
  initGenerator,
8
8
  initSchematic
9
- } from "./chunk-4QFFFPC5.mjs";
9
+ } from "./chunk-BV5FWJGL.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 _chunk3SY45SUUjs = require('./chunk-3SY45SUU.js');
6
+ var _chunkJF2LLENHjs = require('./chunk-JF2LLENH.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkLZLR3HJUjs = require('./chunk-LZLR3HJU.js');
10
+ var _chunkIA5NNUZKjs = require('./chunk-IA5NNUZK.js');
11
11
  require('./chunk-CVGPWUNP.js');
12
12
  require('./chunk-R7AIVBS7.js');
13
- require('./chunk-5KLP7KFL.js');
13
+ require('./chunk-NGA2REMH.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 = _chunk3SY45SUUjs.applicationGenerator; exports.applicationSchematic = _chunk3SY45SUUjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkHF5FM2V2js.getInternalDependencies; exports.initGenerator = _chunkLZLR3HJUjs.initGenerator; exports.initSchematic = _chunkLZLR3HJUjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkHF5FM2V2js.r2UploadFile;
151
+ exports.applicationGenerator = _chunkJF2LLENHjs.applicationGenerator; exports.applicationSchematic = _chunkJF2LLENHjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkHF5FM2V2js.getInternalDependencies; exports.initGenerator = _chunkIA5NNUZKjs.initGenerator; exports.initSchematic = _chunkIA5NNUZKjs.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-FQEGSK6L.mjs";
6
+ } from "./chunk-2GWCBDS7.mjs";
7
7
  import {
8
8
  initGenerator,
9
9
  initSchematic
10
- } from "./chunk-4QFFFPC5.mjs";
10
+ } from "./chunk-BV5FWJGL.mjs";
11
11
  import "./chunk-7Z5PILRU.mjs";
12
12
  import "./chunk-VNLZQQ5C.mjs";
13
- import "./chunk-RHCFLN3R.mjs";
13
+ import "./chunk-PDLA5ACW.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-5KLP7KFL.js');
4
+ require('../../../chunk-NGA2REMH.js');
5
5
  require('../../../chunk-VTHBMY4B.js');
6
6
  require('../../../chunk-H2ML72QF.js');
7
7
  require('../../../chunk-FK6PN2T3.js');
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runExecutor
3
3
  } from "../../../chunk-VNLZQQ5C.mjs";
4
- import "../../../chunk-RHCFLN3R.mjs";
4
+ import "../../../chunk-PDLA5ACW.mjs";
5
5
  import "../../../chunk-YYEF6TFG.mjs";
6
6
  import "../../../chunk-MESLYSHV.mjs";
7
7
  import "../../../chunk-M4FHQYTZ.mjs";
@@ -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 _chunk5KLP7KFLjs = require('../../../chunk-5KLP7KFL.js');
3
+ var _chunkNGA2REMHjs = require('../../../chunk-NGA2REMH.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 = _chunk5KLP7KFLjs.withRunExecutor.call(void 0, "Cloudflare Serve executor", serveExecutor, {
63
+ var executor_default = _chunkNGA2REMHjs.withRunExecutor.call(void 0, "Cloudflare Serve executor", serveExecutor, {
64
64
  skipReadingConfig: false,
65
65
  hooks: {
66
66
  applyDefaultOptions: /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "../../../chunk-RHCFLN3R.mjs";
3
+ } from "../../../chunk-PDLA5ACW.mjs";
4
4
  import {
5
5
  createCliOptions
6
6
  } from "../../../chunk-YYEF6TFG.mjs";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkLZLR3HJUjs = require('../../../chunk-LZLR3HJU.js');
5
+ var _chunkIA5NNUZKjs = require('../../../chunk-IA5NNUZK.js');
6
6
  require('../../../chunk-J5SB6L2L.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunkLZLR3HJUjs.generator_default; exports.initGenerator = _chunkLZLR3HJUjs.initGenerator; exports.initSchematic = _chunkLZLR3HJUjs.initSchematic;
11
+ exports.default = _chunkIA5NNUZKjs.generator_default; exports.initGenerator = _chunkIA5NNUZKjs.initGenerator; exports.initSchematic = _chunkIA5NNUZKjs.initSchematic;
@@ -2,7 +2,7 @@ import {
2
2
  generator_default,
3
3
  initGenerator,
4
4
  initSchematic
5
- } from "../../../chunk-4QFFFPC5.mjs";
5
+ } from "../../../chunk-BV5FWJGL.mjs";
6
6
  import "../../../chunk-3HMZSKJD.mjs";
7
7
  export {
8
8
  generator_default as default,
@@ -2,8 +2,8 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk3SY45SUUjs = require('../../../chunk-3SY45SUU.js');
6
- require('../../../chunk-LZLR3HJU.js');
5
+ var _chunkJF2LLENHjs = require('../../../chunk-JF2LLENH.js');
6
+ require('../../../chunk-IA5NNUZK.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 = _chunk3SY45SUUjs.applicationGenerator; exports.applicationSchematic = _chunk3SY45SUUjs.applicationSchematic; exports.default = _chunk3SY45SUUjs.generator_default;
14
+ exports.applicationGenerator = _chunkJF2LLENHjs.applicationGenerator; exports.applicationSchematic = _chunkJF2LLENHjs.applicationSchematic; exports.default = _chunkJF2LLENHjs.generator_default;
@@ -2,8 +2,8 @@ import {
2
2
  applicationGenerator,
3
3
  applicationSchematic,
4
4
  generator_default
5
- } from "../../../chunk-FQEGSK6L.mjs";
6
- import "../../../chunk-4QFFFPC5.mjs";
5
+ } from "../../../chunk-2GWCBDS7.mjs";
6
+ import "../../../chunk-BV5FWJGL.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.40",
3
+ "version": "0.55.41",
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",