@storm-software/cloudflare-tools 0.63.28 → 0.63.30

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 (43) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-6TGFIMO5.js → chunk-2EUSZYH5.js} +2 -2
  4. package/dist/{chunk-DMJM3W36.js → chunk-7MAPPPBJ.js} +12 -12
  5. package/dist/{chunk-YKB65IP2.mjs → chunk-AUICIV5D.mjs} +2 -2
  6. package/dist/{chunk-IATTWS2I.js → chunk-CDTGH4KA.js} +4 -4
  7. package/dist/{chunk-PJGFLSPV.js → chunk-FQ6CFCZ4.js} +121 -121
  8. package/dist/{chunk-GL7JLG36.js → chunk-G7PYIAIC.js} +19 -19
  9. package/dist/{chunk-DW5K6TQT.mjs → chunk-GI4E6554.mjs} +1 -1
  10. package/dist/{chunk-J6WBZNBT.js → chunk-IJR65XVT.js} +3 -3
  11. package/dist/{chunk-T2OGA6MB.js → chunk-IRORGRVZ.js} +2 -2
  12. package/dist/{chunk-I5P7M77J.mjs → chunk-JGI2NCZG.mjs} +1 -1
  13. package/dist/{chunk-B7N6WOYD.mjs → chunk-KE6LNIF6.mjs} +1 -1
  14. package/dist/{chunk-ZHQVMJQB.mjs → chunk-LKGAK575.mjs} +4 -4
  15. package/dist/{chunk-AOLWFHH5.mjs → chunk-M66N7IMM.mjs} +4 -4
  16. package/dist/{chunk-KTFMIXUN.js → chunk-NU34IEWN.js} +27 -23
  17. package/dist/{chunk-RH2IXKSC.mjs → chunk-PH3DHY4Q.mjs} +26 -22
  18. package/dist/{chunk-LVQQJNPK.mjs → chunk-SKLIA2UT.mjs} +4 -4
  19. package/dist/{chunk-QTMO3CXB.mjs → chunk-UKV5HDN7.mjs} +3 -3
  20. package/dist/{chunk-D5YG7CU5.mjs → chunk-WMN2C3TD.mjs} +4 -4
  21. package/dist/{chunk-YMATJZEA.js → chunk-Z4HK3FW2.js} +43 -43
  22. package/dist/executors.js +7 -7
  23. package/dist/executors.mjs +8 -8
  24. package/dist/generators.js +5 -5
  25. package/dist/generators.mjs +5 -5
  26. package/dist/index.js +18 -18
  27. package/dist/index.mjs +10 -10
  28. package/dist/src/executors/cloudflare-publish/executor.js +6 -6
  29. package/dist/src/executors/cloudflare-publish/executor.mjs +6 -6
  30. package/dist/src/executors/r2-upload-publish/executor.js +6 -6
  31. package/dist/src/executors/r2-upload-publish/executor.mjs +6 -6
  32. package/dist/src/executors/serve/executor.js +6 -6
  33. package/dist/src/executors/serve/executor.mjs +5 -5
  34. package/dist/src/generators/init/generator.js +2 -2
  35. package/dist/src/generators/init/generator.mjs +2 -2
  36. package/dist/src/generators/worker/generator.js +5 -5
  37. package/dist/src/generators/worker/generator.mjs +5 -5
  38. package/dist/src/utils/index.js +3 -3
  39. package/dist/src/utils/index.mjs +3 -3
  40. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  41. package/dist/src/utils/r2-bucket-helpers.mjs +3 -3
  42. package/dist/tsup.config.mjs +1 -1
  43. package/package.json +4 -3
@@ -1,21 +1,21 @@
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
3
 
4
- var _chunkJ6WBZNBTjs = require('./chunk-J6WBZNBT.js');
4
+ var _chunkIJR65XVTjs = require('./chunk-IJR65XVT.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkKTFMIXUNjs = require('./chunk-KTFMIXUN.js');
8
+ var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
9
9
 
10
10
 
11
- var _chunkYMATJZEAjs = require('./chunk-YMATJZEA.js');
11
+ var _chunkZ4HK3FW2js = require('./chunk-Z4HK3FW2.js');
12
12
 
13
13
 
14
14
 
15
15
 
16
16
 
17
17
 
18
- var _chunkIATTWS2Ijs = require('./chunk-IATTWS2I.js');
18
+ var _chunkCDTGH4KAjs = require('./chunk-CDTGH4KA.js');
19
19
 
20
20
  // src/executors/r2-upload-publish/executor.ts
21
21
  var _clients3 = require('@aws-sdk/client-s3');
@@ -39,11 +39,11 @@ async function runExecutor(options, context) {
39
39
  throw new Error("The executor requires projectsConfigurations.");
40
40
  }
41
41
  try {
42
- const workspaceRoot = _chunkIATTWS2Ijs.findWorkspaceRoot.call(void 0, );
43
- const config = await _chunkYMATJZEAjs.getConfig.call(void 0, workspaceRoot);
42
+ const workspaceRoot = _chunkCDTGH4KAjs.findWorkspaceRoot.call(void 0, );
43
+ const config = await _chunkZ4HK3FW2js.getConfig.call(void 0, workspaceRoot);
44
44
  const sourceRoot = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.sourceRoot]), () => ( workspaceRoot));
45
45
  const projectName = _nullishCoalesce(_optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.name]), () => ( context.projectName));
46
- const projectDetails = _chunkKTFMIXUNjs.getPackageInfo.call(void 0,
46
+ const projectDetails = _chunkNU34IEWNjs.getPackageInfo.call(void 0,
47
47
  context.projectsConfigurations.projects[context.projectName]
48
48
  );
49
49
  if (!_optionalChain([projectDetails, 'optionalAccess', _15 => _15.content])) {
@@ -51,7 +51,7 @@ async function runExecutor(options, context) {
51
51
  `Could not find the project details for ${context.projectName}`
52
52
  );
53
53
  }
54
- const args = _chunkKTFMIXUNjs.createCliOptions.call(void 0, { ...options });
54
+ const args = _chunkNU34IEWNjs.createCliOptions.call(void 0, { ...options });
55
55
  if (isDryRun) {
56
56
  args.push("--dry-run");
57
57
  }
@@ -79,7 +79,7 @@ async function runExecutor(options, context) {
79
79
  "The executor failed because the project graph is not available. Please run the build command again."
80
80
  );
81
81
  }
82
- _chunkIATTWS2Ijs.writeInfo.call(void 0,
82
+ _chunkCDTGH4KAjs.writeInfo.call(void 0,
83
83
  `Publishing ${context.projectName} to the Storm Registry at ${endpoint}`
84
84
  );
85
85
  const s3Client = new (0, _clients3.S3)({
@@ -91,12 +91,12 @@ async function runExecutor(options, context) {
91
91
  }
92
92
  });
93
93
  const version = _optionalChain([projectDetails, 'access', _18 => _18.content, 'optionalAccess', _19 => _19.version]);
94
- _chunkIATTWS2Ijs.writeInfo.call(void 0, `Generated component version: ${version}`);
94
+ _chunkCDTGH4KAjs.writeInfo.call(void 0, `Generated component version: ${version}`);
95
95
  const files = await _glob.glob.call(void 0, _devkit.joinPathFragments.call(void 0, sourceRoot, "**/*"), {
96
96
  ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
97
97
  });
98
98
  const projectPath = `registry/${context.projectName}`;
99
- const internalDependencies = await _chunkJ6WBZNBTjs.getInternalDependencies.call(void 0,
99
+ const internalDependencies = await _chunkIJR65XVTjs.getInternalDependencies.call(void 0,
100
100
  context.projectName,
101
101
  projectGraph
102
102
  );
@@ -109,14 +109,14 @@ async function runExecutor(options, context) {
109
109
  return ret;
110
110
  }, _nullishCoalesce(projectDetails.content.dependencies, () => ( {})));
111
111
  const release = _nullishCoalesce(options.tag, () => ( _child_process.execSync.call(void 0, "npm config get tag").toString().trim()));
112
- _chunkIATTWS2Ijs.writeInfo.call(void 0, `Clearing out existing items in ${projectPath}`);
112
+ _chunkCDTGH4KAjs.writeInfo.call(void 0, `Clearing out existing items in ${projectPath}`);
113
113
  if (!isDryRun) {
114
114
  const response = await s3Client.listObjects({
115
115
  Bucket: options.bucketId,
116
116
  Prefix: projectPath
117
117
  });
118
118
  if (_optionalChain([response, 'optionalAccess', _20 => _20.Contents]) && response.Contents.length > 0) {
119
- _chunkIATTWS2Ijs.writeDebug.call(void 0,
119
+ _chunkCDTGH4KAjs.writeDebug.call(void 0,
120
120
  `Deleting the following existing items from the component registry: ${response.Contents.map((item) => item.Key).join(", ")}`
121
121
  );
122
122
  await Promise.all(
@@ -135,12 +135,12 @@ async function runExecutor(options, context) {
135
135
  )
136
136
  );
137
137
  } else {
138
- _chunkIATTWS2Ijs.writeDebug.call(void 0,
138
+ _chunkCDTGH4KAjs.writeDebug.call(void 0,
139
139
  `No existing items to delete in the component registry path ${projectPath}`
140
140
  );
141
141
  }
142
142
  } else {
143
- _chunkIATTWS2Ijs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
143
+ _chunkCDTGH4KAjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
144
144
  }
145
145
  const meta = {
146
146
  name: context.projectName,
@@ -158,9 +158,9 @@ async function runExecutor(options, context) {
158
158
  meta.devDependencies = projectDetails.content.devDependencies;
159
159
  }
160
160
  const metaJson = JSON.stringify(meta);
161
- _chunkIATTWS2Ijs.writeInfo.call(void 0, `Generating meta.json file:
161
+ _chunkCDTGH4KAjs.writeInfo.call(void 0, `Generating meta.json file:
162
162
  ${metaJson}`);
163
- await _chunkJ6WBZNBTjs.r2UploadFile.call(void 0,
163
+ await _chunkIJR65XVTjs.r2UploadFile.call(void 0,
164
164
  s3Client,
165
165
  options.bucketId,
166
166
  projectPath,
@@ -174,7 +174,7 @@ ${metaJson}`);
174
174
  files.map((file) => {
175
175
  const fileName = file.replaceAll("\\", "/").replace(sourceRoot.replaceAll("\\", "/"), "");
176
176
  return _promises.readFile.call(void 0, file, { encoding: "utf8" }).then(
177
- (fileContent) => _chunkJ6WBZNBTjs.r2UploadFile.call(void 0,
177
+ (fileContent) => _chunkIJR65XVTjs.r2UploadFile.call(void 0,
178
178
  s3Client,
179
179
  options.bucketId,
180
180
  projectPath,
@@ -187,7 +187,7 @@ ${metaJson}`);
187
187
  );
188
188
  })
189
189
  );
190
- _chunkIATTWS2Ijs.writeSuccess.call(void 0,
190
+ _chunkCDTGH4KAjs.writeSuccess.call(void 0,
191
191
  `Successfully uploaded the ${projectName} component to the Cyclone Registry`,
192
192
  config
193
193
  );
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeDebug,
3
3
  writeWarning
4
- } from "./chunk-LVQQJNPK.mjs";
4
+ } from "./chunk-SKLIA2UT.mjs";
5
5
 
6
6
  // src/utils/r2-bucket-helpers.ts
7
7
  import { createHash } from "node:crypto";
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkIATTWS2Ijs = require('./chunk-IATTWS2I.js');
4
+ var _chunkCDTGH4KAjs = require('./chunk-CDTGH4KA.js');
5
5
 
6
6
  // src/utils/r2-bucket-helpers.ts
7
7
  var _crypto = require('crypto');
8
8
  var r2UploadFile = async (client, bucketName, projectPath, fileName, version, fileContent, contentType = "text/plain", isDryRun = false) => {
9
9
  const checksum = _crypto.createHash.call(void 0, "sha256").update(fileContent).digest("base64");
10
10
  const fileKey = `${projectPath}/${fileName.startsWith("/") ? fileName.substring(1) : fileName}`;
11
- _chunkIATTWS2Ijs.writeDebug.call(void 0, `Uploading file: ${fileKey}`);
11
+ _chunkCDTGH4KAjs.writeDebug.call(void 0, `Uploading file: ${fileKey}`);
12
12
  if (!isDryRun) {
13
13
  await client.putObject({
14
14
  Bucket: bucketName,
@@ -21,7 +21,7 @@ var r2UploadFile = async (client, bucketName, projectPath, fileName, version, fi
21
21
  }
22
22
  });
23
23
  } else {
24
- _chunkIATTWS2Ijs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
24
+ _chunkCDTGH4KAjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
25
25
  }
26
26
  };
27
27
  var getInternalDependencies = (projectName, graph) => {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkKTFMIXUNjs = require('./chunk-KTFMIXUN.js');
3
+ var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
4
4
 
5
5
 
6
6
  var _chunkMCKGQKYUjs = require('./chunk-MCKGQKYU.js');
@@ -24,7 +24,7 @@ async function runExecutor(options, context) {
24
24
  _optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.root])
25
25
  );
26
26
  try {
27
- const args = _chunkKTFMIXUNjs.createCliOptions.call(void 0, { ...options });
27
+ const args = _chunkNU34IEWNjs.createCliOptions.call(void 0, { ...options });
28
28
  if (isDryRun) {
29
29
  args.push("--dry-run");
30
30
  }
@@ -15,7 +15,7 @@ import {
15
15
  stormWorkspaceConfigSchema,
16
16
  writeTrace,
17
17
  writeWarning
18
- } from "./chunk-LVQQJNPK.mjs";
18
+ } from "./chunk-SKLIA2UT.mjs";
19
19
 
20
20
  // ../config-tools/src/create-storm-config.ts
21
21
  import defu2 from "defu";
@@ -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__ca12f81e619c57ff2b683f43e7dacb4a/node_modules/tsup/assets/esm_shims.js
12
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__2266114fff0fdb01790950699e4af012/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);
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ProjectTagConstants,
3
3
  addProjectTag
4
- } from "./chunk-RH2IXKSC.mjs";
4
+ } from "./chunk-PH3DHY4Q.mjs";
5
5
  import {
6
6
  getConfig,
7
7
  getWorkspaceConfig
8
- } from "./chunk-I5P7M77J.mjs";
8
+ } from "./chunk-JGI2NCZG.mjs";
9
9
  import {
10
10
  findWorkspaceRoot,
11
11
  formatLogMessage,
@@ -19,11 +19,11 @@ import {
19
19
  writeSuccess,
20
20
  writeTrace,
21
21
  writeWarning
22
- } from "./chunk-LVQQJNPK.mjs";
22
+ } from "./chunk-SKLIA2UT.mjs";
23
23
  import {
24
24
  __dirname,
25
25
  __require
26
- } from "./chunk-B7N6WOYD.mjs";
26
+ } from "./chunk-KE6LNIF6.mjs";
27
27
 
28
28
  // ../config-tools/src/utilities/apply-workspace-tokens.ts
29
29
  var applyWorkspaceBaseTokens = async (option, tokenParams) => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-QTMO3CXB.mjs";
3
+ } from "./chunk-UKV5HDN7.mjs";
4
4
  import {
5
5
  getConfig
6
- } from "./chunk-I5P7M77J.mjs";
6
+ } from "./chunk-JGI2NCZG.mjs";
7
7
  import {
8
8
  findWorkspaceRoot,
9
9
  getStopwatch,
@@ -12,10 +12,10 @@ import {
12
12
  writeFatal,
13
13
  writeInfo,
14
14
  writeTrace
15
- } from "./chunk-LVQQJNPK.mjs";
15
+ } from "./chunk-SKLIA2UT.mjs";
16
16
  import {
17
17
  __dirname
18
- } from "./chunk-B7N6WOYD.mjs";
18
+ } from "./chunk-KE6LNIF6.mjs";
19
19
 
20
20
  // src/generators/worker/generator.ts
21
21
  import {
@@ -1,28 +1,8 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; }// ../workspace-tools/src/utils/create-cli-options.ts
2
- var _devkit = require('@nx/devkit');
3
- function createCliOptions(obj) {
4
- const args = [];
5
- for (const key in obj) {
6
- const value = obj[key];
7
- if (value) {
8
- const arg = _devkit.names.call(void 0, key).fileName;
9
- if (Array.isArray(value)) {
10
- args.push(
11
- `--${arg.toLowerCase()}=${value.map((v) => v.trim()).join(",")}`
12
- );
13
- } else {
14
- args.push(`--${arg.toLowerCase()}=${value}`);
15
- }
16
- }
17
- }
18
- return args;
19
- }
20
-
21
- // ../workspace-tools/src/utils/package-helpers.ts
22
-
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; }// ../workspace-tools/src/utils/package-helpers.ts
23
2
 
24
3
 
25
4
 
5
+ var _devkit = require('@nx/devkit');
26
6
 
27
7
  // ../config-tools/src/utilities/toml.ts
28
8
  var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
@@ -36,7 +16,11 @@ function parseCargoToml(cargoString) {
36
16
  }
37
17
 
38
18
  // ../workspace-tools/src/utils/package-helpers.ts
19
+ var _child_process = require('child_process');
39
20
  var _fs = require('fs');
21
+ var _promises = require('fs/promises');
22
+ var _path = require('path');
23
+ var _prettier = require('prettier');
40
24
 
41
25
  // ../workspace-tools/src/utils/project-tags.ts
42
26
  var ProjectTagConstants = {
@@ -137,9 +121,29 @@ var getPackageInfo = (project) => {
137
121
  return null;
138
122
  };
139
123
 
124
+ // ../workspace-tools/src/utils/create-cli-options.ts
125
+
126
+ function createCliOptions(obj) {
127
+ const args = [];
128
+ for (const key in obj) {
129
+ const value = obj[key];
130
+ if (value) {
131
+ const arg = _devkit.names.call(void 0, key).fileName;
132
+ if (Array.isArray(value)) {
133
+ args.push(
134
+ `--${arg.toLowerCase()}=${value.map((v) => v.trim()).join(",")}`
135
+ );
136
+ } else {
137
+ args.push(`--${arg.toLowerCase()}=${value}`);
138
+ }
139
+ }
140
+ }
141
+ return args;
142
+ }
143
+
140
144
 
141
145
 
142
146
 
143
147
 
144
148
 
145
- exports.ProjectTagConstants = ProjectTagConstants; exports.addProjectTag = addProjectTag; exports.createCliOptions = createCliOptions; exports.getPackageInfo = getPackageInfo;
149
+ exports.ProjectTagConstants = ProjectTagConstants; exports.addProjectTag = addProjectTag; exports.getPackageInfo = getPackageInfo; exports.createCliOptions = createCliOptions;
@@ -1,23 +1,3 @@
1
- // ../workspace-tools/src/utils/create-cli-options.ts
2
- import { names } from "@nx/devkit";
3
- function createCliOptions(obj) {
4
- const args = [];
5
- for (const key in obj) {
6
- const value = obj[key];
7
- if (value) {
8
- const arg = names(key).fileName;
9
- if (Array.isArray(value)) {
10
- args.push(
11
- `--${arg.toLowerCase()}=${value.map((v) => v.trim()).join(",")}`
12
- );
13
- } else {
14
- args.push(`--${arg.toLowerCase()}=${value}`);
15
- }
16
- }
17
- }
18
- return args;
19
- }
20
-
21
1
  // ../workspace-tools/src/utils/package-helpers.ts
22
2
  import {
23
3
  joinPathFragments,
@@ -36,7 +16,11 @@ function parseCargoToml(cargoString) {
36
16
  }
37
17
 
38
18
  // ../workspace-tools/src/utils/package-helpers.ts
19
+ import { execFileSync } from "child_process";
39
20
  import { existsSync } from "node:fs";
21
+ import { readFile, writeFile } from "node:fs/promises";
22
+ import { dirname, resolve } from "path";
23
+ import { format } from "prettier";
40
24
 
41
25
  // ../workspace-tools/src/utils/project-tags.ts
42
26
  var ProjectTagConstants = {
@@ -137,9 +121,29 @@ var getPackageInfo = (project) => {
137
121
  return null;
138
122
  };
139
123
 
124
+ // ../workspace-tools/src/utils/create-cli-options.ts
125
+ import { names } from "@nx/devkit";
126
+ function createCliOptions(obj) {
127
+ const args = [];
128
+ for (const key in obj) {
129
+ const value = obj[key];
130
+ if (value) {
131
+ const arg = names(key).fileName;
132
+ if (Array.isArray(value)) {
133
+ args.push(
134
+ `--${arg.toLowerCase()}=${value.map((v) => v.trim()).join(",")}`
135
+ );
136
+ } else {
137
+ args.push(`--${arg.toLowerCase()}=${value}`);
138
+ }
139
+ }
140
+ }
141
+ return args;
142
+ }
143
+
140
144
  export {
141
145
  ProjectTagConstants,
142
146
  addProjectTag,
143
- createCliOptions,
144
- getPackageInfo
147
+ getPackageInfo,
148
+ createCliOptions
145
149
  };
@@ -343,10 +343,10 @@ var RegistryConfigSchema = z.object({
343
343
  var ColorConfigSchema = SingleThemeColorConfigSchema.or(
344
344
  MultiThemeColorConfigSchema
345
345
  ).describe("Colors used for various workspace elements");
346
- var ColorConfigMapSchema = z.union([
347
- z.object({ base: ColorConfigSchema }),
348
- z.record(z.string(), ColorConfigSchema)
349
- ]);
346
+ var ColorConfigMapSchema = z.record(
347
+ z.union([z.literal("base"), z.string()]),
348
+ ColorConfigSchema
349
+ );
350
350
  var ExtendsItemSchema = z.string().trim().describe(
351
351
  "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
352
352
  );
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  __commonJS
3
- } from "./chunk-B7N6WOYD.mjs";
3
+ } from "./chunk-KE6LNIF6.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.63.27",
10
+ version: "0.63.29",
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",
@@ -175,7 +175,7 @@ var require_package = __commonJS({
175
175
  nx: "catalog:",
176
176
  tsup: "catalog:",
177
177
  untyped: "catalog:",
178
- wrangler: "^4.20.3"
178
+ wrangler: "^4.22.0"
179
179
  },
180
180
  publishConfig: {
181
181
  access: "public"
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  getInternalDependencies,
3
3
  r2UploadFile
4
- } from "./chunk-DW5K6TQT.mjs";
4
+ } from "./chunk-GI4E6554.mjs";
5
5
  import {
6
6
  createCliOptions,
7
7
  getPackageInfo
8
- } from "./chunk-RH2IXKSC.mjs";
8
+ } from "./chunk-PH3DHY4Q.mjs";
9
9
  import {
10
10
  getConfig
11
- } from "./chunk-I5P7M77J.mjs";
11
+ } from "./chunk-JGI2NCZG.mjs";
12
12
  import {
13
13
  findWorkspaceRoot,
14
14
  writeDebug,
15
15
  writeInfo,
16
16
  writeSuccess,
17
17
  writeWarning
18
- } from "./chunk-LVQQJNPK.mjs";
18
+ } from "./chunk-SKLIA2UT.mjs";
19
19
 
20
20
  // src/executors/r2-upload-publish/executor.ts
21
21
  import { S3 } from "@aws-sdk/client-s3";