@storm-software/cloudflare-tools 0.54.1 → 0.54.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.54.2 (2025-01-22)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **build-tools:** Resolved issue with copying asset files into output directory ([1b314e8e](https://github.com/storm-software/storm-ops/commit/1b314e8e))
6
+
1
7
  ## 0.54.1 (2025-01-22)
2
8
 
3
9
  ### Bug Fixes
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.54.0-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.54.1-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 -->
@@ -8,7 +8,7 @@ var require_package = __commonJS({
8
8
  "package.json"(exports, module) {
9
9
  module.exports = {
10
10
  name: "@storm-software/cloudflare-tools",
11
- version: "0.54.1",
11
+ version: "0.54.2",
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",
@@ -509,8 +509,10 @@ var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, proje
509
509
  if (!buildTarget) {
510
510
  throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${joinPaths(projectRoot, "project.json")}`);
511
511
  }
512
+ writeTrace(`\u{1F4DD} Copying the following assets to the output directory:
513
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`, config);
512
514
  const result = await copyAssetsBase({
513
- assets,
515
+ assets: pendingAssets,
514
516
  watch: false,
515
517
  outputPath
516
518
  }, {
@@ -508,8 +508,10 @@ var copyAssets = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (con
508
508
  if (!buildTarget) {
509
509
  throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkW6YNIJQDjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
510
510
  }
511
+ _chunkW6YNIJQDjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
512
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkW6YNIJQDjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
511
513
  const result = await _js.copyAssets.call(void 0, {
512
- assets,
514
+ assets: pendingAssets,
513
515
  watch: false,
514
516
  outputPath
515
517
  }, {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-4UDIES3V.mjs";
3
+ } from "./chunk-6OLSW63F.mjs";
4
4
  import {
5
5
  loadStormConfig
6
6
  } from "./chunk-6H63LE3D.mjs";
@@ -8,7 +8,7 @@ var require_package = _chunkJ5SB6L2Ljs.__commonJS.call(void 0, {
8
8
  "package.json"(exports, module) {
9
9
  module.exports = {
10
10
  name: "@storm-software/cloudflare-tools",
11
- version: "0.54.1",
11
+ version: "0.54.2",
12
12
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
13
13
  repository: {
14
14
  type: "github",
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk5WWJ6PHCjs = require('./chunk-5WWJ6PHC.js');
3
+ var _chunkWL2BHAOYjs = require('./chunk-WL2BHAOY.js');
4
4
 
5
5
 
6
6
  var _chunkTHKJZT32js = require('./chunk-THKJZT32.js');
@@ -52,7 +52,7 @@ async function applicationGenerator(tree, schema) {
52
52
  ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`, config);
53
53
  const options = await normalizeOptions(tree, schema, config);
54
54
  const tasks = [];
55
- tasks.push(await _chunk5WWJ6PHCjs.generator_default.call(void 0, tree, {
55
+ tasks.push(await _chunkWL2BHAOYjs.generator_default.call(void 0, tree, {
56
56
  ...options,
57
57
  skipFormat: true
58
58
  }));
package/dist/executors.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";require('./chunk-XO66D74Z.js');
2
2
  require('./chunk-R7AIVBS7.js');
3
- require('./chunk-BAP6AE7N.js');
3
+ require('./chunk-H43VNU3H.js');
4
4
  require('./chunk-U6QKP7CG.js');
5
5
  require('./chunk-H63GI4CR.js');
6
6
  require('./chunk-VTHBMY4B.js');
@@ -1,6 +1,6 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
2
  import "./chunk-QEWY5YJA.mjs";
3
- import "./chunk-NTZUGXQD.mjs";
3
+ import "./chunk-CU5DCV52.mjs";
4
4
  import "./chunk-BGWUN6JU.mjs";
5
5
  import "./chunk-KVL4WOIH.mjs";
6
6
  import "./chunk-XU6MTFCV.mjs";
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkH2PLVAKCjs = require('./chunk-H2PLVAKC.js');
5
+ var _chunkZPVFJJMYjs = require('./chunk-ZPVFJJMY.js');
6
6
 
7
7
 
8
8
 
9
- var _chunk5WWJ6PHCjs = require('./chunk-5WWJ6PHC.js');
9
+ var _chunkWL2BHAOYjs = require('./chunk-WL2BHAOY.js');
10
10
  require('./chunk-THKJZT32.js');
11
11
  require('./chunk-W6YNIJQD.js');
12
12
  require('./chunk-J5SB6L2L.js');
@@ -15,4 +15,4 @@ require('./chunk-J5SB6L2L.js');
15
15
 
16
16
 
17
17
 
18
- exports.applicationGenerator = _chunkH2PLVAKCjs.applicationGenerator; exports.applicationSchematic = _chunkH2PLVAKCjs.applicationSchematic; exports.initGenerator = _chunk5WWJ6PHCjs.initGenerator; exports.initSchematic = _chunk5WWJ6PHCjs.initSchematic;
18
+ exports.applicationGenerator = _chunkZPVFJJMYjs.applicationGenerator; exports.applicationSchematic = _chunkZPVFJJMYjs.applicationSchematic; exports.initGenerator = _chunkWL2BHAOYjs.initGenerator; exports.initSchematic = _chunkWL2BHAOYjs.initSchematic;
@@ -2,11 +2,11 @@ import "./chunk-3J7KBHMJ.mjs";
2
2
  import {
3
3
  applicationGenerator,
4
4
  applicationSchematic
5
- } from "./chunk-VE6PGD5B.mjs";
5
+ } from "./chunk-UJORUWGK.mjs";
6
6
  import {
7
7
  initGenerator,
8
8
  initSchematic
9
- } from "./chunk-4UDIES3V.mjs";
9
+ } from "./chunk-6OLSW63F.mjs";
10
10
  import "./chunk-6H63LE3D.mjs";
11
11
  import "./chunk-3D3WO4IH.mjs";
12
12
  import "./chunk-A7FFSBE6.mjs";
package/dist/index.js CHANGED
@@ -3,14 +3,14 @@ require('./chunk-DHBG5ASJ.js');
3
3
 
4
4
 
5
5
 
6
- var _chunkH2PLVAKCjs = require('./chunk-H2PLVAKC.js');
6
+ var _chunkZPVFJJMYjs = require('./chunk-ZPVFJJMY.js');
7
7
 
8
8
 
9
9
 
10
- var _chunk5WWJ6PHCjs = require('./chunk-5WWJ6PHC.js');
10
+ var _chunkWL2BHAOYjs = require('./chunk-WL2BHAOY.js');
11
11
  require('./chunk-CVGPWUNP.js');
12
12
  require('./chunk-R7AIVBS7.js');
13
- require('./chunk-BAP6AE7N.js');
13
+ require('./chunk-H43VNU3H.js');
14
14
  require('./chunk-U6QKP7CG.js');
15
15
 
16
16
 
@@ -148,4 +148,4 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, createPackageJson, "createPackageJson");
148
148
 
149
149
 
150
150
 
151
- exports.applicationGenerator = _chunkH2PLVAKCjs.applicationGenerator; exports.applicationSchematic = _chunkH2PLVAKCjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkH63GI4CRjs.getInternalDependencies; exports.initGenerator = _chunk5WWJ6PHCjs.initGenerator; exports.initSchematic = _chunk5WWJ6PHCjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkH63GI4CRjs.r2UploadFile;
151
+ exports.applicationGenerator = _chunkZPVFJJMYjs.applicationGenerator; exports.applicationSchematic = _chunkZPVFJJMYjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkH63GI4CRjs.getInternalDependencies; exports.initGenerator = _chunkWL2BHAOYjs.initGenerator; exports.initSchematic = _chunkWL2BHAOYjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkH63GI4CRjs.r2UploadFile;
package/dist/index.mjs CHANGED
@@ -3,14 +3,14 @@ import "./chunk-3J7KBHMJ.mjs";
3
3
  import {
4
4
  applicationGenerator,
5
5
  applicationSchematic
6
- } from "./chunk-VE6PGD5B.mjs";
6
+ } from "./chunk-UJORUWGK.mjs";
7
7
  import {
8
8
  initGenerator,
9
9
  initSchematic
10
- } from "./chunk-4UDIES3V.mjs";
10
+ } from "./chunk-6OLSW63F.mjs";
11
11
  import "./chunk-7Z5PILRU.mjs";
12
12
  import "./chunk-QEWY5YJA.mjs";
13
- import "./chunk-NTZUGXQD.mjs";
13
+ import "./chunk-CU5DCV52.mjs";
14
14
  import "./chunk-BGWUN6JU.mjs";
15
15
  import {
16
16
  getInternalDependencies,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
  var _chunkR7AIVBS7js = require('../../../chunk-R7AIVBS7.js');
4
- require('../../../chunk-BAP6AE7N.js');
4
+ require('../../../chunk-H43VNU3H.js');
5
5
  require('../../../chunk-VTHBMY4B.js');
6
6
  require('../../../chunk-THKJZT32.js');
7
7
  require('../../../chunk-W6YNIJQD.js');
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runExecutor
3
3
  } from "../../../chunk-QEWY5YJA.mjs";
4
- import "../../../chunk-NTZUGXQD.mjs";
4
+ import "../../../chunk-CU5DCV52.mjs";
5
5
  import "../../../chunk-XU6MTFCV.mjs";
6
6
  import "../../../chunk-6H63LE3D.mjs";
7
7
  import "../../../chunk-3D3WO4IH.mjs";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkBAP6AE7Njs = require('../../../chunk-BAP6AE7N.js');
3
+ var _chunkH43VNU3Hjs = require('../../../chunk-H43VNU3H.js');
4
4
 
5
5
 
6
6
  var _chunkVTHBMY4Bjs = require('../../../chunk-VTHBMY4B.js');
@@ -60,7 +60,7 @@ async function* serveExecutor(options, context, config) {
60
60
  };
61
61
  }
62
62
  _chunkJ5SB6L2Ljs.__name.call(void 0, serveExecutor, "serveExecutor");
63
- var executor_default = _chunkBAP6AE7Njs.withRunExecutor.call(void 0, "Cloudflare Serve executor", serveExecutor, {
63
+ var executor_default = _chunkH43VNU3Hjs.withRunExecutor.call(void 0, "Cloudflare Serve executor", serveExecutor, {
64
64
  skipReadingConfig: false,
65
65
  hooks: {
66
66
  applyDefaultOptions: /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "../../../chunk-NTZUGXQD.mjs";
3
+ } from "../../../chunk-CU5DCV52.mjs";
4
4
  import {
5
5
  createCliOptions
6
6
  } from "../../../chunk-XU6MTFCV.mjs";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk5WWJ6PHCjs = require('../../../chunk-5WWJ6PHC.js');
5
+ var _chunkWL2BHAOYjs = require('../../../chunk-WL2BHAOY.js');
6
6
  require('../../../chunk-J5SB6L2L.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunk5WWJ6PHCjs.generator_default; exports.initGenerator = _chunk5WWJ6PHCjs.initGenerator; exports.initSchematic = _chunk5WWJ6PHCjs.initSchematic;
11
+ exports.default = _chunkWL2BHAOYjs.generator_default; exports.initGenerator = _chunkWL2BHAOYjs.initGenerator; exports.initSchematic = _chunkWL2BHAOYjs.initSchematic;
@@ -2,7 +2,7 @@ import {
2
2
  generator_default,
3
3
  initGenerator,
4
4
  initSchematic
5
- } from "../../../chunk-4UDIES3V.mjs";
5
+ } from "../../../chunk-6OLSW63F.mjs";
6
6
  import "../../../chunk-A7FFSBE6.mjs";
7
7
  export {
8
8
  generator_default as default,
@@ -2,8 +2,8 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkH2PLVAKCjs = require('../../../chunk-H2PLVAKC.js');
6
- require('../../../chunk-5WWJ6PHC.js');
5
+ var _chunkZPVFJJMYjs = require('../../../chunk-ZPVFJJMY.js');
6
+ require('../../../chunk-WL2BHAOY.js');
7
7
  require('../../../chunk-THKJZT32.js');
8
8
  require('../../../chunk-W6YNIJQD.js');
9
9
  require('../../../chunk-J5SB6L2L.js');
@@ -11,4 +11,4 @@ require('../../../chunk-J5SB6L2L.js');
11
11
 
12
12
 
13
13
 
14
- exports.applicationGenerator = _chunkH2PLVAKCjs.applicationGenerator; exports.applicationSchematic = _chunkH2PLVAKCjs.applicationSchematic; exports.default = _chunkH2PLVAKCjs.generator_default;
14
+ exports.applicationGenerator = _chunkZPVFJJMYjs.applicationGenerator; exports.applicationSchematic = _chunkZPVFJJMYjs.applicationSchematic; exports.default = _chunkZPVFJJMYjs.generator_default;
@@ -2,8 +2,8 @@ import {
2
2
  applicationGenerator,
3
3
  applicationSchematic,
4
4
  generator_default
5
- } from "../../../chunk-VE6PGD5B.mjs";
6
- import "../../../chunk-4UDIES3V.mjs";
5
+ } from "../../../chunk-UJORUWGK.mjs";
6
+ import "../../../chunk-6OLSW63F.mjs";
7
7
  import "../../../chunk-6H63LE3D.mjs";
8
8
  import "../../../chunk-3D3WO4IH.mjs";
9
9
  import "../../../chunk-A7FFSBE6.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/cloudflare-tools",
3
- "version": "0.54.1",
3
+ "version": "0.54.2",
4
4
  "description": "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
5
5
  "repository": {
6
6
  "type": "github",