@storm-software/cloudflare-tools 0.71.11 → 0.71.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.71.12](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.12) (12/08/2025)
6
+
7
+ ### Updated Dependencies
8
+
9
+ - Updated **workspace-tools** to **v1.294.5**
10
+ - Updated **config-tools** to **v1.188.61**
11
+ - Updated **config** to **v1.134.61**
12
+
13
+ ## [0.71.11](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.11) (12/08/2025)
14
+
15
+ ### Bug Fixes
16
+
17
+ - **cloudflare-tools:** Resolve issue with invalid defaulting in
18
+ `r2-upload-publish` executor
19
+ ([ff000acd4](https://github.com/storm-software/storm-ops/commit/ff000acd4))
20
+
5
21
  ## [0.71.10](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.10) (12/08/2025)
6
22
 
7
23
  ### Miscellaneous
@@ -1,18 +1,18 @@
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 _chunkUY2WTOQGjs = require('./chunk-UY2WTOQG.js');
3
4
 
4
- var _chunkVKMAYBQXjs = require('./chunk-VKMAYBQX.js');
5
5
 
6
6
 
7
+ var _chunkVKMAYBQXjs = require('./chunk-VKMAYBQX.js');
7
8
 
8
9
 
9
10
 
10
11
 
11
12
 
12
- var _chunkZ2WQB55Rjs = require('./chunk-Z2WQB55R.js');
13
13
 
14
14
 
15
- var _chunkZHOESZRMjs = require('./chunk-ZHOESZRM.js');
15
+ var _chunkZ2WQB55Rjs = require('./chunk-Z2WQB55R.js');
16
16
 
17
17
  // src/generators/worker/generator.ts
18
18
 
@@ -66,7 +66,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
66
66
  const options = await normalizeOptions(tree, schema, config);
67
67
  const tasks = [];
68
68
  tasks.push(
69
- await _chunkZHOESZRMjs.generator_default.call(void 0, tree, {
69
+ await _chunkUY2WTOQGjs.generator_default.call(void 0, tree, {
70
70
  ...options,
71
71
  skipFormat: true
72
72
  })
@@ -1,11 +1,11 @@
1
- import {
2
- createCliOptions,
3
- getPackageInfo
4
- } from "./chunk-3MAI3FU2.mjs";
5
1
  import {
6
2
  getInternalDependencies,
7
3
  r2UploadFile
8
4
  } from "./chunk-5CMG7SUH.mjs";
5
+ import {
6
+ createCliOptions,
7
+ getPackageInfo
8
+ } from "./chunk-3MAI3FU2.mjs";
9
9
  import {
10
10
  findWorkspaceRoot,
11
11
  getConfig
@@ -28,6 +28,7 @@ import {
28
28
  import { glob } from "glob";
29
29
  import mime from "mime-types";
30
30
  import { execSync } from "node:child_process";
31
+ import { statSync } from "node:fs";
31
32
  import { readFile } from "node:fs/promises";
32
33
  async function runExecutor(options, context) {
33
34
  const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
@@ -186,19 +187,23 @@ ${metaJson}`);
186
187
  }
187
188
  await Promise.all(
188
189
  files.map(async (file) => {
189
- const name = correctPaths(file).replace(correctPaths(basePath), "");
190
- const type = mime.lookup(name) || "application/octet-stream";
191
- writeTrace(`Uploading file: ${name} (content-type: ${type})`);
192
- await r2UploadFile(
193
- client,
194
- bucketId,
195
- bucketPath,
196
- name,
197
- version,
198
- await readFile(file, { encoding: "utf8" }),
199
- type,
200
- isDryRun
201
- );
190
+ if (statSync(file, {
191
+ throwIfNoEntry: false
192
+ })?.isFile()) {
193
+ const name = correctPaths(file).replace(correctPaths(basePath), "");
194
+ const type = mime.lookup(name) || "application/octet-stream";
195
+ writeTrace(`Uploading file: ${name} (content-type: ${type})`);
196
+ await r2UploadFile(
197
+ client,
198
+ bucketId,
199
+ bucketPath,
200
+ name,
201
+ version,
202
+ await readFile(file, { encoding: "utf8" }),
203
+ type,
204
+ isDryRun
205
+ );
206
+ }
202
207
  })
203
208
  );
204
209
  writeSuccess(
@@ -28,6 +28,7 @@ var _devkit = require('@nx/devkit');
28
28
  var _glob = require('glob');
29
29
  var _mimetypes = require('mime-types'); var _mimetypes2 = _interopRequireDefault(_mimetypes);
30
30
  var _child_process = require('child_process');
31
+ var _fs = require('fs');
31
32
  var _promises = require('fs/promises');
32
33
  async function runExecutor(options, context) {
33
34
  const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
@@ -186,19 +187,23 @@ ${metaJson}`);
186
187
  }
187
188
  await Promise.all(
188
189
  files.map(async (file) => {
189
- const name = _chunkZ2WQB55Rjs.correctPaths.call(void 0, file).replace(_chunkZ2WQB55Rjs.correctPaths.call(void 0, basePath), "");
190
- const type = _mimetypes2.default.lookup(name) || "application/octet-stream";
191
- _chunkZ2WQB55Rjs.writeTrace.call(void 0, `Uploading file: ${name} (content-type: ${type})`);
192
- await _chunkUAKLE2QOjs.r2UploadFile.call(void 0,
193
- client,
194
- bucketId,
195
- bucketPath,
196
- name,
197
- version,
198
- await _promises.readFile.call(void 0, file, { encoding: "utf8" }),
199
- type,
200
- isDryRun
201
- );
190
+ if (_optionalChain([_fs.statSync.call(void 0, file, {
191
+ throwIfNoEntry: false
192
+ }), 'optionalAccess', _25 => _25.isFile, 'call', _26 => _26()])) {
193
+ const name = _chunkZ2WQB55Rjs.correctPaths.call(void 0, file).replace(_chunkZ2WQB55Rjs.correctPaths.call(void 0, basePath), "");
194
+ const type = _mimetypes2.default.lookup(name) || "application/octet-stream";
195
+ _chunkZ2WQB55Rjs.writeTrace.call(void 0, `Uploading file: ${name} (content-type: ${type})`);
196
+ await _chunkUAKLE2QOjs.r2UploadFile.call(void 0,
197
+ client,
198
+ bucketId,
199
+ bucketPath,
200
+ name,
201
+ version,
202
+ await _promises.readFile.call(void 0, file, { encoding: "utf8" }),
203
+ type,
204
+ isDryRun
205
+ );
206
+ }
202
207
  })
203
208
  );
204
209
  _chunkZ2WQB55Rjs.writeSuccess.call(void 0,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-O2OONDQ5.mjs";
3
+ } from "./chunk-ZASFPAJZ.mjs";
4
4
  import {
5
5
  findWorkspaceRoot,
6
6
  getConfig
@@ -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.10",
10
+ version: "0.71.12",
11
11
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
12
12
  repository: {
13
13
  type: "github",
@@ -136,9 +136,9 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
136
136
  "@nx/js": "catalog:",
137
137
  "@nx/node": "catalog:",
138
138
  "@nx/web": "catalog:",
139
- "@storm-software/config": "1.134.60",
140
- "@storm-software/config-tools": "1.188.60",
141
- "@storm-software/workspace-tools": "1.294.4",
139
+ "@storm-software/config": "1.134.61",
140
+ "@storm-software/config-tools": "1.188.61",
141
+ "@storm-software/workspace-tools": "1.294.5",
142
142
  nx: "catalog:",
143
143
  tsup: "catalog:",
144
144
  wrangler: ">=3.58.0"
@@ -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.10",
10
+ version: "0.71.12",
11
11
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
12
12
  repository: {
13
13
  type: "github",
@@ -136,9 +136,9 @@ var require_package = __commonJS({
136
136
  "@nx/js": "catalog:",
137
137
  "@nx/node": "catalog:",
138
138
  "@nx/web": "catalog:",
139
- "@storm-software/config": "1.134.60",
140
- "@storm-software/config-tools": "1.188.60",
141
- "@storm-software/workspace-tools": "1.294.4",
139
+ "@storm-software/config": "1.134.61",
140
+ "@storm-software/config-tools": "1.188.61",
141
+ "@storm-software/workspace-tools": "1.294.5",
142
142
  nx: "catalog:",
143
143
  tsup: "catalog:",
144
144
  wrangler: ">=3.58.0"
package/dist/executors.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";require('./chunk-XO66D74Z.js');
2
2
  require('./chunk-QBD2OGUY.js');
3
3
  require('./chunk-J5JJZJO5.js');
4
- require('./chunk-T6V63PPD.js');
4
+ require('./chunk-PBIYDCVZ.js');
5
5
  require('./chunk-UAKLE2QO.js');
6
6
  require('./chunk-N7FW365Q.js');
7
7
  require('./chunk-VKMAYBQX.js');
@@ -1,7 +1,7 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
2
  import "./chunk-F6FHDDUJ.mjs";
3
3
  import "./chunk-FWIGE74R.mjs";
4
- import "./chunk-MAE2ZXHO.mjs";
4
+ import "./chunk-IG57VHT6.mjs";
5
5
  import "./chunk-5CMG7SUH.mjs";
6
6
  import "./chunk-3MAI3FU2.mjs";
7
7
  import "./chunk-SGTAZO2Q.mjs";
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkWEED6TPYjs = require('./chunk-WEED6TPY.js');
5
+ var _chunkHWGGRR3Yjs = require('./chunk-HWGGRR3Y.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkZHOESZRMjs = require('./chunk-ZHOESZRM.js');
9
+ var _chunkUY2WTOQGjs = require('./chunk-UY2WTOQG.js');
10
10
  require('./chunk-VKMAYBQX.js');
11
11
  require('./chunk-Z2WQB55R.js');
12
12
  require('./chunk-MCKGQKYU.js');
@@ -15,4 +15,4 @@ require('./chunk-MCKGQKYU.js');
15
15
 
16
16
 
17
17
 
18
- exports.applicationGenerator = _chunkWEED6TPYjs.applicationGenerator; exports.applicationSchematic = _chunkWEED6TPYjs.applicationSchematic; exports.initGenerator = _chunkZHOESZRMjs.initGenerator; exports.initSchematic = _chunkZHOESZRMjs.initSchematic;
18
+ exports.applicationGenerator = _chunkHWGGRR3Yjs.applicationGenerator; exports.applicationSchematic = _chunkHWGGRR3Yjs.applicationSchematic; exports.initGenerator = _chunkUY2WTOQGjs.initGenerator; exports.initSchematic = _chunkUY2WTOQGjs.initSchematic;
@@ -2,11 +2,11 @@ import "./chunk-3J7KBHMJ.mjs";
2
2
  import {
3
3
  applicationGenerator,
4
4
  applicationSchematic
5
- } from "./chunk-PQPQASGG.mjs";
5
+ } from "./chunk-T74Z7LCN.mjs";
6
6
  import {
7
7
  initGenerator,
8
8
  initSchematic
9
- } from "./chunk-O2OONDQ5.mjs";
9
+ } from "./chunk-ZASFPAJZ.mjs";
10
10
  import "./chunk-SGTAZO2Q.mjs";
11
11
  import "./chunk-TPNHSNNZ.mjs";
12
12
  import "./chunk-TYYFTZLS.mjs";
package/dist/index.js CHANGED
@@ -3,15 +3,15 @@ require('./chunk-DHBG5ASJ.js');
3
3
 
4
4
 
5
5
 
6
- var _chunkWEED6TPYjs = require('./chunk-WEED6TPY.js');
6
+ var _chunkHWGGRR3Yjs = require('./chunk-HWGGRR3Y.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkZHOESZRMjs = require('./chunk-ZHOESZRM.js');
10
+ var _chunkUY2WTOQGjs = require('./chunk-UY2WTOQG.js');
11
11
  require('./chunk-CVGPWUNP.js');
12
12
  require('./chunk-QBD2OGUY.js');
13
13
  require('./chunk-J5JJZJO5.js');
14
- require('./chunk-T6V63PPD.js');
14
+ require('./chunk-PBIYDCVZ.js');
15
15
 
16
16
 
17
17
 
@@ -155,4 +155,4 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
155
155
 
156
156
 
157
157
 
158
- exports.applicationGenerator = _chunkWEED6TPYjs.applicationGenerator; exports.applicationSchematic = _chunkWEED6TPYjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkUAKLE2QOjs.getInternalDependencies; exports.initGenerator = _chunkZHOESZRMjs.initGenerator; exports.initSchematic = _chunkZHOESZRMjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkUAKLE2QOjs.r2UploadFile;
158
+ exports.applicationGenerator = _chunkHWGGRR3Yjs.applicationGenerator; exports.applicationSchematic = _chunkHWGGRR3Yjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkUAKLE2QOjs.getInternalDependencies; exports.initGenerator = _chunkUY2WTOQGjs.initGenerator; exports.initSchematic = _chunkUY2WTOQGjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkUAKLE2QOjs.r2UploadFile;
package/dist/index.mjs CHANGED
@@ -3,15 +3,15 @@ import "./chunk-3J7KBHMJ.mjs";
3
3
  import {
4
4
  applicationGenerator,
5
5
  applicationSchematic
6
- } from "./chunk-PQPQASGG.mjs";
6
+ } from "./chunk-T74Z7LCN.mjs";
7
7
  import {
8
8
  initGenerator,
9
9
  initSchematic
10
- } from "./chunk-O2OONDQ5.mjs";
10
+ } from "./chunk-ZASFPAJZ.mjs";
11
11
  import "./chunk-7Z5PILRU.mjs";
12
12
  import "./chunk-F6FHDDUJ.mjs";
13
13
  import "./chunk-FWIGE74R.mjs";
14
- import "./chunk-MAE2ZXHO.mjs";
14
+ import "./chunk-IG57VHT6.mjs";
15
15
  import {
16
16
  getInternalDependencies,
17
17
  r2UploadFile
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkT6V63PPDjs = require('../../../chunk-T6V63PPD.js');
3
+ var _chunkPBIYDCVZjs = require('../../../chunk-PBIYDCVZ.js');
4
4
  require('../../../chunk-UAKLE2QO.js');
5
5
  require('../../../chunk-N7FW365Q.js');
6
6
  require('../../../chunk-VKMAYBQX.js');
@@ -8,4 +8,4 @@ require('../../../chunk-Z2WQB55R.js');
8
8
  require('../../../chunk-MCKGQKYU.js');
9
9
 
10
10
 
11
- exports.default = _chunkT6V63PPDjs.runExecutor;
11
+ exports.default = _chunkPBIYDCVZjs.runExecutor;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runExecutor
3
- } from "../../../chunk-MAE2ZXHO.mjs";
3
+ } from "../../../chunk-IG57VHT6.mjs";
4
4
  import "../../../chunk-5CMG7SUH.mjs";
5
5
  import "../../../chunk-3MAI3FU2.mjs";
6
6
  import "../../../chunk-SGTAZO2Q.mjs";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkZHOESZRMjs = require('../../../chunk-ZHOESZRM.js');
5
+ var _chunkUY2WTOQGjs = require('../../../chunk-UY2WTOQG.js');
6
6
  require('../../../chunk-MCKGQKYU.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunkZHOESZRMjs.generator_default; exports.initGenerator = _chunkZHOESZRMjs.initGenerator; exports.initSchematic = _chunkZHOESZRMjs.initSchematic;
11
+ exports.default = _chunkUY2WTOQGjs.generator_default; exports.initGenerator = _chunkUY2WTOQGjs.initGenerator; exports.initSchematic = _chunkUY2WTOQGjs.initSchematic;
@@ -2,7 +2,7 @@ import {
2
2
  generator_default,
3
3
  initGenerator,
4
4
  initSchematic
5
- } from "../../../chunk-O2OONDQ5.mjs";
5
+ } from "../../../chunk-ZASFPAJZ.mjs";
6
6
  import "../../../chunk-TYYFTZLS.mjs";
7
7
  export {
8
8
  generator_default as default,
@@ -2,8 +2,8 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkWEED6TPYjs = require('../../../chunk-WEED6TPY.js');
6
- require('../../../chunk-ZHOESZRM.js');
5
+ var _chunkHWGGRR3Yjs = require('../../../chunk-HWGGRR3Y.js');
6
+ require('../../../chunk-UY2WTOQG.js');
7
7
  require('../../../chunk-VKMAYBQX.js');
8
8
  require('../../../chunk-Z2WQB55R.js');
9
9
  require('../../../chunk-MCKGQKYU.js');
@@ -11,4 +11,4 @@ require('../../../chunk-MCKGQKYU.js');
11
11
 
12
12
 
13
13
 
14
- exports.applicationGenerator = _chunkWEED6TPYjs.applicationGenerator; exports.applicationSchematic = _chunkWEED6TPYjs.applicationSchematic; exports.default = _chunkWEED6TPYjs.generator_default;
14
+ exports.applicationGenerator = _chunkHWGGRR3Yjs.applicationGenerator; exports.applicationSchematic = _chunkHWGGRR3Yjs.applicationSchematic; exports.default = _chunkHWGGRR3Yjs.generator_default;
@@ -2,8 +2,8 @@ import {
2
2
  applicationGenerator,
3
3
  applicationSchematic,
4
4
  generator_default
5
- } from "../../../chunk-PQPQASGG.mjs";
6
- import "../../../chunk-O2OONDQ5.mjs";
5
+ } from "../../../chunk-T74Z7LCN.mjs";
6
+ import "../../../chunk-ZASFPAJZ.mjs";
7
7
  import "../../../chunk-SGTAZO2Q.mjs";
8
8
  import "../../../chunk-TPNHSNNZ.mjs";
9
9
  import "../../../chunk-TYYFTZLS.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/cloudflare-tools",
3
- "version": "0.71.11",
3
+ "version": "0.71.13",
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",
@@ -117,9 +117,9 @@
117
117
  "@nx/js": "^22.1.3",
118
118
  "@nx/node": "^22.1.3",
119
119
  "@nx/web": "^22.1.3",
120
- "@storm-software/config": "1.134.60",
121
- "@storm-software/config-tools": "1.188.60",
122
- "@storm-software/workspace-tools": "1.294.4",
120
+ "@storm-software/config": "1.134.61",
121
+ "@storm-software/config-tools": "1.188.61",
122
+ "@storm-software/workspace-tools": "1.294.5",
123
123
  "nx": "^22.1.3",
124
124
  "tsup": "8.4.0",
125
125
  "wrangler": ">=3.58.0"
@@ -151,5 +151,5 @@
151
151
  "publishConfig": { "access": "public" },
152
152
  "executors": "./executors.json",
153
153
  "generators": "./generators.json",
154
- "gitHead": "bda9525f76d13d896dab7379053c0888a335427d"
154
+ "gitHead": "8d71eaf37ce5ce8925bdd8a23af534d3adb786ef"
155
155
  }