@storm-software/config-tools 1.172.10 → 1.173.1

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 (127) hide show
  1. package/README.md +5 -2
  2. package/bin/config.cjs +8 -2
  3. package/bin/config.js +8 -2
  4. package/dist/{chunk-IYUFTISY.cjs → chunk-3FETUQ3K.cjs} +2 -2
  5. package/dist/{chunk-N4GOLNNI.cjs → chunk-3SACUIVX.cjs} +8 -8
  6. package/dist/chunk-4PX5UVAN.cjs +65 -0
  7. package/dist/{chunk-26BPJW3I.js → chunk-6ZPXQNSV.js} +6 -6
  8. package/dist/{chunk-XT2XO7TR.js → chunk-73L7WNYI.js} +3 -3
  9. package/dist/{chunk-DHN65RU7.js → chunk-AUCRLLQF.js} +1 -1
  10. package/dist/{chunk-7BVMJTE2.cjs → chunk-BKUK5DV7.cjs} +9 -9
  11. package/dist/{chunk-4XFCYYH4.js → chunk-BZLWPMXE.js} +3 -3
  12. package/dist/{chunk-BLOV7XHL.js → chunk-HDYKVRNJ.js} +4 -4
  13. package/dist/{chunk-IETV2DPL.js → chunk-HYJVQZYZ.js} +1 -1
  14. package/dist/{chunk-TRI5HQQN.js → chunk-JB3OUBHN.js} +6 -3
  15. package/dist/{chunk-33DQVYXE.js → chunk-JLIGJTMV.js} +1 -1
  16. package/dist/{chunk-T4ZMKMEG.cjs → chunk-JMI7BRL7.cjs} +3 -3
  17. package/dist/{chunk-4XRV4CVP.js → chunk-K4CDYUQR.js} +1 -1
  18. package/dist/{chunk-IHGFD6VV.cjs → chunk-KEVN7E43.cjs} +20 -20
  19. package/dist/{chunk-4PAEA5KV.cjs → chunk-KH5SONKW.cjs} +4 -4
  20. package/dist/{chunk-F7MZXFL2.cjs → chunk-KYNO2VMS.cjs} +18 -15
  21. package/dist/{chunk-OJP4XIBV.js → chunk-LM2UMGYA.js} +2 -2
  22. package/dist/{chunk-BMDGKEGP.cjs → chunk-N5TOHWQY.cjs} +9 -9
  23. package/dist/{chunk-VLWSWYG7.js → chunk-PTHGOJU6.js} +2 -2
  24. package/dist/{chunk-AQ2NOVJF.cjs → chunk-QLJYCKMD.cjs} +2 -2
  25. package/dist/{chunk-6LO4SCE6.cjs → chunk-S2BDGENQ.cjs} +12 -11
  26. package/dist/{chunk-Z3RQ7QQH.js → chunk-SBTNBIMS.js} +3 -2
  27. package/dist/{chunk-4KZ3BMNG.js → chunk-SHD7ZUSQ.js} +2 -2
  28. package/dist/{chunk-OUYYXBZX.js → chunk-SMVSQFZ3.js} +6 -6
  29. package/dist/{chunk-AEZINHEA.cjs → chunk-U436743U.cjs} +5 -5
  30. package/dist/chunk-UBEBZYFH.cjs +40 -0
  31. package/dist/chunk-WBQ4VS7E.cjs +23 -0
  32. package/dist/{chunk-42TCRG4H.js → chunk-WYQYWPLE.js} +1 -1
  33. package/dist/{chunk-GBW7G3RC.cjs → chunk-XPQXNNGZ.cjs} +33 -33
  34. package/dist/config-file/get-config-file.cjs +21 -21
  35. package/dist/config-file/get-config-file.js +20 -20
  36. package/dist/config-file/index.cjs +22 -22
  37. package/dist/config-file/index.js +21 -21
  38. package/dist/create-storm-config.cjs +29 -29
  39. package/dist/create-storm-config.js +23 -23
  40. package/dist/env/get-env.cjs +5 -5
  41. package/dist/env/get-env.js +4 -4
  42. package/dist/env/index.cjs +7 -7
  43. package/dist/env/index.js +6 -6
  44. package/dist/env/set-env.cjs +5 -5
  45. package/dist/env/set-env.js +4 -4
  46. package/dist/get-config.cjs +25 -25
  47. package/dist/get-config.js +24 -24
  48. package/dist/index.cjs +27 -27
  49. package/dist/index.js +26 -26
  50. package/dist/logger/chalk.cjs +2 -2
  51. package/dist/logger/chalk.js +1 -1
  52. package/dist/logger/console-icons.cjs +4 -4
  53. package/dist/logger/console-icons.js +3 -3
  54. package/dist/logger/console.cjs +12 -12
  55. package/dist/logger/console.js +11 -11
  56. package/dist/logger/create-logger.cjs +13 -13
  57. package/dist/logger/create-logger.js +12 -12
  58. package/dist/logger/format-timestamp.cjs +2 -2
  59. package/dist/logger/format-timestamp.js +1 -1
  60. package/dist/logger/get-log-level.cjs +3 -3
  61. package/dist/logger/get-log-level.js +2 -2
  62. package/dist/logger/index.cjs +14 -14
  63. package/dist/logger/index.js +13 -13
  64. package/dist/logger/is-unicode-supported.cjs +2 -2
  65. package/dist/logger/is-unicode-supported.js +1 -1
  66. package/dist/types.cjs +2 -2
  67. package/dist/types.js +1 -1
  68. package/dist/utilities/apply-workspace-tokens.cjs +5 -5
  69. package/dist/utilities/apply-workspace-tokens.js +4 -4
  70. package/dist/utilities/correct-paths.cjs +2 -2
  71. package/dist/utilities/correct-paths.js +1 -1
  72. package/dist/utilities/file-path-utils.cjs +3 -3
  73. package/dist/utilities/file-path-utils.js +2 -2
  74. package/dist/utilities/find-up.cjs +2 -2
  75. package/dist/utilities/find-up.js +1 -1
  76. package/dist/utilities/find-workspace-root.cjs +4 -4
  77. package/dist/utilities/find-workspace-root.js +3 -3
  78. package/dist/utilities/get-default-config.cjs +5 -5
  79. package/dist/utilities/get-default-config.js +4 -4
  80. package/dist/utilities/index.cjs +20 -20
  81. package/dist/utilities/index.js +19 -19
  82. package/dist/utilities/process-handler.cjs +13 -13
  83. package/dist/utilities/process-handler.js +12 -12
  84. package/dist/utilities/run.cjs +2 -2
  85. package/dist/utilities/run.js +1 -1
  86. package/dist/utilities/toml.cjs +15 -15
  87. package/dist/utilities/toml.js +14 -14
  88. package/package.json +5 -13
  89. package/dist/chunk-26LV7S6Z.cjs +0 -40
  90. package/dist/chunk-2CVNUZFW.cjs +0 -138
  91. package/dist/chunk-2VPBY2UN.cjs +0 -40
  92. package/dist/chunk-5YPGRGBJ.js +0 -158
  93. package/dist/chunk-7BZWQZUV.cjs +0 -65
  94. package/dist/chunk-DX767CQS.cjs +0 -158
  95. package/dist/chunk-JRKB77S5.js +0 -47
  96. package/dist/chunk-LCIW6KMU.cjs +0 -55
  97. package/dist/chunk-LQ3N3RRC.js +0 -138
  98. package/dist/chunk-NUOCEMFW.js +0 -40
  99. package/dist/chunk-PSHJQ2NP.cjs +0 -23
  100. package/dist/chunk-QWVC3UD5.cjs +0 -40
  101. package/dist/chunk-TGDG6POD.cjs +0 -47
  102. package/dist/chunk-U74E4EM6.js +0 -55
  103. package/dist/chunk-WT2BVWII.js +0 -40
  104. package/dist/chunk-WZTNSSMY.cjs +0 -92
  105. package/dist/chunk-ZSWS4URS.js +0 -92
  106. /package/dist/{chunk-3EVEDCXL.js → chunk-2AVLCXLT.js} +0 -0
  107. /package/dist/{chunk-6D6DEG6Z.cjs → chunk-65SWKEHV.cjs} +0 -0
  108. /package/dist/{chunk-RWBPUJIZ.js → chunk-6JBGUE4A.js} +0 -0
  109. /package/dist/{chunk-64DXC5WM.js → chunk-6RVIJKY3.js} +0 -0
  110. /package/dist/{chunk-FRR2ZRWD.js → chunk-7IMLZPZF.js} +0 -0
  111. /package/dist/{chunk-6DTRKFZD.cjs → chunk-7PV6L7I7.cjs} +0 -0
  112. /package/dist/{chunk-QNDF3RQL.cjs → chunk-BN6MEGGY.cjs} +0 -0
  113. /package/dist/{chunk-NS5PJ2RM.cjs → chunk-CTYIEJ7C.cjs} +0 -0
  114. /package/dist/{chunk-XEZGYUS2.js → chunk-CZ4IE2QN.js} +0 -0
  115. /package/dist/{chunk-ZGLOKOL3.cjs → chunk-DQT6QJRQ.cjs} +0 -0
  116. /package/dist/{chunk-PLLCZVZO.cjs → chunk-DTGT4OI3.cjs} +0 -0
  117. /package/dist/{chunk-R6A4VPC4.js → chunk-G2MK47WL.js} +0 -0
  118. /package/dist/{chunk-C5OTFOQB.cjs → chunk-IRCFHYKZ.cjs} +0 -0
  119. /package/dist/{chunk-E4R6RI5D.cjs → chunk-IWD6YQKX.cjs} +0 -0
  120. /package/dist/{chunk-GSK6EGCB.js → chunk-L6UNTUC4.js} +0 -0
  121. /package/dist/{chunk-4JREL2GQ.cjs → chunk-M3REM2FU.cjs} +0 -0
  122. /package/dist/{chunk-RKGXITNB.cjs → chunk-N3UX6L7X.cjs} +0 -0
  123. /package/dist/{chunk-KT6HSF26.cjs → chunk-NAT5PWY2.cjs} +0 -0
  124. /package/dist/{chunk-T3MUE32G.js → chunk-P2KJ6EZO.js} +0 -0
  125. /package/dist/{chunk-3QAWRU2B.js → chunk-POXTJ6GF.js} +0 -0
  126. /package/dist/{chunk-SABD7NYM.js → chunk-RRKB32OH.js} +0 -0
  127. /package/dist/{chunk-XIA6NF6N.js → chunk-WWUHEYYM.js} +0 -0
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-1.172.9-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.172.10-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -40,6 +40,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
40
 
41
41
  <!-- START doctoc -->
42
42
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43
+
43
44
  ## Table of Contents
44
45
 
45
46
  - [Storm Configuration Tools](#storm-configuration-tools)
@@ -69,7 +70,9 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
69
70
  # Storm Configuration Tools
70
71
 
71
72
  A package containing various utilities to support custom workspace
72
- configurations
73
+ configurations and environment management for Storm Software projects, including
74
+ configuration file handling, environment variable management, and logging
75
+ utilities.
73
76
 
74
77
  Below is a list of the available configuration values that can be set through
75
78
  environment variables:
package/bin/config.cjs CHANGED
@@ -34,6 +34,7 @@ __export(config_exports, {
34
34
  viewAction: () => viewAction
35
35
  });
36
36
  module.exports = __toCommonJS(config_exports);
37
+ var import_chalk3 = __toESM(require("chalk"), 1);
37
38
  var import_commander = require("commander");
38
39
 
39
40
  // src/create-storm-config.ts
@@ -791,6 +792,7 @@ var getConfigEnv = () => {
791
792
  license: process.env[`${prefix}LICENSE`] || void 0,
792
793
  homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
793
794
  docs: process.env[`${prefix}DOCS`] || void 0,
795
+ portal: process.env[`${prefix}PORTAL`] || void 0,
794
796
  licensing: process.env[`${prefix}LICENSING`] || void 0,
795
797
  contact: process.env[`${prefix}CONTACT`] || void 0,
796
798
  support: process.env[`${prefix}SUPPORT`] || void 0,
@@ -1006,6 +1008,9 @@ var setConfigEnv = (config) => {
1006
1008
  if (config.docs) {
1007
1009
  process.env[`${prefix}DOCS`] = config.docs;
1008
1010
  }
1011
+ if (config.portal) {
1012
+ process.env[`${prefix}PORTAL`] = config.portal;
1013
+ }
1009
1014
  if (config.licensing) {
1010
1015
  process.env[`${prefix}LICENSING`] = config.licensing;
1011
1016
  }
@@ -1323,13 +1328,14 @@ var getConfig = (workspaceRoot, skipLogs = false) => {
1323
1328
  };
1324
1329
 
1325
1330
  // bin/config.ts
1326
- var import_chalk3 = __toESM(require("chalk"), 1);
1327
1331
  function createProgram() {
1328
1332
  writeInfo("\u26A1 Running Storm Configuration Tools", { logLevel: "all" });
1329
1333
  const root = findWorkspaceRootSafe(process.cwd());
1330
1334
  process.env.STORM_WORKSPACE_ROOT ??= root;
1331
1335
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
1332
- root && process.chdir(root);
1336
+ if (root) {
1337
+ process.chdir(root);
1338
+ }
1333
1339
  const program = new import_commander.Command("storm-config");
1334
1340
  program.version("1.0.0", "-v --version", "display CLI version");
1335
1341
  const directory = new import_commander.Option(
package/bin/config.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // bin/config.ts
4
+ import chalk2 from "chalk";
4
5
  import { Command, Option } from "commander";
5
6
 
6
7
  // src/create-storm-config.ts
@@ -766,6 +767,7 @@ var getConfigEnv = () => {
766
767
  license: process.env[`${prefix}LICENSE`] || void 0,
767
768
  homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
768
769
  docs: process.env[`${prefix}DOCS`] || void 0,
770
+ portal: process.env[`${prefix}PORTAL`] || void 0,
769
771
  licensing: process.env[`${prefix}LICENSING`] || void 0,
770
772
  contact: process.env[`${prefix}CONTACT`] || void 0,
771
773
  support: process.env[`${prefix}SUPPORT`] || void 0,
@@ -981,6 +983,9 @@ var setConfigEnv = (config) => {
981
983
  if (config.docs) {
982
984
  process.env[`${prefix}DOCS`] = config.docs;
983
985
  }
986
+ if (config.portal) {
987
+ process.env[`${prefix}PORTAL`] = config.portal;
988
+ }
984
989
  if (config.licensing) {
985
990
  process.env[`${prefix}LICENSING`] = config.licensing;
986
991
  }
@@ -1298,13 +1303,14 @@ var getConfig = (workspaceRoot, skipLogs = false) => {
1298
1303
  };
1299
1304
 
1300
1305
  // bin/config.ts
1301
- import chalk2 from "chalk";
1302
1306
  function createProgram() {
1303
1307
  writeInfo("\u26A1 Running Storm Configuration Tools", { logLevel: "all" });
1304
1308
  const root = findWorkspaceRootSafe(process.cwd());
1305
1309
  process.env.STORM_WORKSPACE_ROOT ??= root;
1306
1310
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
1307
- root && process.chdir(root);
1311
+ if (root) {
1312
+ process.chdir(root);
1313
+ }
1308
1314
  const program = new Command("storm-config");
1309
1315
  program.version("1.0.0", "-v --version", "display CLI version");
1310
1316
  const directory = new Option(
@@ -1,13 +1,13 @@
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 _chunkGBW7G3RCcjs = require('./chunk-GBW7G3RC.cjs');
3
+ var _chunkXPQXNNGZcjs = require('./chunk-XPQXNNGZ.cjs');
4
4
 
5
5
  // src/utilities/toml.ts
6
6
  var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
7
7
  function parseCargoTomlWithTree(tree, projectRoot, projectName) {
8
8
  const cargoTomlString = _optionalChain([tree, 'access', _ => _.read, 'call', _2 => _2(`${projectRoot}/Cargo.toml`), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
9
9
  if (!cargoTomlString) {
10
- _chunkGBW7G3RCcjs.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
10
+ _chunkXPQXNNGZcjs.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
11
11
  throw new Error();
12
12
  }
13
13
  return parseCargoToml(cargoTomlString);
@@ -1,29 +1,29 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkIHGFD6VVcjs = require('./chunk-IHGFD6VV.cjs');
4
+ var _chunkKEVN7E43cjs = require('./chunk-KEVN7E43.cjs');
5
5
 
6
6
 
7
- var _chunkAEZINHEAcjs = require('./chunk-AEZINHEA.cjs');
7
+ var _chunkU436743Ucjs = require('./chunk-U436743U.cjs');
8
8
 
9
9
  // src/get-config.ts
10
10
  var getConfig = (workspaceRoot, skipLogs = false) => {
11
- return _chunkIHGFD6VVcjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
11
+ return _chunkKEVN7E43cjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
12
12
  };
13
- var getWorkspaceConfig = (skipLogs = false, options = {}) => {
13
+ var getWorkspaceConfig = (skipLogs = true, options = {}) => {
14
14
  let workspaceRoot = options.workspaceRoot;
15
15
  if (!workspaceRoot) {
16
- workspaceRoot = _chunkAEZINHEAcjs.findWorkspaceRoot.call(void 0, options.cwd);
16
+ workspaceRoot = _chunkU436743Ucjs.findWorkspaceRoot.call(void 0, options.cwd);
17
17
  }
18
18
  return getConfig(workspaceRoot, skipLogs);
19
19
  };
20
- var tryGetWorkspaceConfig = async (skipLogs = false, options = {}) => {
20
+ var tryGetWorkspaceConfig = async (skipLogs = true, options = {}) => {
21
21
  try {
22
22
  let workspaceRoot = options.workspaceRoot;
23
23
  if (!workspaceRoot) {
24
- workspaceRoot = _chunkAEZINHEAcjs.findWorkspaceRoot.call(void 0, options.cwd);
24
+ workspaceRoot = _chunkU436743Ucjs.findWorkspaceRoot.call(void 0, options.cwd);
25
25
  }
26
- return _chunkIHGFD6VVcjs.tryLoadStormWorkspaceConfig.call(void 0,
26
+ return _chunkKEVN7E43cjs.tryLoadStormWorkspaceConfig.call(void 0,
27
27
  workspaceRoot,
28
28
  skipLogs,
29
29
  options.useDefault
@@ -0,0 +1,65 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkIRCFHYKZcjs = require('./chunk-IRCFHYKZ.cjs');
5
+
6
+ // src/logger/get-log-level.ts
7
+ var getLogLevel = (label) => {
8
+ switch (label) {
9
+ case "all":
10
+ return _chunkIRCFHYKZcjs.LogLevel.ALL;
11
+ case "trace":
12
+ return _chunkIRCFHYKZcjs.LogLevel.TRACE;
13
+ case "debug":
14
+ return _chunkIRCFHYKZcjs.LogLevel.DEBUG;
15
+ case "info":
16
+ return _chunkIRCFHYKZcjs.LogLevel.INFO;
17
+ case "warn":
18
+ return _chunkIRCFHYKZcjs.LogLevel.WARN;
19
+ case "error":
20
+ return _chunkIRCFHYKZcjs.LogLevel.ERROR;
21
+ case "fatal":
22
+ return _chunkIRCFHYKZcjs.LogLevel.FATAL;
23
+ case "silent":
24
+ return _chunkIRCFHYKZcjs.LogLevel.SILENT;
25
+ default:
26
+ return _chunkIRCFHYKZcjs.LogLevel.INFO;
27
+ }
28
+ };
29
+ var getLogLevelLabel = (logLevel = _chunkIRCFHYKZcjs.LogLevel.INFO) => {
30
+ if (logLevel >= _chunkIRCFHYKZcjs.LogLevel.ALL) {
31
+ return _chunkIRCFHYKZcjs.LogLevelLabel.ALL;
32
+ }
33
+ if (logLevel >= _chunkIRCFHYKZcjs.LogLevel.TRACE) {
34
+ return _chunkIRCFHYKZcjs.LogLevelLabel.TRACE;
35
+ }
36
+ if (logLevel >= _chunkIRCFHYKZcjs.LogLevel.DEBUG) {
37
+ return _chunkIRCFHYKZcjs.LogLevelLabel.DEBUG;
38
+ }
39
+ if (logLevel >= _chunkIRCFHYKZcjs.LogLevel.INFO) {
40
+ return _chunkIRCFHYKZcjs.LogLevelLabel.INFO;
41
+ }
42
+ if (logLevel >= _chunkIRCFHYKZcjs.LogLevel.WARN) {
43
+ return _chunkIRCFHYKZcjs.LogLevelLabel.WARN;
44
+ }
45
+ if (logLevel >= _chunkIRCFHYKZcjs.LogLevel.ERROR) {
46
+ return _chunkIRCFHYKZcjs.LogLevelLabel.ERROR;
47
+ }
48
+ if (logLevel >= _chunkIRCFHYKZcjs.LogLevel.FATAL) {
49
+ return _chunkIRCFHYKZcjs.LogLevelLabel.FATAL;
50
+ }
51
+ if (logLevel <= _chunkIRCFHYKZcjs.LogLevel.SILENT) {
52
+ return _chunkIRCFHYKZcjs.LogLevelLabel.SILENT;
53
+ }
54
+ return _chunkIRCFHYKZcjs.LogLevelLabel.INFO;
55
+ };
56
+ var isVerbose = (label = _chunkIRCFHYKZcjs.LogLevelLabel.SILENT) => {
57
+ const logLevel = typeof label === "string" ? getLogLevel(label) : label;
58
+ return logLevel >= _chunkIRCFHYKZcjs.LogLevel.DEBUG;
59
+ };
60
+
61
+
62
+
63
+
64
+
65
+ exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.isVerbose = isVerbose;
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  getConfigFile
3
- } from "./chunk-XT2XO7TR.js";
3
+ } from "./chunk-73L7WNYI.js";
4
4
  import {
5
5
  formatLogMessage,
6
6
  writeTrace,
7
7
  writeWarning
8
- } from "./chunk-OUYYXBZX.js";
8
+ } from "./chunk-SMVSQFZ3.js";
9
9
  import {
10
10
  applyDefaultConfig,
11
11
  getPackageJsonConfig
12
- } from "./chunk-4KZ3BMNG.js";
12
+ } from "./chunk-SHD7ZUSQ.js";
13
13
  import {
14
14
  findWorkspaceRoot
15
- } from "./chunk-VLWSWYG7.js";
15
+ } from "./chunk-PTHGOJU6.js";
16
16
  import {
17
17
  setConfigEnv
18
- } from "./chunk-TRI5HQQN.js";
18
+ } from "./chunk-JB3OUBHN.js";
19
19
  import {
20
20
  getConfigEnv,
21
21
  getExtensionEnv
22
- } from "./chunk-Z3RQ7QQH.js";
22
+ } from "./chunk-SBTNBIMS.js";
23
23
 
24
24
  // src/create-storm-config.ts
25
25
  import { stormWorkspaceConfigSchema } from "@storm-software/config/schema";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  writeTrace
3
- } from "./chunk-OUYYXBZX.js";
3
+ } from "./chunk-SMVSQFZ3.js";
4
4
  import {
5
5
  findWorkspaceRoot
6
- } from "./chunk-VLWSWYG7.js";
6
+ } from "./chunk-PTHGOJU6.js";
7
7
  import {
8
8
  joinPaths
9
- } from "./chunk-FRR2ZRWD.js";
9
+ } from "./chunk-7IMLZPZF.js";
10
10
 
11
11
  // src/config-file/get-config-file.ts
12
12
  import { loadConfig } from "c12";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-5YPGRGBJ.js";
3
+ } from "./chunk-SMVSQFZ3.js";
4
4
 
5
5
  // src/utilities/toml.ts
6
6
  import TOML from "@ltd/j-toml";
@@ -3,31 +3,31 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkDX767CQScjs = require('./chunk-DX767CQS.cjs');
6
+ var _chunkXPQXNNGZcjs = require('./chunk-XPQXNNGZ.cjs');
7
7
 
8
8
  // src/utilities/process-handler.ts
9
9
  var exitWithError = (config) => {
10
- _chunkDX767CQScjs.writeFatal.call(void 0, "Exiting script with an error status...", config);
10
+ _chunkXPQXNNGZcjs.writeFatal.call(void 0, "Exiting script with an error status...", config);
11
11
  process.exit(1);
12
12
  };
13
13
  var exitWithSuccess = (config) => {
14
- _chunkDX767CQScjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
14
+ _chunkXPQXNNGZcjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
15
15
  process.exit(0);
16
16
  };
17
17
  var handleProcess = (config) => {
18
- _chunkDX767CQScjs.writeTrace.call(void 0,
18
+ _chunkXPQXNNGZcjs.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
- _chunkDX767CQScjs.writeError.call(void 0,
23
+ _chunkXPQXNNGZcjs.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
- _chunkDX767CQScjs.writeError.call(void 0,
30
+ _chunkXPQXNNGZcjs.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
- _chunkDX767CQScjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
38
+ _chunkXPQXNNGZcjs.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
- _chunkDX767CQScjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
42
+ _chunkXPQXNNGZcjs.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
- _chunkDX767CQScjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
46
+ _chunkXPQXNNGZcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
47
47
  exitWithError(config);
48
48
  });
49
49
  };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  getLogFn,
3
3
  getStopwatch
4
- } from "./chunk-5YPGRGBJ.js";
4
+ } from "./chunk-SMVSQFZ3.js";
5
5
  import {
6
6
  findWorkspaceRoot
7
- } from "./chunk-VLWSWYG7.js";
7
+ } from "./chunk-PTHGOJU6.js";
8
8
  import {
9
9
  LogLevel
10
- } from "./chunk-3QAWRU2B.js";
10
+ } from "./chunk-POXTJ6GF.js";
11
11
 
12
12
  // src/logger/create-logger.ts
13
13
  import chalk from "chalk";
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  loadStormWorkspaceConfig,
3
3
  tryLoadStormWorkspaceConfig
4
- } from "./chunk-LQ3N3RRC.js";
4
+ } from "./chunk-6ZPXQNSV.js";
5
5
  import {
6
6
  findWorkspaceRoot
7
- } from "./chunk-VLWSWYG7.js";
7
+ } from "./chunk-PTHGOJU6.js";
8
8
 
9
9
  // src/get-config.ts
10
10
  var getConfig = (workspaceRoot, skipLogs = false) => {
11
11
  return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
12
12
  };
13
- var getWorkspaceConfig = (skipLogs = false, options = {}) => {
13
+ var getWorkspaceConfig = (skipLogs = true, options = {}) => {
14
14
  let workspaceRoot = options.workspaceRoot;
15
15
  if (!workspaceRoot) {
16
16
  workspaceRoot = findWorkspaceRoot(options.cwd);
17
17
  }
18
18
  return getConfig(workspaceRoot, skipLogs);
19
19
  };
20
- var tryGetWorkspaceConfig = async (skipLogs = false, options = {}) => {
20
+ var tryGetWorkspaceConfig = async (skipLogs = true, options = {}) => {
21
21
  try {
22
22
  let workspaceRoot = options.workspaceRoot;
23
23
  if (!workspaceRoot) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  findWorkspaceRoot
3
- } from "./chunk-VLWSWYG7.js";
3
+ } from "./chunk-PTHGOJU6.js";
4
4
 
5
5
  // src/utilities/apply-workspace-tokens.ts
6
6
  var applyWorkspaceBaseTokens = async (option, tokenParams) => {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  correctPaths
3
- } from "./chunk-FRR2ZRWD.js";
3
+ } from "./chunk-7IMLZPZF.js";
4
4
  import {
5
5
  getLogLevel
6
- } from "./chunk-4XRV4CVP.js";
6
+ } from "./chunk-K4CDYUQR.js";
7
7
  import {
8
8
  LogLevel
9
- } from "./chunk-3QAWRU2B.js";
9
+ } from "./chunk-POXTJ6GF.js";
10
10
 
11
11
  // src/env/set-env.ts
12
12
  var setExtensionEnv = (extensionName, extension) => {
@@ -93,6 +93,9 @@ var setConfigEnv = (config) => {
93
93
  if (config.docs) {
94
94
  process.env[`${prefix}DOCS`] = config.docs;
95
95
  }
96
+ if (config.portal) {
97
+ process.env[`${prefix}PORTAL`] = config.portal;
98
+ }
96
99
  if (config.licensing) {
97
100
  process.env[`${prefix}LICENSING`] = config.licensing;
98
101
  }
@@ -3,7 +3,7 @@ import {
3
3
  writeFatal,
4
4
  writeSuccess,
5
5
  writeTrace
6
- } from "./chunk-5YPGRGBJ.js";
6
+ } from "./chunk-SMVSQFZ3.js";
7
7
 
8
8
  // src/utilities/process-handler.ts
9
9
  var exitWithError = (config) => {
@@ -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 _chunk4JREL2GQcjs = require('./chunk-4JREL2GQ.cjs');
3
+ var _chunkM3REM2FUcjs = require('./chunk-M3REM2FU.cjs');
4
4
 
5
5
  // src/utilities/file-path-utils.ts
6
6
  var removeExtension = (filePath) => {
@@ -14,7 +14,7 @@ var removeExtension = (filePath) => {
14
14
  return result;
15
15
  };
16
16
  function findFileName(filePath, { requireExtension, withExtension } = {}) {
17
- const result = _nullishCoalesce(_optionalChain([_chunk4JREL2GQcjs.normalizeWindowsPath.call(void 0, filePath), 'optionalAccess', _ => _.split, 'call', _2 => _2(_optionalChain([filePath, 'optionalAccess', _3 => _3.includes, 'call', _4 => _4("\\")]) ? "\\" : "/"), 'optionalAccess', _5 => _5.pop, 'call', _6 => _6()]), () => ( ""));
17
+ const result = _nullishCoalesce(_optionalChain([_chunkM3REM2FUcjs.normalizeWindowsPath.call(void 0, filePath), 'optionalAccess', _ => _.split, 'call', _2 => _2(_optionalChain([filePath, 'optionalAccess', _3 => _3.includes, 'call', _4 => _4("\\")]) ? "\\" : "/"), 'optionalAccess', _5 => _5.pop, 'call', _6 => _6()]), () => ( ""));
18
18
  if (requireExtension === true && !result.includes(".")) {
19
19
  return "";
20
20
  }
@@ -24,7 +24,7 @@ function findFileName(filePath, { requireExtension, withExtension } = {}) {
24
24
  return result;
25
25
  }
26
26
  function findFilePath(filePath) {
27
- const normalizedPath = _chunk4JREL2GQcjs.normalizeWindowsPath.call(void 0, filePath);
27
+ const normalizedPath = _chunkM3REM2FUcjs.normalizeWindowsPath.call(void 0, filePath);
28
28
  return normalizedPath.replace(
29
29
  findFileName(normalizedPath, { requireExtension: true }),
30
30
  ""
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  LogLevel,
3
3
  LogLevelLabel
4
- } from "./chunk-3QAWRU2B.js";
4
+ } from "./chunk-POXTJ6GF.js";
5
5
 
6
6
  // src/logger/get-log-level.ts
7
7
  var getLogLevel = (label) => {
@@ -1,25 +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 _chunkWZTNSSMYcjs = require('./chunk-WZTNSSMY.cjs');
3
+ var _chunkN5TOHWQYcjs = require('./chunk-N5TOHWQY.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkGBW7G3RCcjs = require('./chunk-GBW7G3RC.cjs');
8
+ var _chunkXPQXNNGZcjs = require('./chunk-XPQXNNGZ.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunk4PAEA5KVcjs = require('./chunk-4PAEA5KV.cjs');
12
+ var _chunkKH5SONKWcjs = require('./chunk-KH5SONKW.cjs');
13
13
 
14
14
 
15
- var _chunkAEZINHEAcjs = require('./chunk-AEZINHEA.cjs');
15
+ var _chunkU436743Ucjs = require('./chunk-U436743U.cjs');
16
16
 
17
17
 
18
+ var _chunkKYNO2VMScjs = require('./chunk-KYNO2VMS.cjs');
18
19
 
19
- var _chunk6LO4SCE6cjs = require('./chunk-6LO4SCE6.cjs');
20
20
 
21
21
 
22
- var _chunkF7MZXFL2cjs = require('./chunk-F7MZXFL2.cjs');
22
+ var _chunkS2BDGENQcjs = require('./chunk-S2BDGENQ.cjs');
23
23
 
24
24
  // src/create-storm-config.ts
25
25
  var _schema = require('@storm-software/config/schema');
@@ -31,13 +31,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
31
31
  if (!_optionalChain([_static_cache, 'optionalAccess', _ => _.data]) || !_optionalChain([_static_cache, 'optionalAccess', _2 => _2.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
32
32
  let _workspaceRoot = workspaceRoot;
33
33
  if (!_workspaceRoot) {
34
- _workspaceRoot = _chunkAEZINHEAcjs.findWorkspaceRoot.call(void 0, );
34
+ _workspaceRoot = _chunkU436743Ucjs.findWorkspaceRoot.call(void 0, );
35
35
  }
36
- const configEnv = _chunk6LO4SCE6cjs.getConfigEnv.call(void 0, );
37
- const configFile = await _chunkWZTNSSMYcjs.getConfigFile.call(void 0, _workspaceRoot);
36
+ const configEnv = _chunkS2BDGENQcjs.getConfigEnv.call(void 0, );
37
+ const configFile = await _chunkN5TOHWQYcjs.getConfigFile.call(void 0, _workspaceRoot);
38
38
  if (!configFile) {
39
39
  if (!skipLogs) {
40
- _chunkGBW7G3RCcjs.writeWarning.call(void 0,
40
+ _chunkXPQXNNGZcjs.writeWarning.call(void 0,
41
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",
42
42
  { logLevel: "all" }
43
43
  );
@@ -46,8 +46,8 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
46
46
  return void 0;
47
47
  }
48
48
  }
49
- const defaultConfig = await _chunk4PAEA5KVcjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
50
- result = _chunk4PAEA5KVcjs.applyDefaultConfig.call(void 0,
49
+ const defaultConfig = await _chunkKH5SONKWcjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
50
+ result = _chunkKH5SONKWcjs.applyDefaultConfig.call(void 0,
51
51
  await _schema.stormWorkspaceConfigSchema.parseAsync(
52
52
  _defu2.default.call(void 0, configEnv, configFile, defaultConfig)
53
53
  )
@@ -73,7 +73,7 @@ var createConfigExtension = (extensionName, schema) => {
73
73
  if (_extension_cache.has(extension_cache_key)) {
74
74
  return _extension_cache.get(extension_cache_key);
75
75
  }
76
- let extension = _chunk6LO4SCE6cjs.getExtensionEnv.call(void 0, extensionName);
76
+ let extension = _chunkS2BDGENQcjs.getExtensionEnv.call(void 0, extensionName);
77
77
  if (schema) {
78
78
  extension = schema.parse(extension);
79
79
  }
@@ -88,11 +88,11 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
88
88
  skipLogs,
89
89
  true
90
90
  );
91
- _chunkF7MZXFL2cjs.setConfigEnv.call(void 0, config);
91
+ _chunkKYNO2VMScjs.setConfigEnv.call(void 0, config);
92
92
  if (!skipLogs && !config.skipConfigLogging) {
93
- _chunkGBW7G3RCcjs.writeTrace.call(void 0,
93
+ _chunkXPQXNNGZcjs.writeTrace.call(void 0,
94
94
  `\u2699\uFE0F Using Storm Workspace configuration:
95
- ${_chunkGBW7G3RCcjs.formatLogMessage.call(void 0, config)}`,
95
+ ${_chunkXPQXNNGZcjs.formatLogMessage.call(void 0, config)}`,
96
96
  config
97
97
  );
98
98
  }
@@ -110,18 +110,18 @@ var tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDefa
110
110
  if (!config) {
111
111
  return void 0;
112
112
  }
113
- _chunkF7MZXFL2cjs.setConfigEnv.call(void 0, config);
113
+ _chunkKYNO2VMScjs.setConfigEnv.call(void 0, config);
114
114
  if (!skipLogs && !config.skipConfigLogging) {
115
- _chunkGBW7G3RCcjs.writeTrace.call(void 0,
115
+ _chunkXPQXNNGZcjs.writeTrace.call(void 0,
116
116
  `\u2699\uFE0F Using Storm Workspace configuration:
117
- ${_chunkGBW7G3RCcjs.formatLogMessage.call(void 0, config)}`,
117
+ ${_chunkXPQXNNGZcjs.formatLogMessage.call(void 0, config)}`,
118
118
  config
119
119
  );
120
120
  }
121
121
  return config;
122
122
  } catch (error) {
123
123
  if (!skipLogs) {
124
- _chunkGBW7G3RCcjs.writeWarning.call(void 0,
124
+ _chunkXPQXNNGZcjs.writeWarning.call(void 0,
125
125
  `\u26A0\uFE0F Failed to load Storm Workspace configuration: ${error}`,
126
126
  { logLevel: "all" }
127
127
  );
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkAEZINHEAcjs = require('./chunk-AEZINHEA.cjs');
3
+ var _chunkU436743Ucjs = require('./chunk-U436743U.cjs');
4
4
 
5
5
 
6
- var _chunk4JREL2GQcjs = require('./chunk-4JREL2GQ.cjs');
6
+ var _chunkM3REM2FUcjs = require('./chunk-M3REM2FU.cjs');
7
7
 
8
8
  // src/utilities/get-default-config.ts
9
9
 
@@ -48,10 +48,10 @@ async function getPackageJsonConfig(root) {
48
48
  let name = void 0;
49
49
  let namespace = void 0;
50
50
  let repository = void 0;
51
- const workspaceRoot = _chunkAEZINHEAcjs.findWorkspaceRoot.call(void 0, root);
51
+ const workspaceRoot = _chunkU436743Ucjs.findWorkspaceRoot.call(void 0, root);
52
52
  if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
53
53
  const file = await _promises.readFile.call(void 0,
54
- _chunk4JREL2GQcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
54
+ _chunkM3REM2FUcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
55
55
  "utf8"
56
56
  );
57
57
  if (file) {