@storm-software/cloudflare-tools 0.55.60 → 0.55.62

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 (39) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-QHEOKFFX.mjs → chunk-2AZUPILA.mjs} +3 -3
  4. package/dist/{chunk-LLLAUEYO.js → chunk-2P6I2JBP.js} +1 -1
  5. package/dist/{chunk-PXZTPWCU.mjs → chunk-5WRF2CGH.mjs} +186 -23
  6. package/dist/{chunk-QA4RGSAN.js → chunk-BHSLGWRL.js} +334 -171
  7. package/dist/{chunk-4CNZ5PH2.mjs → chunk-MIFPHEJP.mjs} +26 -15
  8. package/dist/{chunk-I3INFEES.js → chunk-MLJ3OSJX.js} +16 -16
  9. package/dist/{chunk-X7PWPJXA.mjs → chunk-NVKJREIU.mjs} +1 -1
  10. package/dist/{chunk-ZRZOBWSJ.mjs → chunk-PU6BBJRF.mjs} +3 -3
  11. package/dist/{chunk-ER3IKRGW.js → chunk-S24WAZG5.js} +12 -12
  12. package/dist/{chunk-WNICDYXY.js → chunk-TEEOPHLZ.js} +1 -1
  13. package/dist/{chunk-DXA6VL3T.js → chunk-UBEHQVYS.js} +3 -3
  14. package/dist/{chunk-U2GYOTAE.js → chunk-XFPT4O23.js} +58 -47
  15. package/dist/{chunk-Q7EDJLEB.mjs → chunk-ZPJS5XUY.mjs} +1 -1
  16. package/dist/{chunk-CRVSAZIS.mjs → chunk-ZXMAG5R6.mjs} +1 -1
  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.d.mts +2 -2
  28. package/dist/src/executors/serve/executor.d.ts +2 -2
  29. package/dist/src/executors/serve/executor.js +4 -4
  30. package/dist/src/executors/serve/executor.mjs +3 -3
  31. package/dist/src/generators/init/generator.js +2 -2
  32. package/dist/src/generators/init/generator.mjs +1 -1
  33. package/dist/src/generators/worker/generator.js +5 -5
  34. package/dist/src/generators/worker/generator.mjs +4 -4
  35. package/dist/src/utils/index.js +3 -3
  36. package/dist/src/utils/index.mjs +2 -2
  37. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  38. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  39. package/package.json +1 -1
@@ -14,7 +14,7 @@ import {
14
14
  stormWorkspaceConfigSchema,
15
15
  writeTrace,
16
16
  writeWarning
17
- } from "./chunk-Q7EDJLEB.mjs";
17
+ } from "./chunk-ZPJS5XUY.mjs";
18
18
  import {
19
19
  __name
20
20
  } from "./chunk-H2MWLDLR.mjs";
@@ -77,7 +77,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
77
77
  }
78
78
  }
79
79
  }
80
- if (!config) {
80
+ if (!config || Object.keys(config).length === 0) {
81
81
  return void 0;
82
82
  }
83
83
  config.configFile = configFile;
@@ -135,12 +135,12 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
135
135
  configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
136
136
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
137
137
  directories: {
138
- cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
139
- data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
140
- config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
141
- temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
142
- log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
143
- build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
138
+ cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
139
+ data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
140
+ config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
141
+ temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
142
+ log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
143
+ build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths(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: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
@@ -360,21 +360,27 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
360
360
  if (config.directories) {
361
361
  if (!config.skipCache && config.directories.cache) {
362
362
  process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
363
+ process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
363
364
  }
364
365
  if (config.directories.data) {
365
366
  process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
367
+ process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
366
368
  }
367
369
  if (config.directories.config) {
368
370
  process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
371
+ process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
369
372
  }
370
373
  if (config.directories.temp) {
371
374
  process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
375
+ process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
372
376
  }
373
377
  if (config.directories.log) {
374
378
  process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
379
+ process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
375
380
  }
376
381
  if (config.directories.build) {
377
382
  process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
383
+ process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
378
384
  }
379
385
  }
380
386
  if (config.skipCache !== void 0) {
@@ -542,7 +548,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
542
548
  // ../config-tools/src/create-storm-config.ts
543
549
  var _extension_cache = /* @__PURE__ */ new WeakMap();
544
550
  var _static_cache = void 0;
545
- var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
551
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
546
552
  let result;
547
553
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
548
554
  let _workspaceRoot = workspaceRoot;
@@ -550,13 +556,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
550
556
  _workspaceRoot = findWorkspaceRoot();
551
557
  }
552
558
  const configEnv = getConfigEnv();
553
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
554
559
  const configFile = await getConfigFile(_workspaceRoot);
555
- if (!configFile && !skipLogs) {
556
- writeWarning("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", {
557
- logLevel: "all"
558
- });
560
+ if (!configFile) {
561
+ if (!skipLogs) {
562
+ writeWarning("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
+ logLevel: "all"
564
+ });
565
+ }
566
+ if (useDefault === false) {
567
+ return void 0;
568
+ }
559
569
  }
570
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
560
571
  result = await stormWorkspaceConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
561
572
  result.workspaceRoot ??= _workspaceRoot;
562
573
  } else {
@@ -589,7 +600,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
589
600
  return extension;
590
601
  }, "createConfigExtension");
591
602
  var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
592
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
603
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
593
604
  setConfigEnv(config);
594
605
  if (!skipLogs && !config.skipConfigLogging) {
595
606
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
@@ -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 _chunkDXA6VL3Tjs = require('./chunk-DXA6VL3T.js');
4
+ var _chunkUBEHQVYSjs = require('./chunk-UBEHQVYS.js');
5
5
 
6
6
 
7
7
 
8
8
  var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
9
9
 
10
10
 
11
- var _chunkU2GYOTAEjs = require('./chunk-U2GYOTAE.js');
11
+ var _chunkXFPT4O23js = require('./chunk-XFPT4O23.js');
12
12
 
13
13
 
14
14
 
15
15
 
16
16
 
17
17
 
18
- var _chunkWNICDYXYjs = require('./chunk-WNICDYXY.js');
18
+ var _chunkTEEOPHLZjs = require('./chunk-TEEOPHLZ.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 = _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, );
40
- const config = await _chunkU2GYOTAEjs.getConfig.call(void 0, workspaceRoot);
39
+ const workspaceRoot = _chunkTEEOPHLZjs.findWorkspaceRoot.call(void 0, );
40
+ const config = await _chunkXFPT4O23js.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
- _chunkWNICDYXYjs.writeInfo.call(void 0, `Publishing ${context.projectName} to the Storm Registry at ${endpoint}`);
65
+ _chunkTEEOPHLZjs.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
- _chunkWNICDYXYjs.writeInfo.call(void 0, `Generated component version: ${version}`);
75
+ _chunkTEEOPHLZjs.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 _chunkDXA6VL3Tjs.getInternalDependencies.call(void 0, context.projectName, projectGraph);
80
+ const internalDependencies = await _chunkUBEHQVYSjs.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
- _chunkWNICDYXYjs.writeInfo.call(void 0, `Clearing out existing items in ${projectPath}`);
88
+ _chunkTEEOPHLZjs.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
- _chunkWNICDYXYjs.writeDebug.call(void 0, `Deleting the following existing items from the component registry: ${response.Contents.map((item) => item.Key).join(", ")}`);
95
+ _chunkTEEOPHLZjs.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
- _chunkWNICDYXYjs.writeDebug.call(void 0, `No existing items to delete in the component registry path ${projectPath}`);
108
+ _chunkTEEOPHLZjs.writeDebug.call(void 0, `No existing items to delete in the component registry path ${projectPath}`);
109
109
  }
110
110
  } else {
111
- _chunkWNICDYXYjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
111
+ _chunkTEEOPHLZjs.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
- _chunkWNICDYXYjs.writeInfo.call(void 0, `Generating meta.json file:
127
+ _chunkTEEOPHLZjs.writeInfo.call(void 0, `Generating meta.json file:
128
128
  ${metaJson}`);
129
- await _chunkDXA6VL3Tjs.r2UploadFile.call(void 0, s3Client, options.bucketId, projectPath, "meta.json", version, metaJson, "application/json", isDryRun);
129
+ await _chunkUBEHQVYSjs.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) => _chunkDXA6VL3Tjs.r2UploadFile.call(void 0, s3Client, options.bucketId, projectPath, fileName, version, fileContent, "text/plain", isDryRun));
134
+ }).then((fileContent) => _chunkUBEHQVYSjs.r2UploadFile.call(void 0, s3Client, options.bucketId, projectPath, fileName, version, fileContent, "text/plain", isDryRun));
135
135
  }));
136
- _chunkWNICDYXYjs.writeSuccess.call(void 0, `Successfully uploaded the ${projectName} component to the Cyclone Registry`, config);
136
+ _chunkTEEOPHLZjs.writeSuccess.call(void 0, `Successfully uploaded the ${projectName} component to the Cyclone Registry`, config);
137
137
  return {
138
138
  success: true
139
139
  };
@@ -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.55.60",
11
+ version: "0.55.62",
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-X7PWPJXA.mjs";
3
+ } from "./chunk-NVKJREIU.mjs";
4
4
  import {
5
5
  getConfig
6
- } from "./chunk-4CNZ5PH2.mjs";
6
+ } from "./chunk-MIFPHEJP.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-Q7EDJLEB.mjs";
15
+ } from "./chunk-ZPJS5XUY.mjs";
16
16
  import {
17
17
  __dirname,
18
18
  __name
@@ -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 _chunkLLLAUEYOjs = require('./chunk-LLLAUEYO.js');
3
+ var _chunk2P6I2JBPjs = require('./chunk-2P6I2JBP.js');
4
4
 
5
5
 
6
- var _chunkU2GYOTAEjs = require('./chunk-U2GYOTAE.js');
6
+ var _chunkXFPT4O23js = require('./chunk-XFPT4O23.js');
7
7
 
8
8
 
9
9
 
@@ -12,7 +12,7 @@ var _chunkU2GYOTAEjs = require('./chunk-U2GYOTAE.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkWNICDYXYjs = require('./chunk-WNICDYXY.js');
15
+ var _chunkTEEOPHLZjs = require('./chunk-TEEOPHLZ.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 = _chunkWNICDYXYjs.getStopwatch.call(void 0, "Storm Worker generator");
41
+ const stopwatch = _chunkTEEOPHLZjs.getStopwatch.call(void 0, "Storm Worker generator");
42
42
  let config;
43
43
  try {
44
- _chunkWNICDYXYjs.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
44
+ _chunkTEEOPHLZjs.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
45
45
 
46
46
  `, config);
47
- const workspaceRoot = _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, );
48
- _chunkWNICDYXYjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.json file...
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...
49
49
  - workspaceRoot: ${workspaceRoot}`, config);
50
- config = await _chunkU2GYOTAEjs.getConfig.call(void 0, workspaceRoot);
51
- _chunkWNICDYXYjs.writeTrace.call(void 0, `Loaded Storm config into env:
50
+ config = await _chunkXFPT4O23js.getConfig.call(void 0, workspaceRoot);
51
+ _chunkTEEOPHLZjs.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 _chunkLLLAUEYOjs.generator_default.call(void 0, tree, {
55
+ tasks.push(await _chunk2P6I2JBPjs.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
- _chunkWNICDYXYjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
111
- _chunkWNICDYXYjs.writeError.call(void 0, `An exception was thrown in the generator's process
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
112
112
  - Details: ${error.message}
113
113
  - Stacktrace: ${error.stack}`, config);
114
114
  };
@@ -395,7 +395,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
395
395
  "staging",
396
396
  "production"
397
397
  ]).default("production").describe("The current runtime environment mode for the package"),
398
- workspaceRoot: _zod2.default.string().trim().default("").describe("The root directory of the workspace"),
398
+ workspaceRoot: _zod2.default.string().trim().describe("The root directory of the workspace"),
399
399
  externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
400
400
  skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
401
401
  directories: WorkspaceDirectoryConfigSchema,
@@ -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 _chunkWNICDYXYjs = require('./chunk-WNICDYXY.js');
4
+ var _chunkTEEOPHLZjs = require('./chunk-TEEOPHLZ.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
- _chunkWNICDYXYjs.writeDebug.call(void 0, `Uploading file: ${fileKey}`);
14
+ _chunkTEEOPHLZjs.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
- _chunkWNICDYXYjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
27
+ _chunkTEEOPHLZjs.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) => {
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- var _chunkWNICDYXYjs = require('./chunk-WNICDYXY.js');
17
+ var _chunkTEEOPHLZjs = require('./chunk-TEEOPHLZ.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 || _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, filePath);
29
+ const workspacePath = filePath || _chunkTEEOPHLZjs.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 : _chunkWNICDYXYjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
38
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkTEEOPHLZjs.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 : _chunkWNICDYXYjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
49
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkTEEOPHLZjs.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 : _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, filePath);
58
+ const workspacePath = filePath ? filePath : _chunkTEEOPHLZjs.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
- _chunkWNICDYXYjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
63
+ _chunkTEEOPHLZjs.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
- _chunkWNICDYXYjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
72
+ _chunkTEEOPHLZjs.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
  }
@@ -77,7 +77,7 @@ var getConfigFile = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (
77
77
  }
78
78
  }
79
79
  }
80
- if (!config) {
80
+ if (!config || Object.keys(config).length === 0) {
81
81
  return void 0;
82
82
  }
83
83
  config.configFile = configFile;
@@ -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`] ? _chunkWNICDYXYjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
136
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkWNICDYXYjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : 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,
137
137
  directories: {
138
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkWNICDYXYjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
139
- data: process.env[`${prefix}DATA_DIR`] ? _chunkWNICDYXYjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
140
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkWNICDYXYjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
141
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkWNICDYXYjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
142
- log: process.env[`${prefix}LOG_DIR`] ? _chunkWNICDYXYjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
143
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkWNICDYXYjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
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
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`])) ? _chunkWNICDYXYjs.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`])) ? _chunkTEEOPHLZjs.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_`) && _chunkWNICDYXYjs.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_`) && _chunkTEEOPHLZjs.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 === _chunkWNICDYXYjs.STORM_DEFAULT_DOCS) {
175
- if (config.homepage === _chunkWNICDYXYjs.STORM_DEFAULT_HOMEPAGE) {
176
- config.docs = `${_chunkWNICDYXYjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
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`;
177
177
  } else {
178
178
  config.docs = `${config.homepage}/docs`;
179
179
  }
180
180
  }
181
- if (config.licensing === _chunkWNICDYXYjs.STORM_DEFAULT_LICENSING) {
182
- if (config.homepage === _chunkWNICDYXYjs.STORM_DEFAULT_HOMEPAGE) {
183
- config.licensing = `${_chunkWNICDYXYjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
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`;
184
184
  } else {
185
185
  config.licensing = `${config.homepage}/docs`;
186
186
  }
@@ -350,31 +350,37 @@ 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`] = _chunkWNICDYXYjs.correctPaths.call(void 0, config.configFile);
353
+ process.env[`${prefix}CONFIG_FILE`] = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.configFile);
354
354
  }
355
355
  if (config.workspaceRoot) {
356
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunkWNICDYXYjs.correctPaths.call(void 0, config.workspaceRoot);
357
- process.env.NX_WORKSPACE_ROOT = _chunkWNICDYXYjs.correctPaths.call(void 0, config.workspaceRoot);
358
- process.env.NX_WORKSPACE_ROOT_PATH = _chunkWNICDYXYjs.correctPaths.call(void 0, 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);
359
359
  }
360
360
  if (config.directories) {
361
361
  if (!config.skipCache && config.directories.cache) {
362
- process.env[`${prefix}CACHE_DIR`] = _chunkWNICDYXYjs.correctPaths.call(void 0, config.directories.cache);
362
+ process.env[`${prefix}CACHE_DIR`] = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.directories.cache);
363
+ process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
363
364
  }
364
365
  if (config.directories.data) {
365
- process.env[`${prefix}DATA_DIR`] = _chunkWNICDYXYjs.correctPaths.call(void 0, config.directories.data);
366
+ process.env[`${prefix}DATA_DIR`] = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.directories.data);
367
+ process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
366
368
  }
367
369
  if (config.directories.config) {
368
- process.env[`${prefix}CONFIG_DIR`] = _chunkWNICDYXYjs.correctPaths.call(void 0, config.directories.config);
370
+ process.env[`${prefix}CONFIG_DIR`] = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.directories.config);
371
+ process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
369
372
  }
370
373
  if (config.directories.temp) {
371
- process.env[`${prefix}TEMP_DIR`] = _chunkWNICDYXYjs.correctPaths.call(void 0, config.directories.temp);
374
+ process.env[`${prefix}TEMP_DIR`] = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.directories.temp);
375
+ process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
372
376
  }
373
377
  if (config.directories.log) {
374
- process.env[`${prefix}LOG_DIR`] = _chunkWNICDYXYjs.correctPaths.call(void 0, config.directories.log);
378
+ process.env[`${prefix}LOG_DIR`] = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.directories.log);
379
+ process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
375
380
  }
376
381
  if (config.directories.build) {
377
- process.env[`${prefix}BUILD_DIR`] = _chunkWNICDYXYjs.correctPaths.call(void 0, config.directories.build);
382
+ process.env[`${prefix}BUILD_DIR`] = _chunkTEEOPHLZjs.correctPaths.call(void 0, config.directories.build);
383
+ process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
378
384
  }
379
385
  }
380
386
  if (config.skipCache !== void 0) {
@@ -428,8 +434,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (config)
428
434
  if (config.logLevel) {
429
435
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
430
436
  process.env.LOG_LEVEL = String(config.logLevel);
431
- process.env.NX_VERBOSE_LOGGING = String(_chunkWNICDYXYjs.getLogLevel.call(void 0, config.logLevel) >= _chunkWNICDYXYjs.LogLevel.DEBUG ? true : false);
432
- process.env.RUST_BACKTRACE = _chunkWNICDYXYjs.getLogLevel.call(void 0, config.logLevel) >= _chunkWNICDYXYjs.LogLevel.DEBUG ? "full" : "none";
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";
433
439
  }
434
440
  if (config.skipConfigLogging !== void 0) {
435
441
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
@@ -542,22 +548,27 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(vo
542
548
  // ../config-tools/src/create-storm-config.ts
543
549
  var _extension_cache = /* @__PURE__ */ new WeakMap();
544
550
  var _static_cache = void 0;
545
- var createStormWorkspaceConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
551
+ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
546
552
  let result;
547
553
  if (!_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) || !_optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
548
554
  let _workspaceRoot = workspaceRoot;
549
555
  if (!_workspaceRoot) {
550
- _workspaceRoot = _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, );
556
+ _workspaceRoot = _chunkTEEOPHLZjs.findWorkspaceRoot.call(void 0, );
551
557
  }
552
558
  const configEnv = getConfigEnv();
553
- const defaultConfig = await _chunkWNICDYXYjs.getDefaultConfig.call(void 0, _workspaceRoot);
554
559
  const configFile = await getConfigFile(_workspaceRoot);
555
- if (!configFile && !skipLogs) {
556
- _chunkWNICDYXYjs.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", {
557
- logLevel: "all"
558
- });
560
+ if (!configFile) {
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", {
563
+ logLevel: "all"
564
+ });
565
+ }
566
+ if (useDefault === false) {
567
+ return void 0;
568
+ }
559
569
  }
560
- result = await _chunkWNICDYXYjs.stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
570
+ const defaultConfig = await _chunkTEEOPHLZjs.getDefaultConfig.call(void 0, _workspaceRoot);
571
+ result = await _chunkTEEOPHLZjs.stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
561
572
  result.workspaceRoot ??= _workspaceRoot;
562
573
  } else {
563
574
  result = _static_cache.data;
@@ -589,11 +600,11 @@ var createConfigExtension = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0,
589
600
  return extension;
590
601
  }, "createConfigExtension");
591
602
  var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
592
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
603
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
593
604
  setConfigEnv(config);
594
605
  if (!skipLogs && !config.skipConfigLogging) {
595
- _chunkWNICDYXYjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
596
- ${_chunkWNICDYXYjs.formatLogMessage.call(void 0, config)}`, config);
606
+ _chunkTEEOPHLZjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
607
+ ${_chunkTEEOPHLZjs.formatLogMessage.call(void 0, config)}`, config);
597
608
  }
598
609
  return config;
599
610
  }, "loadStormWorkspaceConfig");
@@ -395,7 +395,7 @@ var stormWorkspaceConfigSchema = z.object({
395
395
  "staging",
396
396
  "production"
397
397
  ]).default("production").describe("The current runtime environment mode for the package"),
398
- workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
398
+ workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
399
399
  externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
400
400
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
401
401
  directories: WorkspaceDirectoryConfigSchema,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeDebug,
3
3
  writeWarning
4
- } from "./chunk-Q7EDJLEB.mjs";
4
+ } from "./chunk-ZPJS5XUY.mjs";
5
5
  import {
6
6
  __name
7
7
  } from "./chunk-H2MWLDLR.mjs";
package/dist/executors.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";require('./chunk-XO66D74Z.js');
2
2
  require('./chunk-R7AIVBS7.js');
3
- require('./chunk-QA4RGSAN.js');
4
- require('./chunk-I3INFEES.js');
5
- require('./chunk-DXA6VL3T.js');
3
+ require('./chunk-BHSLGWRL.js');
4
+ require('./chunk-MLJ3OSJX.js');
5
+ require('./chunk-UBEHQVYS.js');
6
6
  require('./chunk-VTHBMY4B.js');
7
- require('./chunk-U2GYOTAE.js');
8
- require('./chunk-WNICDYXY.js');
7
+ require('./chunk-XFPT4O23.js');
8
+ require('./chunk-TEEOPHLZ.js');
9
9
  require('./chunk-J5SB6L2L.js');