@storm-software/cloudflare-tools 0.71.241 → 0.71.242

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-MJTK5VFR.mjs → chunk-3GUCTXXT.mjs} +2 -2
  4. package/dist/{chunk-7PHIHWTS.mjs → chunk-4HEOMMTX.mjs} +2 -2
  5. package/dist/{chunk-TXSHBEGN.js → chunk-7NFFNXFN.js} +12 -12
  6. package/dist/{chunk-F267HKGK.js → chunk-AF4CHUYX.js} +5 -5
  7. package/dist/{chunk-62X6T4SY.js → chunk-BASIQFOW.js} +6 -6
  8. package/dist/{chunk-5MAMLVMV.mjs → chunk-BJQFVPGK.mjs} +3 -1
  9. package/dist/{chunk-3E2GFJMN.mjs → chunk-E2KDBKFZ.mjs} +8 -8
  10. package/dist/chunk-FLA2SYPV.js +231 -0
  11. package/dist/{chunk-OICNXBKP.js → chunk-GLKR5BOA.js} +5 -5
  12. package/dist/{chunk-NVXN47M3.js → chunk-GRVOVEJP.js} +1 -1
  13. package/dist/{chunk-F7UN7A3Y.mjs → chunk-KNN4W7QC.mjs} +1 -1
  14. package/dist/{chunk-ZBFQ7IPQ.mjs → chunk-MVEHOKMY.mjs} +1 -1
  15. package/dist/{chunk-NDWQLXK2.js → chunk-TMHLSIZ5.js} +1 -1
  16. package/dist/chunk-WTWLKDV7.mjs +231 -0
  17. package/dist/{chunk-H7UUMO4I.mjs → chunk-YCOA7IKG.mjs} +1 -1
  18. package/dist/{chunk-PGTHXO6M.js → chunk-YRUROEEP.js} +3 -1
  19. package/dist/executors.js +3 -3
  20. package/dist/executors.mjs +3 -3
  21. package/dist/generators.js +4 -4
  22. package/dist/generators.mjs +3 -3
  23. package/dist/index.js +6 -6
  24. package/dist/index.mjs +5 -5
  25. package/dist/src/executors/cloudflare-publish/executor.js +2 -2
  26. package/dist/src/executors/cloudflare-publish/executor.mjs +2 -2
  27. package/dist/src/executors/r2-upload-publish/executor.js +3 -3
  28. package/dist/src/executors/r2-upload-publish/executor.mjs +2 -2
  29. package/dist/src/executors/serve/executor.js +3 -3
  30. package/dist/src/executors/serve/executor.mjs +2 -2
  31. package/dist/src/generators/init/generator.js +2 -2
  32. package/dist/src/generators/init/generator.mjs +1 -1
  33. package/dist/src/generators/worker/generator.js +4 -4
  34. package/dist/src/generators/worker/generator.mjs +3 -3
  35. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.71.242](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.242) (07/13/2026)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **devenv-modules:** Update devenv modules inputs ([d71083ab0](https://github.com/storm-software/storm-ops/commit/d71083ab0))
10
+ - **bun-tools:** Display full error details during update ([f1c4902a7](https://github.com/storm-software/storm-ops/commit/f1c4902a7))
11
+
12
+ ### Updated Dependencies
13
+
14
+ - Updated **config** to **v1.138.36**
15
+ - Updated **config-tools** to **v1.190.99**
16
+ - Updated **workspace-tools** to **v1.296.79**
17
+
5
18
  ## [0.71.241](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.241) (07/13/2026)
6
19
 
7
20
  ### Updated Dependencies
package/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.71.239-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)
30
+ [![Version](https://img.shields.io/badge/version-0.71.241-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)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-ZBFQ7IPQ.mjs";
3
+ } from "./chunk-YCOA7IKG.mjs";
4
4
  import {
5
5
  findWorkspaceRoot,
6
6
  getConfig
7
- } from "./chunk-5MAMLVMV.mjs";
7
+ } from "./chunk-BJQFVPGK.mjs";
8
8
  import {
9
9
  brandIcon,
10
10
  getStopwatch,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-H7UUMO4I.mjs";
3
+ } from "./chunk-MVEHOKMY.mjs";
4
4
  import {
5
5
  findWorkspaceRoot,
6
6
  getConfig
7
- } from "./chunk-5MAMLVMV.mjs";
7
+ } from "./chunk-BJQFVPGK.mjs";
8
8
  import {
9
9
  brandIcon,
10
10
  getStopwatch,
@@ -7,7 +7,7 @@ var _chunkNCVDTA5Mjs = require('./chunk-NCVDTA5M.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkPGTHXO6Mjs = require('./chunk-PGTHXO6M.js');
10
+ var _chunkYRUROEEPjs = require('./chunk-YRUROEEP.js');
11
11
 
12
12
 
13
13
 
@@ -64,7 +64,7 @@ var applyWorkspaceBaseTokens = async (option, tokenParams) => {
64
64
  if (result.includes("{workspaceRoot}")) {
65
65
  result = result.replaceAll(
66
66
  "{workspaceRoot}",
67
- _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunkPGTHXO6Mjs.findWorkspaceRoot.call(void 0, )))
67
+ _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunkYRUROEEPjs.findWorkspaceRoot.call(void 0, )))
68
68
  );
69
69
  }
70
70
  return result;
@@ -113,7 +113,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
113
113
  "The Build process failed because the context is not valid. Please run this command from a workspace."
114
114
  );
115
115
  }
116
- const workspaceRoot2 = _chunkPGTHXO6Mjs.findWorkspaceRoot.call(void 0, );
116
+ const workspaceRoot2 = _chunkYRUROEEPjs.findWorkspaceRoot.call(void 0, );
117
117
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot2;
118
118
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot2;
119
119
  const projectName = context.projectName;
@@ -132,7 +132,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
132
132
  `,
133
133
  config
134
134
  );
135
- config = await _chunkPGTHXO6Mjs.getConfig.call(void 0, workspaceRoot2);
135
+ config = await _chunkYRUROEEPjs.getConfig.call(void 0, workspaceRoot2);
136
136
  }
137
137
  if (_optionalChain([executorOptions, 'optionalAccess', _7 => _7.hooks, 'optionalAccess', _8 => _8.applyDefaultOptions])) {
138
138
  _chunkAWKQRM2Hjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
@@ -911,7 +911,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
911
911
  return packageJson;
912
912
  };
913
913
  var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
914
- const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkPGTHXO6Mjs.findWorkspaceRoot.call(void 0, );
914
+ const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkYRUROEEPjs.findWorkspaceRoot.call(void 0, );
915
915
  const workspacePackageJsonContent = await _promises.readFile.call(void 0,
916
916
  _chunkAWKQRM2Hjs.joinPaths.call(void 0, workspaceRoot2, "package.json"),
917
917
  "utf8"
@@ -1043,11 +1043,11 @@ function toTSDownFormat(format3) {
1043
1043
  // ../tsdown/src/build.ts
1044
1044
  var resolveOptions = async (userOptions) => {
1045
1045
  const options = getDefaultOptions(userOptions);
1046
- const workspaceRoot2 = _chunkPGTHXO6Mjs.findWorkspaceRoot.call(void 0, options.projectRoot);
1046
+ const workspaceRoot2 = _chunkYRUROEEPjs.findWorkspaceRoot.call(void 0, options.projectRoot);
1047
1047
  if (!workspaceRoot2) {
1048
1048
  throw new Error("Cannot find Nx workspace root");
1049
1049
  }
1050
- const workspaceConfig = await _chunkPGTHXO6Mjs.getWorkspaceConfig.call(void 0, options.debug === true, {
1050
+ const workspaceConfig = await _chunkYRUROEEPjs.getWorkspaceConfig.call(void 0, options.debug === true, {
1051
1051
  workspaceRoot: workspaceRoot2
1052
1052
  });
1053
1053
  _chunkAWKQRM2Hjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
@@ -1476,14 +1476,14 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
1476
1476
  `,
1477
1477
  config
1478
1478
  );
1479
- const workspaceRoot2 = _chunkPGTHXO6Mjs.findWorkspaceRoot.call(void 0, );
1479
+ const workspaceRoot2 = _chunkYRUROEEPjs.findWorkspaceRoot.call(void 0, );
1480
1480
  if (!generatorOptions.skipReadingConfig) {
1481
1481
  _chunkAWKQRM2Hjs.writeDebug.call(void 0,
1482
1482
  `Loading the Storm Config from environment variables and storm.config.js file...
1483
1483
  - workspaceRoot: ${workspaceRoot2}`,
1484
1484
  config
1485
1485
  );
1486
- config = await _chunkPGTHXO6Mjs.getConfig.call(void 0, workspaceRoot2);
1486
+ config = await _chunkYRUROEEPjs.getConfig.call(void 0, workspaceRoot2);
1487
1487
  }
1488
1488
  if (_optionalChain([generatorOptions, 'optionalAccess', _124 => _124.hooks, 'optionalAccess', _125 => _125.applyDefaultOptions])) {
1489
1489
  _chunkAWKQRM2Hjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
@@ -1942,9 +1942,9 @@ async function configSchemaGeneratorFn(tree, options, config) {
1942
1942
  `Determining the Storm Workspace Configuration JSON Schema...`,
1943
1943
  config
1944
1944
  );
1945
- const jsonSchema = z.toJSONSchema(_chunkPGTHXO6Mjs.workspaceConfigSchema, {
1945
+ const jsonSchema = z.toJSONSchema(_chunkYRUROEEPjs.workspaceConfigSchema, {
1946
1946
  target: "draft-7",
1947
- metadata: _chunkPGTHXO6Mjs.schemaRegistry
1947
+ metadata: _chunkYRUROEEPjs.schemaRegistry
1948
1948
  });
1949
1949
  jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
1950
1950
  jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
@@ -1956,7 +1956,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
1956
1956
  );
1957
1957
  }
1958
1958
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
1959
- _nullishCoalesce(_optionalChain([config, 'optionalAccess', _164 => _164.workspaceRoot]), () => ( _chunkPGTHXO6Mjs.findWorkspaceRoot.call(void 0, ))),
1959
+ _nullishCoalesce(_optionalChain([config, 'optionalAccess', _164 => _164.workspaceRoot]), () => ( _chunkYRUROEEPjs.findWorkspaceRoot.call(void 0, ))),
1960
1960
  options.outputFile.startsWith("./") ? "" : "./"
1961
1961
  );
1962
1962
  _chunkAWKQRM2Hjs.writeTrace.call(void 0,
@@ -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 _chunkNDWQLXK2js = require('./chunk-NDWQLXK2.js');
3
+ var _chunkGRVOVEJPjs = require('./chunk-GRVOVEJP.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkPGTHXO6Mjs = require('./chunk-PGTHXO6M.js');
7
+ var _chunkYRUROEEPjs = require('./chunk-YRUROEEP.js');
8
8
 
9
9
 
10
10
 
@@ -49,8 +49,8 @@ async function applicationGenerator(tree, schema) {
49
49
  const stopwatch = _chunkAWKQRM2Hjs.getStopwatch.call(void 0, "Storm Worker generator");
50
50
  let config;
51
51
  try {
52
- const workspaceRoot = _chunkPGTHXO6Mjs.findWorkspaceRoot.call(void 0, );
53
- config = await _chunkPGTHXO6Mjs.getConfig.call(void 0, workspaceRoot);
52
+ const workspaceRoot = _chunkYRUROEEPjs.findWorkspaceRoot.call(void 0, );
53
+ config = await _chunkYRUROEEPjs.getConfig.call(void 0, workspaceRoot);
54
54
  _chunkAWKQRM2Hjs.writeInfo.call(void 0,
55
55
  `${_chunkAWKQRM2Hjs.brandIcon.call(void 0, config)} Running the Storm Worker generator...
56
56
 
@@ -70,7 +70,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
70
70
  const options = await normalizeOptions(tree, schema, config);
71
71
  const tasks = [];
72
72
  tasks.push(
73
- await _chunkNDWQLXK2js.generator_default.call(void 0, tree, {
73
+ await _chunkGRVOVEJPjs.generator_default.call(void 0, tree, {
74
74
  ...options,
75
75
  skipFormat: true
76
76
  })
@@ -1,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkKUGEZPUOjs = require('./chunk-KUGEZPUO.js');
4
3
 
4
+ var _chunkNCVDTA5Mjs = require('./chunk-NCVDTA5M.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkCLCKX6UNjs = require('./chunk-CLCKX6UN.js');
8
+ var _chunkYRUROEEPjs = require('./chunk-YRUROEEP.js');
9
9
 
10
10
 
11
+ var _chunkKUGEZPUOjs = require('./chunk-KUGEZPUO.js');
11
12
 
12
- var _chunkNCVDTA5Mjs = require('./chunk-NCVDTA5M.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkPGTHXO6Mjs = require('./chunk-PGTHXO6M.js');
16
+ var _chunkCLCKX6UNjs = require('./chunk-CLCKX6UN.js');
17
17
 
18
18
 
19
19
 
@@ -53,8 +53,8 @@ async function runExecutor(options, context) {
53
53
  throw new Error("The executor requires projectsConfigurations.");
54
54
  }
55
55
  try {
56
- const workspaceRoot = _chunkPGTHXO6Mjs.findWorkspaceRoot.call(void 0, );
57
- const config = await _chunkPGTHXO6Mjs.getConfig.call(void 0, workspaceRoot);
56
+ const workspaceRoot = _chunkYRUROEEPjs.findWorkspaceRoot.call(void 0, );
57
+ const config = await _chunkYRUROEEPjs.getConfig.call(void 0, workspaceRoot);
58
58
  const projectName = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.name]), () => ( context.projectName));
59
59
  const projectDetails = _chunkNCVDTA5Mjs.getPackageInfo.call(void 0,
60
60
  context.projectsConfigurations.projects[context.projectName]
@@ -64,7 +64,9 @@ var rootFiles = [
64
64
  "npm-lock.yml",
65
65
  "yarn-lock.yml",
66
66
  "pnpm-lock.yml",
67
- "bun.lockb"
67
+ "bun.lockb",
68
+ "bun.lock",
69
+ "bunfig.toml"
68
70
  ];
69
71
  var rootDirectories = [
70
72
  ".storm-workspace",
@@ -1,3 +1,11 @@
1
+ import {
2
+ createCliOptions,
3
+ getPackageInfo
4
+ } from "./chunk-ZXLMDNFQ.mjs";
5
+ import {
6
+ findWorkspaceRoot,
7
+ getConfig
8
+ } from "./chunk-BJQFVPGK.mjs";
1
9
  import {
2
10
  createHttpHandler
3
11
  } from "./chunk-SWYYMID7.mjs";
@@ -6,14 +14,6 @@ import {
6
14
  getInternalDependencies,
7
15
  uploadFile
8
16
  } from "./chunk-BY7MA3SM.mjs";
9
- import {
10
- createCliOptions,
11
- getPackageInfo
12
- } from "./chunk-ZXLMDNFQ.mjs";
13
- import {
14
- findWorkspaceRoot,
15
- getConfig
16
- } from "./chunk-5MAMLVMV.mjs";
17
17
  import {
18
18
  correctPaths,
19
19
  joinPaths,
@@ -0,0 +1,231 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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
+
3
+ var _chunkKUGEZPUOjs = require('./chunk-KUGEZPUO.js');
4
+
5
+
6
+
7
+
8
+ var _chunkCLCKX6UNjs = require('./chunk-CLCKX6UN.js');
9
+
10
+
11
+
12
+ var _chunkNCVDTA5Mjs = require('./chunk-NCVDTA5M.js');
13
+
14
+
15
+
16
+ var _chunkYRUROEEPjs = require('./chunk-YRUROEEP.js');
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+ var _chunkAWKQRM2Hjs = require('./chunk-AWKQRM2H.js');
25
+
26
+ // src/executors/r2-upload-publish/executor.ts
27
+
28
+
29
+
30
+
31
+ var _clients3 = require('@aws-sdk/client-s3');
32
+
33
+
34
+
35
+ var _devkit = require('@nx/devkit');
36
+ var _glob = require('glob');
37
+ var _mimetypes = require('mime-types'); var _mimetypes2 = _interopRequireDefault(_mimetypes);
38
+ var _child_process = require('child_process');
39
+ var _fs = require('fs');
40
+ var _promises = require('fs/promises');
41
+ async function runExecutor(options, context) {
42
+ const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
43
+ if (!context.projectName) {
44
+ throw new Error("The executor requires a projectName.");
45
+ }
46
+ if (!options.path) {
47
+ throw new Error("The executor requires the `path` option to upload.");
48
+ }
49
+ console.info(
50
+ `\u{1F680} Running Storm Cloudflare Publish executor on the ${context.projectName} worker`
51
+ );
52
+ if (!context.projectName || !_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'access', _4 => _4.projects, 'access', _5 => _5[context.projectName], 'optionalAccess', _6 => _6.root])) {
53
+ throw new Error("The executor requires projectsConfigurations.");
54
+ }
55
+ try {
56
+ const workspaceRoot = _chunkYRUROEEPjs.findWorkspaceRoot.call(void 0, );
57
+ const config = await _chunkYRUROEEPjs.getConfig.call(void 0, workspaceRoot);
58
+ const projectName = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.name]), () => ( context.projectName));
59
+ const projectDetails = _chunkNCVDTA5Mjs.getPackageInfo.call(void 0,
60
+ context.projectsConfigurations.projects[context.projectName]
61
+ );
62
+ const bucketId = options.bucketId;
63
+ const bucketPath = options.bucketPath || "/";
64
+ if (!bucketId) {
65
+ throw new Error("The executor requires a bucketId.");
66
+ }
67
+ const args = _chunkNCVDTA5Mjs.createCliOptions.call(void 0, { ...options });
68
+ if (isDryRun) {
69
+ args.push("--dry-run");
70
+ }
71
+ const cloudflareAccountId = process.env.CLOUDFLARE_ACCOUNT_ID || process.env.STORM_BOT_CLOUDFLARE_ACCOUNT;
72
+ if (!_optionalChain([options, 'optionalAccess', _11 => _11.registry]) && !cloudflareAccountId) {
73
+ throw new Error(
74
+ "The registry option and `CLOUDFLARE_ACCOUNT_ID` (or `STORM_BOT_CLOUDFLARE_ACCOUNT`) environment variable are not set. Please set one of these values to upload to the Cloudflare R2 bucket."
75
+ );
76
+ }
77
+ if (!process.env.STORM_BOT_ACCESS_KEY_ID && !process.env.ACCESS_KEY_ID && !process.env.CLOUDFLARE_ACCESS_KEY_ID && !process.env.AWS_ACCESS_KEY_ID || !process.env.STORM_BOT_SECRET_ACCESS_KEY && !process.env.CLOUDFLARE_SECRET_ACCESS_KEY && !process.env.SECRET_ACCESS_KEY && !process.env.AWS_SECRET_ACCESS_KEY) {
78
+ throw new Error(
79
+ "The `ACCESS_KEY_ID` (or `STORM_BOT_ACCESS_KEY_ID`) and `SECRET_ACCESS_KEY` (or `STORM_BOT_SECRET_ACCESS_KEY`) environment variables are not set. Please set these environment variables to upload to the Cloudflare R2 bucket."
80
+ );
81
+ }
82
+ const registry = _optionalChain([options, 'optionalAccess', _12 => _12.registry]) ? options.registry : `https://${cloudflareAccountId}.r2.cloudflarestorage.com`;
83
+ let projectGraph;
84
+ try {
85
+ projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
86
+ } catch (e) {
87
+ await _devkit.createProjectGraphAsync.call(void 0, );
88
+ projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
89
+ }
90
+ if (!projectGraph) {
91
+ throw new Error(
92
+ "The executor failed because the project graph is not available. Please run the build command again."
93
+ );
94
+ }
95
+ _chunkAWKQRM2Hjs.writeDebug.call(void 0,
96
+ `Publishing ${context.projectName} to the ${bucketId} R2 Bucket (at ${registry})`
97
+ );
98
+ const client = new (0, _clients3.S3Client)({
99
+ region: "auto",
100
+ endpoint: registry,
101
+ credentials: {
102
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
103
+ accessKeyId: process.env.STORM_BOT_ACCESS_KEY_ID || process.env.CLOUDFLARE_ACCESS_KEY_ID || process.env.AWS_ACCESS_KEY_ID || process.env.ACCESS_KEY_ID,
104
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
105
+ secretAccessKey: process.env.STORM_BOT_SECRET_ACCESS_KEY || process.env.CLOUDFLARE_SECRET_ACCESS_KEY || process.env.AWS_SECRET_ACCESS_KEY || process.env.SECRET_ACCESS_KEY
106
+ },
107
+ requestHandler: _chunkKUGEZPUOjs.createHttpHandler.call(void 0, )
108
+ });
109
+ const version = _optionalChain([projectDetails, 'optionalAccess', _13 => _13.content, 'optionalAccess', _14 => _14.version]);
110
+ if (version) {
111
+ _chunkAWKQRM2Hjs.writeDebug.call(void 0, `Starting upload version ${version}`);
112
+ }
113
+ const basePath = options.path;
114
+ const files = await _glob.glob.call(void 0, _chunkAWKQRM2Hjs.joinPaths.call(void 0, basePath, "**/*"), {
115
+ ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
116
+ });
117
+ const internalDependencies = await _chunkCLCKX6UNjs.getInternalDependencies.call(void 0,
118
+ context.projectName,
119
+ projectGraph
120
+ );
121
+ const dependencies = internalDependencies.filter(
122
+ (projectNode) => !projectNode.data.tags || projectNode.data.tags.every((tag) => tag.toLowerCase() !== "component")
123
+ ).reduce((ret, dep) => {
124
+ if (!ret[dep.name]) {
125
+ ret[dep.name] = "latest";
126
+ }
127
+ return ret;
128
+ }, _nullishCoalesce(_optionalChain([projectDetails, 'optionalAccess', _15 => _15.content, 'access', _16 => _16.dependencies]), () => ( {})));
129
+ const release = _nullishCoalesce(options.tag, () => ( _child_process.execSync.call(void 0, "npm config get tag").toString().trim()));
130
+ if (options.clean === true) {
131
+ _chunkAWKQRM2Hjs.writeDebug.call(void 0, `Clearing out existing items in ${bucketPath}`);
132
+ if (!isDryRun) {
133
+ const response = await client.send(
134
+ new (0, _clients3.ListObjectsCommand)({
135
+ Bucket: bucketId,
136
+ Prefix: !bucketPath || bucketPath === "/" ? void 0 : bucketPath
137
+ })
138
+ );
139
+ if (_optionalChain([response, 'optionalAccess', _17 => _17.Contents]) && response.Contents.length > 0) {
140
+ _chunkAWKQRM2Hjs.writeTrace.call(void 0,
141
+ `Deleting the following existing items from the R2 bucket path ${bucketPath}: ${response.Contents.map((item) => item.Key).join(", ")}`
142
+ );
143
+ await client.send(
144
+ new (0, _clients3.DeleteObjectsCommand)({
145
+ Bucket: bucketId,
146
+ Delete: {
147
+ Objects: response.Contents.map((item) => ({
148
+ Key: item.Key
149
+ })),
150
+ Quiet: false
151
+ }
152
+ })
153
+ );
154
+ } else {
155
+ _chunkAWKQRM2Hjs.writeDebug.call(void 0,
156
+ `No existing items to delete in the R2 bucket path ${bucketPath}`
157
+ );
158
+ }
159
+ } else {
160
+ _chunkAWKQRM2Hjs.writeWarning.call(void 0, "[Dry run]: Skipping R2 bucket clean.");
161
+ }
162
+ }
163
+ if (options.writeMetaJson === true) {
164
+ const meta = {
165
+ name: context.projectName,
166
+ version,
167
+ release,
168
+ description: _optionalChain([projectDetails, 'optionalAccess', _18 => _18.content, 'optionalAccess', _19 => _19.description]),
169
+ tags: _optionalChain([projectDetails, 'optionalAccess', _20 => _20.content, 'optionalAccess', _21 => _21.keywords]),
170
+ dependencies,
171
+ devDependencies: null,
172
+ internalDependencies: internalDependencies.filter(
173
+ (projectNode) => projectNode.data.tags && projectNode.data.tags.some(
174
+ (tag) => tag.toLowerCase() === "component"
175
+ )
176
+ ).map((dep) => dep.name)
177
+ };
178
+ if (_optionalChain([projectDetails, 'optionalAccess', _22 => _22.type]) === "package.json") {
179
+ meta.devDependencies = _optionalChain([projectDetails, 'optionalAccess', _23 => _23.content, 'optionalAccess', _24 => _24.devDependencies]);
180
+ }
181
+ await _chunkCLCKX6UNjs.uploadFile.call(void 0,
182
+ client,
183
+ bucketId,
184
+ bucketPath,
185
+ "meta.json",
186
+ version,
187
+ JSON.stringify(meta),
188
+ "application/json",
189
+ isDryRun
190
+ );
191
+ }
192
+ await Promise.all(
193
+ files.map(async (file) => {
194
+ if (_optionalChain([_fs.statSync.call(void 0, file, {
195
+ throwIfNoEntry: false
196
+ }), 'optionalAccess', _25 => _25.isFile, 'call', _26 => _26()])) {
197
+ const name = _chunkAWKQRM2Hjs.correctPaths.call(void 0, file).replace(_chunkAWKQRM2Hjs.correctPaths.call(void 0, basePath), "");
198
+ const type = _mimetypes2.default.lookup(name) || "application/octet-stream";
199
+ await _chunkCLCKX6UNjs.uploadFile.call(void 0,
200
+ client,
201
+ bucketId,
202
+ bucketPath,
203
+ name,
204
+ version,
205
+ await _promises.readFile.call(void 0, file, _chunkCLCKX6UNjs.getEncoding.call(void 0, type)),
206
+ type,
207
+ isDryRun
208
+ );
209
+ }
210
+ })
211
+ );
212
+ _chunkAWKQRM2Hjs.writeSuccess.call(void 0,
213
+ `Successfully uploaded the ${projectName} project to the Cloudflare R2 bucket.`,
214
+ config
215
+ );
216
+ return {
217
+ success: true
218
+ };
219
+ } catch (error) {
220
+ console.error("Failed to publish to Cloudflare R2 bucket");
221
+ console.error(error);
222
+ console.log("");
223
+ return {
224
+ success: false
225
+ };
226
+ }
227
+ }
228
+
229
+
230
+
231
+ exports.runExecutor = runExecutor;
@@ -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 _chunkNVXN47M3js = require('./chunk-NVXN47M3.js');
3
+ var _chunkTMHLSIZ5js = require('./chunk-TMHLSIZ5.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkPGTHXO6Mjs = require('./chunk-PGTHXO6M.js');
7
+ var _chunkYRUROEEPjs = require('./chunk-YRUROEEP.js');
8
8
 
9
9
 
10
10
 
@@ -49,8 +49,8 @@ async function applicationGenerator(tree, schema) {
49
49
  const stopwatch = _chunkAWKQRM2Hjs.getStopwatch.call(void 0, "Storm Worker generator");
50
50
  let config;
51
51
  try {
52
- const workspaceRoot = _chunkPGTHXO6Mjs.findWorkspaceRoot.call(void 0, );
53
- config = await _chunkPGTHXO6Mjs.getConfig.call(void 0, workspaceRoot);
52
+ const workspaceRoot = _chunkYRUROEEPjs.findWorkspaceRoot.call(void 0, );
53
+ config = await _chunkYRUROEEPjs.getConfig.call(void 0, workspaceRoot);
54
54
  _chunkAWKQRM2Hjs.writeInfo.call(void 0,
55
55
  `${_chunkAWKQRM2Hjs.brandIcon.call(void 0, config)} Running the Storm Worker generator...
56
56
 
@@ -70,7 +70,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
70
70
  const options = await normalizeOptions(tree, schema, config);
71
71
  const tasks = [];
72
72
  tasks.push(
73
- await _chunkNVXN47M3js.generator_default.call(void 0, tree, {
73
+ await _chunkTMHLSIZ5js.generator_default.call(void 0, tree, {
74
74
  ...options,
75
75
  skipFormat: true
76
76
  })
@@ -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.71.240",
10
+ version: "0.71.241",
11
11
  private: false,
12
12
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
13
13
  keywords: [
@@ -7,7 +7,7 @@ import {
7
7
  getWorkspaceConfig,
8
8
  schemaRegistry,
9
9
  workspaceConfigSchema
10
- } from "./chunk-5MAMLVMV.mjs";
10
+ } from "./chunk-BJQFVPGK.mjs";
11
11
  import {
12
12
  ProjectTagConstants,
13
13
  addProjectTag
@@ -5,7 +5,7 @@ import {
5
5
  // package.json
6
6
  var require_package = __commonJS({
7
7
  "package.json"(exports, module) {
8
- module.exports = { name: "@storm-software/cloudflare-tools", version: "0.71.241", private: false, description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.", keywords: ["monorepo", "open-system", "storm", "storm-ops", "storm-stack", "stormstack", "sullivanpj"], homepage: "https://stormsoftware.com", bugs: "https://github.com/storm-software/storm-ops/issues", repository: { type: "github", url: "https://github.com/storm-software/storm-ops.git", directory: "packages/cloudflare-tools" }, license: "Apache-2.0", author: { name: "Storm Software", email: "contact@stormsoftware.com", url: "https://stormsoftware.com" }, exports: { "./package.json": "./package.json", "./docs/*": "./docs/*", "./migrations.json": "./migrations.json", "./executors.json": "./executors.json", "./executors/*/schema.json": "./dist/src/executors/*/schema.json", "./generators.json": "./generators.json", "./generators/*/schema.json": "./dist/src/generators/*/schema.json", ".": { import: { types: "./dist/index.d.mts", default: "./dist/index.mjs" }, require: { types: "./dist/index.d.ts", default: "./dist/index.js" }, default: { types: "./dist/index.d.ts", default: "./dist/index.js" } }, "./index": { import: { types: "./dist/index.d.mts", default: "./dist/index.mjs" }, require: { types: "./dist/index.d.ts", default: "./dist/index.js" }, default: { types: "./dist/index.d.ts", default: "./dist/index.js" } }, "./executors": { import: { types: "./dist/executors.d.mts", default: "./dist/executors.mjs" }, require: { types: "./dist/executors.d.ts", default: "./dist/executors.js" }, default: { types: "./dist/executors.d.ts", default: "./dist/executors.js" } }, "./executors/*": { import: { types: "./dist/src/executors/*.d.mts", default: "./dist/src/executors/*.mjs" }, require: { types: "./dist/src/executors/*.d.ts", default: "./dist/src/executors/*.js" }, default: { types: "./dist/src/executors/*.d.ts", default: "./dist/src/executors/*.js" } }, "./generators": { import: { types: "./dist/generators.d.mts", default: "./dist/generators.mjs" }, require: { types: "./dist/generators.d.ts", default: "./dist/generators.js" }, default: { types: "./dist/generators.d.ts", default: "./dist/generators.js" } }, "./generators/*": { import: { types: "./dist/src/generators/*.d.mts", default: "./dist/src/generators/*.mjs" }, require: { types: "./dist/src/generators/*.d.ts", default: "./dist/src/generators/*.js" }, default: { types: "./dist/src/generators/*.d.ts", default: "./dist/src/generators/*.js" } }, "./utils": { import: { types: "./dist/src/utils/index.d.mts", default: "./dist/src/utils/index.mjs" }, require: { types: "./dist/src/utils/index.d.ts", default: "./dist/src/utils/index.js" }, default: { types: "./dist/src/utils/index.d.ts", default: "./dist/src/utils/index.js" } }, "./utils/*": { import: { types: "./dist/src/utils/*.d.mts", default: "./dist/src/utils/*.mjs" }, require: { types: "./dist/src/utils/*.d.ts", default: "./dist/src/utils/*.js" }, default: { types: "./dist/src/utils/*.d.ts", default: "./dist/src/utils/*.js" } }, "./executors/*/executor.js": "./dist/src/executors/*/executor.js", "./generators/*/generator.js": "./dist/src/generators/*/generator.js", "./plugin": "./dist/src/plugins/index.js" }, main: "dist/index.js", module: "dist/index.mjs", typings: "dist/index.d.ts", dependencies: { "@aws-sdk/client-s3": "^3.1085.0", "@aws-sdk/lib-storage": "^3.1085.0", "@smithy/node-http-handler": "^4.9.5", "@storm-software/config": "workspace:*", "@storm-software/config-tools": "workspace:*", "@storm-software/workspace-tools": "workspace:*", defu: "catalog:", glob: "catalog:", "mime-types": "^3.0.2", "pretty-bytes": "^7.1.0" }, devDependencies: { "@nx/devkit": "catalog:", "@nx/node": "catalog:", "@nx/web": "catalog:", "@nx/webpack": "catalog:", "@smithy/protocol-http": "^5.5.8", nx: "catalog:", tsup: "catalog:", untyped: "catalog:", wrangler: "^4.110.0" }, peerDependencies: { nx: ">=22.7.1", wrangler: ">=3.58.0" }, peerDependenciesMeta: { nx: { optional: false }, wrangler: { optional: false } }, publishConfig: { access: "public" }, executors: "./executors.json", generators: "./generators.json" };
8
+ module.exports = { name: "@storm-software/cloudflare-tools", version: "0.71.242", private: false, description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.", keywords: ["monorepo", "open-system", "storm", "storm-ops", "storm-stack", "stormstack", "sullivanpj"], homepage: "https://stormsoftware.com", bugs: "https://github.com/storm-software/storm-ops/issues", repository: { type: "github", url: "https://github.com/storm-software/storm-ops.git", directory: "packages/cloudflare-tools" }, license: "Apache-2.0", author: { name: "Storm Software", email: "contact@stormsoftware.com", url: "https://stormsoftware.com" }, exports: { "./package.json": "./package.json", "./docs/*": "./docs/*", "./migrations.json": "./migrations.json", "./executors.json": "./executors.json", "./executors/*/schema.json": "./dist/src/executors/*/schema.json", "./generators.json": "./generators.json", "./generators/*/schema.json": "./dist/src/generators/*/schema.json", ".": { import: { types: "./dist/index.d.mts", default: "./dist/index.mjs" }, require: { types: "./dist/index.d.ts", default: "./dist/index.js" }, default: { types: "./dist/index.d.ts", default: "./dist/index.js" } }, "./index": { import: { types: "./dist/index.d.mts", default: "./dist/index.mjs" }, require: { types: "./dist/index.d.ts", default: "./dist/index.js" }, default: { types: "./dist/index.d.ts", default: "./dist/index.js" } }, "./executors": { import: { types: "./dist/executors.d.mts", default: "./dist/executors.mjs" }, require: { types: "./dist/executors.d.ts", default: "./dist/executors.js" }, default: { types: "./dist/executors.d.ts", default: "./dist/executors.js" } }, "./executors/*": { import: { types: "./dist/src/executors/*.d.mts", default: "./dist/src/executors/*.mjs" }, require: { types: "./dist/src/executors/*.d.ts", default: "./dist/src/executors/*.js" }, default: { types: "./dist/src/executors/*.d.ts", default: "./dist/src/executors/*.js" } }, "./generators": { import: { types: "./dist/generators.d.mts", default: "./dist/generators.mjs" }, require: { types: "./dist/generators.d.ts", default: "./dist/generators.js" }, default: { types: "./dist/generators.d.ts", default: "./dist/generators.js" } }, "./generators/*": { import: { types: "./dist/src/generators/*.d.mts", default: "./dist/src/generators/*.mjs" }, require: { types: "./dist/src/generators/*.d.ts", default: "./dist/src/generators/*.js" }, default: { types: "./dist/src/generators/*.d.ts", default: "./dist/src/generators/*.js" } }, "./utils": { import: { types: "./dist/src/utils/index.d.mts", default: "./dist/src/utils/index.mjs" }, require: { types: "./dist/src/utils/index.d.ts", default: "./dist/src/utils/index.js" }, default: { types: "./dist/src/utils/index.d.ts", default: "./dist/src/utils/index.js" } }, "./utils/*": { import: { types: "./dist/src/utils/*.d.mts", default: "./dist/src/utils/*.mjs" }, require: { types: "./dist/src/utils/*.d.ts", default: "./dist/src/utils/*.js" }, default: { types: "./dist/src/utils/*.d.ts", default: "./dist/src/utils/*.js" } }, "./executors/*/executor.js": "./dist/src/executors/*/executor.js", "./generators/*/generator.js": "./dist/src/generators/*/generator.js", "./plugin": "./dist/src/plugins/index.js" }, main: "dist/index.js", module: "dist/index.mjs", typings: "dist/index.d.ts", dependencies: { "@aws-sdk/client-s3": "^3.1085.0", "@aws-sdk/lib-storage": "^3.1085.0", "@smithy/node-http-handler": "^4.9.5", "@storm-software/config": "workspace:*", "@storm-software/config-tools": "workspace:*", "@storm-software/workspace-tools": "workspace:*", defu: "catalog:", glob: "catalog:", "mime-types": "^3.0.2", "pretty-bytes": "^7.1.0" }, devDependencies: { "@nx/devkit": "catalog:", "@nx/node": "catalog:", "@nx/web": "catalog:", "@nx/webpack": "catalog:", "@smithy/protocol-http": "^5.5.8", nx: "catalog:", tsup: "catalog:", untyped: "catalog:", wrangler: "^4.110.0" }, peerDependencies: { nx: ">=22.7.1", wrangler: ">=3.58.0" }, peerDependenciesMeta: { nx: { optional: false }, wrangler: { optional: false } }, publishConfig: { access: "public" }, executors: "./executors.json", generators: "./generators.json" };
9
9
  }
10
10
  });
11
11
 
@@ -5,7 +5,7 @@ var _chunkMCKGQKYUjs = require('./chunk-MCKGQKYU.js');
5
5
  // package.json
6
6
  var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
7
7
  "package.json"(exports, module) {
8
- module.exports = { name: "@storm-software/cloudflare-tools", version: "0.71.241", private: false, description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.", keywords: ["monorepo", "open-system", "storm", "storm-ops", "storm-stack", "stormstack", "sullivanpj"], homepage: "https://stormsoftware.com", bugs: "https://github.com/storm-software/storm-ops/issues", repository: { type: "github", url: "https://github.com/storm-software/storm-ops.git", directory: "packages/cloudflare-tools" }, license: "Apache-2.0", author: { name: "Storm Software", email: "contact@stormsoftware.com", url: "https://stormsoftware.com" }, exports: { "./package.json": "./package.json", "./docs/*": "./docs/*", "./migrations.json": "./migrations.json", "./executors.json": "./executors.json", "./executors/*/schema.json": "./dist/src/executors/*/schema.json", "./generators.json": "./generators.json", "./generators/*/schema.json": "./dist/src/generators/*/schema.json", ".": { import: { types: "./dist/index.d.mts", default: "./dist/index.mjs" }, require: { types: "./dist/index.d.ts", default: "./dist/index.js" }, default: { types: "./dist/index.d.ts", default: "./dist/index.js" } }, "./index": { import: { types: "./dist/index.d.mts", default: "./dist/index.mjs" }, require: { types: "./dist/index.d.ts", default: "./dist/index.js" }, default: { types: "./dist/index.d.ts", default: "./dist/index.js" } }, "./executors": { import: { types: "./dist/executors.d.mts", default: "./dist/executors.mjs" }, require: { types: "./dist/executors.d.ts", default: "./dist/executors.js" }, default: { types: "./dist/executors.d.ts", default: "./dist/executors.js" } }, "./executors/*": { import: { types: "./dist/src/executors/*.d.mts", default: "./dist/src/executors/*.mjs" }, require: { types: "./dist/src/executors/*.d.ts", default: "./dist/src/executors/*.js" }, default: { types: "./dist/src/executors/*.d.ts", default: "./dist/src/executors/*.js" } }, "./generators": { import: { types: "./dist/generators.d.mts", default: "./dist/generators.mjs" }, require: { types: "./dist/generators.d.ts", default: "./dist/generators.js" }, default: { types: "./dist/generators.d.ts", default: "./dist/generators.js" } }, "./generators/*": { import: { types: "./dist/src/generators/*.d.mts", default: "./dist/src/generators/*.mjs" }, require: { types: "./dist/src/generators/*.d.ts", default: "./dist/src/generators/*.js" }, default: { types: "./dist/src/generators/*.d.ts", default: "./dist/src/generators/*.js" } }, "./utils": { import: { types: "./dist/src/utils/index.d.mts", default: "./dist/src/utils/index.mjs" }, require: { types: "./dist/src/utils/index.d.ts", default: "./dist/src/utils/index.js" }, default: { types: "./dist/src/utils/index.d.ts", default: "./dist/src/utils/index.js" } }, "./utils/*": { import: { types: "./dist/src/utils/*.d.mts", default: "./dist/src/utils/*.mjs" }, require: { types: "./dist/src/utils/*.d.ts", default: "./dist/src/utils/*.js" }, default: { types: "./dist/src/utils/*.d.ts", default: "./dist/src/utils/*.js" } }, "./executors/*/executor.js": "./dist/src/executors/*/executor.js", "./generators/*/generator.js": "./dist/src/generators/*/generator.js", "./plugin": "./dist/src/plugins/index.js" }, main: "dist/index.js", module: "dist/index.mjs", typings: "dist/index.d.ts", dependencies: { "@aws-sdk/client-s3": "^3.1085.0", "@aws-sdk/lib-storage": "^3.1085.0", "@smithy/node-http-handler": "^4.9.5", "@storm-software/config": "workspace:*", "@storm-software/config-tools": "workspace:*", "@storm-software/workspace-tools": "workspace:*", defu: "catalog:", glob: "catalog:", "mime-types": "^3.0.2", "pretty-bytes": "^7.1.0" }, devDependencies: { "@nx/devkit": "catalog:", "@nx/node": "catalog:", "@nx/web": "catalog:", "@nx/webpack": "catalog:", "@smithy/protocol-http": "^5.5.8", nx: "catalog:", tsup: "catalog:", untyped: "catalog:", wrangler: "^4.110.0" }, peerDependencies: { nx: ">=22.7.1", wrangler: ">=3.58.0" }, peerDependenciesMeta: { nx: { optional: false }, wrangler: { optional: false } }, publishConfig: { access: "public" }, executors: "./executors.json", generators: "./generators.json" };
8
+ module.exports = { name: "@storm-software/cloudflare-tools", version: "0.71.242", private: false, description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.", keywords: ["monorepo", "open-system", "storm", "storm-ops", "storm-stack", "stormstack", "sullivanpj"], homepage: "https://stormsoftware.com", bugs: "https://github.com/storm-software/storm-ops/issues", repository: { type: "github", url: "https://github.com/storm-software/storm-ops.git", directory: "packages/cloudflare-tools" }, license: "Apache-2.0", author: { name: "Storm Software", email: "contact@stormsoftware.com", url: "https://stormsoftware.com" }, exports: { "./package.json": "./package.json", "./docs/*": "./docs/*", "./migrations.json": "./migrations.json", "./executors.json": "./executors.json", "./executors/*/schema.json": "./dist/src/executors/*/schema.json", "./generators.json": "./generators.json", "./generators/*/schema.json": "./dist/src/generators/*/schema.json", ".": { import: { types: "./dist/index.d.mts", default: "./dist/index.mjs" }, require: { types: "./dist/index.d.ts", default: "./dist/index.js" }, default: { types: "./dist/index.d.ts", default: "./dist/index.js" } }, "./index": { import: { types: "./dist/index.d.mts", default: "./dist/index.mjs" }, require: { types: "./dist/index.d.ts", default: "./dist/index.js" }, default: { types: "./dist/index.d.ts", default: "./dist/index.js" } }, "./executors": { import: { types: "./dist/executors.d.mts", default: "./dist/executors.mjs" }, require: { types: "./dist/executors.d.ts", default: "./dist/executors.js" }, default: { types: "./dist/executors.d.ts", default: "./dist/executors.js" } }, "./executors/*": { import: { types: "./dist/src/executors/*.d.mts", default: "./dist/src/executors/*.mjs" }, require: { types: "./dist/src/executors/*.d.ts", default: "./dist/src/executors/*.js" }, default: { types: "./dist/src/executors/*.d.ts", default: "./dist/src/executors/*.js" } }, "./generators": { import: { types: "./dist/generators.d.mts", default: "./dist/generators.mjs" }, require: { types: "./dist/generators.d.ts", default: "./dist/generators.js" }, default: { types: "./dist/generators.d.ts", default: "./dist/generators.js" } }, "./generators/*": { import: { types: "./dist/src/generators/*.d.mts", default: "./dist/src/generators/*.mjs" }, require: { types: "./dist/src/generators/*.d.ts", default: "./dist/src/generators/*.js" }, default: { types: "./dist/src/generators/*.d.ts", default: "./dist/src/generators/*.js" } }, "./utils": { import: { types: "./dist/src/utils/index.d.mts", default: "./dist/src/utils/index.mjs" }, require: { types: "./dist/src/utils/index.d.ts", default: "./dist/src/utils/index.js" }, default: { types: "./dist/src/utils/index.d.ts", default: "./dist/src/utils/index.js" } }, "./utils/*": { import: { types: "./dist/src/utils/*.d.mts", default: "./dist/src/utils/*.mjs" }, require: { types: "./dist/src/utils/*.d.ts", default: "./dist/src/utils/*.js" }, default: { types: "./dist/src/utils/*.d.ts", default: "./dist/src/utils/*.js" } }, "./executors/*/executor.js": "./dist/src/executors/*/executor.js", "./generators/*/generator.js": "./dist/src/generators/*/generator.js", "./plugin": "./dist/src/plugins/index.js" }, main: "dist/index.js", module: "dist/index.mjs", typings: "dist/index.d.ts", dependencies: { "@aws-sdk/client-s3": "^3.1085.0", "@aws-sdk/lib-storage": "^3.1085.0", "@smithy/node-http-handler": "^4.9.5", "@storm-software/config": "workspace:*", "@storm-software/config-tools": "workspace:*", "@storm-software/workspace-tools": "workspace:*", defu: "catalog:", glob: "catalog:", "mime-types": "^3.0.2", "pretty-bytes": "^7.1.0" }, devDependencies: { "@nx/devkit": "catalog:", "@nx/node": "catalog:", "@nx/web": "catalog:", "@nx/webpack": "catalog:", "@smithy/protocol-http": "^5.5.8", nx: "catalog:", tsup: "catalog:", untyped: "catalog:", wrangler: "^4.110.0" }, peerDependencies: { nx: ">=22.7.1", wrangler: ">=3.58.0" }, peerDependenciesMeta: { nx: { optional: false }, wrangler: { optional: false } }, publishConfig: { access: "public" }, executors: "./executors.json", generators: "./generators.json" };
9
9
  }
10
10
  });
11
11
 
@@ -0,0 +1,231 @@
1
+ import {
2
+ createHttpHandler
3
+ } from "./chunk-SWYYMID7.mjs";
4
+ import {
5
+ getEncoding,
6
+ getInternalDependencies,
7
+ uploadFile
8
+ } from "./chunk-BY7MA3SM.mjs";
9
+ import {
10
+ createCliOptions,
11
+ getPackageInfo
12
+ } from "./chunk-ZXLMDNFQ.mjs";
13
+ import {
14
+ findWorkspaceRoot,
15
+ getConfig
16
+ } from "./chunk-BJQFVPGK.mjs";
17
+ import {
18
+ correctPaths,
19
+ joinPaths,
20
+ writeDebug,
21
+ writeSuccess,
22
+ writeTrace,
23
+ writeWarning
24
+ } from "./chunk-K4H5ZMYA.mjs";
25
+
26
+ // src/executors/r2-upload-publish/executor.ts
27
+ import {
28
+ DeleteObjectsCommand,
29
+ ListObjectsCommand,
30
+ S3Client
31
+ } from "@aws-sdk/client-s3";
32
+ import {
33
+ createProjectGraphAsync,
34
+ readCachedProjectGraph
35
+ } from "@nx/devkit";
36
+ import { glob } from "glob";
37
+ import mime from "mime-types";
38
+ import { execSync } from "node:child_process";
39
+ import { statSync } from "node:fs";
40
+ import { readFile } from "node:fs/promises";
41
+ async function runExecutor(options, context) {
42
+ const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
43
+ if (!context.projectName) {
44
+ throw new Error("The executor requires a projectName.");
45
+ }
46
+ if (!options.path) {
47
+ throw new Error("The executor requires the `path` option to upload.");
48
+ }
49
+ console.info(
50
+ `\u{1F680} Running Storm Cloudflare Publish executor on the ${context.projectName} worker`
51
+ );
52
+ if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) {
53
+ throw new Error("The executor requires projectsConfigurations.");
54
+ }
55
+ try {
56
+ const workspaceRoot = findWorkspaceRoot();
57
+ const config = await getConfig(workspaceRoot);
58
+ const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
59
+ const projectDetails = getPackageInfo(
60
+ context.projectsConfigurations.projects[context.projectName]
61
+ );
62
+ const bucketId = options.bucketId;
63
+ const bucketPath = options.bucketPath || "/";
64
+ if (!bucketId) {
65
+ throw new Error("The executor requires a bucketId.");
66
+ }
67
+ const args = createCliOptions({ ...options });
68
+ if (isDryRun) {
69
+ args.push("--dry-run");
70
+ }
71
+ const cloudflareAccountId = process.env.CLOUDFLARE_ACCOUNT_ID || process.env.STORM_BOT_CLOUDFLARE_ACCOUNT;
72
+ if (!options?.registry && !cloudflareAccountId) {
73
+ throw new Error(
74
+ "The registry option and `CLOUDFLARE_ACCOUNT_ID` (or `STORM_BOT_CLOUDFLARE_ACCOUNT`) environment variable are not set. Please set one of these values to upload to the Cloudflare R2 bucket."
75
+ );
76
+ }
77
+ if (!process.env.STORM_BOT_ACCESS_KEY_ID && !process.env.ACCESS_KEY_ID && !process.env.CLOUDFLARE_ACCESS_KEY_ID && !process.env.AWS_ACCESS_KEY_ID || !process.env.STORM_BOT_SECRET_ACCESS_KEY && !process.env.CLOUDFLARE_SECRET_ACCESS_KEY && !process.env.SECRET_ACCESS_KEY && !process.env.AWS_SECRET_ACCESS_KEY) {
78
+ throw new Error(
79
+ "The `ACCESS_KEY_ID` (or `STORM_BOT_ACCESS_KEY_ID`) and `SECRET_ACCESS_KEY` (or `STORM_BOT_SECRET_ACCESS_KEY`) environment variables are not set. Please set these environment variables to upload to the Cloudflare R2 bucket."
80
+ );
81
+ }
82
+ const registry = options?.registry ? options.registry : `https://${cloudflareAccountId}.r2.cloudflarestorage.com`;
83
+ let projectGraph;
84
+ try {
85
+ projectGraph = readCachedProjectGraph();
86
+ } catch {
87
+ await createProjectGraphAsync();
88
+ projectGraph = readCachedProjectGraph();
89
+ }
90
+ if (!projectGraph) {
91
+ throw new Error(
92
+ "The executor failed because the project graph is not available. Please run the build command again."
93
+ );
94
+ }
95
+ writeDebug(
96
+ `Publishing ${context.projectName} to the ${bucketId} R2 Bucket (at ${registry})`
97
+ );
98
+ const client = new S3Client({
99
+ region: "auto",
100
+ endpoint: registry,
101
+ credentials: {
102
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
103
+ accessKeyId: process.env.STORM_BOT_ACCESS_KEY_ID || process.env.CLOUDFLARE_ACCESS_KEY_ID || process.env.AWS_ACCESS_KEY_ID || process.env.ACCESS_KEY_ID,
104
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
105
+ secretAccessKey: process.env.STORM_BOT_SECRET_ACCESS_KEY || process.env.CLOUDFLARE_SECRET_ACCESS_KEY || process.env.AWS_SECRET_ACCESS_KEY || process.env.SECRET_ACCESS_KEY
106
+ },
107
+ requestHandler: createHttpHandler()
108
+ });
109
+ const version = projectDetails?.content?.version;
110
+ if (version) {
111
+ writeDebug(`Starting upload version ${version}`);
112
+ }
113
+ const basePath = options.path;
114
+ const files = await glob(joinPaths(basePath, "**/*"), {
115
+ ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
116
+ });
117
+ const internalDependencies = await getInternalDependencies(
118
+ context.projectName,
119
+ projectGraph
120
+ );
121
+ const dependencies = internalDependencies.filter(
122
+ (projectNode) => !projectNode.data.tags || projectNode.data.tags.every((tag) => tag.toLowerCase() !== "component")
123
+ ).reduce((ret, dep) => {
124
+ if (!ret[dep.name]) {
125
+ ret[dep.name] = "latest";
126
+ }
127
+ return ret;
128
+ }, projectDetails?.content.dependencies ?? {});
129
+ const release = options.tag ?? execSync("npm config get tag").toString().trim();
130
+ if (options.clean === true) {
131
+ writeDebug(`Clearing out existing items in ${bucketPath}`);
132
+ if (!isDryRun) {
133
+ const response = await client.send(
134
+ new ListObjectsCommand({
135
+ Bucket: bucketId,
136
+ Prefix: !bucketPath || bucketPath === "/" ? void 0 : bucketPath
137
+ })
138
+ );
139
+ if (response?.Contents && response.Contents.length > 0) {
140
+ writeTrace(
141
+ `Deleting the following existing items from the R2 bucket path ${bucketPath}: ${response.Contents.map((item) => item.Key).join(", ")}`
142
+ );
143
+ await client.send(
144
+ new DeleteObjectsCommand({
145
+ Bucket: bucketId,
146
+ Delete: {
147
+ Objects: response.Contents.map((item) => ({
148
+ Key: item.Key
149
+ })),
150
+ Quiet: false
151
+ }
152
+ })
153
+ );
154
+ } else {
155
+ writeDebug(
156
+ `No existing items to delete in the R2 bucket path ${bucketPath}`
157
+ );
158
+ }
159
+ } else {
160
+ writeWarning("[Dry run]: Skipping R2 bucket clean.");
161
+ }
162
+ }
163
+ if (options.writeMetaJson === true) {
164
+ const meta = {
165
+ name: context.projectName,
166
+ version,
167
+ release,
168
+ description: projectDetails?.content?.description,
169
+ tags: projectDetails?.content?.keywords,
170
+ dependencies,
171
+ devDependencies: null,
172
+ internalDependencies: internalDependencies.filter(
173
+ (projectNode) => projectNode.data.tags && projectNode.data.tags.some(
174
+ (tag) => tag.toLowerCase() === "component"
175
+ )
176
+ ).map((dep) => dep.name)
177
+ };
178
+ if (projectDetails?.type === "package.json") {
179
+ meta.devDependencies = projectDetails?.content?.devDependencies;
180
+ }
181
+ await uploadFile(
182
+ client,
183
+ bucketId,
184
+ bucketPath,
185
+ "meta.json",
186
+ version,
187
+ JSON.stringify(meta),
188
+ "application/json",
189
+ isDryRun
190
+ );
191
+ }
192
+ await Promise.all(
193
+ files.map(async (file) => {
194
+ if (statSync(file, {
195
+ throwIfNoEntry: false
196
+ })?.isFile()) {
197
+ const name = correctPaths(file).replace(correctPaths(basePath), "");
198
+ const type = mime.lookup(name) || "application/octet-stream";
199
+ await uploadFile(
200
+ client,
201
+ bucketId,
202
+ bucketPath,
203
+ name,
204
+ version,
205
+ await readFile(file, getEncoding(type)),
206
+ type,
207
+ isDryRun
208
+ );
209
+ }
210
+ })
211
+ );
212
+ writeSuccess(
213
+ `Successfully uploaded the ${projectName} project to the Cloudflare R2 bucket.`,
214
+ config
215
+ );
216
+ return {
217
+ success: true
218
+ };
219
+ } catch (error) {
220
+ console.error("Failed to publish to Cloudflare R2 bucket");
221
+ console.error(error);
222
+ console.log("");
223
+ return {
224
+ success: false
225
+ };
226
+ }
227
+ }
228
+
229
+ export {
230
+ runExecutor
231
+ };
@@ -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.71.240",
10
+ version: "0.71.241",
11
11
  private: false,
12
12
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
13
13
  keywords: [
@@ -64,7 +64,9 @@ var rootFiles = [
64
64
  "npm-lock.yml",
65
65
  "yarn-lock.yml",
66
66
  "pnpm-lock.yml",
67
- "bun.lockb"
67
+ "bun.lockb",
68
+ "bun.lock",
69
+ "bunfig.toml"
68
70
  ];
69
71
  var rootDirectories = [
70
72
  ".storm-workspace",
package/dist/executors.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";require('./chunk-XO66D74Z.js');
2
- require('./chunk-62X6T4SY.js');
2
+ require('./chunk-FLA2SYPV.js');
3
3
  require('./chunk-KUGEZPUO.js');
4
4
  require('./chunk-CLCKX6UN.js');
5
5
  require('./chunk-HNDXHX7M.js');
6
- require('./chunk-TXSHBEGN.js');
6
+ require('./chunk-7NFFNXFN.js');
7
7
  require('./chunk-NCVDTA5M.js');
8
- require('./chunk-PGTHXO6M.js');
8
+ require('./chunk-YRUROEEP.js');
9
9
  require('./chunk-FBLD25X4.js');
10
10
  require('./chunk-AWKQRM2H.js');
11
11
  require('./chunk-MCKGQKYU.js');
@@ -1,11 +1,11 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
- import "./chunk-3E2GFJMN.mjs";
2
+ import "./chunk-WTWLKDV7.mjs";
3
3
  import "./chunk-SWYYMID7.mjs";
4
4
  import "./chunk-BY7MA3SM.mjs";
5
5
  import "./chunk-BGMLQBUW.mjs";
6
- import "./chunk-F7UN7A3Y.mjs";
6
+ import "./chunk-KNN4W7QC.mjs";
7
7
  import "./chunk-ZXLMDNFQ.mjs";
8
- import "./chunk-5MAMLVMV.mjs";
8
+ import "./chunk-BJQFVPGK.mjs";
9
9
  import "./chunk-CSTZEHUP.mjs";
10
10
  import "./chunk-K4H5ZMYA.mjs";
11
11
  import "./chunk-EI77CIK7.mjs";
@@ -2,12 +2,12 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkF267HKGKjs = require('./chunk-F267HKGK.js');
5
+ var _chunkGLKR5BOAjs = require('./chunk-GLKR5BOA.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkNDWQLXK2js = require('./chunk-NDWQLXK2.js');
10
- require('./chunk-PGTHXO6M.js');
9
+ var _chunkTMHLSIZ5js = require('./chunk-TMHLSIZ5.js');
10
+ require('./chunk-YRUROEEP.js');
11
11
  require('./chunk-AWKQRM2H.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 = _chunkF267HKGKjs.applicationGenerator; exports.applicationSchematic = _chunkF267HKGKjs.applicationSchematic; exports.initGenerator = _chunkNDWQLXK2js.initGenerator; exports.initSchematic = _chunkNDWQLXK2js.initSchematic;
18
+ exports.applicationGenerator = _chunkGLKR5BOAjs.applicationGenerator; exports.applicationSchematic = _chunkGLKR5BOAjs.applicationSchematic; exports.initGenerator = _chunkTMHLSIZ5js.initGenerator; exports.initSchematic = _chunkTMHLSIZ5js.initSchematic;
@@ -2,12 +2,12 @@ import "./chunk-3J7KBHMJ.mjs";
2
2
  import {
3
3
  applicationGenerator,
4
4
  applicationSchematic
5
- } from "./chunk-MJTK5VFR.mjs";
5
+ } from "./chunk-4HEOMMTX.mjs";
6
6
  import {
7
7
  initGenerator,
8
8
  initSchematic
9
- } from "./chunk-ZBFQ7IPQ.mjs";
10
- import "./chunk-5MAMLVMV.mjs";
9
+ } from "./chunk-MVEHOKMY.mjs";
10
+ import "./chunk-BJQFVPGK.mjs";
11
11
  import "./chunk-K4H5ZMYA.mjs";
12
12
  import "./chunk-EI77CIK7.mjs";
13
13
  export {
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-XO66D74Z.js');
2
- require('./chunk-62X6T4SY.js');
2
+ require('./chunk-FLA2SYPV.js');
3
3
  require('./chunk-DHBG5ASJ.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkF267HKGKjs = require('./chunk-F267HKGK.js');
7
+ var _chunkGLKR5BOAjs = require('./chunk-GLKR5BOA.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkNDWQLXK2js = require('./chunk-NDWQLXK2.js');
11
+ var _chunkTMHLSIZ5js = require('./chunk-TMHLSIZ5.js');
12
12
 
13
13
 
14
14
 
@@ -22,9 +22,9 @@ require('./chunk-CVGPWUNP.js');
22
22
 
23
23
  var _chunkCLCKX6UNjs = require('./chunk-CLCKX6UN.js');
24
24
  require('./chunk-HNDXHX7M.js');
25
- require('./chunk-TXSHBEGN.js');
25
+ require('./chunk-7NFFNXFN.js');
26
26
  require('./chunk-NCVDTA5M.js');
27
- require('./chunk-PGTHXO6M.js');
27
+ require('./chunk-YRUROEEP.js');
28
28
  require('./chunk-FBLD25X4.js');
29
29
  require('./chunk-AWKQRM2H.js');
30
30
  require('./chunk-MCKGQKYU.js');
@@ -39,4 +39,4 @@ require('./chunk-MCKGQKYU.js');
39
39
 
40
40
 
41
41
 
42
- exports.applicationGenerator = _chunkF267HKGKjs.applicationGenerator; exports.applicationSchematic = _chunkF267HKGKjs.applicationSchematic; exports.createNodesV2 = _chunkVJLWHQ5Bjs.createNodesV2; exports.getEncoding = _chunkCLCKX6UNjs.getEncoding; exports.getInternalDependencies = _chunkCLCKX6UNjs.getInternalDependencies; exports.initGenerator = _chunkNDWQLXK2js.initGenerator; exports.initSchematic = _chunkNDWQLXK2js.initSchematic; exports.isTextFile = _chunkCLCKX6UNjs.isTextFile; exports.name = _chunkVJLWHQ5Bjs.name; exports.uploadFile = _chunkCLCKX6UNjs.uploadFile;
42
+ exports.applicationGenerator = _chunkGLKR5BOAjs.applicationGenerator; exports.applicationSchematic = _chunkGLKR5BOAjs.applicationSchematic; exports.createNodesV2 = _chunkVJLWHQ5Bjs.createNodesV2; exports.getEncoding = _chunkCLCKX6UNjs.getEncoding; exports.getInternalDependencies = _chunkCLCKX6UNjs.getInternalDependencies; exports.initGenerator = _chunkTMHLSIZ5js.initGenerator; exports.initSchematic = _chunkTMHLSIZ5js.initSchematic; exports.isTextFile = _chunkCLCKX6UNjs.isTextFile; exports.name = _chunkVJLWHQ5Bjs.name; exports.uploadFile = _chunkCLCKX6UNjs.uploadFile;
package/dist/index.mjs CHANGED
@@ -1,14 +1,14 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
- import "./chunk-3E2GFJMN.mjs";
2
+ import "./chunk-WTWLKDV7.mjs";
3
3
  import "./chunk-3J7KBHMJ.mjs";
4
4
  import {
5
5
  applicationGenerator,
6
6
  applicationSchematic
7
- } from "./chunk-MJTK5VFR.mjs";
7
+ } from "./chunk-4HEOMMTX.mjs";
8
8
  import {
9
9
  initGenerator,
10
10
  initSchematic
11
- } from "./chunk-ZBFQ7IPQ.mjs";
11
+ } from "./chunk-MVEHOKMY.mjs";
12
12
  import {
13
13
  createNodesV2,
14
14
  name
@@ -22,9 +22,9 @@ import {
22
22
  uploadFile
23
23
  } from "./chunk-BY7MA3SM.mjs";
24
24
  import "./chunk-BGMLQBUW.mjs";
25
- import "./chunk-F7UN7A3Y.mjs";
25
+ import "./chunk-KNN4W7QC.mjs";
26
26
  import "./chunk-ZXLMDNFQ.mjs";
27
- import "./chunk-5MAMLVMV.mjs";
27
+ import "./chunk-BJQFVPGK.mjs";
28
28
  import "./chunk-CSTZEHUP.mjs";
29
29
  import "./chunk-K4H5ZMYA.mjs";
30
30
  import "./chunk-EI77CIK7.mjs";
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
  var _chunkHNDXHX7Mjs = require('../../../chunk-HNDXHX7M.js');
4
- require('../../../chunk-TXSHBEGN.js');
4
+ require('../../../chunk-7NFFNXFN.js');
5
5
  require('../../../chunk-NCVDTA5M.js');
6
- require('../../../chunk-PGTHXO6M.js');
6
+ require('../../../chunk-YRUROEEP.js');
7
7
  require('../../../chunk-FBLD25X4.js');
8
8
  require('../../../chunk-AWKQRM2H.js');
9
9
  require('../../../chunk-MCKGQKYU.js');
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  runExecutor
3
3
  } from "../../../chunk-BGMLQBUW.mjs";
4
- import "../../../chunk-F7UN7A3Y.mjs";
4
+ import "../../../chunk-KNN4W7QC.mjs";
5
5
  import "../../../chunk-ZXLMDNFQ.mjs";
6
- import "../../../chunk-5MAMLVMV.mjs";
6
+ import "../../../chunk-BJQFVPGK.mjs";
7
7
  import "../../../chunk-CSTZEHUP.mjs";
8
8
  import "../../../chunk-K4H5ZMYA.mjs";
9
9
  import "../../../chunk-EI77CIK7.mjs";
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk62X6T4SYjs = require('../../../chunk-62X6T4SY.js');
3
+ var _chunkFLA2SYPVjs = require('../../../chunk-FLA2SYPV.js');
4
4
  require('../../../chunk-KUGEZPUO.js');
5
5
  require('../../../chunk-CLCKX6UN.js');
6
6
  require('../../../chunk-NCVDTA5M.js');
7
- require('../../../chunk-PGTHXO6M.js');
7
+ require('../../../chunk-YRUROEEP.js');
8
8
  require('../../../chunk-FBLD25X4.js');
9
9
  require('../../../chunk-AWKQRM2H.js');
10
10
  require('../../../chunk-MCKGQKYU.js');
11
11
 
12
12
 
13
- exports.default = _chunk62X6T4SYjs.runExecutor;
13
+ exports.default = _chunkFLA2SYPVjs.runExecutor;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  runExecutor
3
- } from "../../../chunk-3E2GFJMN.mjs";
3
+ } from "../../../chunk-WTWLKDV7.mjs";
4
4
  import "../../../chunk-SWYYMID7.mjs";
5
5
  import "../../../chunk-BY7MA3SM.mjs";
6
6
  import "../../../chunk-ZXLMDNFQ.mjs";
7
- import "../../../chunk-5MAMLVMV.mjs";
7
+ import "../../../chunk-BJQFVPGK.mjs";
8
8
  import "../../../chunk-CSTZEHUP.mjs";
9
9
  import "../../../chunk-K4H5ZMYA.mjs";
10
10
  import "../../../chunk-EI77CIK7.mjs";
@@ -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 _chunkTXSHBEGNjs = require('../../../chunk-TXSHBEGN.js');
3
+ var _chunk7NFFNXFNjs = require('../../../chunk-7NFFNXFN.js');
4
4
 
5
5
 
6
6
  var _chunkNCVDTA5Mjs = require('../../../chunk-NCVDTA5M.js');
7
- require('../../../chunk-PGTHXO6M.js');
7
+ require('../../../chunk-YRUROEEP.js');
8
8
  require('../../../chunk-FBLD25X4.js');
9
9
  require('../../../chunk-AWKQRM2H.js');
10
10
 
@@ -56,7 +56,7 @@ async function* serveExecutor(options, context) {
56
56
  success: true
57
57
  };
58
58
  }
59
- var executor_default = _chunkTXSHBEGNjs.withRunExecutor.call(void 0,
59
+ var executor_default = _chunk7NFFNXFNjs.withRunExecutor.call(void 0,
60
60
  "Cloudflare Serve executor",
61
61
  serveExecutor,
62
62
  {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "../../../chunk-F7UN7A3Y.mjs";
3
+ } from "../../../chunk-KNN4W7QC.mjs";
4
4
  import {
5
5
  createCliOptions
6
6
  } from "../../../chunk-ZXLMDNFQ.mjs";
7
- import "../../../chunk-5MAMLVMV.mjs";
7
+ import "../../../chunk-BJQFVPGK.mjs";
8
8
  import "../../../chunk-CSTZEHUP.mjs";
9
9
  import "../../../chunk-K4H5ZMYA.mjs";
10
10
  import {
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkNDWQLXK2js = require('../../../chunk-NDWQLXK2.js');
5
+ var _chunkTMHLSIZ5js = require('../../../chunk-TMHLSIZ5.js');
6
6
  require('../../../chunk-MCKGQKYU.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunkNDWQLXK2js.generator_default; exports.initGenerator = _chunkNDWQLXK2js.initGenerator; exports.initSchematic = _chunkNDWQLXK2js.initSchematic;
11
+ exports.default = _chunkTMHLSIZ5js.generator_default; exports.initGenerator = _chunkTMHLSIZ5js.initGenerator; exports.initSchematic = _chunkTMHLSIZ5js.initSchematic;
@@ -2,7 +2,7 @@ import {
2
2
  generator_default,
3
3
  initGenerator,
4
4
  initSchematic
5
- } from "../../../chunk-ZBFQ7IPQ.mjs";
5
+ } from "../../../chunk-MVEHOKMY.mjs";
6
6
  import "../../../chunk-EI77CIK7.mjs";
7
7
  export {
8
8
  generator_default as default,
@@ -2,13 +2,13 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkF267HKGKjs = require('../../../chunk-F267HKGK.js');
6
- require('../../../chunk-NDWQLXK2.js');
7
- require('../../../chunk-PGTHXO6M.js');
5
+ var _chunkGLKR5BOAjs = require('../../../chunk-GLKR5BOA.js');
6
+ require('../../../chunk-TMHLSIZ5.js');
7
+ require('../../../chunk-YRUROEEP.js');
8
8
  require('../../../chunk-AWKQRM2H.js');
9
9
  require('../../../chunk-MCKGQKYU.js');
10
10
 
11
11
 
12
12
 
13
13
 
14
- exports.applicationGenerator = _chunkF267HKGKjs.applicationGenerator; exports.applicationSchematic = _chunkF267HKGKjs.applicationSchematic; exports.default = _chunkF267HKGKjs.generator_default;
14
+ exports.applicationGenerator = _chunkGLKR5BOAjs.applicationGenerator; exports.applicationSchematic = _chunkGLKR5BOAjs.applicationSchematic; exports.default = _chunkGLKR5BOAjs.generator_default;
@@ -2,9 +2,9 @@ import {
2
2
  applicationGenerator,
3
3
  applicationSchematic,
4
4
  generator_default
5
- } from "../../../chunk-MJTK5VFR.mjs";
6
- import "../../../chunk-ZBFQ7IPQ.mjs";
7
- import "../../../chunk-5MAMLVMV.mjs";
5
+ } from "../../../chunk-4HEOMMTX.mjs";
6
+ import "../../../chunk-MVEHOKMY.mjs";
7
+ import "../../../chunk-BJQFVPGK.mjs";
8
8
  import "../../../chunk-K4H5ZMYA.mjs";
9
9
  import "../../../chunk-EI77CIK7.mjs";
10
10
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/cloudflare-tools",
3
- "version": "0.71.241",
3
+ "version": "0.71.242",
4
4
  "private": false,
5
5
  "description": "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
6
6
  "keywords": [
@@ -144,9 +144,9 @@
144
144
  "@aws-sdk/client-s3": "^3.1085.0",
145
145
  "@aws-sdk/lib-storage": "^3.1085.0",
146
146
  "@smithy/node-http-handler": "^4.9.5",
147
- "@storm-software/config": "^1.138.35",
148
- "@storm-software/config-tools": "^1.190.98",
149
- "@storm-software/workspace-tools": "^1.296.78",
147
+ "@storm-software/config": "^1.138.36",
148
+ "@storm-software/config-tools": "^1.190.99",
149
+ "@storm-software/workspace-tools": "^1.296.79",
150
150
  "defu": "^6.1.7",
151
151
  "glob": "^11.1.0",
152
152
  "mime-types": "^3.0.2",
@@ -171,5 +171,5 @@
171
171
  "publishConfig": { "access": "public" },
172
172
  "executors": "./executors.json",
173
173
  "generators": "./generators.json",
174
- "gitHead": "752dcf7147a8e553e9f0375e33cacd3711b2a34b"
174
+ "gitHead": "f367412ee4e991808dbb5353fd9938daa04efd5e"
175
175
  }