@storm-software/k8s-tools 0.25.19 → 0.25.21

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 (63) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +1 -1
  3. package/dist/chunk-27DDDFDE.mjs +29 -0
  4. package/dist/{chunk-RKHT4PWO.js → chunk-2SIDLIM5.js} +47 -31
  5. package/dist/{chunk-2GAU2GHG.js → chunk-4AADQIGW.js} +35 -102
  6. package/dist/{chunk-T5WNZJOD.js → chunk-7QVOU2PT.js} +3 -11
  7. package/dist/{chunk-3OATAJ3B.js → chunk-A7ARE63F.js} +83 -55
  8. package/dist/chunk-ARIMP3W4.mjs +155 -0
  9. package/dist/{chunk-TNVATOCF.mjs → chunk-BBY7MXHG.mjs} +93 -54
  10. package/dist/{chunk-OIKG7EMC.js → chunk-DD5DCADP.js} +32 -16
  11. package/dist/{chunk-IQYUMTUG.js → chunk-GQUK4O4E.js} +30 -23
  12. package/dist/{chunk-UC4ZBDTX.mjs → chunk-HGXQ6SSU.mjs} +5 -7
  13. package/dist/{chunk-LFNGKV6F.js → chunk-JSFRUBG5.js} +1 -8
  14. package/dist/{chunk-LLSJITI4.mjs → chunk-KVKKT3AU.mjs} +24 -13
  15. package/dist/{chunk-QKTRYJDT.mjs → chunk-MDGD27YL.mjs} +32 -16
  16. package/dist/{chunk-A2UL7VJH.mjs → chunk-MKWEGZBN.mjs} +31 -24
  17. package/dist/{chunk-YY3TH3F7.mjs → chunk-MQZUEUAT.mjs} +26 -21
  18. package/dist/{chunk-F37JQGEZ.mjs → chunk-MWMS7P7U.mjs} +333 -208
  19. package/dist/{chunk-X7ALQPYH.js → chunk-NMNRCEUZ.js} +21 -12
  20. package/dist/{chunk-T3C63ATM.mjs → chunk-NWIIGYA4.mjs} +68 -40
  21. package/dist/{chunk-NJPZBNWH.mjs → chunk-QHFQ2OBL.mjs} +2 -10
  22. package/dist/chunk-RECJ3G6F.js +21 -0
  23. package/dist/{chunk-IOT45LXV.js → chunk-RUPAIXLM.js} +59 -38
  24. package/dist/chunk-RUROM5AC.mjs +136 -0
  25. package/dist/{chunk-PDHZDUK3.js → chunk-SGNASGK5.js} +94 -55
  26. package/dist/{chunk-ARMCUBMY.js → chunk-UWVOFPSW.js} +334 -209
  27. package/dist/{chunk-RDQRJI4Y.mjs → chunk-VREITNWP.mjs} +36 -20
  28. package/dist/{chunk-EAQFLLRB.js → chunk-XKOZIQT3.js} +6 -8
  29. package/dist/{chunk-G7TAEXNU.js → chunk-Y2HMMGO2.js} +28 -23
  30. package/dist/{chunk-YHT26DWR.mjs → chunk-YXXZO2AJ.mjs} +0 -7
  31. package/dist/executors.js +10 -10
  32. package/dist/executors.mjs +9 -9
  33. package/dist/generators.js +7 -7
  34. package/dist/generators.mjs +6 -6
  35. package/dist/index.js +15 -15
  36. package/dist/index.mjs +14 -14
  37. package/dist/src/executors/container-publish/executor.js +6 -6
  38. package/dist/src/executors/container-publish/executor.mjs +5 -5
  39. package/dist/src/executors/helm-package/executor.js +8 -8
  40. package/dist/src/executors/helm-package/executor.mjs +7 -7
  41. package/dist/src/generators/helm-chart/generator.js +6 -6
  42. package/dist/src/generators/helm-chart/generator.mjs +5 -5
  43. package/dist/src/generators/helm-dependency/generator.js +6 -6
  44. package/dist/src/generators/helm-dependency/generator.mjs +5 -5
  45. package/dist/src/plugins/docker/index.js +5 -5
  46. package/dist/src/plugins/docker/index.mjs +4 -4
  47. package/dist/src/types.js +3 -3
  48. package/dist/src/types.mjs +2 -2
  49. package/dist/src/utils/client.js +5 -5
  50. package/dist/src/utils/client.mjs +4 -4
  51. package/dist/src/utils/ensure-init.js +3 -3
  52. package/dist/src/utils/ensure-init.mjs +2 -2
  53. package/dist/src/utils/index.js +6 -6
  54. package/dist/src/utils/index.mjs +5 -5
  55. package/dist/src/utils/prettier.js +3 -3
  56. package/dist/src/utils/prettier.mjs +2 -2
  57. package/dist/tsup.config.js +3 -8
  58. package/dist/tsup.config.mjs +3 -8
  59. package/package.json +1 -1
  60. package/dist/chunk-3GQAWCBQ.js +0 -13
  61. package/dist/chunk-5JZUTREX.mjs +0 -134
  62. package/dist/chunk-L2DHGVS5.mjs +0 -21
  63. package/dist/chunk-ZNGN7YLH.mjs +0 -203
@@ -1,8 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
-
3
- var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
4
-
5
- // ../config-tools/src/utilities/correct-paths.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../config-tools/src/utilities/correct-paths.ts
6
2
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
7
3
  function normalizeWindowsPath(input = "") {
8
4
  if (!input) {
@@ -10,11 +6,10 @@ function normalizeWindowsPath(input = "") {
10
6
  }
11
7
  return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
12
8
  }
13
- _chunk3GQAWCBQjs.__name.call(void 0, normalizeWindowsPath, "normalizeWindowsPath");
14
9
  var _UNC_REGEX = /^[/\\]{2}/;
15
10
  var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
16
11
  var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
17
- var correctPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(path) {
12
+ var correctPaths = function(path) {
18
13
  if (!path || path.length === 0) {
19
14
  return ".";
20
15
  }
@@ -42,8 +37,8 @@ var correctPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function
42
37
  return `//${path}`;
43
38
  }
44
39
  return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
45
- }, "correctPaths");
46
- var joinPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(...segments) {
40
+ };
41
+ var joinPaths = function(...segments) {
47
42
  let path = "";
48
43
  for (const seg of segments) {
49
44
  if (!seg) {
@@ -63,7 +58,7 @@ var joinPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(..
63
58
  }
64
59
  }
65
60
  return correctPaths(path);
66
- }, "joinPaths");
61
+ };
67
62
  function normalizeString(path, allowAboveRoot) {
68
63
  let res = "";
69
64
  let lastSegmentLength = 0;
@@ -124,10 +119,9 @@ function normalizeString(path, allowAboveRoot) {
124
119
  }
125
120
  return res;
126
121
  }
127
- _chunk3GQAWCBQjs.__name.call(void 0, normalizeString, "normalizeString");
128
- var isAbsolute = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(p) {
122
+ var isAbsolute = function(p) {
129
123
  return _IS_ABSOLUTE_RE.test(p);
130
- }, "isAbsolute");
124
+ };
131
125
 
132
126
  // ../config-tools/src/utilities/find-up.ts
133
127
  var _fs = require('fs');
@@ -136,10 +130,14 @@ var MAX_PATH_SEARCH_DEPTH = 30;
136
130
  var depth = 0;
137
131
  function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
138
132
  const _startPath = _nullishCoalesce(startPath, () => ( process.cwd()));
139
- if (endDirectoryNames.some((endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName)))) {
133
+ if (endDirectoryNames.some(
134
+ (endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName))
135
+ )) {
140
136
  return _startPath;
141
137
  }
142
- if (endFileNames.some((endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName)))) {
138
+ if (endFileNames.some(
139
+ (endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName))
140
+ )) {
143
141
  return _startPath;
144
142
  }
145
143
  if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
@@ -148,7 +146,6 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
148
146
  }
149
147
  return void 0;
150
148
  }
151
- _chunk3GQAWCBQjs.__name.call(void 0, findFolderUp, "findFolderUp");
152
149
 
153
150
  // ../config-tools/src/utilities/find-workspace-root.ts
154
151
  var rootFiles = [
@@ -195,21 +192,31 @@ var rootDirectories = [
195
192
  ];
196
193
  function findWorkspaceRootSafe(pathInsideMonorepo) {
197
194
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
198
- return correctPaths(_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH)));
199
- }
200
- return correctPaths(findFolderUp(_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles, rootDirectories));
195
+ return correctPaths(
196
+ _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
197
+ );
198
+ }
199
+ return correctPaths(
200
+ findFolderUp(
201
+ _nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
202
+ rootFiles,
203
+ rootDirectories
204
+ )
205
+ );
201
206
  }
202
- _chunk3GQAWCBQjs.__name.call(void 0, findWorkspaceRootSafe, "findWorkspaceRootSafe");
203
207
  function findWorkspaceRoot(pathInsideMonorepo) {
204
208
  const result = findWorkspaceRootSafe(pathInsideMonorepo);
205
209
  if (!result) {
206
- throw new Error(`Cannot find workspace root upwards from known path. Files search list includes:
207
- ${rootFiles.join("\n")}
208
- Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
210
+ throw new Error(
211
+ `Cannot find workspace root upwards from known path. Files search list includes:
212
+ ${rootFiles.join(
213
+ "\n"
214
+ )}
215
+ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
216
+ );
209
217
  }
210
218
  return result;
211
219
  }
212
- _chunk3GQAWCBQjs.__name.call(void 0, findWorkspaceRoot, "findWorkspaceRoot");
213
220
 
214
221
  // ../config-tools/src/types.ts
215
222
  var LogLevel = {
@@ -333,23 +340,39 @@ var RegistryConfigSchema = _zod2.default.object({
333
340
  cyclone: RegistryUrlConfigSchema,
334
341
  container: RegistryUrlConfigSchema
335
342
  }).default({}).describe("A list of remote registry URLs used by Storm Software");
336
- var ColorConfigSchema = SingleThemeColorConfigSchema.or(MultiThemeColorConfigSchema).describe("Colors used for various workspace elements");
343
+ var ColorConfigSchema = SingleThemeColorConfigSchema.or(
344
+ MultiThemeColorConfigSchema
345
+ ).describe("Colors used for various workspace elements");
337
346
  var ColorConfigMapSchema = _zod2.default.union([
338
- _zod2.default.object({
339
- base: ColorConfigSchema
340
- }),
347
+ _zod2.default.object({ base: ColorConfigSchema }),
341
348
  _zod2.default.record(_zod2.default.string(), ColorConfigSchema)
342
349
  ]);
343
- var ExtendsItemSchema = _zod2.default.string().trim().describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
344
- var ExtendsSchema = ExtendsItemSchema.or(_zod2.default.array(ExtendsItemSchema)).describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
350
+ var ExtendsItemSchema = _zod2.default.string().trim().describe(
351
+ "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
352
+ );
353
+ var ExtendsSchema = ExtendsItemSchema.or(
354
+ _zod2.default.array(ExtendsItemSchema)
355
+ ).describe(
356
+ "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
357
+ );
345
358
  var WorkspaceBotConfigSchema = _zod2.default.object({
346
- name: _zod2.default.string().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
359
+ name: _zod2.default.string().trim().default("stormie-bot").describe(
360
+ "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
361
+ ),
347
362
  email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
348
- }).describe("The workspace's bot user's config used to automated various operations tasks");
363
+ }).describe(
364
+ "The workspace's bot user's config used to automated various operations tasks"
365
+ );
349
366
  var WorkspaceReleaseConfigSchema = _zod2.default.object({
350
- banner: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("A URL to a banner image used to display the workspace's release"),
351
- header: _zod2.default.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
352
- footer: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
367
+ banner: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
368
+ "A URL to a banner image used to display the workspace's release"
369
+ ),
370
+ header: _zod2.default.string().trim().optional().describe(
371
+ "A header message appended to the start of the workspace's release notes"
372
+ ),
373
+ footer: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
374
+ "A footer message appended to the end of the workspace's release notes"
375
+ )
353
376
  }).describe("The workspace's release config used during the release process");
354
377
  var WorkspaceAccountConfigSchema = _zod2.default.object({
355
378
  twitter: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
@@ -358,23 +381,41 @@ var WorkspaceAccountConfigSchema = _zod2.default.object({
358
381
  slack: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
359
382
  medium: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
360
383
  github: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
361
- }).describe("The workspace's account config used to store various social media links");
384
+ }).describe(
385
+ "The workspace's account config used to store various social media links"
386
+ );
362
387
  var WorkspaceDirectoryConfigSchema = _zod2.default.object({
363
- cache: _zod2.default.string().trim().optional().describe("The directory used to store the environment's cached file data"),
388
+ cache: _zod2.default.string().trim().optional().describe(
389
+ "The directory used to store the environment's cached file data"
390
+ ),
364
391
  data: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
365
- config: _zod2.default.string().trim().optional().describe("The directory used to store the environment's configuration files"),
392
+ config: _zod2.default.string().trim().optional().describe(
393
+ "The directory used to store the environment's configuration files"
394
+ ),
366
395
  temp: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
367
396
  log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
368
- build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
369
- }).describe("Various directories used by the workspace to store data, cache, and configuration files");
397
+ build: _zod2.default.string().trim().default("dist").describe(
398
+ "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
399
+ )
400
+ }).describe(
401
+ "Various directories used by the workspace to store data, cache, and configuration files"
402
+ );
370
403
  var errorConfigSchema = _zod2.default.object({
371
404
  codesFile: _zod2.default.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
372
- url: _zod2.default.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
405
+ url: _zod2.default.string().trim().url().optional().describe(
406
+ "A URL to a page that looks up the workspace's error messages given a specific error code"
407
+ )
373
408
  }).describe("The workspace's error config used during the error process");
374
409
  var stormWorkspaceConfigSchema = _zod2.default.object({
375
- $schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
410
+ $schema: _zod2.default.string().trim().default(
411
+ "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
412
+ ).optional().nullish().describe(
413
+ "The URL to the JSON schema file that describes the Storm configuration file"
414
+ ),
376
415
  extends: ExtendsSchema.optional(),
377
- name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
416
+ name: _zod2.default.string().trim().toLowerCase().optional().describe(
417
+ "The name of the service/package/scope using this configuration"
418
+ ),
378
419
  namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
379
420
  organization: _zod2.default.string().trim().default("storm-software").describe("The organization of the workspace"),
380
421
  repository: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
@@ -390,21 +431,16 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
390
431
  release: WorkspaceReleaseConfigSchema,
391
432
  account: WorkspaceAccountConfigSchema,
392
433
  error: errorConfigSchema,
393
- mode: _zod2.default.enum([
394
- "development",
395
- "staging",
396
- "production"
397
- ]).default("production").describe("The current runtime environment mode for the package"),
434
+ mode: _zod2.default.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
398
435
  workspaceRoot: _zod2.default.string().trim().describe("The root directory of the workspace"),
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"),
436
+ externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe(
437
+ "The build will use these package patterns to determine if they should be external to the bundle"
438
+ ),
400
439
  skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
401
440
  directories: WorkspaceDirectoryConfigSchema,
402
- packageManager: _zod2.default.enum([
403
- "npm",
404
- "yarn",
405
- "pnpm",
406
- "bun"
407
- ]).default("npm").describe("The JavaScript/TypeScript package manager used by the repository"),
441
+ packageManager: _zod2.default.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
442
+ "The JavaScript/TypeScript package manager used by the repository"
443
+ ),
408
444
  timezone: _zod2.default.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
409
445
  locale: _zod2.default.string().trim().default("en-US").describe("The default locale of the workspace"),
410
446
  logLevel: _zod2.default.enum([
@@ -417,13 +453,23 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
417
453
  "debug",
418
454
  "trace",
419
455
  "all"
420
- ]).default("info").describe("The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."),
421
- skipConfigLogging: _zod2.default.boolean().optional().describe("Should the logging of the current Storm Workspace configuration be skipped?"),
456
+ ]).default("info").describe(
457
+ "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
458
+ ),
459
+ skipConfigLogging: _zod2.default.boolean().optional().describe(
460
+ "Should the logging of the current Storm Workspace configuration be skipped?"
461
+ ),
422
462
  registry: RegistryConfigSchema,
423
- configFile: _zod2.default.string().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),
424
- colors: ColorConfigSchema.or(ColorConfigMapSchema).describe("Storm theme config values used for styling various package elements"),
463
+ configFile: _zod2.default.string().trim().nullable().default(null).describe(
464
+ "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
465
+ ),
466
+ colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
467
+ "Storm theme config values used for styling various package elements"
468
+ ),
425
469
  extensions: _zod2.default.record(_zod2.default.any()).optional().default({}).describe("Configuration of each used extension")
426
- }).describe("Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo.");
470
+ }).describe(
471
+ "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
472
+ );
427
473
 
428
474
  // ../config/src/types.ts
429
475
  var COLOR_KEYS = [
@@ -476,7 +522,7 @@ var DEFAULT_COLOR_CONFIG = {
476
522
  negative: "#dc2626"
477
523
  }
478
524
  };
479
- var getDefaultConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (root) => {
525
+ var getDefaultConfig = async (root) => {
480
526
  let license = STORM_DEFAULT_LICENSE;
481
527
  let homepage = STORM_DEFAULT_HOMEPAGE;
482
528
  let name = void 0;
@@ -484,7 +530,10 @@ var getDefaultConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asyn
484
530
  let repository = void 0;
485
531
  const workspaceRoot = findWorkspaceRoot(root);
486
532
  if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
487
- const file = await _promises.readFile.call(void 0, joinPaths(workspaceRoot, "package.json"), "utf8");
533
+ const file = await _promises.readFile.call(void 0,
534
+ joinPaths(workspaceRoot, "package.json"),
535
+ "utf8"
536
+ );
488
537
  if (file) {
489
538
  const packageJson = JSON.parse(file);
490
539
  if (packageJson.name) {
@@ -521,36 +570,36 @@ var getDefaultConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asyn
521
570
  url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
522
571
  }
523
572
  };
524
- }, "getDefaultConfig");
573
+ };
525
574
 
526
575
  // ../config-tools/src/logger/chalk.ts
527
576
  var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
528
577
  var chalkDefault = {
529
- hex: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (_) => (message) => message, "hex"),
530
- bgHex: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (_) => ({
531
- whiteBright: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message) => message, "whiteBright")
532
- }), "bgHex"),
533
- whiteBright: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message) => message, "whiteBright"),
534
- gray: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message) => message, "gray"),
578
+ hex: (_) => (message) => message,
579
+ bgHex: (_) => ({
580
+ whiteBright: (message) => message
581
+ }),
582
+ whiteBright: (message) => message,
583
+ gray: (message) => message,
535
584
  bold: {
536
- hex: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (_) => (message) => message, "hex"),
537
- bgHex: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (_) => ({
538
- whiteBright: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message) => message, "whiteBright")
539
- }), "bgHex"),
540
- whiteBright: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message) => message, "whiteBright")
585
+ hex: (_) => (message) => message,
586
+ bgHex: (_) => ({
587
+ whiteBright: (message) => message
588
+ }),
589
+ whiteBright: (message) => message
541
590
  },
542
591
  dim: {
543
- hex: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (_) => (message) => message, "hex"),
544
- gray: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message) => message, "gray")
592
+ hex: (_) => (message) => message,
593
+ gray: (message) => message
545
594
  }
546
595
  };
547
- var getChalk = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
596
+ var getChalk = () => {
548
597
  let _chalk = _chalk3.default;
549
598
  if (!_optionalChain([_chalk, 'optionalAccess', _2 => _2.hex]) || !_optionalChain([_chalk, 'optionalAccess', _3 => _3.bold, 'optionalAccess', _4 => _4.hex]) || !_optionalChain([_chalk, 'optionalAccess', _5 => _5.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _6 => _6.whiteBright])) {
550
599
  _chalk = chalkDefault;
551
600
  }
552
601
  return _chalk;
553
- }, "getChalk");
602
+ };
554
603
 
555
604
  // ../config-tools/src/logger/is-unicode-supported.ts
556
605
  function isUnicodeSupported() {
@@ -562,10 +611,9 @@ function isUnicodeSupported() {
562
611
  process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
563
612
  process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
564
613
  }
565
- _chunk3GQAWCBQjs.__name.call(void 0, isUnicodeSupported, "isUnicodeSupported");
566
614
 
567
615
  // ../config-tools/src/logger/console-icons.ts
568
- var useIcon = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (c, fallback) => isUnicodeSupported() ? c : fallback, "useIcon");
616
+ var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
569
617
  var CONSOLE_ICONS = {
570
618
  [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
571
619
  [LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
@@ -578,12 +626,12 @@ var CONSOLE_ICONS = {
578
626
  };
579
627
 
580
628
  // ../config-tools/src/logger/format-timestamp.ts
581
- var formatTimestamp = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (date = /* @__PURE__ */ new Date()) => {
629
+ var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
582
630
  return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
583
- }, "formatTimestamp");
631
+ };
584
632
 
585
633
  // ../config-tools/src/logger/get-log-level.ts
586
- var getLogLevel = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (label) => {
634
+ var getLogLevel = (label) => {
587
635
  switch (label) {
588
636
  case "all":
589
637
  return LogLevel.ALL;
@@ -604,8 +652,8 @@ var getLogLevel = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (label) =
604
652
  default:
605
653
  return LogLevel.INFO;
606
654
  }
607
- }, "getLogLevel");
608
- var getLogLevelLabel = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (logLevel = LogLevel.INFO) => {
655
+ };
656
+ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
609
657
  if (logLevel >= LogLevel.ALL) {
610
658
  return LogLevelLabel.ALL;
611
659
  }
@@ -631,10 +679,10 @@ var getLogLevelLabel = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (log
631
679
  return LogLevelLabel.SILENT;
632
680
  }
633
681
  return LogLevelLabel.INFO;
634
- }, "getLogLevelLabel");
682
+ };
635
683
 
636
684
  // ../config-tools/src/logger/console.ts
637
- var getLogFn = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
685
+ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
638
686
  const colors = !_optionalChain([config, 'access', _7 => _7.colors, 'optionalAccess', _8 => _8.dark]) && !_optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10["base"]]) && !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20["base"]]) ? _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"]]) : DEFAULT_COLOR_CONFIG;
639
687
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
640
688
  if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
@@ -643,99 +691,119 @@ var getLogFn = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (logLevel =
643
691
  }
644
692
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
645
693
  return (message) => {
646
- console.error(`
694
+ console.error(
695
+ `
647
696
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
648
- `);
697
+ `
698
+ );
649
699
  };
650
700
  }
651
701
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
652
702
  return (message) => {
653
- console.error(`
703
+ console.error(
704
+ `
654
705
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
655
- `);
706
+ `
707
+ );
656
708
  };
657
709
  }
658
710
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
659
711
  return (message) => {
660
- console.warn(`
712
+ console.warn(
713
+ `
661
714
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
662
- `);
715
+ `
716
+ );
663
717
  };
664
718
  }
665
719
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
666
720
  return (message) => {
667
- console.info(`
721
+ console.info(
722
+ `
668
723
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
669
- `);
724
+ `
725
+ );
670
726
  };
671
727
  }
672
728
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
673
729
  return (message) => {
674
- console.info(`
730
+ console.info(
731
+ `
675
732
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
676
- `);
733
+ `
734
+ );
677
735
  };
678
736
  }
679
737
  if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
680
738
  return (message) => {
681
- console.debug(`
739
+ console.debug(
740
+ `
682
741
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
683
- `);
742
+ `
743
+ );
684
744
  };
685
745
  }
686
746
  if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
687
747
  return (message) => {
688
- console.debug(`
748
+ console.debug(
749
+ `
689
750
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
690
- `);
751
+ `
752
+ );
691
753
  };
692
754
  }
693
755
  return (message) => {
694
- console.log(`
756
+ console.log(
757
+ `
695
758
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
696
- `);
759
+ `
760
+ );
697
761
  };
698
- }, "getLogFn");
699
- var writeFatal = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.FATAL, config)(message), "writeFatal");
700
- var writeError = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.ERROR, config)(message), "writeError");
701
- var writeWarning = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.WARN, config)(message), "writeWarning");
702
- var writeInfo = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.INFO, config)(message), "writeInfo");
703
- var writeSuccess = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.SUCCESS, config)(message), "writeSuccess");
704
- var writeDebug = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.DEBUG, config)(message), "writeDebug");
705
- var writeTrace = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.TRACE, config)(message), "writeTrace");
706
- var getStopwatch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name) => {
762
+ };
763
+ var writeFatal = (message, config) => getLogFn(LogLevel.FATAL, config)(message);
764
+ var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
765
+ var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
766
+ var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
767
+ var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
768
+ var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
769
+ var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
770
+ var getStopwatch = (name) => {
707
771
  const start = process.hrtime();
708
772
  return () => {
709
773
  const end = process.hrtime(start);
710
- console.info(`
711
- > \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(end[0] * 1e3 + end[1] / 1e6)}ms to complete
712
- `);
774
+ console.info(
775
+ `
776
+ > \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
777
+ end[0] * 1e3 + end[1] / 1e6
778
+ )}ms to complete
779
+ `
780
+ );
713
781
  };
714
- }, "getStopwatch");
782
+ };
715
783
  var MAX_DEPTH = 4;
716
- var formatLogMessage = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, options = {}, depth2 = 0) => {
784
+ var formatLogMessage = (message, options = {}, depth2 = 0) => {
717
785
  if (depth2 > MAX_DEPTH) {
718
786
  return "<max depth>";
719
787
  }
720
788
  const prefix = _nullishCoalesce(options.prefix, () => ( "-"));
721
789
  const skip = _nullishCoalesce(options.skip, () => ( []));
722
790
  return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
723
- ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, {
724
- prefix: `${prefix}-`,
725
- skip
726
- }, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
727
- ${Object.keys(message).filter((key) => !skip.includes(key)).map((key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], {
728
- prefix: `${prefix}-`,
729
- skip
730
- }, depth2 + 1) : message[key]}`).join("\n")}` : message;
731
- }, "formatLogMessage");
732
- var _isFunction = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (value) => {
791
+ ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, { prefix: `${prefix}-`, skip }, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
792
+ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
793
+ (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
794
+ message[key],
795
+ { prefix: `${prefix}-`, skip },
796
+ depth2 + 1
797
+ ) : message[key]}`
798
+ ).join("\n")}` : message;
799
+ };
800
+ var _isFunction = (value) => {
733
801
  try {
734
802
  return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _23 => _23.constructor]) && _optionalChain([value, 'optionalAccess', _24 => _24.call]) && _optionalChain([value, 'optionalAccess', _25 => _25.apply]));
735
803
  } catch (e) {
736
804
  return false;
737
805
  }
738
- }, "_isFunction");
806
+ };
739
807
 
740
808
  // ../config-tools/src/create-storm-config.ts
741
809
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
@@ -743,7 +811,7 @@ var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
743
811
  // ../config-tools/src/config-file/get-config-file.ts
744
812
  var _c12 = require('c12');
745
813
 
746
- var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
814
+ var getConfigFileByName = async (fileName, filePath, options = {}) => {
747
815
  const workspacePath = filePath || findWorkspaceRoot(filePath);
748
816
  const configs = await Promise.all([
749
817
  _c12.loadConfig.call(void 0, {
@@ -753,7 +821,10 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
753
821
  envName: _optionalChain([fileName, 'optionalAccess', _26 => _26.toUpperCase, 'call', _27 => _27()]),
754
822
  jitiOptions: {
755
823
  debug: false,
756
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
824
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
825
+ process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
826
+ "jiti"
827
+ )
757
828
  },
758
829
  ...options
759
830
  }),
@@ -764,32 +835,45 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
764
835
  envName: _optionalChain([fileName, 'optionalAccess', _28 => _28.toUpperCase, 'call', _29 => _29()]),
765
836
  jitiOptions: {
766
837
  debug: false,
767
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
838
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
839
+ process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
840
+ "jiti"
841
+ )
768
842
  },
769
843
  configFile: fileName,
770
844
  ...options
771
845
  })
772
846
  ]);
773
847
  return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
774
- }, "getConfigFileByName");
775
- var getConfigFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
848
+ };
849
+ var getConfigFile = async (filePath, additionalFileNames = []) => {
776
850
  const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
777
851
  const result = await getConfigFileByName("storm-workspace", workspacePath);
778
852
  let config = result.config;
779
853
  const configFile = result.configFile;
780
854
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
781
- writeTrace(`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
782
- logLevel: "all"
783
- });
855
+ writeTrace(
856
+ `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
857
+ {
858
+ logLevel: "all"
859
+ }
860
+ );
784
861
  }
785
862
  if (additionalFileNames && additionalFileNames.length > 0) {
786
- const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
863
+ const results = await Promise.all(
864
+ additionalFileNames.map(
865
+ (fileName) => getConfigFileByName(fileName, workspacePath)
866
+ )
867
+ );
787
868
  for (const result2 of results) {
788
869
  if (_optionalChain([result2, 'optionalAccess', _30 => _30.config]) && _optionalChain([result2, 'optionalAccess', _31 => _31.configFile]) && Object.keys(result2.config).length > 0) {
789
870
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
790
- writeTrace(`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
791
- logLevel: "all"
792
- });
871
+ writeTrace(
872
+ `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
873
+ {
874
+ logLevel: "all"
875
+ }
876
+ );
793
877
  }
794
878
  config = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
795
879
  }
@@ -800,20 +884,22 @@ var getConfigFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (
800
884
  }
801
885
  config.configFile = configFile;
802
886
  return config;
803
- }, "getConfigFile");
887
+ };
804
888
 
805
889
  // ../config-tools/src/env/get-env.ts
806
- var getExtensionEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (extensionName) => {
890
+ var getExtensionEnv = (extensionName) => {
807
891
  const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
808
892
  return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
809
- const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
893
+ const name = key.replace(prefix, "").split("_").map(
894
+ (i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : ""
895
+ ).join("");
810
896
  if (name) {
811
897
  ret[name] = process.env[key];
812
898
  }
813
899
  return ret;
814
900
  }, {});
815
- }, "getExtensionEnv");
816
- var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
901
+ };
902
+ var getConfigEnv = () => {
817
903
  const prefix = "STORM_";
818
904
  let config = {
819
905
  extends: process.env[`${prefix}EXTENDS`] || void 0,
@@ -881,14 +967,25 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
881
967
  cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
882
968
  container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
883
969
  },
884
- 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`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
970
+ logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
971
+ Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
972
+ ) ? getLogLevelLabel(
973
+ Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
974
+ ) : process.env[`${prefix}LOG_LEVEL`] : void 0,
885
975
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
886
976
  };
887
- const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
888
- config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
889
- ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
890
- return ret;
891
- }, {}) : getThemeColorConfigEnv(prefix);
977
+ const themeNames = Object.keys(process.env).filter(
978
+ (envKey) => envKey.startsWith(`${prefix}COLOR_`) && COLOR_KEYS.every(
979
+ (colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
980
+ )
981
+ );
982
+ config.colors = themeNames.length > 0 ? themeNames.reduce(
983
+ (ret, themeName) => {
984
+ ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
985
+ return ret;
986
+ },
987
+ {}
988
+ ) : getThemeColorConfigEnv(prefix);
892
989
  if (config.docs === STORM_DEFAULT_DOCS) {
893
990
  if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
894
991
  config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
@@ -909,23 +1006,17 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
909
1006
  config = {
910
1007
  ...config,
911
1008
  ...parsed,
912
- colors: {
913
- ...config.colors,
914
- ...parsed.colors
915
- },
916
- extensions: {
917
- ...config.extensions,
918
- ...parsed.extensions
919
- }
1009
+ colors: { ...config.colors, ...parsed.colors },
1010
+ extensions: { ...config.extensions, ...parsed.extensions }
920
1011
  };
921
1012
  }
922
1013
  return config;
923
- }, "getConfigEnv");
924
- var getThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix, theme) => {
1014
+ };
1015
+ var getThemeColorConfigEnv = (prefix, theme) => {
925
1016
  const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
926
1017
  return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
927
- }, "getThemeColorConfigEnv");
928
- var getSingleThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix) => {
1018
+ };
1019
+ var getSingleThemeColorConfigEnv = (prefix) => {
929
1020
  return {
930
1021
  dark: process.env[`${prefix}DARK`],
931
1022
  light: process.env[`${prefix}LIGHT`],
@@ -942,14 +1033,16 @@ var getSingleThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(
942
1033
  positive: process.env[`${prefix}POSITIVE`],
943
1034
  negative: process.env[`${prefix}NEGATIVE`]
944
1035
  };
945
- }, "getSingleThemeColorConfigEnv");
946
- var getMultiThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix) => {
1036
+ };
1037
+ var getMultiThemeColorConfigEnv = (prefix) => {
947
1038
  return {
948
- light: getBaseThemeColorConfigEnv(`${prefix}_LIGHT_`),
1039
+ light: getBaseThemeColorConfigEnv(
1040
+ `${prefix}_LIGHT_`
1041
+ ),
949
1042
  dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
950
1043
  };
951
- }, "getMultiThemeColorConfigEnv");
952
- var getBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix) => {
1044
+ };
1045
+ var getBaseThemeColorConfigEnv = (prefix) => {
953
1046
  return {
954
1047
  foreground: process.env[`${prefix}FOREGROUND`],
955
1048
  background: process.env[`${prefix}BACKGROUND`],
@@ -966,13 +1059,16 @@ var getBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(vo
966
1059
  positive: process.env[`${prefix}POSITIVE`],
967
1060
  negative: process.env[`${prefix}NEGATIVE`]
968
1061
  };
969
- }, "getBaseThemeColorConfigEnv");
1062
+ };
970
1063
 
971
1064
  // ../config-tools/src/env/set-env.ts
972
- var setExtensionEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (extensionName, extension) => {
1065
+ var setExtensionEnv = (extensionName, extension) => {
973
1066
  for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
974
1067
  if (extension[key]) {
975
- const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _32 => _32.replace, 'call', _33 => _33(/([A-Z])+/g, (input) => input ? _optionalChain([input, 'access', _34 => _34[0], 'optionalAccess', _35 => _35.toUpperCase, 'call', _36 => _36()]) + input.slice(1) : ""), 'access', _37 => _37.split, 'call', _38 => _38(/(?=[A-Z])|[.\-\s_]/), 'access', _39 => _39.map, 'call', _40 => _40((x) => x.toLowerCase())]), () => ( []));
1068
+ const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _32 => _32.replace, 'call', _33 => _33(
1069
+ /([A-Z])+/g,
1070
+ (input) => input ? _optionalChain([input, 'access', _34 => _34[0], 'optionalAccess', _35 => _35.toUpperCase, 'call', _36 => _36()]) + input.slice(1) : ""
1071
+ ), 'access', _37 => _37.split, 'call', _38 => _38(/(?=[A-Z])|[.\-\s_]/), 'access', _39 => _39.map, 'call', _40 => _40((x) => x.toLowerCase())]), () => ( []));
976
1072
  let extensionKey;
977
1073
  if (result.length === 0) {
978
1074
  return;
@@ -987,8 +1083,8 @@ var setExtensionEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (exte
987
1083
  process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
988
1084
  }
989
1085
  }
990
- }, "setExtensionEnv");
991
- var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config) => {
1086
+ };
1087
+ var setConfigEnv = (config) => {
992
1088
  const prefix = "STORM_";
993
1089
  if (config.extends) {
994
1090
  process.env[`${prefix}EXTENDS`] = Array.isArray(config.extends) ? JSON.stringify(config.extends) : config.extends;
@@ -1077,7 +1173,9 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
1077
1173
  }
1078
1174
  if (config.directories) {
1079
1175
  if (!config.skipCache && config.directories.cache) {
1080
- process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
1176
+ process.env[`${prefix}CACHE_DIR`] = correctPaths(
1177
+ config.directories.cache
1178
+ );
1081
1179
  process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
1082
1180
  }
1083
1181
  if (config.directories.data) {
@@ -1085,7 +1183,9 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
1085
1183
  process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
1086
1184
  }
1087
1185
  if (config.directories.config) {
1088
- process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
1186
+ process.env[`${prefix}CONFIG_DIR`] = correctPaths(
1187
+ config.directories.config
1188
+ );
1089
1189
  process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
1090
1190
  }
1091
1191
  if (config.directories.temp) {
@@ -1097,7 +1197,9 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
1097
1197
  process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
1098
1198
  }
1099
1199
  if (config.directories.build) {
1100
- process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
1200
+ process.env[`${prefix}BUILD_DIR`] = correctPaths(
1201
+ config.directories.build
1202
+ );
1101
1203
  process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
1102
1204
  }
1103
1205
  }
@@ -1118,7 +1220,10 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
1118
1220
  setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
1119
1221
  }
1120
1222
  } else {
1121
- setThemeColorConfigEnv(`${prefix}COLOR_`, config.colors);
1223
+ setThemeColorConfigEnv(
1224
+ `${prefix}COLOR_`,
1225
+ config.colors
1226
+ );
1122
1227
  }
1123
1228
  if (config.repository) {
1124
1229
  process.env[`${prefix}REPOSITORY`] = config.repository;
@@ -1130,7 +1235,9 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
1130
1235
  process.env[`${prefix}PRE_ID`] = String(config.preid);
1131
1236
  }
1132
1237
  if (config.externalPackagePatterns) {
1133
- process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] = JSON.stringify(config.externalPackagePatterns);
1238
+ process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] = JSON.stringify(
1239
+ config.externalPackagePatterns
1240
+ );
1134
1241
  }
1135
1242
  if (config.registry) {
1136
1243
  if (config.registry.github) {
@@ -1143,20 +1250,28 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
1143
1250
  process.env[`${prefix}REGISTRY_CARGO`] = String(config.registry.cargo);
1144
1251
  }
1145
1252
  if (config.registry.cyclone) {
1146
- process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
1253
+ process.env[`${prefix}REGISTRY_CYCLONE`] = String(
1254
+ config.registry.cyclone
1255
+ );
1147
1256
  }
1148
1257
  if (config.registry.container) {
1149
- process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
1258
+ process.env[`${prefix}REGISTRY_CONTAINER`] = String(
1259
+ config.registry.container
1260
+ );
1150
1261
  }
1151
1262
  }
1152
1263
  if (config.logLevel) {
1153
1264
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
1154
1265
  process.env.LOG_LEVEL = String(config.logLevel);
1155
- process.env.NX_VERBOSE_LOGGING = String(getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false);
1266
+ process.env.NX_VERBOSE_LOGGING = String(
1267
+ getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
1268
+ );
1156
1269
  process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
1157
1270
  }
1158
1271
  if (config.skipConfigLogging !== void 0) {
1159
- process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
1272
+ process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
1273
+ config.skipConfigLogging
1274
+ );
1160
1275
  }
1161
1276
  process.env[`${prefix}CONFIG`] = JSON.stringify(config);
1162
1277
  for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
@@ -1164,11 +1279,11 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
1164
1279
  setExtensionEnv(key, config.extensions[key]);
1165
1280
  }
1166
1281
  }
1167
- }, "setConfigEnv");
1168
- var setThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix, config) => {
1282
+ };
1283
+ var setThemeColorConfigEnv = (prefix, config) => {
1169
1284
  return _optionalChain([config, 'optionalAccess', _50 => _50.light, 'optionalAccess', _51 => _51.brand]) || _optionalChain([config, 'optionalAccess', _52 => _52.dark, 'optionalAccess', _53 => _53.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
1170
- }, "setThemeColorConfigEnv");
1171
- var setSingleThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix, config) => {
1285
+ };
1286
+ var setSingleThemeColorConfigEnv = (prefix, config) => {
1172
1287
  if (config.dark) {
1173
1288
  process.env[`${prefix}DARK`] = config.dark;
1174
1289
  }
@@ -1211,14 +1326,14 @@ var setSingleThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(
1211
1326
  if (config.negative) {
1212
1327
  process.env[`${prefix}NEGATIVE`] = config.negative;
1213
1328
  }
1214
- }, "setSingleThemeColorConfigEnv");
1215
- var setMultiThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix, config) => {
1329
+ };
1330
+ var setMultiThemeColorConfigEnv = (prefix, config) => {
1216
1331
  return {
1217
1332
  light: setBaseThemeColorConfigEnv(`${prefix}LIGHT_`, config.light),
1218
1333
  dark: setBaseThemeColorConfigEnv(`${prefix}DARK_`, config.dark)
1219
1334
  };
1220
- }, "setMultiThemeColorConfigEnv");
1221
- var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix, config) => {
1335
+ };
1336
+ var setBaseThemeColorConfigEnv = (prefix, config) => {
1222
1337
  if (config.foreground) {
1223
1338
  process.env[`${prefix}FOREGROUND`] = config.foreground;
1224
1339
  }
@@ -1261,12 +1376,12 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(vo
1261
1376
  if (config.negative) {
1262
1377
  process.env[`${prefix}NEGATIVE`] = config.negative;
1263
1378
  }
1264
- }, "setBaseThemeColorConfigEnv");
1379
+ };
1265
1380
 
1266
1381
  // ../config-tools/src/create-storm-config.ts
1267
1382
  var _extension_cache = /* @__PURE__ */ new WeakMap();
1268
1383
  var _static_cache = void 0;
1269
- var createStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
1384
+ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
1270
1385
  let result;
1271
1386
  if (!_optionalChain([_static_cache, 'optionalAccess', _54 => _54.data]) || !_optionalChain([_static_cache, 'optionalAccess', _55 => _55.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
1272
1387
  let _workspaceRoot = workspaceRoot;
@@ -1277,16 +1392,19 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(vo
1277
1392
  const configFile = await getConfigFile(_workspaceRoot);
1278
1393
  if (!configFile) {
1279
1394
  if (!skipLogs) {
1280
- 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", {
1281
- logLevel: "all"
1282
- });
1395
+ writeWarning(
1396
+ "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",
1397
+ { logLevel: "all" }
1398
+ );
1283
1399
  }
1284
1400
  if (useDefault === false) {
1285
1401
  return void 0;
1286
1402
  }
1287
1403
  }
1288
1404
  const defaultConfig = await getDefaultConfig(_workspaceRoot);
1289
- result = await stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
1405
+ result = await stormWorkspaceConfigSchema.parseAsync(
1406
+ _defu2.default.call(void 0, configEnv, configFile, defaultConfig)
1407
+ );
1290
1408
  result.workspaceRoot ??= _workspaceRoot;
1291
1409
  } else {
1292
1410
  result = _static_cache.data;
@@ -1302,11 +1420,9 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(vo
1302
1420
  data: result
1303
1421
  };
1304
1422
  return result;
1305
- }, "createStormWorkspaceConfig");
1306
- var createConfigExtension = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (extensionName, schema) => {
1307
- const extension_cache_key = {
1308
- extensionName
1309
- };
1423
+ };
1424
+ var createConfigExtension = (extensionName, schema) => {
1425
+ const extension_cache_key = { extensionName };
1310
1426
  if (_extension_cache.has(extension_cache_key)) {
1311
1427
  return _extension_cache.get(extension_cache_key);
1312
1428
  }
@@ -1316,21 +1432,30 @@ var createConfigExtension = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
1316
1432
  }
1317
1433
  _extension_cache.set(extension_cache_key, extension);
1318
1434
  return extension;
1319
- }, "createConfigExtension");
1320
- var loadStormWorkspaceConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
1321
- const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
1435
+ };
1436
+ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
1437
+ const config = await createStormWorkspaceConfig(
1438
+ void 0,
1439
+ void 0,
1440
+ workspaceRoot,
1441
+ skipLogs,
1442
+ true
1443
+ );
1322
1444
  setConfigEnv(config);
1323
1445
  if (!skipLogs && !config.skipConfigLogging) {
1324
- writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
1325
- ${formatLogMessage(config)}`, config);
1446
+ writeTrace(
1447
+ `\u2699\uFE0F Using Storm Workspace configuration:
1448
+ ${formatLogMessage(config)}`,
1449
+ config
1450
+ );
1326
1451
  }
1327
1452
  return config;
1328
- }, "loadStormWorkspaceConfig");
1453
+ };
1329
1454
 
1330
1455
  // ../config-tools/src/get-config.ts
1331
- var getConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (workspaceRoot, skipLogs = false) => {
1456
+ var getConfig = (workspaceRoot, skipLogs = false) => {
1332
1457
  return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
1333
- }, "getConfig");
1458
+ };
1334
1459
 
1335
1460
 
1336
1461