@storm-software/config-tools 1.169.7 → 1.170.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/README.md +1 -1
  2. package/bin/config.cjs +50 -11
  3. package/bin/config.js +56 -17
  4. package/dist/{chunk-WITKEKZ5.js → chunk-26BPJW3I.js} +12 -9
  5. package/dist/{chunk-BYLFGW3E.cjs → chunk-26LV7S6Z.cjs} +9 -9
  6. package/dist/{chunk-BJ2W75ZO.cjs → chunk-2CVNUZFW.cjs} +22 -19
  7. package/dist/{chunk-XBNXWUW3.cjs → chunk-2IEYYP2I.cjs} +2 -2
  8. package/dist/{chunk-JX5NLB4S.js → chunk-4KZ3BMNG.js} +44 -10
  9. package/dist/{chunk-GIXUQACB.cjs → chunk-4PAEA5KV.cjs} +44 -10
  10. package/dist/{chunk-J2LCTMCI.cjs → chunk-4VJPNKRP.cjs} +9 -9
  11. package/dist/{chunk-D2H6Y42I.cjs → chunk-5XVUNKW6.cjs} +3 -0
  12. package/dist/{chunk-QXXXAJVP.cjs → chunk-6LO4SCE6.cjs} +3 -2
  13. package/dist/{chunk-BAWQ37NK.js → chunk-6YK3KZIF.js} +1 -1
  14. package/dist/{chunk-3TLEBPG2.cjs → chunk-7BVMJTE2.cjs} +9 -9
  15. package/dist/{chunk-QDJMKPQQ.js → chunk-7OSBTSCE.js} +1 -1
  16. package/dist/{chunk-7V5ZWT3O.js → chunk-BKQBZMGO.js} +1 -0
  17. package/dist/{chunk-7HCUD67D.cjs → chunk-BMDGKEGP.cjs} +3 -3
  18. package/dist/{chunk-7SIKKF62.cjs → chunk-DX767CQS.cjs} +2 -2
  19. package/dist/{chunk-56NGBR4S.cjs → chunk-E5XT5FVB.cjs} +3 -2
  20. package/dist/{chunk-H425P7G5.cjs → chunk-F7MZXFL2.cjs} +3 -0
  21. package/dist/{chunk-G6IQUR2B.js → chunk-FRM3M54F.js} +1 -1
  22. package/dist/{chunk-PORZT4W3.js → chunk-JRKB77S5.js} +1 -1
  23. package/dist/{chunk-H2GU4JMJ.cjs → chunk-KX7CIRN3.cjs} +3 -3
  24. package/dist/{chunk-MU2JW35A.js → chunk-MN6CU3TR.js} +14 -11
  25. package/dist/{chunk-JYKZS46U.cjs → chunk-MNLUPWAB.cjs} +5 -5
  26. package/dist/{chunk-IYQC7ESZ.js → chunk-NUOCEMFW.js} +1 -1
  27. package/dist/{chunk-FCWF3I34.cjs → chunk-OD7DEEL5.cjs} +9 -9
  28. package/dist/{chunk-SA3JCBON.js → chunk-OUYYXBZX.js} +4 -4
  29. package/dist/{chunk-LEJKESBR.cjs → chunk-QWVC3UD5.cjs} +3 -3
  30. package/dist/{chunk-LDDYJHK5.cjs → chunk-RJVVMUQK.cjs} +22 -19
  31. package/dist/{chunk-GMHWE7ZI.js → chunk-STYJJA3M.js} +1 -1
  32. package/dist/{chunk-XS7LVKAI.js → chunk-TCSDVRRN.js} +6 -3
  33. package/dist/{chunk-BISNOW2V.cjs → chunk-TGDG6POD.cjs} +2 -2
  34. package/dist/{chunk-5ZIDRDGG.js → chunk-TRI5HQQN.js} +6 -3
  35. package/dist/{chunk-ELNIDXR5.js → chunk-U74E4EM6.js} +1 -1
  36. package/dist/{chunk-Q6MCB3G2.cjs → chunk-UPV2R6VP.cjs} +3 -3
  37. package/dist/{chunk-4DF7JJF3.js → chunk-VSPBZRTR.js} +1 -1
  38. package/dist/{chunk-YGCYQLTS.js → chunk-WT2BVWII.js} +1 -1
  39. package/dist/{chunk-XO6ICAFH.js → chunk-XT2XO7TR.js} +1 -1
  40. package/dist/{chunk-QJUAU656.js → chunk-YPBNOKK2.js} +3 -3
  41. package/dist/{chunk-RSKVXFI5.js → chunk-Z3RQ7QQH.js} +1 -0
  42. package/dist/config-file/get-config-file.cjs +7 -7
  43. package/dist/config-file/get-config-file.js +6 -6
  44. package/dist/config-file/index.cjs +7 -7
  45. package/dist/config-file/index.js +6 -6
  46. package/dist/create-storm-config.cjs +10 -10
  47. package/dist/create-storm-config.js +9 -9
  48. package/dist/env/get-env.cjs +2 -2
  49. package/dist/env/get-env.js +1 -1
  50. package/dist/env/index.cjs +3 -3
  51. package/dist/env/index.js +2 -2
  52. package/dist/env/set-env.cjs +2 -2
  53. package/dist/env/set-env.js +1 -1
  54. package/dist/get-config.cjs +11 -11
  55. package/dist/get-config.js +10 -10
  56. package/dist/index.cjs +13 -11
  57. package/dist/index.d.cts +1 -1
  58. package/dist/index.d.ts +1 -1
  59. package/dist/index.js +14 -12
  60. package/dist/logger/console.cjs +3 -3
  61. package/dist/logger/console.js +2 -2
  62. package/dist/logger/create-logger.cjs +4 -4
  63. package/dist/logger/create-logger.js +3 -3
  64. package/dist/logger/index.cjs +4 -4
  65. package/dist/logger/index.js +3 -3
  66. package/dist/utilities/get-default-config.cjs +4 -2
  67. package/dist/utilities/get-default-config.d.cts +9 -4
  68. package/dist/utilities/get-default-config.d.ts +9 -4
  69. package/dist/utilities/get-default-config.js +5 -3
  70. package/dist/utilities/index.cjs +8 -6
  71. package/dist/utilities/index.d.cts +1 -1
  72. package/dist/utilities/index.d.ts +1 -1
  73. package/dist/utilities/index.js +9 -7
  74. package/dist/utilities/process-handler.cjs +4 -4
  75. package/dist/utilities/process-handler.js +3 -3
  76. package/dist/utilities/toml.cjs +5 -5
  77. package/dist/utilities/toml.js +4 -4
  78. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
3
 
4
- var _chunk7SIKKF62cjs = require('./chunk-7SIKKF62.cjs');
4
+ var _chunkMNLUPWABcjs = require('./chunk-MNLUPWAB.cjs');
5
5
 
6
6
 
7
7
  var _chunkAEZINHEAcjs = require('./chunk-AEZINHEA.cjs');
@@ -16,13 +16,13 @@ async function createLogger(config) {
16
16
  if (!workspaceRoot) {
17
17
  throw new Error("Cannot find workspace root");
18
18
  }
19
- const writeFatal = _chunk7SIKKF62cjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.FATAL, config, _chalk2.default);
20
- const writeError = _chunk7SIKKF62cjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.ERROR, config, _chalk2.default);
21
- const writeWarning = _chunk7SIKKF62cjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.WARN, config, _chalk2.default);
22
- const writeInfo = _chunk7SIKKF62cjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.INFO, config, _chalk2.default);
23
- const writeSuccess = _chunk7SIKKF62cjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.SUCCESS, config, _chalk2.default);
24
- const writeDebug = _chunk7SIKKF62cjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.DEBUG, config, _chalk2.default);
25
- const writeTrace = _chunk7SIKKF62cjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.DEBUG, config, _chalk2.default);
19
+ const writeFatal = _chunkMNLUPWABcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.FATAL, config, _chalk2.default);
20
+ const writeError = _chunkMNLUPWABcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.ERROR, config, _chalk2.default);
21
+ const writeWarning = _chunkMNLUPWABcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.WARN, config, _chalk2.default);
22
+ const writeInfo = _chunkMNLUPWABcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.INFO, config, _chalk2.default);
23
+ const writeSuccess = _chunkMNLUPWABcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.SUCCESS, config, _chalk2.default);
24
+ const writeDebug = _chunkMNLUPWABcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.DEBUG, config, _chalk2.default);
25
+ const writeTrace = _chunkMNLUPWABcjs.getLogFn.call(void 0, _chunkC5OTFOQBcjs.LogLevel.DEBUG, config, _chalk2.default);
26
26
  return {
27
27
  fatal: writeFatal,
28
28
  error: writeError,
@@ -31,7 +31,7 @@ async function createLogger(config) {
31
31
  success: writeSuccess,
32
32
  debug: writeDebug,
33
33
  trace: writeTrace,
34
- getStopwatch: _chunk7SIKKF62cjs.getStopwatch
34
+ getStopwatch: _chunkMNLUPWABcjs.getStopwatch
35
35
  };
36
36
  }
37
37
 
@@ -99,6 +99,9 @@ var setConfigEnv = (config) => {
99
99
  if (config.contact) {
100
100
  process.env[`${prefix}CONTACT`] = config.contact;
101
101
  }
102
+ if (config.support) {
103
+ process.env[`${prefix}SUPPORT`] = config.support;
104
+ }
102
105
  if (config.timezone) {
103
106
  process.env[`${prefix}TIMEZONE`] = config.timezone;
104
107
  process.env.TZ = config.timezone;
@@ -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(); } }
2
2
 
3
- var _chunk7BZWQZUVcjs = require('./chunk-7BZWQZUV.cjs');
3
+ var _chunk4JREL2GQcjs = require('./chunk-4JREL2GQ.cjs');
4
4
 
5
5
 
6
- var _chunk4JREL2GQcjs = require('./chunk-4JREL2GQ.cjs');
6
+ var _chunk7BZWQZUVcjs = require('./chunk-7BZWQZUV.cjs');
7
7
 
8
8
  // src/env/get-env.ts
9
9
 
@@ -59,6 +59,7 @@ var getConfigEnv = () => {
59
59
  docs: process.env[`${prefix}DOCS`] || void 0,
60
60
  licensing: process.env[`${prefix}LICENSING`] || void 0,
61
61
  contact: process.env[`${prefix}CONTACT`] || void 0,
62
+ support: process.env[`${prefix}SUPPORT`] || void 0,
62
63
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
63
64
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
64
65
  configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunk4JREL2GQcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  loadStormWorkspaceConfig,
3
3
  tryLoadStormWorkspaceConfig
4
- } from "./chunk-WITKEKZ5.js";
4
+ } from "./chunk-MN6CU3TR.js";
5
5
  import {
6
6
  findWorkspaceRoot
7
7
  } from "./chunk-VLWSWYG7.js";
@@ -3,31 +3,31 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkJYKZS46Ucjs = require('./chunk-JYKZS46U.cjs');
6
+ var _chunkDX767CQScjs = require('./chunk-DX767CQS.cjs');
7
7
 
8
8
  // src/utilities/process-handler.ts
9
9
  var exitWithError = (config) => {
10
- _chunkJYKZS46Ucjs.writeFatal.call(void 0, "Exiting script with an error status...", config);
10
+ _chunkDX767CQScjs.writeFatal.call(void 0, "Exiting script with an error status...", config);
11
11
  process.exit(1);
12
12
  };
13
13
  var exitWithSuccess = (config) => {
14
- _chunkJYKZS46Ucjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
14
+ _chunkDX767CQScjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
15
15
  process.exit(0);
16
16
  };
17
17
  var handleProcess = (config) => {
18
- _chunkJYKZS46Ucjs.writeTrace.call(void 0,
18
+ _chunkDX767CQScjs.writeTrace.call(void 0,
19
19
  `Using the following arguments to process the script: ${process.argv.join(", ")}`,
20
20
  config
21
21
  );
22
22
  process.on("unhandledRejection", (error) => {
23
- _chunkJYKZS46Ucjs.writeError.call(void 0,
23
+ _chunkDX767CQScjs.writeError.call(void 0,
24
24
  `An Unhandled Rejection occurred while running the program: ${error}`,
25
25
  config
26
26
  );
27
27
  exitWithError(config);
28
28
  });
29
29
  process.on("uncaughtException", (error) => {
30
- _chunkJYKZS46Ucjs.writeError.call(void 0,
30
+ _chunkDX767CQScjs.writeError.call(void 0,
31
31
  `An Uncaught Exception occurred while running the program: ${error.message}
32
32
  Stacktrace: ${error.stack}`,
33
33
  config
@@ -35,15 +35,15 @@ Stacktrace: ${error.stack}`,
35
35
  exitWithError(config);
36
36
  });
37
37
  process.on("SIGTERM", (signal) => {
38
- _chunkJYKZS46Ucjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
38
+ _chunkDX767CQScjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
39
39
  exitWithError(config);
40
40
  });
41
41
  process.on("SIGINT", (signal) => {
42
- _chunkJYKZS46Ucjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
42
+ _chunkDX767CQScjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
43
43
  exitWithError(config);
44
44
  });
45
45
  process.on("SIGHUP", (signal) => {
46
- _chunkJYKZS46Ucjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
46
+ _chunkDX767CQScjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
47
47
  exitWithError(config);
48
48
  });
49
49
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getLogFn,
3
3
  getStopwatch
4
- } from "./chunk-QJUAU656.js";
4
+ } from "./chunk-YPBNOKK2.js";
5
5
  import {
6
6
  findWorkspaceRoot
7
7
  } from "./chunk-VLWSWYG7.js";
@@ -59,6 +59,7 @@ var getConfigEnv = () => {
59
59
  docs: process.env[`${prefix}DOCS`] || void 0,
60
60
  licensing: process.env[`${prefix}LICENSING`] || void 0,
61
61
  contact: process.env[`${prefix}CONTACT`] || void 0,
62
+ support: process.env[`${prefix}SUPPORT`] || void 0,
62
63
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
63
64
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
64
65
  configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
@@ -1,6 +1,6 @@
1
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
2
 
3
- var _chunk7SIKKF62cjs = require('./chunk-7SIKKF62.cjs');
3
+ var _chunkDX767CQScjs = require('./chunk-DX767CQS.cjs');
4
4
 
5
5
 
6
6
  var _chunkAEZINHEAcjs = require('./chunk-AEZINHEA.cjs');
@@ -52,7 +52,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
52
52
  let config = result.config;
53
53
  const configFile = result.configFile;
54
54
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
55
- _chunk7SIKKF62cjs.writeTrace.call(void 0,
55
+ _chunkDX767CQScjs.writeTrace.call(void 0,
56
56
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
57
57
  {
58
58
  logLevel: "all"
@@ -68,7 +68,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
68
68
  for (const result2 of results) {
69
69
  if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
70
70
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
71
- _chunk7SIKKF62cjs.writeTrace.call(void 0,
71
+ _chunkDX767CQScjs.writeTrace.call(void 0,
72
72
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
73
73
  {
74
74
  logLevel: "all"
@@ -1,6 +1,6 @@
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 _chunkGIXUQACBcjs = require('./chunk-GIXUQACB.cjs');
3
+ var _chunk4PAEA5KVcjs = require('./chunk-4PAEA5KV.cjs');
4
4
 
5
5
 
6
6
  var _chunkNS5PJ2RMcjs = require('./chunk-NS5PJ2RM.cjs');
@@ -20,7 +20,7 @@ var _chunkC5OTFOQBcjs = require('./chunk-C5OTFOQB.cjs');
20
20
 
21
21
  // src/logger/console.ts
22
22
  var getLogFn = (logLevel = _chunkC5OTFOQBcjs.LogLevel.INFO, config = {}, _chalk = _chunkNS5PJ2RMcjs.getChalk.call(void 0, )) => {
23
- const colors = !_optionalChain([config, 'access', _2 => _2.colors, 'optionalAccess', _3 => _3.dark]) && !_optionalChain([config, 'access', _4 => _4.colors, 'optionalAccess', _5 => _5["base"]]) && !_optionalChain([config, 'access', _6 => _6.colors, 'optionalAccess', _7 => _7["base"], 'optionalAccess', _8 => _8.dark]) ? _chunkGIXUQACBcjs.DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) ? _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"]]) : _chunkGIXUQACBcjs.DEFAULT_COLOR_CONFIG;
23
+ const colors = !_optionalChain([config, 'access', _2 => _2.colors, 'optionalAccess', _3 => _3.dark]) && !_optionalChain([config, 'access', _4 => _4.colors, 'optionalAccess', _5 => _5["base"]]) && !_optionalChain([config, 'access', _6 => _6.colors, 'optionalAccess', _7 => _7["base"], 'optionalAccess', _8 => _8.dark]) ? _chunk4PAEA5KVcjs.DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) ? _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"]]) : _chunk4PAEA5KVcjs.DEFAULT_COLOR_CONFIG;
24
24
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || _chunkC5OTFOQBcjs.LogLevelLabel.INFO;
25
25
  if (logLevel > _chunk7BZWQZUVcjs.getLogLevel.call(void 0, configLogLevel) || logLevel <= _chunkC5OTFOQBcjs.LogLevel.SILENT || _chunk7BZWQZUVcjs.getLogLevel.call(void 0, configLogLevel) <= _chunkC5OTFOQBcjs.LogLevel.SILENT) {
26
26
  return (_) => {
@@ -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(); } }
2
2
 
3
- var _chunk4JREL2GQcjs = require('./chunk-4JREL2GQ.cjs');
3
+ var _chunk7BZWQZUVcjs = require('./chunk-7BZWQZUV.cjs');
4
4
 
5
5
 
6
- var _chunk7BZWQZUVcjs = require('./chunk-7BZWQZUV.cjs');
6
+ var _chunk4JREL2GQcjs = require('./chunk-4JREL2GQ.cjs');
7
7
 
8
8
  // src/env/get-env.ts
9
9
 
@@ -59,6 +59,7 @@ var getConfigEnv = () => {
59
59
  docs: process.env[`${prefix}DOCS`] || void 0,
60
60
  licensing: process.env[`${prefix}LICENSING`] || void 0,
61
61
  contact: process.env[`${prefix}CONTACT`] || void 0,
62
+ support: process.env[`${prefix}SUPPORT`] || void 0,
62
63
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
63
64
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
64
65
  configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunk4JREL2GQcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
@@ -99,6 +99,9 @@ var setConfigEnv = (config) => {
99
99
  if (config.contact) {
100
100
  process.env[`${prefix}CONTACT`] = config.contact;
101
101
  }
102
+ if (config.support) {
103
+ process.env[`${prefix}SUPPORT`] = config.support;
104
+ }
102
105
  if (config.timezone) {
103
106
  process.env[`${prefix}TIMEZONE`] = config.timezone;
104
107
  process.env.TZ = config.timezone;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-SA3JCBON.js";
3
+ } from "./chunk-YPBNOKK2.js";
4
4
 
5
5
  // src/utilities/toml.ts
6
6
  import TOML from "@ltd/j-toml";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-QJUAU656.js";
3
+ } from "./chunk-OUYYXBZX.js";
4
4
 
5
5
  // src/utilities/toml.ts
6
6
  import TOML from "@ltd/j-toml";
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkBJ2W75ZOcjs = require('./chunk-BJ2W75ZO.cjs');
4
+ var _chunkRJVVMUQKcjs = require('./chunk-RJVVMUQK.cjs');
5
5
 
6
6
 
7
7
  var _chunkAEZINHEAcjs = require('./chunk-AEZINHEA.cjs');
8
8
 
9
9
  // src/get-config.ts
10
10
  var getConfig = (workspaceRoot, skipLogs = false) => {
11
- return _chunkBJ2W75ZOcjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
11
+ return _chunkRJVVMUQKcjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
12
12
  };
13
13
  var getWorkspaceConfig = (skipLogs = false, options = {}) => {
14
14
  let workspaceRoot = options.workspaceRoot;
@@ -23,7 +23,7 @@ var tryGetWorkspaceConfig = async (skipLogs = false, options = {}) => {
23
23
  if (!workspaceRoot) {
24
24
  workspaceRoot = _chunkAEZINHEAcjs.findWorkspaceRoot.call(void 0, options.cwd);
25
25
  }
26
- return _chunkBJ2W75ZOcjs.tryLoadStormWorkspaceConfig.call(void 0,
26
+ return _chunkRJVVMUQKcjs.tryLoadStormWorkspaceConfig.call(void 0,
27
27
  workspaceRoot,
28
28
  skipLogs,
29
29
  options.useDefault
@@ -1,24 +1,25 @@
1
1
  import {
2
2
  getConfigFile
3
- } from "./chunk-4DF7JJF3.js";
3
+ } from "./chunk-VSPBZRTR.js";
4
4
  import {
5
5
  formatLogMessage,
6
6
  writeTrace,
7
7
  writeWarning
8
- } from "./chunk-SA3JCBON.js";
8
+ } from "./chunk-YPBNOKK2.js";
9
9
  import {
10
- getDefaultConfig
11
- } from "./chunk-JX5NLB4S.js";
10
+ applyDefaultConfig,
11
+ getPackageJsonConfig
12
+ } from "./chunk-4KZ3BMNG.js";
12
13
  import {
13
14
  findWorkspaceRoot
14
15
  } from "./chunk-VLWSWYG7.js";
16
+ import {
17
+ setConfigEnv
18
+ } from "./chunk-TCSDVRRN.js";
15
19
  import {
16
20
  getConfigEnv,
17
21
  getExtensionEnv
18
- } from "./chunk-7V5ZWT3O.js";
19
- import {
20
- setConfigEnv
21
- } from "./chunk-5ZIDRDGG.js";
22
+ } from "./chunk-BKQBZMGO.js";
22
23
 
23
24
  // src/create-storm-config.ts
24
25
  import { stormWorkspaceConfigSchema } from "@storm-software/config/schema";
@@ -45,9 +46,11 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
45
46
  return void 0;
46
47
  }
47
48
  }
48
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
49
- result = await stormWorkspaceConfigSchema.parseAsync(
50
- defu(configEnv, configFile, defaultConfig)
49
+ const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
50
+ result = applyDefaultConfig(
51
+ await stormWorkspaceConfigSchema.parseAsync(
52
+ defu(configEnv, configFile, defaultConfig)
53
+ )
51
54
  );
52
55
  result.workspaceRoot ??= _workspaceRoot;
53
56
  } else {
@@ -1,6 +1,6 @@
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 _chunkGIXUQACBcjs = require('./chunk-GIXUQACB.cjs');
3
+ var _chunkNS5PJ2RMcjs = require('./chunk-NS5PJ2RM.cjs');
4
4
 
5
5
 
6
6
  var _chunkPSHJQ2NPcjs = require('./chunk-PSHJQ2NP.cjs');
@@ -9,18 +9,18 @@ var _chunkPSHJQ2NPcjs = require('./chunk-PSHJQ2NP.cjs');
9
9
  var _chunkQNDF3RQLcjs = require('./chunk-QNDF3RQL.cjs');
10
10
 
11
11
 
12
- var _chunk7BZWQZUVcjs = require('./chunk-7BZWQZUV.cjs');
12
+ var _chunk4PAEA5KVcjs = require('./chunk-4PAEA5KV.cjs');
13
13
 
14
14
 
15
+ var _chunk7BZWQZUVcjs = require('./chunk-7BZWQZUV.cjs');
15
16
 
16
- var _chunkC5OTFOQBcjs = require('./chunk-C5OTFOQB.cjs');
17
17
 
18
18
 
19
- var _chunkNS5PJ2RMcjs = require('./chunk-NS5PJ2RM.cjs');
19
+ var _chunkC5OTFOQBcjs = require('./chunk-C5OTFOQB.cjs');
20
20
 
21
21
  // src/logger/console.ts
22
22
  var getLogFn = (logLevel = _chunkC5OTFOQBcjs.LogLevel.INFO, config = {}, _chalk = _chunkNS5PJ2RMcjs.getChalk.call(void 0, )) => {
23
- const colors = !_optionalChain([config, 'access', _2 => _2.colors, 'optionalAccess', _3 => _3.dark]) && !_optionalChain([config, 'access', _4 => _4.colors, 'optionalAccess', _5 => _5["base"]]) && !_optionalChain([config, 'access', _6 => _6.colors, 'optionalAccess', _7 => _7["base"], 'optionalAccess', _8 => _8.dark]) ? _chunkGIXUQACBcjs.DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) ? _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"]]) : _chunkGIXUQACBcjs.DEFAULT_COLOR_CONFIG;
23
+ const colors = !_optionalChain([config, 'access', _2 => _2.colors, 'optionalAccess', _3 => _3.dark]) && !_optionalChain([config, 'access', _4 => _4.colors, 'optionalAccess', _5 => _5["base"]]) && !_optionalChain([config, 'access', _6 => _6.colors, 'optionalAccess', _7 => _7["base"], 'optionalAccess', _8 => _8.dark]) ? _chunk4PAEA5KVcjs.DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) ? _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"]]) : _chunk4PAEA5KVcjs.DEFAULT_COLOR_CONFIG;
24
24
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || _chunkC5OTFOQBcjs.LogLevelLabel.INFO;
25
25
  if (logLevel > _chunk7BZWQZUVcjs.getLogLevel.call(void 0, configLogLevel) || logLevel <= _chunkC5OTFOQBcjs.LogLevel.SILENT || _chunk7BZWQZUVcjs.getLogLevel.call(void 0, configLogLevel) <= _chunkC5OTFOQBcjs.LogLevel.SILENT) {
26
26
  return (_) => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  loadStormWorkspaceConfig,
3
3
  tryLoadStormWorkspaceConfig
4
- } from "./chunk-MU2JW35A.js";
4
+ } from "./chunk-26BPJW3I.js";
5
5
  import {
6
6
  findWorkspaceRoot
7
7
  } from "./chunk-VLWSWYG7.js";
@@ -3,31 +3,31 @@
3
3
 
4
4
 
5
5
 
6
- var _chunk7SIKKF62cjs = require('./chunk-7SIKKF62.cjs');
6
+ var _chunkMNLUPWABcjs = require('./chunk-MNLUPWAB.cjs');
7
7
 
8
8
  // src/utilities/process-handler.ts
9
9
  var exitWithError = (config) => {
10
- _chunk7SIKKF62cjs.writeFatal.call(void 0, "Exiting script with an error status...", config);
10
+ _chunkMNLUPWABcjs.writeFatal.call(void 0, "Exiting script with an error status...", config);
11
11
  process.exit(1);
12
12
  };
13
13
  var exitWithSuccess = (config) => {
14
- _chunk7SIKKF62cjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
14
+ _chunkMNLUPWABcjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
15
15
  process.exit(0);
16
16
  };
17
17
  var handleProcess = (config) => {
18
- _chunk7SIKKF62cjs.writeTrace.call(void 0,
18
+ _chunkMNLUPWABcjs.writeTrace.call(void 0,
19
19
  `Using the following arguments to process the script: ${process.argv.join(", ")}`,
20
20
  config
21
21
  );
22
22
  process.on("unhandledRejection", (error) => {
23
- _chunk7SIKKF62cjs.writeError.call(void 0,
23
+ _chunkMNLUPWABcjs.writeError.call(void 0,
24
24
  `An Unhandled Rejection occurred while running the program: ${error}`,
25
25
  config
26
26
  );
27
27
  exitWithError(config);
28
28
  });
29
29
  process.on("uncaughtException", (error) => {
30
- _chunk7SIKKF62cjs.writeError.call(void 0,
30
+ _chunkMNLUPWABcjs.writeError.call(void 0,
31
31
  `An Uncaught Exception occurred while running the program: ${error.message}
32
32
  Stacktrace: ${error.stack}`,
33
33
  config
@@ -35,15 +35,15 @@ Stacktrace: ${error.stack}`,
35
35
  exitWithError(config);
36
36
  });
37
37
  process.on("SIGTERM", (signal) => {
38
- _chunk7SIKKF62cjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
38
+ _chunkMNLUPWABcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
39
39
  exitWithError(config);
40
40
  });
41
41
  process.on("SIGINT", (signal) => {
42
- _chunk7SIKKF62cjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
42
+ _chunkMNLUPWABcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
43
43
  exitWithError(config);
44
44
  });
45
45
  process.on("SIGHUP", (signal) => {
46
- _chunk7SIKKF62cjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
46
+ _chunkMNLUPWABcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
47
47
  exitWithError(config);
48
48
  });
49
49
  };
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  DEFAULT_COLOR_CONFIG
3
- } from "./chunk-JX5NLB4S.js";
3
+ } from "./chunk-4KZ3BMNG.js";
4
+ import {
5
+ getChalk
6
+ } from "./chunk-T3MUE32G.js";
4
7
  import {
5
8
  CONSOLE_ICONS
6
9
  } from "./chunk-OJP4XIBV.js";
@@ -14,9 +17,6 @@ import {
14
17
  LogLevel,
15
18
  LogLevelLabel
16
19
  } from "./chunk-3QAWRU2B.js";
17
- import {
18
- getChalk
19
- } from "./chunk-T3MUE32G.js";
20
20
 
21
21
  // src/logger/console.ts
22
22
  var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkLDDYJHK5cjs = require('./chunk-LDDYJHK5.cjs');
4
+ var _chunk2CVNUZFWcjs = require('./chunk-2CVNUZFW.cjs');
5
5
 
6
6
 
7
7
  var _chunkAEZINHEAcjs = require('./chunk-AEZINHEA.cjs');
8
8
 
9
9
  // src/get-config.ts
10
10
  var getConfig = (workspaceRoot, skipLogs = false) => {
11
- return _chunkLDDYJHK5cjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
11
+ return _chunk2CVNUZFWcjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
12
12
  };
13
13
  var getWorkspaceConfig = (skipLogs = false, options = {}) => {
14
14
  let workspaceRoot = options.workspaceRoot;
@@ -23,7 +23,7 @@ var tryGetWorkspaceConfig = async (skipLogs = false, options = {}) => {
23
23
  if (!workspaceRoot) {
24
24
  workspaceRoot = _chunkAEZINHEAcjs.findWorkspaceRoot.call(void 0, options.cwd);
25
25
  }
26
- return _chunkLDDYJHK5cjs.tryLoadStormWorkspaceConfig.call(void 0,
26
+ return _chunk2CVNUZFWcjs.tryLoadStormWorkspaceConfig.call(void 0,
27
27
  workspaceRoot,
28
28
  skipLogs,
29
29
  options.useDefault
@@ -1,24 +1,25 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkQ6MCB3G2cjs = require('./chunk-Q6MCB3G2.cjs');
3
+ var _chunkUPV2R6VPcjs = require('./chunk-UPV2R6VP.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkJYKZS46Ucjs = require('./chunk-JYKZS46U.cjs');
8
+ var _chunkMNLUPWABcjs = require('./chunk-MNLUPWAB.cjs');
9
9
 
10
10
 
11
- var _chunkGIXUQACBcjs = require('./chunk-GIXUQACB.cjs');
11
+
12
+ var _chunk4PAEA5KVcjs = require('./chunk-4PAEA5KV.cjs');
12
13
 
13
14
 
14
15
  var _chunkAEZINHEAcjs = require('./chunk-AEZINHEA.cjs');
15
16
 
16
17
 
18
+ var _chunk5XVUNKW6cjs = require('./chunk-5XVUNKW6.cjs');
17
19
 
18
- var _chunkQXXXAJVPcjs = require('./chunk-QXXXAJVP.cjs');
19
20
 
20
21
 
21
- var _chunkD2H6Y42Icjs = require('./chunk-D2H6Y42I.cjs');
22
+ var _chunkE5XT5FVBcjs = require('./chunk-E5XT5FVB.cjs');
22
23
 
23
24
  // src/create-storm-config.ts
24
25
  var _schema = require('@storm-software/config/schema');
@@ -32,11 +33,11 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
32
33
  if (!_workspaceRoot) {
33
34
  _workspaceRoot = _chunkAEZINHEAcjs.findWorkspaceRoot.call(void 0, );
34
35
  }
35
- const configEnv = _chunkQXXXAJVPcjs.getConfigEnv.call(void 0, );
36
- const configFile = await _chunkQ6MCB3G2cjs.getConfigFile.call(void 0, _workspaceRoot);
36
+ const configEnv = _chunkE5XT5FVBcjs.getConfigEnv.call(void 0, );
37
+ const configFile = await _chunkUPV2R6VPcjs.getConfigFile.call(void 0, _workspaceRoot);
37
38
  if (!configFile) {
38
39
  if (!skipLogs) {
39
- _chunkJYKZS46Ucjs.writeWarning.call(void 0,
40
+ _chunkMNLUPWABcjs.writeWarning.call(void 0,
40
41
  "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",
41
42
  { logLevel: "all" }
42
43
  );
@@ -45,9 +46,11 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
45
46
  return void 0;
46
47
  }
47
48
  }
48
- const defaultConfig = await _chunkGIXUQACBcjs.getDefaultConfig.call(void 0, _workspaceRoot);
49
- result = await _schema.stormWorkspaceConfigSchema.parseAsync(
50
- _defu2.default.call(void 0, configEnv, configFile, defaultConfig)
49
+ const defaultConfig = await _chunk4PAEA5KVcjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
50
+ result = _chunk4PAEA5KVcjs.applyDefaultConfig.call(void 0,
51
+ await _schema.stormWorkspaceConfigSchema.parseAsync(
52
+ _defu2.default.call(void 0, configEnv, configFile, defaultConfig)
53
+ )
51
54
  );
52
55
  result.workspaceRoot ??= _workspaceRoot;
53
56
  } else {
@@ -70,7 +73,7 @@ var createConfigExtension = (extensionName, schema) => {
70
73
  if (_extension_cache.has(extension_cache_key)) {
71
74
  return _extension_cache.get(extension_cache_key);
72
75
  }
73
- let extension = _chunkQXXXAJVPcjs.getExtensionEnv.call(void 0, extensionName);
76
+ let extension = _chunkE5XT5FVBcjs.getExtensionEnv.call(void 0, extensionName);
74
77
  if (schema) {
75
78
  extension = schema.parse(extension);
76
79
  }
@@ -85,11 +88,11 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
85
88
  skipLogs,
86
89
  true
87
90
  );
88
- _chunkD2H6Y42Icjs.setConfigEnv.call(void 0, config);
91
+ _chunk5XVUNKW6cjs.setConfigEnv.call(void 0, config);
89
92
  if (!skipLogs && !config.skipConfigLogging) {
90
- _chunkJYKZS46Ucjs.writeTrace.call(void 0,
93
+ _chunkMNLUPWABcjs.writeTrace.call(void 0,
91
94
  `\u2699\uFE0F Using Storm Workspace configuration:
92
- ${_chunkJYKZS46Ucjs.formatLogMessage.call(void 0, config)}`,
95
+ ${_chunkMNLUPWABcjs.formatLogMessage.call(void 0, config)}`,
93
96
  config
94
97
  );
95
98
  }
@@ -107,18 +110,18 @@ var tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDefa
107
110
  if (!config) {
108
111
  return void 0;
109
112
  }
110
- _chunkD2H6Y42Icjs.setConfigEnv.call(void 0, config);
113
+ _chunk5XVUNKW6cjs.setConfigEnv.call(void 0, config);
111
114
  if (!skipLogs && !config.skipConfigLogging) {
112
- _chunkJYKZS46Ucjs.writeTrace.call(void 0,
115
+ _chunkMNLUPWABcjs.writeTrace.call(void 0,
113
116
  `\u2699\uFE0F Using Storm Workspace configuration:
114
- ${_chunkJYKZS46Ucjs.formatLogMessage.call(void 0, config)}`,
117
+ ${_chunkMNLUPWABcjs.formatLogMessage.call(void 0, config)}`,
115
118
  config
116
119
  );
117
120
  }
118
121
  return config;
119
122
  } catch (error) {
120
123
  if (!skipLogs) {
121
- _chunkJYKZS46Ucjs.writeWarning.call(void 0,
124
+ _chunkMNLUPWABcjs.writeWarning.call(void 0,
122
125
  `\u26A0\uFE0F Failed to load Storm Workspace configuration: ${error}`,
123
126
  { logLevel: "all" }
124
127
  );
@@ -3,7 +3,7 @@ import {
3
3
  writeFatal,
4
4
  writeSuccess,
5
5
  writeTrace
6
- } from "./chunk-SA3JCBON.js";
6
+ } from "./chunk-YPBNOKK2.js";
7
7
 
8
8
  // src/utilities/process-handler.ts
9
9
  var exitWithError = (config) => {
@@ -1,9 +1,9 @@
1
- import {
2
- correctPaths
3
- } from "./chunk-FRR2ZRWD.js";
4
1
  import {
5
2
  getLogLevel
6
3
  } from "./chunk-4XRV4CVP.js";
4
+ import {
5
+ correctPaths
6
+ } from "./chunk-FRR2ZRWD.js";
7
7
  import {
8
8
  LogLevel
9
9
  } from "./chunk-3QAWRU2B.js";
@@ -99,6 +99,9 @@ var setConfigEnv = (config) => {
99
99
  if (config.contact) {
100
100
  process.env[`${prefix}CONTACT`] = config.contact;
101
101
  }
102
+ if (config.support) {
103
+ process.env[`${prefix}SUPPORT`] = config.support;
104
+ }
102
105
  if (config.timezone) {
103
106
  process.env[`${prefix}TIMEZONE`] = config.timezone;
104
107
  process.env.TZ = config.timezone;