@storm-software/cloudflare-tools 0.51.1 → 0.52.0

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-TH4KH35P.js → chunk-343PZDII.js} +1 -2
  4. package/dist/{chunk-TKQA6SOX.mjs → chunk-42I5F5WI.mjs} +3 -3
  5. package/dist/{chunk-ABCBYQGV.js → chunk-AZ4TIZKT.js} +3 -3
  6. package/dist/{chunk-3JXOPSOV.mjs → chunk-EF5HLWXR.mjs} +1 -1
  7. package/dist/{chunk-XBFOA367.mjs → chunk-ISVNV2UX.mjs} +1 -2
  8. package/dist/{chunk-OTQ3T47C.mjs → chunk-IU4KGUV4.mjs} +1 -1
  9. package/dist/{chunk-GTA63S6V.js → chunk-JLSFFOSI.js} +1 -1
  10. package/dist/{chunk-ZKG6FHEK.mjs → chunk-KZF3SN32.mjs} +3 -3
  11. package/dist/{chunk-3JJSMPBT.js → chunk-OQPC7VB6.js} +41 -41
  12. package/dist/{chunk-UOZU7VQX.mjs → chunk-TOEMUWVP.mjs} +1 -1
  13. package/dist/{chunk-T5WCUJXN.js → chunk-U7TTYCSL.js} +12 -12
  14. package/dist/{chunk-6PVMDNO7.mjs → chunk-Y56OHY47.mjs} +3 -3
  15. package/dist/{chunk-MHBXIMZJ.js → chunk-YLIOH3VA.js} +155 -155
  16. package/dist/{chunk-O2XVQQLQ.js → chunk-YVLGBYMR.js} +16 -16
  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.52.0 (2025-01-21)
2
+
3
+ ### Features
4
+
5
+ - **config-tools:** Added the `createLogger` function to drive CommonJs modules ([0cee1525](https://github.com/storm-software/storm-ops/commit/0cee1525))
6
+
7
+ ## 0.51.2 (2025-01-21)
8
+
9
+ ### Continuous Integration
10
+
11
+ - **workspace-tools:** Mark all internal packages as external ([f8c65aeb](https://github.com/storm-software/storm-ops/commit/f8c65aeb))
12
+
1
13
  ## 0.51.1 (2025-01-20)
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.51.0-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.51.2-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 -->
@@ -476,8 +476,7 @@ var isVerbose = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (label = Lo
476
476
  }, "isVerbose");
477
477
 
478
478
  // ../config-tools/src/logger/console.ts
479
- var getLogFn = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}) => {
480
- const _chalk = getChalk();
479
+ var getLogFn = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
481
480
  const colors = !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12.dark]) && !_optionalChain([config, 'access', _13 => _13.colors, 'optionalAccess', _14 => _14["base"]]) && !_optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16["base"], 'optionalAccess', _17 => _17.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24["base"]]) ? _optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26["base"]]) : DEFAULT_COLOR_CONFIG;
482
481
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
483
482
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  getInternalDependencies,
3
3
  r2UploadFile
4
- } from "./chunk-OTQ3T47C.mjs";
4
+ } from "./chunk-IU4KGUV4.mjs";
5
5
  import {
6
6
  createCliOptions,
7
7
  getPackageInfo
8
8
  } from "./chunk-XU6MTFCV.mjs";
9
9
  import {
10
10
  loadStormConfig
11
- } from "./chunk-UOZU7VQX.mjs";
11
+ } from "./chunk-TOEMUWVP.mjs";
12
12
  import {
13
13
  findWorkspaceRoot,
14
14
  writeDebug,
15
15
  writeInfo,
16
16
  writeSuccess,
17
17
  writeWarning
18
- } from "./chunk-XBFOA367.mjs";
18
+ } from "./chunk-ISVNV2UX.mjs";
19
19
  import {
20
20
  __name
21
21
  } from "./chunk-A7FFSBE6.mjs";
@@ -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 _chunkTH4KH35Pjs = require('./chunk-TH4KH35P.js');
4
+ var _chunk343PZDIIjs = require('./chunk-343PZDII.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
- _chunkTH4KH35Pjs.writeDebug.call(void 0, `Uploading file: ${fileKey}`);
14
+ _chunk343PZDIIjs.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
- _chunkTH4KH35Pjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
27
+ _chunk343PZDIIjs.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) => {
@@ -8,7 +8,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.51.1",
11
+ version: "0.52.0",
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",
@@ -476,8 +476,7 @@ var isVerbose = /* @__PURE__ */ __name((label = LogLevelLabel.SILENT) => {
476
476
  }, "isVerbose");
477
477
 
478
478
  // ../config-tools/src/logger/console.ts
479
- var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) => {
480
- const _chalk = getChalk();
479
+ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
481
480
  const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
482
481
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
483
482
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeDebug,
3
3
  writeWarning
4
- } from "./chunk-XBFOA367.mjs";
4
+ } from "./chunk-ISVNV2UX.mjs";
5
5
  import {
6
6
  __name
7
7
  } from "./chunk-A7FFSBE6.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.51.1",
11
+ version: "0.52.0",
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
  import {
2
2
  generator_default
3
- } from "./chunk-3JXOPSOV.mjs";
3
+ } from "./chunk-EF5HLWXR.mjs";
4
4
  import {
5
5
  loadStormConfig
6
- } from "./chunk-UOZU7VQX.mjs";
6
+ } from "./chunk-TOEMUWVP.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-XBFOA367.mjs";
15
+ } from "./chunk-ISVNV2UX.mjs";
16
16
  import {
17
17
  __dirname,
18
18
  __name
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- var _chunkTH4KH35Pjs = require('./chunk-TH4KH35P.js');
17
+ var _chunk343PZDIIjs = require('./chunk-343PZDII.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 || _chunkTH4KH35Pjs.findWorkspaceRoot.call(void 0, filePath);
29
+ const workspacePath = filePath || _chunk343PZDIIjs.findWorkspaceRoot.call(void 0, filePath);
30
30
  let config = await _c12.loadConfig.call(void 0, {
31
31
  cwd: workspacePath,
32
32
  packageJson: true,
@@ -34,7 +34,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, a
34
34
  envName: _optionalChain([fileName, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]),
35
35
  jitiOptions: {
36
36
  debug: false,
37
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkTH4KH35Pjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
37
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk343PZDIIjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
38
38
  },
39
39
  ...options
40
40
  });
@@ -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 : _chunkTH4KH35Pjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
49
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk343PZDIIjs.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 config;
56
56
  }, "getConfigFileByName");
57
57
  var getConfigFile = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
58
- const workspacePath = filePath ? filePath : _chunkTH4KH35Pjs.findWorkspaceRoot.call(void 0, filePath);
58
+ const workspacePath = filePath ? filePath : _chunk343PZDIIjs.findWorkspaceRoot.call(void 0, filePath);
59
59
  const result = await getConfigFileByName("storm", workspacePath);
60
60
  let config = result.config;
61
61
  const configFile = result.configFile;
62
62
  if (config && configFile && Object.keys(config).length > 0) {
63
- _chunkTH4KH35Pjs.writeSystem.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
63
+ _chunk343PZDIIjs.writeSystem.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
64
64
  logLevel: "all"
65
65
  });
66
66
  }
@@ -68,7 +68,7 @@ var getConfigFile = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (
68
68
  const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
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
- _chunkTH4KH35Pjs.writeSystem.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
71
+ _chunk343PZDIIjs.writeSystem.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
72
72
  logLevel: "all"
73
73
  });
74
74
  config = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
@@ -102,15 +102,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, () => {
102
102
  licensing: process.env[`${prefix}LICENSING`] || void 0,
103
103
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
104
104
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
105
- configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkTH4KH35Pjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
106
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkTH4KH35Pjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
105
+ configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunk343PZDIIjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
106
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunk343PZDIIjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
107
107
  directories: {
108
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkTH4KH35Pjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
109
- data: process.env[`${prefix}DATA_DIR`] ? _chunkTH4KH35Pjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
110
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkTH4KH35Pjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
111
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkTH4KH35Pjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
112
- log: process.env[`${prefix}LOG_DIR`] ? _chunkTH4KH35Pjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
113
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkTH4KH35Pjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
108
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunk343PZDIIjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
109
+ data: process.env[`${prefix}DATA_DIR`] ? _chunk343PZDIIjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
110
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunk343PZDIIjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
111
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunk343PZDIIjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
112
+ log: process.env[`${prefix}LOG_DIR`] ? _chunk343PZDIIjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
113
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunk343PZDIIjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
114
114
  },
115
115
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
116
116
  env: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}ENV`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -133,23 +133,23 @@ var getConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, () => {
133
133
  cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
134
134
  container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
135
135
  },
136
- 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`])) ? _chunkTH4KH35Pjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
136
+ 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`])) ? _chunk343PZDIIjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
137
137
  };
138
- const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkTH4KH35Pjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
138
+ const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunk343PZDIIjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
139
139
  config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
140
140
  ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
141
141
  return ret;
142
142
  }, {}) : getThemeColorConfigEnv(prefix);
143
- if (config.docs === _chunkTH4KH35Pjs.STORM_DEFAULT_DOCS) {
144
- if (config.homepage === _chunkTH4KH35Pjs.STORM_DEFAULT_HOMEPAGE) {
145
- config.docs = `${_chunkTH4KH35Pjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
143
+ if (config.docs === _chunk343PZDIIjs.STORM_DEFAULT_DOCS) {
144
+ if (config.homepage === _chunk343PZDIIjs.STORM_DEFAULT_HOMEPAGE) {
145
+ config.docs = `${_chunk343PZDIIjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
146
146
  } else {
147
147
  config.docs = `${config.homepage}/docs`;
148
148
  }
149
149
  }
150
- if (config.licensing === _chunkTH4KH35Pjs.STORM_DEFAULT_LICENSING) {
151
- if (config.homepage === _chunkTH4KH35Pjs.STORM_DEFAULT_HOMEPAGE) {
152
- config.licensing = `${_chunkTH4KH35Pjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
150
+ if (config.licensing === _chunk343PZDIIjs.STORM_DEFAULT_LICENSING) {
151
+ if (config.homepage === _chunk343PZDIIjs.STORM_DEFAULT_HOMEPAGE) {
152
+ config.licensing = `${_chunk343PZDIIjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
153
153
  } else {
154
154
  config.licensing = `${config.homepage}/docs`;
155
155
  }
@@ -287,31 +287,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (config)
287
287
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
288
288
  }
289
289
  if (config.configFile) {
290
- process.env[`${prefix}CONFIG_FILE`] = _chunkTH4KH35Pjs.correctPaths.call(void 0, config.configFile);
290
+ process.env[`${prefix}CONFIG_FILE`] = _chunk343PZDIIjs.correctPaths.call(void 0, config.configFile);
291
291
  }
292
292
  if (config.workspaceRoot) {
293
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunkTH4KH35Pjs.correctPaths.call(void 0, config.workspaceRoot);
294
- process.env.NX_WORKSPACE_ROOT = _chunkTH4KH35Pjs.correctPaths.call(void 0, config.workspaceRoot);
295
- process.env.NX_WORKSPACE_ROOT_PATH = _chunkTH4KH35Pjs.correctPaths.call(void 0, config.workspaceRoot);
293
+ process.env[`${prefix}WORKSPACE_ROOT`] = _chunk343PZDIIjs.correctPaths.call(void 0, config.workspaceRoot);
294
+ process.env.NX_WORKSPACE_ROOT = _chunk343PZDIIjs.correctPaths.call(void 0, config.workspaceRoot);
295
+ process.env.NX_WORKSPACE_ROOT_PATH = _chunk343PZDIIjs.correctPaths.call(void 0, config.workspaceRoot);
296
296
  }
297
297
  if (config.directories) {
298
298
  if (!config.skipCache && config.directories.cache) {
299
- process.env[`${prefix}CACHE_DIR`] = _chunkTH4KH35Pjs.correctPaths.call(void 0, config.directories.cache);
299
+ process.env[`${prefix}CACHE_DIR`] = _chunk343PZDIIjs.correctPaths.call(void 0, config.directories.cache);
300
300
  }
301
301
  if (config.directories.data) {
302
- process.env[`${prefix}DATA_DIR`] = _chunkTH4KH35Pjs.correctPaths.call(void 0, config.directories.data);
302
+ process.env[`${prefix}DATA_DIR`] = _chunk343PZDIIjs.correctPaths.call(void 0, config.directories.data);
303
303
  }
304
304
  if (config.directories.config) {
305
- process.env[`${prefix}CONFIG_DIR`] = _chunkTH4KH35Pjs.correctPaths.call(void 0, config.directories.config);
305
+ process.env[`${prefix}CONFIG_DIR`] = _chunk343PZDIIjs.correctPaths.call(void 0, config.directories.config);
306
306
  }
307
307
  if (config.directories.temp) {
308
- process.env[`${prefix}TEMP_DIR`] = _chunkTH4KH35Pjs.correctPaths.call(void 0, config.directories.temp);
308
+ process.env[`${prefix}TEMP_DIR`] = _chunk343PZDIIjs.correctPaths.call(void 0, config.directories.temp);
309
309
  }
310
310
  if (config.directories.log) {
311
- process.env[`${prefix}LOG_DIR`] = _chunkTH4KH35Pjs.correctPaths.call(void 0, config.directories.log);
311
+ process.env[`${prefix}LOG_DIR`] = _chunk343PZDIIjs.correctPaths.call(void 0, config.directories.log);
312
312
  }
313
313
  if (config.directories.build) {
314
- process.env[`${prefix}BUILD_DIR`] = _chunkTH4KH35Pjs.correctPaths.call(void 0, config.directories.build);
314
+ process.env[`${prefix}BUILD_DIR`] = _chunk343PZDIIjs.correctPaths.call(void 0, config.directories.build);
315
315
  }
316
316
  }
317
317
  if (config.skipCache !== void 0) {
@@ -365,8 +365,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (config)
365
365
  if (config.logLevel) {
366
366
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
367
367
  process.env.LOG_LEVEL = String(config.logLevel);
368
- process.env.NX_VERBOSE_LOGGING = String(_chunkTH4KH35Pjs.getLogLevel.call(void 0, config.logLevel) >= _chunkTH4KH35Pjs.LogLevel.DEBUG ? true : false);
369
- process.env.RUST_BACKTRACE = _chunkTH4KH35Pjs.getLogLevel.call(void 0, config.logLevel) >= _chunkTH4KH35Pjs.LogLevel.DEBUG ? "full" : "none";
368
+ process.env.NX_VERBOSE_LOGGING = String(_chunk343PZDIIjs.getLogLevel.call(void 0, config.logLevel) >= _chunk343PZDIIjs.LogLevel.DEBUG ? true : false);
369
+ process.env.RUST_BACKTRACE = _chunk343PZDIIjs.getLogLevel.call(void 0, config.logLevel) >= _chunk343PZDIIjs.LogLevel.DEBUG ? "full" : "none";
370
370
  }
371
371
  process.env[`${prefix}CONFIG`] = JSON.stringify(config);
372
372
  for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
@@ -476,23 +476,23 @@ var _static_cache = void 0;
476
476
  var loadStormConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (workspaceRoot) => {
477
477
  let config = {};
478
478
  if (_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) && _optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) && _static_cache.timestamp >= Date.now() + 3e4) {
479
- _chunkTH4KH35Pjs.writeTrace.call(void 0, `Configuration cache hit - ${_static_cache.timestamp}`, _static_cache.data);
479
+ _chunk343PZDIIjs.writeTrace.call(void 0, `Configuration cache hit - ${_static_cache.timestamp}`, _static_cache.data);
480
480
  return _static_cache.data;
481
481
  }
482
482
  let _workspaceRoot = workspaceRoot;
483
483
  if (!_workspaceRoot) {
484
- _workspaceRoot = _chunkTH4KH35Pjs.findWorkspaceRoot.call(void 0, );
484
+ _workspaceRoot = _chunk343PZDIIjs.findWorkspaceRoot.call(void 0, );
485
485
  }
486
486
  const configFile = await getConfigFile(_workspaceRoot);
487
487
  if (!configFile) {
488
- _chunkTH4KH35Pjs.writeWarning.call(void 0, "No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
488
+ _chunk343PZDIIjs.writeWarning.call(void 0, "No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
489
489
  logLevel: "all"
490
490
  });
491
491
  }
492
- config = _defu2.default.call(void 0, getConfigEnv(), configFile, _chunkTH4KH35Pjs.getDefaultConfig.call(void 0, _workspaceRoot));
492
+ config = _defu2.default.call(void 0, getConfigEnv(), configFile, _chunk343PZDIIjs.getDefaultConfig.call(void 0, _workspaceRoot));
493
493
  setConfigEnv(config);
494
- _chunkTH4KH35Pjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm configuration:
495
- ${_chunkTH4KH35Pjs.formatLogMessage.call(void 0, config)}`, config);
494
+ _chunk343PZDIIjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm configuration:
495
+ ${_chunk343PZDIIjs.formatLogMessage.call(void 0, config)}`, config);
496
496
  return config;
497
497
  }, "loadStormConfig");
498
498
 
@@ -14,7 +14,7 @@ import {
14
14
  writeSystem,
15
15
  writeTrace,
16
16
  writeWarning
17
- } from "./chunk-XBFOA367.mjs";
17
+ } from "./chunk-ISVNV2UX.mjs";
18
18
  import {
19
19
  __name
20
20
  } from "./chunk-A7FFSBE6.mjs";
@@ -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 _chunkGTA63S6Vjs = require('./chunk-GTA63S6V.js');
3
+ var _chunkJLSFFOSIjs = require('./chunk-JLSFFOSI.js');
4
4
 
5
5
 
6
- var _chunk3JJSMPBTjs = require('./chunk-3JJSMPBT.js');
6
+ var _chunkOQPC7VB6js = require('./chunk-OQPC7VB6.js');
7
7
 
8
8
 
9
9
 
@@ -12,7 +12,7 @@ var _chunk3JJSMPBTjs = require('./chunk-3JJSMPBT.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkTH4KH35Pjs = require('./chunk-TH4KH35P.js');
15
+ var _chunk343PZDIIjs = require('./chunk-343PZDII.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 = _chunkTH4KH35Pjs.getStopwatch.call(void 0, "Storm Worker generator");
41
+ const stopwatch = _chunk343PZDIIjs.getStopwatch.call(void 0, "Storm Worker generator");
42
42
  let config;
43
43
  try {
44
- _chunkTH4KH35Pjs.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
44
+ _chunk343PZDIIjs.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
45
45
 
46
46
  `, config);
47
- const workspaceRoot = _chunkTH4KH35Pjs.findWorkspaceRoot.call(void 0, );
48
- _chunkTH4KH35Pjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.json file...
47
+ const workspaceRoot = _chunk343PZDIIjs.findWorkspaceRoot.call(void 0, );
48
+ _chunk343PZDIIjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.json file...
49
49
  - workspaceRoot: ${workspaceRoot}`, config);
50
- config = await _chunk3JJSMPBTjs.loadStormConfig.call(void 0, workspaceRoot);
51
- _chunkTH4KH35Pjs.writeTrace.call(void 0, `Loaded Storm config into env:
50
+ config = await _chunkOQPC7VB6js.loadStormConfig.call(void 0, workspaceRoot);
51
+ _chunk343PZDIIjs.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 _chunkGTA63S6Vjs.generator_default.call(void 0, tree, {
55
+ tasks.push(await _chunkJLSFFOSIjs.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
- _chunkTH4KH35Pjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
111
- _chunkTH4KH35Pjs.writeError.call(void 0, `An exception was thrown in the generator's process
110
+ _chunk343PZDIIjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
111
+ _chunk343PZDIIjs.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
  };
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XU6MTFCV.mjs";
5
5
  import {
6
6
  loadStormConfig
7
- } from "./chunk-UOZU7VQX.mjs";
7
+ } from "./chunk-TOEMUWVP.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-XBFOA367.mjs";
23
+ } from "./chunk-ISVNV2UX.mjs";
24
24
  import {
25
25
  __dirname,
26
26
  __name,
@@ -2131,7 +2131,7 @@ async function unbuildExecutorFn(options, context2, config) {
2131
2131
  fsCache: config.skipCache ? false : joinPaths(config.directories.cache || "node_modules/.cache/storm", "jiti"),
2132
2132
  interopDefault: true
2133
2133
  });
2134
- const stormUnbuild = await jiti.import("@storm-software/unbuild");
2134
+ const stormUnbuild = await jiti.import("@storm-software/unbuild/build.js");
2135
2135
  await stormUnbuild.build(defu3({
2136
2136
  ...options,
2137
2137
  projectRoot: context2.projectsConfigurations.projects?.[context2.projectName].root,