@storm-software/cloudflare-tools 0.55.61 → 0.55.63

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 (45) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-YSDG777H.mjs → chunk-3O6RTR7W.mjs} +2 -2
  4. package/dist/{chunk-FUE6U32Q.mjs → chunk-C3CWFFYT.mjs} +5 -5
  5. package/dist/{chunk-H36VLRVB.mjs → chunk-CI3G746G.mjs} +1 -1
  6. package/dist/{chunk-OZZB2O7W.mjs → chunk-HA6XAX4C.mjs} +4 -4
  7. package/dist/{chunk-I4BEGOU2.mjs → chunk-HBBHWDJS.mjs} +15 -10
  8. package/dist/{chunk-KLU3MC7D.js → chunk-IKNX7KR7.js} +142 -141
  9. package/dist/{chunk-CRVSAZIS.mjs → chunk-ITJMNVMG.mjs} +2 -2
  10. package/dist/{chunk-Y5KOP5W7.mjs → chunk-KSTLYSXJ.mjs} +5 -4
  11. package/dist/{chunk-XFDLWZLO.js → chunk-MLJ3OSJX.js} +16 -16
  12. package/dist/{chunk-RC7NR5DM.js → chunk-NRIZ2TF7.js} +1 -1
  13. package/dist/{chunk-VCFN2W5L.mjs → chunk-RGBGVGWZ.mjs} +2 -2
  14. package/dist/{chunk-Q7EDJLEB.mjs → chunk-SSSAGTTW.mjs} +2 -2
  15. package/dist/{chunk-WNICDYXY.js → chunk-TEEOPHLZ.js} +1 -1
  16. package/dist/{chunk-DXA6VL3T.js → chunk-UBEHQVYS.js} +3 -3
  17. package/dist/{chunk-J67QGNB5.js → chunk-UCUXAMZ3.js} +12 -12
  18. package/dist/{chunk-H2MWLDLR.mjs → chunk-VQLLSEHB.mjs} +1 -1
  19. package/dist/{chunk-QYQD76ND.js → chunk-XFPT4O23.js} +52 -47
  20. package/dist/executors.js +5 -5
  21. package/dist/executors.mjs +8 -8
  22. package/dist/generators.js +5 -5
  23. package/dist/generators.mjs +5 -5
  24. package/dist/index.d.mts +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +8 -8
  27. package/dist/index.mjs +10 -10
  28. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  29. package/dist/src/executors/cloudflare-publish/executor.mjs +6 -6
  30. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  31. package/dist/src/executors/r2-upload-publish/executor.mjs +6 -6
  32. package/dist/src/executors/serve/executor.d.mts +2 -2
  33. package/dist/src/executors/serve/executor.d.ts +2 -2
  34. package/dist/src/executors/serve/executor.js +4 -4
  35. package/dist/src/executors/serve/executor.mjs +5 -5
  36. package/dist/src/generators/init/generator.js +2 -2
  37. package/dist/src/generators/init/generator.mjs +2 -2
  38. package/dist/src/generators/worker/generator.js +5 -5
  39. package/dist/src/generators/worker/generator.mjs +5 -5
  40. package/dist/src/utils/index.js +3 -3
  41. package/dist/src/utils/index.mjs +3 -3
  42. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  43. package/dist/src/utils/r2-bucket-helpers.mjs +3 -3
  44. package/dist/tsup.config.mjs +1 -1
  45. package/package.json +40 -14
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.55.63](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.63) (2025-04-25)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+ ([9ab7e03d9](https://github.com/storm-software/storm-ops/commit/9ab7e03d9))
11
+
5
12
  ## [0.55.61](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.61) (2025-04-16)
6
13
 
7
14
  ### Miscellaneous
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.55.61-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.55.62-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  __commonJS,
3
3
  __name
4
- } from "./chunk-H2MWLDLR.mjs";
4
+ } from "./chunk-VQLLSEHB.mjs";
5
5
 
6
6
  // package.json
7
7
  var require_package = __commonJS({
8
8
  "package.json"(exports, module) {
9
9
  module.exports = {
10
10
  name: "@storm-software/cloudflare-tools",
11
- version: "0.55.61",
11
+ version: "0.55.63",
12
12
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
13
13
  repository: {
14
14
  type: "github",
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  getInternalDependencies,
3
3
  r2UploadFile
4
- } from "./chunk-CRVSAZIS.mjs";
4
+ } from "./chunk-ITJMNVMG.mjs";
5
5
  import {
6
6
  createCliOptions,
7
7
  getPackageInfo
8
- } from "./chunk-H36VLRVB.mjs";
8
+ } from "./chunk-CI3G746G.mjs";
9
9
  import {
10
10
  getConfig
11
- } from "./chunk-I4BEGOU2.mjs";
11
+ } from "./chunk-HBBHWDJS.mjs";
12
12
  import {
13
13
  findWorkspaceRoot,
14
14
  writeDebug,
15
15
  writeInfo,
16
16
  writeSuccess,
17
17
  writeWarning
18
- } from "./chunk-Q7EDJLEB.mjs";
18
+ } from "./chunk-SSSAGTTW.mjs";
19
19
  import {
20
20
  __name
21
- } from "./chunk-H2MWLDLR.mjs";
21
+ } from "./chunk-VQLLSEHB.mjs";
22
22
 
23
23
  // src/executors/r2-upload-publish/executor.ts
24
24
  import { S3 } from "@aws-sdk/client-s3";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __name
3
- } from "./chunk-H2MWLDLR.mjs";
3
+ } from "./chunk-VQLLSEHB.mjs";
4
4
 
5
5
  // ../workspace-tools/src/utils/create-cli-options.ts
6
6
  import { names } from "@nx/devkit";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-YSDG777H.mjs";
3
+ } from "./chunk-3O6RTR7W.mjs";
4
4
  import {
5
5
  getConfig
6
- } from "./chunk-I4BEGOU2.mjs";
6
+ } from "./chunk-HBBHWDJS.mjs";
7
7
  import {
8
8
  findWorkspaceRoot,
9
9
  getStopwatch,
@@ -12,11 +12,11 @@ import {
12
12
  writeFatal,
13
13
  writeInfo,
14
14
  writeTrace
15
- } from "./chunk-Q7EDJLEB.mjs";
15
+ } from "./chunk-SSSAGTTW.mjs";
16
16
  import {
17
17
  __dirname,
18
18
  __name
19
- } from "./chunk-H2MWLDLR.mjs";
19
+ } from "./chunk-VQLLSEHB.mjs";
20
20
 
21
21
  // src/generators/worker/generator.ts
22
22
  import { convertNxGenerator, ensurePackage, formatFiles, generateFiles, joinPathFragments, names, readProjectConfiguration, runTasksInSerial, updateJson, updateProjectConfiguration } from "@nx/devkit";
@@ -14,10 +14,10 @@ import {
14
14
  stormWorkspaceConfigSchema,
15
15
  writeTrace,
16
16
  writeWarning
17
- } from "./chunk-Q7EDJLEB.mjs";
17
+ } from "./chunk-SSSAGTTW.mjs";
18
18
  import {
19
19
  __name
20
- } from "./chunk-H2MWLDLR.mjs";
20
+ } from "./chunk-VQLLSEHB.mjs";
21
21
 
22
22
  // ../config-tools/src/create-storm-config.ts
23
23
  import defu2 from "defu";
@@ -77,7 +77,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
77
77
  }
78
78
  }
79
79
  }
80
- if (!config) {
80
+ if (!config || Object.keys(config).length === 0) {
81
81
  return void 0;
82
82
  }
83
83
  config.configFile = configFile;
@@ -548,7 +548,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
548
548
  // ../config-tools/src/create-storm-config.ts
549
549
  var _extension_cache = /* @__PURE__ */ new WeakMap();
550
550
  var _static_cache = void 0;
551
- var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
551
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
552
552
  let result;
553
553
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
554
554
  let _workspaceRoot = workspaceRoot;
@@ -556,13 +556,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
556
556
  _workspaceRoot = findWorkspaceRoot();
557
557
  }
558
558
  const configEnv = getConfigEnv();
559
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
560
559
  const configFile = await getConfigFile(_workspaceRoot);
561
- if (!configFile && !skipLogs) {
562
- writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
563
- logLevel: "all"
564
- });
560
+ if (!configFile) {
561
+ if (!skipLogs) {
562
+ writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
563
+ logLevel: "all"
564
+ });
565
+ }
566
+ if (useDefault === false) {
567
+ return void 0;
568
+ }
565
569
  }
570
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
566
571
  result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
567
572
  result.workspaceRoot ??= _workspaceRoot;
568
573
  } else {
@@ -595,7 +600,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
595
600
  return extension;
596
601
  }, "createConfigExtension");
597
602
  var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
598
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
603
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
599
604
  setConfigEnv(config);
600
605
  if (!skipLogs && !config.skipConfigLogging) {
601
606
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration: