@storm-software/cloudflare-tools 0.71.39 → 0.71.41

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 (36) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{chunk-UZODNPP7.js → chunk-APKXT2II.js} +34 -34
  3. package/dist/{chunk-E3ASASDB.mjs → chunk-B3DTG4AE.mjs} +3 -3
  4. package/dist/{chunk-Q5YIARCL.mjs → chunk-CET7FSBB.mjs} +41 -11
  5. package/dist/{chunk-QR2JEXGR.mjs → chunk-D2C4YN2P.mjs} +1 -1
  6. package/dist/{chunk-EHGAIWWE.js → chunk-ENJ4VPTU.js} +12 -12
  7. package/dist/{chunk-LCOEW472.mjs → chunk-F62R4VXI.mjs} +2 -2
  8. package/dist/{chunk-VXBGUJBD.js → chunk-J756GE67.js} +41 -11
  9. package/dist/{chunk-MA3DKCNU.mjs → chunk-JC5YYXOF.mjs} +3 -3
  10. package/dist/{chunk-KRWY2PQY.mjs → chunk-NFHONUD4.mjs} +3 -3
  11. package/dist/{chunk-4UDXVHCG.js → chunk-OVTCUMRN.js} +18 -18
  12. package/dist/{chunk-7YSJQ3QY.js → chunk-QJJBMXLH.js} +3 -3
  13. package/dist/{chunk-SBZF6GML.js → chunk-UIJO3L53.js} +165 -165
  14. package/dist/{chunk-I5SWGAWE.js → chunk-WRQN6TUO.js} +5 -5
  15. package/dist/{chunk-SNMJDKDN.mjs → chunk-ZNZEZZQ3.mjs} +1 -1
  16. package/dist/executors.js +5 -5
  17. package/dist/executors.mjs +5 -5
  18. package/dist/generators.js +5 -5
  19. package/dist/generators.mjs +4 -4
  20. package/dist/index.js +8 -8
  21. package/dist/index.mjs +7 -7
  22. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  23. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  24. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  25. package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
  26. package/dist/src/executors/serve/executor.js +4 -4
  27. package/dist/src/executors/serve/executor.mjs +3 -3
  28. package/dist/src/generators/init/generator.js +2 -2
  29. package/dist/src/generators/init/generator.mjs +1 -1
  30. package/dist/src/generators/worker/generator.js +5 -5
  31. package/dist/src/generators/worker/generator.mjs +4 -4
  32. package/dist/src/utils/index.js +3 -3
  33. package/dist/src/utils/index.mjs +2 -2
  34. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  35. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  36. package/package.json +4 -4
@@ -5,7 +5,7 @@ var _chunkKUGEZPUOjs = require('./chunk-KUGEZPUO.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkI5SWGAWEjs = require('./chunk-I5SWGAWE.js');
8
+ var _chunkWRQN6TUOjs = require('./chunk-WRQN6TUO.js');
9
9
 
10
10
 
11
11
 
@@ -13,7 +13,7 @@ var _chunkN7FW365Qjs = require('./chunk-N7FW365Q.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkUZODNPP7js = require('./chunk-UZODNPP7.js');
16
+ var _chunkAPKXT2IIjs = require('./chunk-APKXT2II.js');
17
17
 
18
18
 
19
19
 
@@ -21,7 +21,7 @@ var _chunkUZODNPP7js = require('./chunk-UZODNPP7.js');
21
21
 
22
22
 
23
23
 
24
- var _chunkVXBGUJBDjs = require('./chunk-VXBGUJBD.js');
24
+ var _chunkJ756GE67js = require('./chunk-J756GE67.js');
25
25
 
26
26
  // src/executors/r2-upload-publish/executor.ts
27
27
 
@@ -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 = _chunkUZODNPP7js.findWorkspaceRoot.call(void 0, );
57
- const config = await _chunkUZODNPP7js.getConfig.call(void 0, workspaceRoot);
56
+ const workspaceRoot = _chunkAPKXT2IIjs.findWorkspaceRoot.call(void 0, );
57
+ const config = await _chunkAPKXT2IIjs.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 = _chunkN7FW365Qjs.getPackageInfo.call(void 0,
60
60
  context.projectsConfigurations.projects[context.projectName]
@@ -92,7 +92,7 @@ async function runExecutor(options, context) {
92
92
  "The executor failed because the project graph is not available. Please run the build command again."
93
93
  );
94
94
  }
95
- _chunkVXBGUJBDjs.writeDebug.call(void 0,
95
+ _chunkJ756GE67js.writeDebug.call(void 0,
96
96
  `Publishing ${context.projectName} to the ${bucketId} R2 Bucket (at ${registry})`
97
97
  );
98
98
  const client = new (0, _clients3.S3Client)({
@@ -108,13 +108,13 @@ async function runExecutor(options, context) {
108
108
  });
109
109
  const version = _optionalChain([projectDetails, 'optionalAccess', _13 => _13.content, 'optionalAccess', _14 => _14.version]);
110
110
  if (version) {
111
- _chunkVXBGUJBDjs.writeDebug.call(void 0, `Starting upload version ${version}`);
111
+ _chunkJ756GE67js.writeDebug.call(void 0, `Starting upload version ${version}`);
112
112
  }
113
113
  const basePath = options.path;
114
- const files = await _glob.glob.call(void 0, _chunkVXBGUJBDjs.joinPaths.call(void 0, basePath, "**/*"), {
114
+ const files = await _glob.glob.call(void 0, _chunkJ756GE67js.joinPaths.call(void 0, basePath, "**/*"), {
115
115
  ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
116
116
  });
117
- const internalDependencies = await _chunkI5SWGAWEjs.getInternalDependencies.call(void 0,
117
+ const internalDependencies = await _chunkWRQN6TUOjs.getInternalDependencies.call(void 0,
118
118
  context.projectName,
119
119
  projectGraph
120
120
  );
@@ -128,7 +128,7 @@ async function runExecutor(options, context) {
128
128
  }, _nullishCoalesce(_optionalChain([projectDetails, 'optionalAccess', _15 => _15.content, 'access', _16 => _16.dependencies]), () => ( {})));
129
129
  const release = _nullishCoalesce(options.tag, () => ( _child_process.execSync.call(void 0, "npm config get tag").toString().trim()));
130
130
  if (options.clean === true) {
131
- _chunkVXBGUJBDjs.writeDebug.call(void 0, `Clearing out existing items in ${bucketPath}`);
131
+ _chunkJ756GE67js.writeDebug.call(void 0, `Clearing out existing items in ${bucketPath}`);
132
132
  if (!isDryRun) {
133
133
  const response = await client.send(
134
134
  new (0, _clients3.ListObjectsCommand)({
@@ -137,7 +137,7 @@ async function runExecutor(options, context) {
137
137
  })
138
138
  );
139
139
  if (_optionalChain([response, 'optionalAccess', _17 => _17.Contents]) && response.Contents.length > 0) {
140
- _chunkVXBGUJBDjs.writeTrace.call(void 0,
140
+ _chunkJ756GE67js.writeTrace.call(void 0,
141
141
  `Deleting the following existing items from the R2 bucket path ${bucketPath}: ${response.Contents.map((item) => item.Key).join(", ")}`
142
142
  );
143
143
  await client.send(
@@ -152,12 +152,12 @@ async function runExecutor(options, context) {
152
152
  })
153
153
  );
154
154
  } else {
155
- _chunkVXBGUJBDjs.writeDebug.call(void 0,
155
+ _chunkJ756GE67js.writeDebug.call(void 0,
156
156
  `No existing items to delete in the R2 bucket path ${bucketPath}`
157
157
  );
158
158
  }
159
159
  } else {
160
- _chunkVXBGUJBDjs.writeWarning.call(void 0, "[Dry run]: Skipping R2 bucket clean.");
160
+ _chunkJ756GE67js.writeWarning.call(void 0, "[Dry run]: Skipping R2 bucket clean.");
161
161
  }
162
162
  }
163
163
  if (options.writeMetaJson === true) {
@@ -178,7 +178,7 @@ async function runExecutor(options, context) {
178
178
  if (_optionalChain([projectDetails, 'optionalAccess', _22 => _22.type]) === "package.json") {
179
179
  meta.devDependencies = _optionalChain([projectDetails, 'optionalAccess', _23 => _23.content, 'optionalAccess', _24 => _24.devDependencies]);
180
180
  }
181
- await _chunkI5SWGAWEjs.uploadFile.call(void 0,
181
+ await _chunkWRQN6TUOjs.uploadFile.call(void 0,
182
182
  client,
183
183
  bucketId,
184
184
  bucketPath,
@@ -194,22 +194,22 @@ async function runExecutor(options, context) {
194
194
  if (_optionalChain([_fs.statSync.call(void 0, file, {
195
195
  throwIfNoEntry: false
196
196
  }), 'optionalAccess', _25 => _25.isFile, 'call', _26 => _26()])) {
197
- const name = _chunkVXBGUJBDjs.correctPaths.call(void 0, file).replace(_chunkVXBGUJBDjs.correctPaths.call(void 0, basePath), "");
197
+ const name = _chunkJ756GE67js.correctPaths.call(void 0, file).replace(_chunkJ756GE67js.correctPaths.call(void 0, basePath), "");
198
198
  const type = _mimetypes2.default.lookup(name) || "application/octet-stream";
199
- await _chunkI5SWGAWEjs.uploadFile.call(void 0,
199
+ await _chunkWRQN6TUOjs.uploadFile.call(void 0,
200
200
  client,
201
201
  bucketId,
202
202
  bucketPath,
203
203
  name,
204
204
  version,
205
- await _promises.readFile.call(void 0, file, _chunkI5SWGAWEjs.getEncoding.call(void 0, type)),
205
+ await _promises.readFile.call(void 0, file, _chunkWRQN6TUOjs.getEncoding.call(void 0, type)),
206
206
  type,
207
207
  isDryRun
208
208
  );
209
209
  }
210
210
  })
211
211
  );
212
- _chunkVXBGUJBDjs.writeSuccess.call(void 0,
212
+ _chunkJ756GE67js.writeSuccess.call(void 0,
213
213
  `Successfully uploaded the ${projectName} project to the Cloudflare R2 bucket.`,
214
214
  config
215
215
  );
@@ -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.38",
10
+ version: "0.71.40",
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",
@@ -137,8 +137,8 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
137
137
  "@nx/node": "catalog:",
138
138
  "@nx/web": "catalog:",
139
139
  "@storm-software/config": "1.135.0",
140
- "@storm-software/config-tools": "1.188.77",
141
- "@storm-software/workspace-tools": "1.294.23",
140
+ "@storm-software/config-tools": "1.188.79",
141
+ "@storm-software/workspace-tools": "1.294.25",
142
142
  nx: "catalog:",
143
143
  tsup: "catalog:",
144
144
  wrangler: ">=3.58.0"