@storm-software/cloudflare-tools 0.71.224 → 0.71.225

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 (37) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-VFK7WI6O.js → chunk-4MIUPZ4C.js} +7 -18
  4. package/dist/{chunk-WO7IPWNX.mjs → chunk-6LBDQPVT.mjs} +4 -4
  5. package/dist/chunk-6XTILRPH.mjs +70 -0
  6. package/dist/{chunk-XSO2NEF3.js → chunk-DQMGW6HJ.js} +4 -4
  7. package/dist/{chunk-KDPTLM6V.mjs → chunk-EIJGRLEG.mjs} +1 -1
  8. package/dist/chunk-F37ESSZE.js +70 -0
  9. package/dist/{chunk-NPLOIBSW.mjs → chunk-FGVJOBJP.mjs} +1 -1
  10. package/dist/{chunk-NTAVFPAR.mjs → chunk-J5A7VLNZ.mjs} +3 -3
  11. package/dist/{chunk-4WESWVMR.js → chunk-JVXHQADT.js} +3 -3
  12. package/dist/chunk-PS2AUG7M.js +266 -0
  13. package/dist/chunk-QDWACPEV.mjs +269 -0
  14. package/dist/{chunk-WYT4G6BW.mjs → chunk-UZMB4DDU.mjs} +5 -16
  15. package/dist/executors.js +1 -1
  16. package/dist/executors.mjs +3 -3
  17. package/dist/generators.js +3 -3
  18. package/dist/generators.mjs +3 -3
  19. package/dist/index.js +4 -4
  20. package/dist/index.mjs +5 -5
  21. package/dist/src/executors/cloudflare-publish/executor.js +1 -1
  22. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  23. package/dist/src/executors/r2-upload-publish/executor.mjs +1 -1
  24. package/dist/src/executors/r2-upload-publish/untyped.mjs +1 -1
  25. package/dist/src/executors/serve/executor.js +4 -4
  26. package/dist/src/executors/serve/executor.mjs +3 -3
  27. package/dist/src/generators/init/generator.js +2 -2
  28. package/dist/src/generators/init/generator.mjs +2 -2
  29. package/dist/src/generators/worker/generator.js +3 -3
  30. package/dist/src/generators/worker/generator.mjs +3 -3
  31. package/dist/src/plugins/index.d.mts +2 -2
  32. package/dist/src/plugins/index.d.ts +2 -2
  33. package/dist/src/plugins/index.mjs +1 -1
  34. package/dist/src/utils/http-handler.mjs +1 -1
  35. package/dist/src/utils/index.mjs +1 -1
  36. package/dist/src/utils/r2-bucket-helpers.mjs +1 -1
  37. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.71.225](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.225) (06/30/2026)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Update repository packages' dependencies ([6f81fb5b5](https://github.com/storm-software/storm-ops/commit/6f81fb5b5))
10
+
11
+ ### Bug Fixes
12
+
13
+ - **workspace-tools:** Update Nx to v23.0.1 and resolve out-dated function signature issue in plugin ([86f015008](https://github.com/storm-software/storm-ops/commit/86f015008))
14
+
15
+ ### Updated Dependencies
16
+
17
+ - Updated **config** to **v1.138.19**
18
+ - Updated **config-tools** to **v1.190.82**
19
+ - Updated **workspace-tools** to **v1.296.62**
20
+
21
+ ## [0.71.224](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.224) (06/29/2026)
22
+
23
+ ### Bug Fixes
24
+
25
+ - **workspace-tools:** Resolve issue applying the cargo project name parameter ([f927214be](https://github.com/storm-software/storm-ops/commit/f927214be))
26
+
27
+ ### Updated Dependencies
28
+
29
+ - Updated **config** to **v1.138.18**
30
+ - Updated **config-tools** to **v1.190.81**
31
+ - Updated **workspace-tools** to **v1.296.61**
32
+
5
33
  ## [0.71.223](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.223) (06/28/2026)
6
34
 
7
35
  ### Miscellaneous
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.222-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.223-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 -->
@@ -499,7 +499,7 @@ var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_reso
499
499
 
500
500
 
501
501
  // ../build-tools/src/utilities/copy-assets.ts
502
- var _copyassetshandlerjs = require('@nx/js/src/utils/assets/copy-assets-handler.js');
502
+ var _internal = require('@nx/js/internal');
503
503
  var _glob = require('glob');
504
504
  var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
505
505
  var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
@@ -533,7 +533,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
533
533
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkAWKQRM2Hjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
534
534
  config
535
535
  );
536
- const assetHandler = new (0, _copyassetshandlerjs.CopyAssetsHandler)({
536
+ const assetHandler = new (0, _internal.CopyAssetsHandler)({
537
537
  projectDir: projectRoot,
538
538
  rootDir: config.workspaceRoot,
539
539
  outputDir: outputPath,
@@ -571,7 +571,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
571
571
  };
572
572
 
573
573
  // ../build-tools/src/utilities/generate-package-json.ts
574
- var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
574
+
575
575
 
576
576
 
577
577
 
@@ -593,7 +593,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
593
593
  "The Build process failed because the project graph is not available. Please run the build command again."
594
594
  );
595
595
  }
596
- const projectDependencies = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0,
596
+ const projectDependencies = _internal.calculateProjectBuildableDependencies.call(void 0,
597
597
  void 0,
598
598
  projectGraph,
599
599
  workspaceRoot2,
@@ -1954,14 +1954,12 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
1954
1954
 
1955
1955
 
1956
1956
 
1957
- var _projectnameandrootutils = require('@nx/devkit/src/generators/project-name-and-root-utils');
1957
+ var _internal3 = require('@nx/devkit/internal');
1958
1958
 
1959
1959
 
1960
1960
 
1961
1961
 
1962
1962
  var _js = require('@nx/js');
1963
- var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopRequireDefault(_init);
1964
- var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
1965
1963
 
1966
1964
  // ../workspace-tools/src/utils/versions.ts
1967
1965
  var typesNodeVersion = "20.9.0";
@@ -1973,12 +1971,6 @@ var pnpmVersion = "8.10.2";
1973
1971
  async function typeScriptLibraryGeneratorFn(tree, options, config) {
1974
1972
  const normalized = await normalizeOptions(tree, { ...options });
1975
1973
  const tasks = [];
1976
- tasks.push(
1977
- await _init2.default.call(void 0, tree, {
1978
- ...normalized,
1979
- tsConfigName: normalized.rootProject ? "tsconfig.json" : "tsconfig.base.json"
1980
- })
1981
- );
1982
1974
  tasks.push(
1983
1975
  _devkit.addDependenciesToPackageJson.call(void 0,
1984
1976
  tree,
@@ -1990,9 +1982,6 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
1990
1982
  }
1991
1983
  )
1992
1984
  );
1993
- if (normalized.publishable) {
1994
- tasks.push(await _generator2.default.call(void 0, tree, { ...normalized, skipFormat: true }));
1995
- }
1996
1985
  const projectConfig = {
1997
1986
  root: normalized.directory,
1998
1987
  projectType: "library",
@@ -2216,7 +2205,7 @@ async function normalizeOptions(tree, options, config) {
2216
2205
  names: projectNames,
2217
2206
  projectRoot,
2218
2207
  importPath: normalizedImportPath
2219
- } = await _projectnameandrootutils.determineProjectNameAndRootOptions.call(void 0, tree, {
2208
+ } = await _internal3.determineProjectNameAndRootOptions.call(void 0, tree, {
2220
2209
  name: options.name,
2221
2210
  projectType: "library",
2222
2211
  directory: options.directory,
@@ -3119,7 +3108,7 @@ var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.
3119
3108
  });
3120
3109
 
3121
3110
  // ../workspace-tools/src/release/js-version-actions.ts
3122
- var _versionactionsjs = require('@nx/js/src/release/version-actions.js'); var _versionactionsjs2 = _interopRequireDefault(_versionactionsjs);
3111
+ var _versionactions = require('@nx/js/src/release/version-actions'); var _versionactions2 = _interopRequireDefault(_versionactions);
3123
3112
 
3124
3113
  // ../workspace-tools/src/release/rust-version-actions.ts
3125
3114
 
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  __commonJS
3
- } from "./chunk-KDPTLM6V.mjs";
3
+ } from "./chunk-EIJGRLEG.mjs";
4
4
 
5
5
  // package.json
6
6
  var require_package = __commonJS({
7
7
  "package.json"(exports, module) {
8
8
  module.exports = {
9
9
  name: "@storm-software/cloudflare-tools",
10
- version: "0.71.223",
10
+ version: "0.71.224",
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: [
@@ -162,7 +162,7 @@ var require_package = __commonJS({
162
162
  dependencies: {
163
163
  "@aws-sdk/client-s3": "^3.1075.0",
164
164
  "@aws-sdk/lib-storage": "^3.1075.0",
165
- "@smithy/node-http-handler": "^4.8.2",
165
+ "@smithy/node-http-handler": "^4.9.0",
166
166
  "@storm-software/config": "workspace:*",
167
167
  "@storm-software/config-tools": "workspace:*",
168
168
  "@storm-software/workspace-tools": "workspace:*",
@@ -176,7 +176,7 @@ var require_package = __commonJS({
176
176
  "@nx/node": "catalog:",
177
177
  "@nx/web": "catalog:",
178
178
  "@nx/webpack": "catalog:",
179
- "@smithy/protocol-http": "^5.5.2",
179
+ "@smithy/protocol-http": "^5.5.3",
180
180
  nx: "catalog:",
181
181
  tsup: "catalog:",
182
182
  untyped: "catalog:",
@@ -0,0 +1,70 @@
1
+ import {
2
+ __commonJS
3
+ } from "./chunk-EIJGRLEG.mjs";
4
+
5
+ // package.json
6
+ var require_package = __commonJS({
7
+ "package.json"(exports, module) {
8
+ module.exports = { name: "@storm-software/cloudflare-tools", version: "0.71.225", 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.1075.0", "@aws-sdk/lib-storage": "^3.1075.0", "@smithy/node-http-handler": "^4.9.0", "@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.3", nx: "catalog:", tsup: "catalog:", untyped: "catalog:", wrangler: "^4.105.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
+ }
10
+ });
11
+
12
+ // src/generators/init/generator.ts
13
+ import {
14
+ addDependenciesToPackageJson,
15
+ convertNxGenerator,
16
+ formatFiles,
17
+ removeDependenciesFromPackageJson
18
+ } from "@nx/devkit";
19
+ import { initGenerator as nodeInitGenerator } from "@nx/js";
20
+ import { tslibVersion } from "@nx/node/src/utils/versions";
21
+
22
+ // src/generators/init/libs/versions.ts
23
+ var cloudflareToolsVersion = require_package().version;
24
+ var wranglerVersion = "^3.51.2";
25
+ var cloudflareWorkersTypeVersions = "^4.20240419.0";
26
+ var honoVersion = "^4.2.6";
27
+
28
+ // src/generators/init/generator.ts
29
+ async function initGenerator(tree, schema) {
30
+ const initTask = await nodeInitGenerator(tree, {
31
+ ...schema,
32
+ skipFormat: true
33
+ });
34
+ const installTask = updateDependencies(tree, schema);
35
+ if (!schema.skipFormat) {
36
+ await formatFiles(tree);
37
+ }
38
+ return async () => {
39
+ await initTask();
40
+ await installTask();
41
+ };
42
+ }
43
+ function updateDependencies(tree, schema) {
44
+ removeDependenciesFromPackageJson(
45
+ tree,
46
+ ["@storm-software/cloudflare-tools"],
47
+ []
48
+ );
49
+ const honoPackage = schema.template === "hono" ? { hono: honoVersion } : {};
50
+ return addDependenciesToPackageJson(
51
+ tree,
52
+ {
53
+ tslib: tslibVersion,
54
+ ...honoPackage
55
+ },
56
+ {
57
+ wrangler: wranglerVersion,
58
+ "@cloudflare/workers-types": cloudflareWorkersTypeVersions,
59
+ "@storm-software/cloudflare-tools": cloudflareToolsVersion
60
+ }
61
+ );
62
+ }
63
+ var generator_default = initGenerator;
64
+ var initSchematic = convertNxGenerator(initGenerator);
65
+
66
+ export {
67
+ initGenerator,
68
+ generator_default,
69
+ initSchematic
70
+ };
@@ -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 _chunk4WESWVMRjs = require('./chunk-4WESWVMR.js');
3
+ var _chunkF37ESSZEjs = require('./chunk-F37ESSZE.js');
4
4
 
5
5
 
6
6
 
@@ -28,7 +28,7 @@ var _chunkAWKQRM2Hjs = require('./chunk-AWKQRM2H.js');
28
28
 
29
29
 
30
30
  var _devkit = require('@nx/devkit');
31
- var _projectnameandrootutils = require('@nx/devkit/src/generators/project-name-and-root-utils');
31
+ var _internal = require('@nx/devkit/internal');
32
32
  var _node = require('@nx/node');
33
33
  var _versions = require('@nx/node/src/utils/versions');
34
34
  var _path = require('path');
@@ -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 _chunk4WESWVMRjs.generator_default.call(void 0, tree, {
73
+ await _chunkF37ESSZEjs.generator_default.call(void 0, tree, {
74
74
  ...options,
75
75
  skipFormat: true
76
76
  })
@@ -236,7 +236,7 @@ function removeTestFiles(tree, options) {
236
236
  tree.delete(_path.join.call(void 0, options.appProjectRoot, "src", "index.test.ts"));
237
237
  }
238
238
  async function normalizeOptions(host, options, config) {
239
- const { projectName: appProjectName, projectRoot: appProjectRoot } = await _projectnameandrootutils.determineProjectNameAndRootOptions.call(void 0, host, {
239
+ const { projectName: appProjectName, projectRoot: appProjectRoot } = await _internal.determineProjectNameAndRootOptions.call(void 0, host, {
240
240
  name: options.name,
241
241
  projectType: "application",
242
242
  directory: options.directory,
@@ -9,7 +9,7 @@ var __commonJS = (cb, mod) => function __require2() {
9
9
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
10
  };
11
11
 
12
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__c0506f311429fb3eff490d86a619ee0f/node_modules/tsup/assets/esm_shims.js
12
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__a44b4f62122f89559b5a273229b3b576/node_modules/tsup/assets/esm_shims.js
13
13
  import { fileURLToPath } from "url";
14
14
  import path from "path";
15
15
  var getFilename = () => fileURLToPath(import.meta.url);
@@ -0,0 +1,70 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkMCKGQKYUjs = require('./chunk-MCKGQKYU.js');
4
+
5
+ // package.json
6
+ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
7
+ "package.json"(exports, module) {
8
+ module.exports = { name: "@storm-software/cloudflare-tools", version: "0.71.225", 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.1075.0", "@aws-sdk/lib-storage": "^3.1075.0", "@smithy/node-http-handler": "^4.9.0", "@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.3", nx: "catalog:", tsup: "catalog:", untyped: "catalog:", wrangler: "^4.105.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
+ }
10
+ });
11
+
12
+ // src/generators/init/generator.ts
13
+
14
+
15
+
16
+
17
+
18
+ var _devkit = require('@nx/devkit');
19
+ var _js = require('@nx/js');
20
+ var _versions = require('@nx/node/src/utils/versions');
21
+
22
+ // src/generators/init/libs/versions.ts
23
+ var cloudflareToolsVersion = require_package().version;
24
+ var wranglerVersion = "^3.51.2";
25
+ var cloudflareWorkersTypeVersions = "^4.20240419.0";
26
+ var honoVersion = "^4.2.6";
27
+
28
+ // src/generators/init/generator.ts
29
+ async function initGenerator(tree, schema) {
30
+ const initTask = await _js.initGenerator.call(void 0, tree, {
31
+ ...schema,
32
+ skipFormat: true
33
+ });
34
+ const installTask = updateDependencies(tree, schema);
35
+ if (!schema.skipFormat) {
36
+ await _devkit.formatFiles.call(void 0, tree);
37
+ }
38
+ return async () => {
39
+ await initTask();
40
+ await installTask();
41
+ };
42
+ }
43
+ function updateDependencies(tree, schema) {
44
+ _devkit.removeDependenciesFromPackageJson.call(void 0,
45
+ tree,
46
+ ["@storm-software/cloudflare-tools"],
47
+ []
48
+ );
49
+ const honoPackage = schema.template === "hono" ? { hono: honoVersion } : {};
50
+ return _devkit.addDependenciesToPackageJson.call(void 0,
51
+ tree,
52
+ {
53
+ tslib: _versions.tslibVersion,
54
+ ...honoPackage
55
+ },
56
+ {
57
+ wrangler: wranglerVersion,
58
+ "@cloudflare/workers-types": cloudflareWorkersTypeVersions,
59
+ "@storm-software/cloudflare-tools": cloudflareToolsVersion
60
+ }
61
+ );
62
+ }
63
+ var generator_default = initGenerator;
64
+ var initSchematic = _devkit.convertNxGenerator.call(void 0, initGenerator);
65
+
66
+
67
+
68
+
69
+
70
+ exports.initGenerator = initGenerator; exports.generator_default = generator_default; exports.initSchematic = initSchematic;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-ZXLMDNFQ.mjs";
4
4
  import {
5
5
  __require
6
- } from "./chunk-KDPTLM6V.mjs";
6
+ } from "./chunk-EIJGRLEG.mjs";
7
7
 
8
8
  // src/executors/cloudflare-publish/executor.ts
9
9
  import { joinPathFragments } from "@nx/devkit";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-WO7IPWNX.mjs";
3
+ } from "./chunk-6XTILRPH.mjs";
4
4
  import {
5
5
  findWorkspaceRoot,
6
6
  getConfig
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-K4H5ZMYA.mjs";
17
17
  import {
18
18
  __dirname
19
- } from "./chunk-KDPTLM6V.mjs";
19
+ } from "./chunk-EIJGRLEG.mjs";
20
20
 
21
21
  // src/generators/worker/generator.ts
22
22
  import {
@@ -31,7 +31,7 @@ import {
31
31
  updateJson,
32
32
  updateProjectConfiguration
33
33
  } from "@nx/devkit";
34
- import { determineProjectNameAndRootOptions } from "@nx/devkit/src/generators/project-name-and-root-utils";
34
+ import { determineProjectNameAndRootOptions } from "@nx/devkit/internal";
35
35
  import { applicationGenerator as nodeApplicationGenerator } from "@nx/node";
36
36
  import { nxVersion } from "@nx/node/src/utils/versions";
37
37
  import { join } from "path";
@@ -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.223",
10
+ version: "0.71.224",
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: [
@@ -162,7 +162,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
162
162
  dependencies: {
163
163
  "@aws-sdk/client-s3": "^3.1075.0",
164
164
  "@aws-sdk/lib-storage": "^3.1075.0",
165
- "@smithy/node-http-handler": "^4.8.2",
165
+ "@smithy/node-http-handler": "^4.9.0",
166
166
  "@storm-software/config": "workspace:*",
167
167
  "@storm-software/config-tools": "workspace:*",
168
168
  "@storm-software/workspace-tools": "workspace:*",
@@ -176,7 +176,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
176
176
  "@nx/node": "catalog:",
177
177
  "@nx/web": "catalog:",
178
178
  "@nx/webpack": "catalog:",
179
- "@smithy/protocol-http": "^5.5.2",
179
+ "@smithy/protocol-http": "^5.5.3",
180
180
  nx: "catalog:",
181
181
  tsup: "catalog:",
182
182
  untyped: "catalog:",