@storm-software/cloudflare-tools 0.55.21 → 0.55.23

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 (37) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-T4IWTHDS.js → chunk-6GDCEDJO.js} +3 -3
  4. package/dist/{chunk-C7LFNTNE.mjs → chunk-AHT3CRUF.mjs} +3 -5
  5. package/dist/{chunk-BRNE2OJC.js → chunk-BCL7PY4I.js} +41 -41
  6. package/dist/{chunk-VN5NKV4M.js → chunk-DBSH4BRC.js} +12 -12
  7. package/dist/{chunk-X6VJDRKI.js → chunk-E7YOJ4JG.js} +8 -9
  8. package/dist/{chunk-AHEAMC5D.mjs → chunk-GNKRSWX6.mjs} +3 -3
  9. package/dist/{chunk-R5IK37XB.mjs → chunk-K4SZWADC.mjs} +3 -3
  10. package/dist/{chunk-LI7SJBJ3.mjs → chunk-KXSJMDJH.mjs} +1 -1
  11. package/dist/{chunk-5WDALT4X.js → chunk-RDDSMEJF.js} +1 -1
  12. package/dist/{chunk-MUNYIY4Y.js → chunk-SOJGUDFD.js} +16 -16
  13. package/dist/{chunk-ZO73VQJ6.js → chunk-T4YFTNGO.js} +160 -162
  14. package/dist/{chunk-PAM7JMC5.mjs → chunk-X64HH4GP.mjs} +1 -1
  15. package/dist/{chunk-WBCAYK6X.mjs → chunk-YEBDVDCV.mjs} +1 -1
  16. package/dist/{chunk-IMI2SM4Q.mjs → chunk-ZV2BVSPZ.mjs} +8 -9
  17. package/dist/executors.js +5 -5
  18. package/dist/executors.mjs +5 -5
  19. package/dist/generators.js +5 -5
  20. package/dist/generators.mjs +4 -4
  21. package/dist/index.js +8 -8
  22. package/dist/index.mjs +7 -7
  23. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  24. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  25. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  26. package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
  27. package/dist/src/executors/serve/executor.js +4 -4
  28. package/dist/src/executors/serve/executor.mjs +3 -3
  29. package/dist/src/generators/init/generator.js +2 -2
  30. package/dist/src/generators/init/generator.mjs +1 -1
  31. package/dist/src/generators/worker/generator.js +5 -5
  32. package/dist/src/generators/worker/generator.mjs +4 -4
  33. package/dist/src/utils/index.js +3 -3
  34. package/dist/src/utils/index.mjs +2 -2
  35. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  36. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  37. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 0.55.23 (2025-02-02)
2
+
3
+ ### Miscellaneous
4
+
5
+ - **monorepo:** Regenerate README markdown files ([81d0b65c2](https://github.com/storm-software/storm-ops/commit/81d0b65c2))
6
+
7
+ ## 0.55.22 (2025-02-02)
8
+
9
+ ### Miscellaneous
10
+
11
+ - **monorepo:** Regenerate README markdown files ([a2b221881](https://github.com/storm-software/storm-ops/commit/a2b221881))
12
+
1
13
  ## 0.55.21 (2025-02-02)
2
14
 
3
15
  ### Miscellaneous
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.55.20-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.55.22-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 -->
@@ -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 _chunkX6VJDRKIjs = require('./chunk-X6VJDRKI.js');
4
+ var _chunkE7YOJ4JGjs = require('./chunk-E7YOJ4JG.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
- _chunkX6VJDRKIjs.writeDebug.call(void 0, `Uploading file: ${fileKey}`);
14
+ _chunkE7YOJ4JGjs.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
- _chunkX6VJDRKIjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
27
+ _chunkE7YOJ4JGjs.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) => {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-KFNKJP2U.mjs";
5
5
  import {
6
6
  getConfig
7
- } from "./chunk-LI7SJBJ3.mjs";
7
+ } from "./chunk-KXSJMDJH.mjs";
8
8
  import {
9
9
  StormConfigSchema,
10
10
  correctPaths,
@@ -20,7 +20,7 @@ import {
20
20
  writeSuccess,
21
21
  writeTrace,
22
22
  writeWarning
23
- } from "./chunk-IMI2SM4Q.mjs";
23
+ } from "./chunk-ZV2BVSPZ.mjs";
24
24
  import {
25
25
  __dirname,
26
26
  __name,
@@ -114,9 +114,7 @@ var withRunExecutor = /* @__PURE__ */ __name((name, executorFn, executorOptions
114
114
  const sourceRoot = context2.projectsConfigurations.projects[context2.projectName].sourceRoot || projectRoot || workspaceRoot3;
115
115
  const projectName = context2.projectName;
116
116
  config.workspaceRoot = workspaceRoot3;
117
- writeInfo(`
118
- \u26A1 Running the ${name} executor for ${projectName}
119
- `, config);
117
+ writeInfo(`\u26A1 Running the ${name} executor for ${projectName} `, config);
120
118
  if (!executorOptions.skipReadingConfig) {
121
119
  writeTrace(`Loading the Storm Config from environment variables and storm.config.js file...
122
120
  - workspaceRoot: ${workspaceRoot3}
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- var _chunkX6VJDRKIjs = require('./chunk-X6VJDRKI.js');
17
+ var _chunkE7YOJ4JGjs = require('./chunk-E7YOJ4JG.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 || _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, filePath);
29
+ const workspacePath = filePath || _chunkE7YOJ4JGjs.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 : _chunkX6VJDRKIjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
38
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkE7YOJ4JGjs.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 : _chunkX6VJDRKIjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
49
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkE7YOJ4JGjs.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 : _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, filePath);
58
+ const workspacePath = filePath ? filePath : _chunkE7YOJ4JGjs.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
- _chunkX6VJDRKIjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
63
+ _chunkE7YOJ4JGjs.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
- _chunkX6VJDRKIjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
72
+ _chunkE7YOJ4JGjs.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
  }
@@ -114,15 +114,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, () => {
114
114
  licensing: process.env[`${prefix}LICENSING`] || void 0,
115
115
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
116
116
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
117
- configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkX6VJDRKIjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
118
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkX6VJDRKIjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
117
+ configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkE7YOJ4JGjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
118
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkE7YOJ4JGjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
119
119
  directories: {
120
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkX6VJDRKIjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
121
- data: process.env[`${prefix}DATA_DIR`] ? _chunkX6VJDRKIjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
122
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkX6VJDRKIjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
123
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkX6VJDRKIjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
124
- log: process.env[`${prefix}LOG_DIR`] ? _chunkX6VJDRKIjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
125
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkX6VJDRKIjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
120
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunkE7YOJ4JGjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
121
+ data: process.env[`${prefix}DATA_DIR`] ? _chunkE7YOJ4JGjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
122
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunkE7YOJ4JGjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
123
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunkE7YOJ4JGjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
124
+ log: process.env[`${prefix}LOG_DIR`] ? _chunkE7YOJ4JGjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
125
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunkE7YOJ4JGjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
126
126
  },
127
127
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
128
128
  env: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}ENV`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -145,24 +145,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, () => {
145
145
  cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
146
146
  container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
147
147
  },
148
- 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`])) ? _chunkX6VJDRKIjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
148
+ 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`])) ? _chunkE7YOJ4JGjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
149
149
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
150
150
  };
151
- const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkX6VJDRKIjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
151
+ const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkE7YOJ4JGjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
152
152
  config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
153
153
  ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
154
154
  return ret;
155
155
  }, {}) : getThemeColorConfigEnv(prefix);
156
- if (config.docs === _chunkX6VJDRKIjs.STORM_DEFAULT_DOCS) {
157
- if (config.homepage === _chunkX6VJDRKIjs.STORM_DEFAULT_HOMEPAGE) {
158
- config.docs = `${_chunkX6VJDRKIjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
156
+ if (config.docs === _chunkE7YOJ4JGjs.STORM_DEFAULT_DOCS) {
157
+ if (config.homepage === _chunkE7YOJ4JGjs.STORM_DEFAULT_HOMEPAGE) {
158
+ config.docs = `${_chunkE7YOJ4JGjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
159
159
  } else {
160
160
  config.docs = `${config.homepage}/docs`;
161
161
  }
162
162
  }
163
- if (config.licensing === _chunkX6VJDRKIjs.STORM_DEFAULT_LICENSING) {
164
- if (config.homepage === _chunkX6VJDRKIjs.STORM_DEFAULT_HOMEPAGE) {
165
- config.licensing = `${_chunkX6VJDRKIjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
163
+ if (config.licensing === _chunkE7YOJ4JGjs.STORM_DEFAULT_LICENSING) {
164
+ if (config.homepage === _chunkE7YOJ4JGjs.STORM_DEFAULT_HOMEPAGE) {
165
+ config.licensing = `${_chunkE7YOJ4JGjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
166
166
  } else {
167
167
  config.licensing = `${config.homepage}/docs`;
168
168
  }
@@ -300,31 +300,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (config)
300
300
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
301
301
  }
302
302
  if (config.configFile) {
303
- process.env[`${prefix}CONFIG_FILE`] = _chunkX6VJDRKIjs.correctPaths.call(void 0, config.configFile);
303
+ process.env[`${prefix}CONFIG_FILE`] = _chunkE7YOJ4JGjs.correctPaths.call(void 0, config.configFile);
304
304
  }
305
305
  if (config.workspaceRoot) {
306
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunkX6VJDRKIjs.correctPaths.call(void 0, config.workspaceRoot);
307
- process.env.NX_WORKSPACE_ROOT = _chunkX6VJDRKIjs.correctPaths.call(void 0, config.workspaceRoot);
308
- process.env.NX_WORKSPACE_ROOT_PATH = _chunkX6VJDRKIjs.correctPaths.call(void 0, config.workspaceRoot);
306
+ process.env[`${prefix}WORKSPACE_ROOT`] = _chunkE7YOJ4JGjs.correctPaths.call(void 0, config.workspaceRoot);
307
+ process.env.NX_WORKSPACE_ROOT = _chunkE7YOJ4JGjs.correctPaths.call(void 0, config.workspaceRoot);
308
+ process.env.NX_WORKSPACE_ROOT_PATH = _chunkE7YOJ4JGjs.correctPaths.call(void 0, config.workspaceRoot);
309
309
  }
310
310
  if (config.directories) {
311
311
  if (!config.skipCache && config.directories.cache) {
312
- process.env[`${prefix}CACHE_DIR`] = _chunkX6VJDRKIjs.correctPaths.call(void 0, config.directories.cache);
312
+ process.env[`${prefix}CACHE_DIR`] = _chunkE7YOJ4JGjs.correctPaths.call(void 0, config.directories.cache);
313
313
  }
314
314
  if (config.directories.data) {
315
- process.env[`${prefix}DATA_DIR`] = _chunkX6VJDRKIjs.correctPaths.call(void 0, config.directories.data);
315
+ process.env[`${prefix}DATA_DIR`] = _chunkE7YOJ4JGjs.correctPaths.call(void 0, config.directories.data);
316
316
  }
317
317
  if (config.directories.config) {
318
- process.env[`${prefix}CONFIG_DIR`] = _chunkX6VJDRKIjs.correctPaths.call(void 0, config.directories.config);
318
+ process.env[`${prefix}CONFIG_DIR`] = _chunkE7YOJ4JGjs.correctPaths.call(void 0, config.directories.config);
319
319
  }
320
320
  if (config.directories.temp) {
321
- process.env[`${prefix}TEMP_DIR`] = _chunkX6VJDRKIjs.correctPaths.call(void 0, config.directories.temp);
321
+ process.env[`${prefix}TEMP_DIR`] = _chunkE7YOJ4JGjs.correctPaths.call(void 0, config.directories.temp);
322
322
  }
323
323
  if (config.directories.log) {
324
- process.env[`${prefix}LOG_DIR`] = _chunkX6VJDRKIjs.correctPaths.call(void 0, config.directories.log);
324
+ process.env[`${prefix}LOG_DIR`] = _chunkE7YOJ4JGjs.correctPaths.call(void 0, config.directories.log);
325
325
  }
326
326
  if (config.directories.build) {
327
- process.env[`${prefix}BUILD_DIR`] = _chunkX6VJDRKIjs.correctPaths.call(void 0, config.directories.build);
327
+ process.env[`${prefix}BUILD_DIR`] = _chunkE7YOJ4JGjs.correctPaths.call(void 0, config.directories.build);
328
328
  }
329
329
  }
330
330
  if (config.skipCache !== void 0) {
@@ -378,8 +378,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (config)
378
378
  if (config.logLevel) {
379
379
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
380
380
  process.env.LOG_LEVEL = String(config.logLevel);
381
- process.env.NX_VERBOSE_LOGGING = String(_chunkX6VJDRKIjs.getLogLevel.call(void 0, config.logLevel) >= _chunkX6VJDRKIjs.LogLevel.DEBUG ? true : false);
382
- process.env.RUST_BACKTRACE = _chunkX6VJDRKIjs.getLogLevel.call(void 0, config.logLevel) >= _chunkX6VJDRKIjs.LogLevel.DEBUG ? "full" : "none";
381
+ process.env.NX_VERBOSE_LOGGING = String(_chunkE7YOJ4JGjs.getLogLevel.call(void 0, config.logLevel) >= _chunkE7YOJ4JGjs.LogLevel.DEBUG ? true : false);
382
+ process.env.RUST_BACKTRACE = _chunkE7YOJ4JGjs.getLogLevel.call(void 0, config.logLevel) >= _chunkE7YOJ4JGjs.LogLevel.DEBUG ? "full" : "none";
383
383
  }
384
384
  if (config.skipConfigLogging !== void 0) {
385
385
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
@@ -495,17 +495,17 @@ var createStormConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, asy
495
495
  if (!_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) || !_optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
496
496
  let _workspaceRoot = workspaceRoot;
497
497
  if (!_workspaceRoot) {
498
- _workspaceRoot = _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, );
498
+ _workspaceRoot = _chunkE7YOJ4JGjs.findWorkspaceRoot.call(void 0, );
499
499
  }
500
500
  const configEnv = getConfigEnv();
501
- const defaultConfig = await _chunkX6VJDRKIjs.getDefaultConfig.call(void 0, _workspaceRoot);
501
+ const defaultConfig = await _chunkE7YOJ4JGjs.getDefaultConfig.call(void 0, _workspaceRoot);
502
502
  const configFile = await getConfigFile(_workspaceRoot);
503
503
  if (!configFile && !skipLogs) {
504
- _chunkX6VJDRKIjs.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", {
504
+ _chunkE7YOJ4JGjs.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", {
505
505
  logLevel: "all"
506
506
  });
507
507
  }
508
- result = await _chunkX6VJDRKIjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
508
+ result = await _chunkE7YOJ4JGjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
509
509
  result.workspaceRoot ??= _workspaceRoot;
510
510
  } else {
511
511
  result = _static_cache.data;
@@ -540,8 +540,8 @@ var loadStormConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
540
540
  const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
541
541
  setConfigEnv(config);
542
542
  if (!skipLogs && !config.skipConfigLogging) {
543
- _chunkX6VJDRKIjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
544
- ${_chunkX6VJDRKIjs.formatLogMessage.call(void 0, config)}`, config);
543
+ _chunkE7YOJ4JGjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
544
+ ${_chunkE7YOJ4JGjs.formatLogMessage.call(void 0, config)}`, config);
545
545
  }
546
546
  return config;
547
547
  }, "loadStormConfig");
@@ -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 _chunk5WDALT4Xjs = require('./chunk-5WDALT4X.js');
3
+ var _chunkRDDSMEJFjs = require('./chunk-RDDSMEJF.js');
4
4
 
5
5
 
6
- var _chunkBRNE2OJCjs = require('./chunk-BRNE2OJC.js');
6
+ var _chunkBCL7PY4Ijs = require('./chunk-BCL7PY4I.js');
7
7
 
8
8
 
9
9
 
@@ -12,7 +12,7 @@ var _chunkBRNE2OJCjs = require('./chunk-BRNE2OJC.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkX6VJDRKIjs = require('./chunk-X6VJDRKI.js');
15
+ var _chunkE7YOJ4JGjs = require('./chunk-E7YOJ4JG.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 = _chunkX6VJDRKIjs.getStopwatch.call(void 0, "Storm Worker generator");
41
+ const stopwatch = _chunkE7YOJ4JGjs.getStopwatch.call(void 0, "Storm Worker generator");
42
42
  let config;
43
43
  try {
44
- _chunkX6VJDRKIjs.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
44
+ _chunkE7YOJ4JGjs.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
45
45
 
46
46
  `, config);
47
- const workspaceRoot = _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, );
48
- _chunkX6VJDRKIjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.json file...
47
+ const workspaceRoot = _chunkE7YOJ4JGjs.findWorkspaceRoot.call(void 0, );
48
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.json file...
49
49
  - workspaceRoot: ${workspaceRoot}`, config);
50
- config = await _chunkBRNE2OJCjs.getConfig.call(void 0, workspaceRoot);
51
- _chunkX6VJDRKIjs.writeTrace.call(void 0, `Loaded Storm config into env:
50
+ config = await _chunkBCL7PY4Ijs.getConfig.call(void 0, workspaceRoot);
51
+ _chunkE7YOJ4JGjs.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 _chunk5WDALT4Xjs.generator_default.call(void 0, tree, {
55
+ tasks.push(await _chunkRDDSMEJFjs.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
- _chunkX6VJDRKIjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
111
- _chunkX6VJDRKIjs.writeError.call(void 0, `An exception was thrown in the generator's process
110
+ _chunkE7YOJ4JGjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
111
+ _chunkE7YOJ4JGjs.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
  };
@@ -611,55 +611,55 @@ var getLogFn = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (logLevel =
611
611
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
612
612
  return (message) => {
613
613
  console.error(`
614
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
614
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
615
615
  `);
616
616
  };
617
617
  }
618
618
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
619
619
  return (message) => {
620
620
  console.error(`
621
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
621
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
622
622
  `);
623
623
  };
624
624
  }
625
625
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
626
626
  return (message) => {
627
627
  console.warn(`
628
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
628
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
629
629
  `);
630
630
  };
631
631
  }
632
632
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
633
633
  return (message) => {
634
634
  console.info(`
635
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
635
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
636
636
  `);
637
637
  };
638
638
  }
639
639
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
640
640
  return (message) => {
641
641
  console.info(`
642
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
642
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
643
643
  `);
644
644
  };
645
645
  }
646
646
  if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
647
647
  return (message) => {
648
648
  console.debug(`
649
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
649
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
650
650
  `);
651
651
  };
652
652
  }
653
653
  if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
654
654
  return (message) => {
655
655
  console.debug(`
656
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
656
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
657
657
  `);
658
658
  };
659
659
  }
660
660
  return (message) => {
661
661
  console.log(`
662
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
662
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
663
663
  `);
664
664
  };
665
665
  }, "getLogFn");
@@ -676,7 +676,6 @@ var getStopwatch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name) =
676
676
  const end = process.hrtime(start);
677
677
  console.info(`
678
678
  > \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(end[0] * 1e3 + end[1] / 1e6)}ms to complete
679
-
680
679
  `);
681
680
  };
682
681
  }, "getStopwatch");
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  getInternalDependencies,
3
3
  r2UploadFile
4
- } from "./chunk-PAM7JMC5.mjs";
4
+ } from "./chunk-X64HH4GP.mjs";
5
5
  import {
6
6
  createCliOptions,
7
7
  getPackageInfo
8
8
  } from "./chunk-KFNKJP2U.mjs";
9
9
  import {
10
10
  getConfig
11
- } from "./chunk-LI7SJBJ3.mjs";
11
+ } from "./chunk-KXSJMDJH.mjs";
12
12
  import {
13
13
  findWorkspaceRoot,
14
14
  writeDebug,
15
15
  writeInfo,
16
16
  writeSuccess,
17
17
  writeWarning
18
- } from "./chunk-IMI2SM4Q.mjs";
18
+ } from "./chunk-ZV2BVSPZ.mjs";
19
19
  import {
20
20
  __name
21
21
  } from "./chunk-Y3XZCCPP.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-WBCAYK6X.mjs";
3
+ } from "./chunk-YEBDVDCV.mjs";
4
4
  import {
5
5
  getConfig
6
- } from "./chunk-LI7SJBJ3.mjs";
6
+ } from "./chunk-KXSJMDJH.mjs";
7
7
  import {
8
8
  findWorkspaceRoot,
9
9
  getStopwatch,
@@ -12,7 +12,7 @@ import {
12
12
  writeFatal,
13
13
  writeInfo,
14
14
  writeTrace
15
- } from "./chunk-IMI2SM4Q.mjs";
15
+ } from "./chunk-ZV2BVSPZ.mjs";
16
16
  import {
17
17
  __dirname,
18
18
  __name
@@ -14,7 +14,7 @@ import {
14
14
  joinPaths,
15
15
  writeTrace,
16
16
  writeWarning
17
- } from "./chunk-IMI2SM4Q.mjs";
17
+ } from "./chunk-ZV2BVSPZ.mjs";
18
18
  import {
19
19
  __name
20
20
  } from "./chunk-Y3XZCCPP.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.55.21",
11
+ version: "0.55.23",
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,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 _chunkT4IWTHDSjs = require('./chunk-T4IWTHDS.js');
4
+ var _chunk6GDCEDJOjs = require('./chunk-6GDCEDJO.js');
5
5
 
6
6
 
7
7
 
8
8
  var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
9
9
 
10
10
 
11
- var _chunkBRNE2OJCjs = require('./chunk-BRNE2OJC.js');
11
+ var _chunkBCL7PY4Ijs = require('./chunk-BCL7PY4I.js');
12
12
 
13
13
 
14
14
 
15
15
 
16
16
 
17
17
 
18
- var _chunkX6VJDRKIjs = require('./chunk-X6VJDRKI.js');
18
+ var _chunkE7YOJ4JGjs = require('./chunk-E7YOJ4JG.js');
19
19
 
20
20
 
21
21
  var _chunkJ5SB6L2Ljs = require('./chunk-J5SB6L2L.js');
@@ -36,8 +36,8 @@ async function runExecutor(options, context) {
36
36
  throw new Error("The executor requires projectsConfigurations.");
37
37
  }
38
38
  try {
39
- const workspaceRoot = _chunkX6VJDRKIjs.findWorkspaceRoot.call(void 0, );
40
- const config = await _chunkBRNE2OJCjs.getConfig.call(void 0, workspaceRoot);
39
+ const workspaceRoot = _chunkE7YOJ4JGjs.findWorkspaceRoot.call(void 0, );
40
+ const config = await _chunkBCL7PY4Ijs.getConfig.call(void 0, workspaceRoot);
41
41
  const sourceRoot = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.sourceRoot]), () => ( workspaceRoot));
42
42
  const projectName = _nullishCoalesce(_optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.name]), () => ( context.projectName));
43
43
  const projectDetails = _chunkVTHBMY4Bjs.getPackageInfo.call(void 0, context.projectsConfigurations.projects[context.projectName]);
@@ -62,7 +62,7 @@ async function runExecutor(options, context) {
62
62
  if (!projectGraph) {
63
63
  throw new Error("No project graph found in cache");
64
64
  }
65
- _chunkX6VJDRKIjs.writeInfo.call(void 0, `Publishing ${context.projectName} to the Storm Registry at ${endpoint}`);
65
+ _chunkE7YOJ4JGjs.writeInfo.call(void 0, `Publishing ${context.projectName} to the Storm Registry at ${endpoint}`);
66
66
  const s3Client = new (0, _clients3.S3)({
67
67
  region: "auto",
68
68
  endpoint,
@@ -72,12 +72,12 @@ async function runExecutor(options, context) {
72
72
  }
73
73
  });
74
74
  const version = _optionalChain([projectDetails, 'access', _18 => _18.content, 'optionalAccess', _19 => _19.version]);
75
- _chunkX6VJDRKIjs.writeInfo.call(void 0, `Generated component version: ${version}`);
75
+ _chunkE7YOJ4JGjs.writeInfo.call(void 0, `Generated component version: ${version}`);
76
76
  const files = await _glob.glob.call(void 0, _devkit.joinPathFragments.call(void 0, sourceRoot, "**/*"), {
77
77
  ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
78
78
  });
79
79
  const projectPath = `registry/${context.projectName}`;
80
- const internalDependencies = await _chunkT4IWTHDSjs.getInternalDependencies.call(void 0, context.projectName, projectGraph);
80
+ const internalDependencies = await _chunk6GDCEDJOjs.getInternalDependencies.call(void 0, context.projectName, projectGraph);
81
81
  const dependencies = internalDependencies.filter((projectNode) => !projectNode.data.tags || projectNode.data.tags.every((tag) => tag.toLowerCase() !== "component")).reduce((ret, dep) => {
82
82
  if (!ret[dep.name]) {
83
83
  ret[dep.name] = "latest";
@@ -85,14 +85,14 @@ async function runExecutor(options, context) {
85
85
  return ret;
86
86
  }, _nullishCoalesce(projectDetails.content.dependencies, () => ( {})));
87
87
  const release = _nullishCoalesce(options.tag, () => ( _child_process.execSync.call(void 0, "npm config get tag").toString().trim()));
88
- _chunkX6VJDRKIjs.writeInfo.call(void 0, `Clearing out existing items in ${projectPath}`);
88
+ _chunkE7YOJ4JGjs.writeInfo.call(void 0, `Clearing out existing items in ${projectPath}`);
89
89
  if (!isDryRun) {
90
90
  const response = await s3Client.listObjects({
91
91
  Bucket: options.bucketId,
92
92
  Prefix: projectPath
93
93
  });
94
94
  if (_optionalChain([response, 'optionalAccess', _20 => _20.Contents]) && response.Contents.length > 0) {
95
- _chunkX6VJDRKIjs.writeDebug.call(void 0, `Deleting the following existing items from the component registry: ${response.Contents.map((item) => item.Key).join(", ")}`);
95
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, `Deleting the following existing items from the component registry: ${response.Contents.map((item) => item.Key).join(", ")}`);
96
96
  await Promise.all(response.Contents.map((item) => s3Client.deleteObjects({
97
97
  Bucket: options.bucketId,
98
98
  Delete: {
@@ -105,10 +105,10 @@ async function runExecutor(options, context) {
105
105
  }
106
106
  })));
107
107
  } else {
108
- _chunkX6VJDRKIjs.writeDebug.call(void 0, `No existing items to delete in the component registry path ${projectPath}`);
108
+ _chunkE7YOJ4JGjs.writeDebug.call(void 0, `No existing items to delete in the component registry path ${projectPath}`);
109
109
  }
110
110
  } else {
111
- _chunkX6VJDRKIjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
111
+ _chunkE7YOJ4JGjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
112
112
  }
113
113
  const meta = {
114
114
  name: context.projectName,
@@ -124,16 +124,16 @@ async function runExecutor(options, context) {
124
124
  meta.devDependencies = projectDetails.content.devDependencies;
125
125
  }
126
126
  const metaJson = JSON.stringify(meta);
127
- _chunkX6VJDRKIjs.writeInfo.call(void 0, `Generating meta.json file:
127
+ _chunkE7YOJ4JGjs.writeInfo.call(void 0, `Generating meta.json file:
128
128
  ${metaJson}`);
129
- await _chunkT4IWTHDSjs.r2UploadFile.call(void 0, s3Client, options.bucketId, projectPath, "meta.json", version, metaJson, "application/json", isDryRun);
129
+ await _chunk6GDCEDJOjs.r2UploadFile.call(void 0, s3Client, options.bucketId, projectPath, "meta.json", version, metaJson, "application/json", isDryRun);
130
130
  await Promise.all(files.map((file) => {
131
131
  const fileName = file.replaceAll("\\", "/").replace(sourceRoot.replaceAll("\\", "/"), "");
132
132
  return _promises.readFile.call(void 0, file, {
133
133
  encoding: "utf8"
134
- }).then((fileContent) => _chunkT4IWTHDSjs.r2UploadFile.call(void 0, s3Client, options.bucketId, projectPath, fileName, version, fileContent, "text/plain", isDryRun));
134
+ }).then((fileContent) => _chunk6GDCEDJOjs.r2UploadFile.call(void 0, s3Client, options.bucketId, projectPath, fileName, version, fileContent, "text/plain", isDryRun));
135
135
  }));
136
- _chunkX6VJDRKIjs.writeSuccess.call(void 0, `Successfully uploaded the ${projectName} component to the Cyclone Registry`, config);
136
+ _chunkE7YOJ4JGjs.writeSuccess.call(void 0, `Successfully uploaded the ${projectName} component to the Cyclone Registry`, config);
137
137
  return {
138
138
  success: true
139
139
  };