@storm-software/cloudflare-tools 0.55.63 → 0.55.65

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 (41) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-MLJ3OSJX.js → chunk-2YQVZSHO.js} +16 -16
  4. package/dist/{chunk-HBBHWDJS.mjs → chunk-4KLMKQMN.mjs} +11 -3
  5. package/dist/{chunk-KSTLYSXJ.mjs → chunk-65QGIJV4.mjs} +198 -1075
  6. package/dist/{chunk-VQLLSEHB.mjs → chunk-6YO5XRT2.mjs} +1 -1
  7. package/dist/{chunk-HA6XAX4C.mjs → chunk-7TRJIJ2N.mjs} +4 -4
  8. package/dist/{chunk-NRIZ2TF7.js → chunk-DWDJDH7W.js} +1 -1
  9. package/dist/{chunk-XFPT4O23.js → chunk-IVLCYFXD.js} +50 -42
  10. package/dist/{chunk-3O6RTR7W.mjs → chunk-NGKRYZY2.mjs} +2 -2
  11. package/dist/{chunk-UCUXAMZ3.js → chunk-NNDGLEEI.js} +12 -12
  12. package/dist/{chunk-RGBGVGWZ.mjs → chunk-PFHP5EL7.mjs} +2 -2
  13. package/dist/{chunk-UBEHQVYS.js → chunk-QGRENI3O.js} +3 -3
  14. package/dist/{chunk-ITJMNVMG.mjs → chunk-U2DL5OU3.mjs} +2 -2
  15. package/dist/{chunk-SSSAGTTW.mjs → chunk-U5WWE2HS.mjs} +1 -6
  16. package/dist/{chunk-IKNX7KR7.js → chunk-UQLMM4XV.js} +280 -1157
  17. package/dist/{chunk-TEEOPHLZ.js → chunk-V7LBWOVV.js} +1 -6
  18. package/dist/{chunk-CI3G746G.mjs → chunk-XPLMFM2J.mjs} +1 -1
  19. package/dist/{chunk-C3CWFFYT.mjs → chunk-YV555N5S.mjs} +5 -5
  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.js +8 -8
  25. package/dist/index.mjs +10 -10
  26. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  27. package/dist/src/executors/cloudflare-publish/executor.mjs +6 -6
  28. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  29. package/dist/src/executors/r2-upload-publish/executor.mjs +6 -6
  30. package/dist/src/executors/serve/executor.js +4 -4
  31. package/dist/src/executors/serve/executor.mjs +5 -5
  32. package/dist/src/generators/init/generator.js +2 -2
  33. package/dist/src/generators/init/generator.mjs +2 -2
  34. package/dist/src/generators/worker/generator.js +5 -5
  35. package/dist/src/generators/worker/generator.mjs +5 -5
  36. package/dist/src/utils/index.js +3 -3
  37. package/dist/src/utils/index.mjs +3 -3
  38. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  39. package/dist/src/utils/r2-bucket-helpers.mjs +3 -3
  40. package/dist/tsup.config.mjs +1 -1
  41. package/package.json +13 -39
@@ -11,7 +11,7 @@ var __commonJS = (cb, mod) => function __require2() {
11
11
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
12
  };
13
13
 
14
- // ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.52.3_@types+node@22.14.0__@swc+core@1.7.26_@swc+h_1f0f2af312616e61530d7e6463ffcaf7/node_modules/tsup/assets/esm_shims.js
14
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=6f5ec3d4990820b9e30a2e3135e1e171cde70966824e3b0ca9c0d2f02fc93f24__aad0536395a8d4adbad069f47cf0551b/node_modules/tsup/assets/esm_shims.js
15
15
  import { fileURLToPath } from "url";
16
16
  import path from "path";
17
17
  var getFilename = /* @__PURE__ */ __name(() => fileURLToPath(import.meta.url), "getFilename");
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-3O6RTR7W.mjs";
3
+ } from "./chunk-NGKRYZY2.mjs";
4
4
  import {
5
5
  getConfig
6
- } from "./chunk-HBBHWDJS.mjs";
6
+ } from "./chunk-4KLMKQMN.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-SSSAGTTW.mjs";
15
+ } from "./chunk-U5WWE2HS.mjs";
16
16
  import {
17
17
  __dirname,
18
18
  __name
19
- } from "./chunk-VQLLSEHB.mjs";
19
+ } from "./chunk-6YO5XRT2.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";
@@ -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.55.63",
11
+ version: "0.55.65",
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",
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- var _chunkTEEOPHLZjs = require('./chunk-TEEOPHLZ.js');
17
+ var _chunkV7LBWOVVjs = require('./chunk-V7LBWOVV.js');
18
18
 
19
19
 
20
20
  var _chunkJ5SB6L2Ljs = require('./chunk-J5SB6L2L.js');
@@ -26,7 +26,7 @@ var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
26
26
  var _c12 = require('c12');
27
27
 
28
28
  var getConfigFileByName = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (fileName, filePath, options = {}) => {
29
- const workspacePath = filePath || _chunkTEEOPHLZjs.findWorkspaceRoot.call(void 0, filePath);
29
+ const workspacePath = filePath || _chunkV7LBWOVVjs.findWorkspaceRoot.call(void 0, filePath);
30
30
  const configs = await Promise.all([
31
31
  _c12.loadConfig.call(void 0, {
32
32
  cwd: workspacePath,
@@ -35,7 +35,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, a
35
35
  envName: _optionalChain([fileName, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]),
36
36
  jitiOptions: {
37
37
  debug: false,
38
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkTEEOPHLZjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
38
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkV7LBWOVVjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
39
39
  },
40
40
  ...options
41
41
  }),
@@ -46,7 +46,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, a
46
46
  envName: _optionalChain([fileName, 'optionalAccess', _3 => _3.toUpperCase, 'call', _4 => _4()]),
47
47
  jitiOptions: {
48
48
  debug: false,
49
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkTEEOPHLZjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
49
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkV7LBWOVVjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
50
50
  },
51
51
  configFile: fileName,
52
52
  ...options
@@ -55,12 +55,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, a
55
55
  return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
56
56
  }, "getConfigFileByName");
57
57
  var getConfigFile = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
58
- const workspacePath = filePath ? filePath : _chunkTEEOPHLZjs.findWorkspaceRoot.call(void 0, filePath);
58
+ const workspacePath = filePath ? filePath : _chunkV7LBWOVVjs.findWorkspaceRoot.call(void 0, filePath);
59
59
  const result = await getConfigFileByName("storm-workspace", workspacePath);
60
60
  let config = result.config;
61
61
  const configFile = result.configFile;
62
62
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
63
- _chunkTEEOPHLZjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
63
+ _chunkV7LBWOVVjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
64
64
  logLevel: "all"
65
65
  });
66
66
  }
@@ -69,7 +69,7 @@ var getConfigFile = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (
69
69
  for (const result2 of results) {
70
70
  if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
71
71
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
72
- _chunkTEEOPHLZjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
72
+ _chunkV7LBWOVVjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
73
73
  logLevel: "all"
74
74
  });
75
75
  }
@@ -132,15 +132,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, () => {
132
132
  contact: process.env[`${prefix}CONTACT`] || void 0,
133
133
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
134
134
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
135
- configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkTEEOPHLZjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
136
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkTEEOPHLZjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
135
+ configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkV7LBWOVVjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
136
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkV7LBWOVVjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
137
137
  directories: {
138
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkTEEOPHLZjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkTEEOPHLZjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
139
- data: process.env[`${prefix}DATA_DIR`] ? _chunkTEEOPHLZjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkTEEOPHLZjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
140
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkTEEOPHLZjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkTEEOPHLZjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
141
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkTEEOPHLZjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkTEEOPHLZjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
142
- log: process.env[`${prefix}LOG_DIR`] ? _chunkTEEOPHLZjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkTEEOPHLZjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
143
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkTEEOPHLZjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkTEEOPHLZjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
138
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunkV7LBWOVVjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkV7LBWOVVjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
139
+ data: process.env[`${prefix}DATA_DIR`] ? _chunkV7LBWOVVjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkV7LBWOVVjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
140
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunkV7LBWOVVjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkV7LBWOVVjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
141
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunkV7LBWOVVjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkV7LBWOVVjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
142
+ log: process.env[`${prefix}LOG_DIR`] ? _chunkV7LBWOVVjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkV7LBWOVVjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
143
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunkV7LBWOVVjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkV7LBWOVVjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
144
144
  },
145
145
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
146
146
  mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -163,24 +163,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, () => {
163
163
  cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
164
164
  container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
165
165
  },
166
- logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? _chunkTEEOPHLZjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
166
+ logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? _chunkV7LBWOVVjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
167
167
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
168
168
  };
169
- const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkTEEOPHLZjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
169
+ const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkV7LBWOVVjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
170
170
  config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
171
171
  ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
172
172
  return ret;
173
173
  }, {}) : getThemeColorConfigEnv(prefix);
174
- if (config.docs === _chunkTEEOPHLZjs.STORM_DEFAULT_DOCS) {
175
- if (config.homepage === _chunkTEEOPHLZjs.STORM_DEFAULT_HOMEPAGE) {
176
- config.docs = `${_chunkTEEOPHLZjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
174
+ if (config.docs === _chunkV7LBWOVVjs.STORM_DEFAULT_DOCS) {
175
+ if (config.homepage === _chunkV7LBWOVVjs.STORM_DEFAULT_HOMEPAGE) {
176
+ config.docs = `${_chunkV7LBWOVVjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
177
177
  } else {
178
178
  config.docs = `${config.homepage}/docs`;
179
179
  }
180
180
  }
181
- if (config.licensing === _chunkTEEOPHLZjs.STORM_DEFAULT_LICENSING) {
182
- if (config.homepage === _chunkTEEOPHLZjs.STORM_DEFAULT_HOMEPAGE) {
183
- config.licensing = `${_chunkTEEOPHLZjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
181
+ if (config.licensing === _chunkV7LBWOVVjs.STORM_DEFAULT_LICENSING) {
182
+ if (config.homepage === _chunkV7LBWOVVjs.STORM_DEFAULT_HOMEPAGE) {
183
+ config.licensing = `${_chunkV7LBWOVVjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
184
184
  } else {
185
185
  config.licensing = `${config.homepage}/docs`;
186
186
  }
@@ -350,36 +350,36 @@ var setConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (config)
350
350
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
351
351
  }
352
352
  if (config.configFile) {
353
- process.env[`${prefix}CONFIG_FILE`] = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.configFile);
353
+ process.env[`${prefix}CONFIG_FILE`] = _chunkV7LBWOVVjs.correctPaths.call(void 0, config.configFile);
354
354
  }
355
355
  if (config.workspaceRoot) {
356
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.workspaceRoot);
357
- process.env.NX_WORKSPACE_ROOT = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.workspaceRoot);
358
- process.env.NX_WORKSPACE_ROOT_PATH = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.workspaceRoot);
356
+ process.env[`${prefix}WORKSPACE_ROOT`] = _chunkV7LBWOVVjs.correctPaths.call(void 0, config.workspaceRoot);
357
+ process.env.NX_WORKSPACE_ROOT = _chunkV7LBWOVVjs.correctPaths.call(void 0, config.workspaceRoot);
358
+ process.env.NX_WORKSPACE_ROOT_PATH = _chunkV7LBWOVVjs.correctPaths.call(void 0, config.workspaceRoot);
359
359
  }
360
360
  if (config.directories) {
361
361
  if (!config.skipCache && config.directories.cache) {
362
- process.env[`${prefix}CACHE_DIR`] = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.directories.cache);
362
+ process.env[`${prefix}CACHE_DIR`] = _chunkV7LBWOVVjs.correctPaths.call(void 0, config.directories.cache);
363
363
  process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
364
364
  }
365
365
  if (config.directories.data) {
366
- process.env[`${prefix}DATA_DIR`] = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.directories.data);
366
+ process.env[`${prefix}DATA_DIR`] = _chunkV7LBWOVVjs.correctPaths.call(void 0, config.directories.data);
367
367
  process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
368
368
  }
369
369
  if (config.directories.config) {
370
- process.env[`${prefix}CONFIG_DIR`] = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.directories.config);
370
+ process.env[`${prefix}CONFIG_DIR`] = _chunkV7LBWOVVjs.correctPaths.call(void 0, config.directories.config);
371
371
  process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
372
372
  }
373
373
  if (config.directories.temp) {
374
- process.env[`${prefix}TEMP_DIR`] = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.directories.temp);
374
+ process.env[`${prefix}TEMP_DIR`] = _chunkV7LBWOVVjs.correctPaths.call(void 0, config.directories.temp);
375
375
  process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
376
376
  }
377
377
  if (config.directories.log) {
378
- process.env[`${prefix}LOG_DIR`] = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.directories.log);
378
+ process.env[`${prefix}LOG_DIR`] = _chunkV7LBWOVVjs.correctPaths.call(void 0, config.directories.log);
379
379
  process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
380
380
  }
381
381
  if (config.directories.build) {
382
- process.env[`${prefix}BUILD_DIR`] = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.directories.build);
382
+ process.env[`${prefix}BUILD_DIR`] = _chunkV7LBWOVVjs.correctPaths.call(void 0, config.directories.build);
383
383
  process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
384
384
  }
385
385
  }
@@ -434,8 +434,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (config)
434
434
  if (config.logLevel) {
435
435
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
436
436
  process.env.LOG_LEVEL = String(config.logLevel);
437
- process.env.NX_VERBOSE_LOGGING = String(_chunkTEEOPHLZjs.getLogLevel.call(void 0, config.logLevel) >= _chunkTEEOPHLZjs.LogLevel.DEBUG ? true : false);
438
- process.env.RUST_BACKTRACE = _chunkTEEOPHLZjs.getLogLevel.call(void 0, config.logLevel) >= _chunkTEEOPHLZjs.LogLevel.DEBUG ? "full" : "none";
437
+ process.env.NX_VERBOSE_LOGGING = String(_chunkV7LBWOVVjs.getLogLevel.call(void 0, config.logLevel) >= _chunkV7LBWOVVjs.LogLevel.DEBUG ? true : false);
438
+ process.env.RUST_BACKTRACE = _chunkV7LBWOVVjs.getLogLevel.call(void 0, config.logLevel) >= _chunkV7LBWOVVjs.LogLevel.DEBUG ? "full" : "none";
439
439
  }
440
440
  if (config.skipConfigLogging !== void 0) {
441
441
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
@@ -553,13 +553,13 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(vo
553
553
  if (!_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) || !_optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
554
554
  let _workspaceRoot = workspaceRoot;
555
555
  if (!_workspaceRoot) {
556
- _workspaceRoot = _chunkTEEOPHLZjs.findWorkspaceRoot.call(void 0, );
556
+ _workspaceRoot = _chunkV7LBWOVVjs.findWorkspaceRoot.call(void 0, );
557
557
  }
558
558
  const configEnv = getConfigEnv();
559
559
  const configFile = await getConfigFile(_workspaceRoot);
560
560
  if (!configFile) {
561
561
  if (!skipLogs) {
562
- _chunkTEEOPHLZjs.writeWarning.call(void 0, "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", {
562
+ _chunkV7LBWOVVjs.writeWarning.call(void 0, "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
563
  logLevel: "all"
564
564
  });
565
565
  }
@@ -567,8 +567,8 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(vo
567
567
  return void 0;
568
568
  }
569
569
  }
570
- const defaultConfig = await _chunkTEEOPHLZjs.getDefaultConfig.call(void 0, _workspaceRoot);
571
- result = await _chunkTEEOPHLZjs.stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
570
+ const defaultConfig = await _chunkV7LBWOVVjs.getDefaultConfig.call(void 0, _workspaceRoot);
571
+ result = await _chunkV7LBWOVVjs.stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
572
572
  result.workspaceRoot ??= _workspaceRoot;
573
573
  } else {
574
574
  result = _static_cache.data;
@@ -603,8 +603,8 @@ var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void
603
603
  const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
604
604
  setConfigEnv(config);
605
605
  if (!skipLogs && !config.skipConfigLogging) {
606
- _chunkTEEOPHLZjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
607
- ${_chunkTEEOPHLZjs.formatLogMessage.call(void 0, config)}`, config);
606
+ _chunkV7LBWOVVjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
607
+ ${_chunkV7LBWOVVjs.formatLogMessage.call(void 0, config)}`, config);
608
608
  }
609
609
  return config;
610
610
  }, "loadStormWorkspaceConfig");
@@ -613,7 +613,15 @@ ${_chunkTEEOPHLZjs.formatLogMessage.call(void 0, config)}`, config);
613
613
  var getConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (workspaceRoot, skipLogs = false) => {
614
614
  return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
615
615
  }, "getConfig");
616
+ var getWorkspaceConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (skipLogs = false, options = {}) => {
617
+ let workspaceRoot = options.workspaceRoot;
618
+ if (!workspaceRoot) {
619
+ workspaceRoot = _chunkV7LBWOVVjs.findWorkspaceRoot.call(void 0, options.cwd);
620
+ }
621
+ return getConfig(workspaceRoot, skipLogs);
622
+ }, "getWorkspaceConfig");
623
+
616
624
 
617
625
 
618
626
 
619
- exports.getConfig = getConfig;
627
+ exports.getConfig = getConfig; exports.getWorkspaceConfig = getWorkspaceConfig;
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  __commonJS,
3
3
  __name
4
- } from "./chunk-VQLLSEHB.mjs";
4
+ } from "./chunk-6YO5XRT2.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.63",
11
+ version: "0.55.65",
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,9 +1,9 @@
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 _chunkNRIZ2TF7js = require('./chunk-NRIZ2TF7.js');
3
+ var _chunkDWDJDH7Wjs = require('./chunk-DWDJDH7W.js');
4
4
 
5
5
 
6
- var _chunkXFPT4O23js = require('./chunk-XFPT4O23.js');
6
+ var _chunkIVLCYFXDjs = require('./chunk-IVLCYFXD.js');
7
7
 
8
8
 
9
9
 
@@ -12,7 +12,7 @@ var _chunkXFPT4O23js = require('./chunk-XFPT4O23.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkTEEOPHLZjs = require('./chunk-TEEOPHLZ.js');
15
+ var _chunkV7LBWOVVjs = require('./chunk-V7LBWOVV.js');
16
16
 
17
17
 
18
18
  var _chunkJ5SB6L2Ljs = require('./chunk-J5SB6L2L.js');
@@ -38,21 +38,21 @@ var vitestScript = `"test": "vitest run"`;
38
38
 
39
39
  // src/generators/worker/generator.ts
40
40
  async function applicationGenerator(tree, schema) {
41
- const stopwatch = _chunkTEEOPHLZjs.getStopwatch.call(void 0, "Storm Worker generator");
41
+ const stopwatch = _chunkV7LBWOVVjs.getStopwatch.call(void 0, "Storm Worker generator");
42
42
  let config;
43
43
  try {
44
- _chunkTEEOPHLZjs.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
44
+ _chunkV7LBWOVVjs.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
45
45
 
46
46
  `, config);
47
- const workspaceRoot = _chunkTEEOPHLZjs.findWorkspaceRoot.call(void 0, );
48
- _chunkTEEOPHLZjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.json file...
47
+ const workspaceRoot = _chunkV7LBWOVVjs.findWorkspaceRoot.call(void 0, );
48
+ _chunkV7LBWOVVjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.json file...
49
49
  - workspaceRoot: ${workspaceRoot}`, config);
50
- config = await _chunkXFPT4O23js.getConfig.call(void 0, workspaceRoot);
51
- _chunkTEEOPHLZjs.writeTrace.call(void 0, `Loaded Storm config into env:
50
+ config = await _chunkIVLCYFXDjs.getConfig.call(void 0, workspaceRoot);
51
+ _chunkV7LBWOVVjs.writeTrace.call(void 0, `Loaded Storm config into env:
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 _chunkNRIZ2TF7js.generator_default.call(void 0, tree, {
55
+ tasks.push(await _chunkDWDJDH7Wjs.generator_default.call(void 0, tree, {
56
56
  ...options,
57
57
  skipFormat: true
58
58
  }));
@@ -107,8 +107,8 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
107
107
  return _devkit.runTasksInSerial.call(void 0, ...tasks);
108
108
  } catch (error) {
109
109
  return () => {
110
- _chunkTEEOPHLZjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
111
- _chunkTEEOPHLZjs.writeError.call(void 0, `An exception was thrown in the generator's process
110
+ _chunkV7LBWOVVjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
111
+ _chunkV7LBWOVVjs.writeError.call(void 0, `An exception was thrown in the generator's process
112
112
  - Details: ${error.message}
113
113
  - Stacktrace: ${error.stack}`, config);
114
114
  };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createCliOptions
3
- } from "./chunk-CI3G746G.mjs";
3
+ } from "./chunk-XPLMFM2J.mjs";
4
4
  import {
5
5
  __name,
6
6
  __require
7
- } from "./chunk-VQLLSEHB.mjs";
7
+ } from "./chunk-6YO5XRT2.mjs";
8
8
 
9
9
  // src/executors/cloudflare-publish/executor.ts
10
10
  import { joinPathFragments } from "@nx/devkit";
@@ -1,7 +1,7 @@
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 _chunkTEEOPHLZjs = require('./chunk-TEEOPHLZ.js');
4
+ var _chunkV7LBWOVVjs = require('./chunk-V7LBWOVV.js');
5
5
 
6
6
 
7
7
  var _chunkJ5SB6L2Ljs = require('./chunk-J5SB6L2L.js');
@@ -11,7 +11,7 @@ var _crypto = require('crypto');
11
11
  var r2UploadFile = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (client, bucketName, projectPath, fileName, version, fileContent, contentType = "text/plain", isDryRun = false) => {
12
12
  const checksum = _crypto.createHash.call(void 0, "sha256").update(fileContent).digest("base64");
13
13
  const fileKey = `${projectPath}/${fileName.startsWith("/") ? fileName.substring(1) : fileName}`;
14
- _chunkTEEOPHLZjs.writeDebug.call(void 0, `Uploading file: ${fileKey}`);
14
+ _chunkV7LBWOVVjs.writeDebug.call(void 0, `Uploading file: ${fileKey}`);
15
15
  if (!isDryRun) {
16
16
  await client.putObject({
17
17
  Bucket: bucketName,
@@ -24,7 +24,7 @@ var r2UploadFile = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (c
24
24
  }
25
25
  });
26
26
  } else {
27
- _chunkTEEOPHLZjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
27
+ _chunkV7LBWOVVjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
28
28
  }
29
29
  }, "r2UploadFile");
30
30
  var getInternalDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (projectName, graph) => {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  writeDebug,
3
3
  writeWarning
4
- } from "./chunk-SSSAGTTW.mjs";
4
+ } from "./chunk-U5WWE2HS.mjs";
5
5
  import {
6
6
  __name
7
- } from "./chunk-VQLLSEHB.mjs";
7
+ } from "./chunk-6YO5XRT2.mjs";
8
8
 
9
9
  // src/utils/r2-bucket-helpers.ts
10
10
  import { createHash } from "node:crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __name
3
- } from "./chunk-VQLLSEHB.mjs";
3
+ } from "./chunk-6YO5XRT2.mjs";
4
4
 
5
5
  // ../config-tools/src/utilities/correct-paths.ts
6
6
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
@@ -632,10 +632,6 @@ var getLogLevelLabel = /* @__PURE__ */ __name((logLevel = LogLevel.INFO) => {
632
632
  }
633
633
  return LogLevelLabel.INFO;
634
634
  }, "getLogLevelLabel");
635
- var isVerbose = /* @__PURE__ */ __name((label = LogLevelLabel.SILENT) => {
636
- const logLevel = typeof label === "string" ? getLogLevel(label) : label;
637
- return logLevel >= LogLevel.DEBUG;
638
- }, "isVerbose");
639
635
 
640
636
  // ../config-tools/src/logger/console.ts
641
637
  var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
@@ -754,7 +750,6 @@ export {
754
750
  getDefaultConfig,
755
751
  getLogLevel,
756
752
  getLogLevelLabel,
757
- isVerbose,
758
753
  writeFatal,
759
754
  writeError,
760
755
  writeWarning,