@storm-software/build-tools 0.151.22 → 0.151.24

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 (50) hide show
  1. package/README.md +2 -1
  2. package/dist/{chunk-NTGSP3QX.js → chunk-5KYCOODD.js} +44 -44
  3. package/dist/{chunk-LVQALFMX.mjs → chunk-5Z4LZS7D.mjs} +1 -1
  4. package/dist/{chunk-6HXSG5RH.mjs → chunk-6RE4UGZW.mjs} +1 -1
  5. package/dist/{chunk-R3GXGCWJ.js → chunk-BMS6MPXN.js} +10 -10
  6. package/dist/{chunk-SPBNWSXY.js → chunk-BX3JYHTJ.js} +2 -2
  7. package/dist/{chunk-5DY7G4GD.js → chunk-FQHKMTLS.js} +8 -8
  8. package/dist/{chunk-FNFLYCUK.js → chunk-K5Y3MXWE.js} +8 -8
  9. package/dist/{chunk-T3LLHZTM.js → chunk-KX3AQZCY.js} +14 -14
  10. package/dist/{chunk-GK2VTBFX.mjs → chunk-ORZLRX6L.mjs} +1 -1
  11. package/dist/{chunk-AIZ2A5WA.mjs → chunk-Q7ZSUDL4.mjs} +1 -1
  12. package/dist/{chunk-SECHJFHQ.js → chunk-QIDJWPYW.js} +10 -10
  13. package/dist/{chunk-IA7KTO2V.mjs → chunk-RV2T234Y.mjs} +1 -1
  14. package/dist/{chunk-NEWQJXLG.mjs → chunk-SLT545V6.mjs} +14 -14
  15. package/dist/{chunk-THALUBWA.mjs → chunk-WJCSB4XD.mjs} +1 -1
  16. package/dist/index.d.mts +2 -2
  17. package/dist/index.d.ts +2 -2
  18. package/dist/index.js +8 -8
  19. package/dist/index.mjs +7 -7
  20. package/dist/plugins/analyze.js +3 -3
  21. package/dist/plugins/analyze.mjs +2 -2
  22. package/dist/plugins/index.js +4 -4
  23. package/dist/plugins/index.mjs +3 -3
  24. package/dist/plugins/ts-resolve.js +3 -3
  25. package/dist/plugins/ts-resolve.mjs +2 -2
  26. package/dist/{types-DRiHjhgn.d.mts → types-DvynnIqE.d.mts} +18 -22
  27. package/dist/{types-DRiHjhgn.d.ts → types-DvynnIqE.d.ts} +18 -22
  28. package/dist/types.d.mts +2 -2
  29. package/dist/types.d.ts +2 -2
  30. package/dist/utilities/copy-assets.d.mts +2 -2
  31. package/dist/utilities/copy-assets.d.ts +2 -2
  32. package/dist/utilities/copy-assets.js +3 -3
  33. package/dist/utilities/copy-assets.mjs +2 -2
  34. package/dist/utilities/generate-package-json.d.mts +2 -2
  35. package/dist/utilities/generate-package-json.d.ts +2 -2
  36. package/dist/utilities/generate-package-json.js +3 -3
  37. package/dist/utilities/generate-package-json.mjs +2 -2
  38. package/dist/utilities/get-entry-points.d.mts +2 -2
  39. package/dist/utilities/get-entry-points.d.ts +2 -2
  40. package/dist/utilities/get-entry-points.js +3 -3
  41. package/dist/utilities/get-entry-points.mjs +2 -2
  42. package/dist/utilities/get-env.d.mts +2 -2
  43. package/dist/utilities/get-env.d.ts +2 -2
  44. package/dist/utilities/index.d.mts +2 -2
  45. package/dist/utilities/index.d.ts +2 -2
  46. package/dist/utilities/index.js +6 -6
  47. package/dist/utilities/index.mjs +5 -5
  48. package/dist/utilities/read-nx-config.js +3 -3
  49. package/dist/utilities/read-nx-config.mjs +2 -2
  50. package/package.json +2 -2
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.151.21-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.151.23-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 Build Tools](#storm-build-tools)
@@ -15,13 +15,13 @@
15
15
 
16
16
 
17
17
 
18
- var _chunkT3LLHZTMjs = require('./chunk-T3LLHZTM.js');
18
+ var _chunkKX3AQZCYjs = require('./chunk-KX3AQZCY.js');
19
19
 
20
20
  // ../config-tools/src/config-file/get-config-file.ts
21
21
  var _c12 = require('c12');
22
22
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
23
23
  var getConfigFileByName = async (fileName, filePath, options = {}) => {
24
- const workspacePath = filePath || _chunkT3LLHZTMjs.findWorkspaceRoot.call(void 0, filePath);
24
+ const workspacePath = filePath || _chunkKX3AQZCYjs.findWorkspaceRoot.call(void 0, filePath);
25
25
  const configs = await Promise.all([
26
26
  _c12.loadConfig.call(void 0, {
27
27
  cwd: workspacePath,
@@ -30,7 +30,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
30
30
  envName: _optionalChain([fileName, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]),
31
31
  jitiOptions: {
32
32
  debug: false,
33
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkT3LLHZTMjs.joinPaths.call(void 0,
33
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkKX3AQZCYjs.joinPaths.call(void 0,
34
34
  process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
35
35
  "jiti"
36
36
  )
@@ -44,7 +44,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
44
44
  envName: _optionalChain([fileName, 'optionalAccess', _3 => _3.toUpperCase, 'call', _4 => _4()]),
45
45
  jitiOptions: {
46
46
  debug: false,
47
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkT3LLHZTMjs.joinPaths.call(void 0,
47
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkKX3AQZCYjs.joinPaths.call(void 0,
48
48
  process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
49
49
  "jiti"
50
50
  )
@@ -56,12 +56,12 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
56
56
  return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
57
57
  };
58
58
  var getConfigFile = async (filePath, additionalFileNames = []) => {
59
- const workspacePath = filePath ? filePath : _chunkT3LLHZTMjs.findWorkspaceRoot.call(void 0, filePath);
59
+ const workspacePath = filePath ? filePath : _chunkKX3AQZCYjs.findWorkspaceRoot.call(void 0, filePath);
60
60
  const result = await getConfigFileByName("storm-workspace", workspacePath);
61
61
  let config = result.config;
62
62
  const configFile = result.configFile;
63
63
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
64
- _chunkT3LLHZTMjs.writeTrace.call(void 0,
64
+ _chunkKX3AQZCYjs.writeTrace.call(void 0,
65
65
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
66
66
  {
67
67
  logLevel: "all"
@@ -77,7 +77,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
77
77
  for (const result2 of results) {
78
78
  if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
79
79
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
80
- _chunkT3LLHZTMjs.writeTrace.call(void 0,
80
+ _chunkKX3AQZCYjs.writeTrace.call(void 0,
81
81
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
82
82
  {
83
83
  logLevel: "all"
@@ -156,15 +156,15 @@ var getConfigEnv = () => {
156
156
  support: process.env[`${prefix}SUPPORT`] || void 0,
157
157
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
158
158
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
159
- configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkT3LLHZTMjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
160
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkT3LLHZTMjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
159
+ configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkKX3AQZCYjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
160
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkKX3AQZCYjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
161
161
  directories: {
162
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkT3LLHZTMjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkT3LLHZTMjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
163
- data: process.env[`${prefix}DATA_DIR`] ? _chunkT3LLHZTMjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkT3LLHZTMjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
164
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkT3LLHZTMjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkT3LLHZTMjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
165
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkT3LLHZTMjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkT3LLHZTMjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
166
- log: process.env[`${prefix}LOG_DIR`] ? _chunkT3LLHZTMjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkT3LLHZTMjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
167
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkT3LLHZTMjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkT3LLHZTMjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
162
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunkKX3AQZCYjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkKX3AQZCYjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
163
+ data: process.env[`${prefix}DATA_DIR`] ? _chunkKX3AQZCYjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkKX3AQZCYjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
164
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunkKX3AQZCYjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkKX3AQZCYjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
165
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunkKX3AQZCYjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkKX3AQZCYjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
166
+ log: process.env[`${prefix}LOG_DIR`] ? _chunkKX3AQZCYjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkKX3AQZCYjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
167
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunkKX3AQZCYjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkKX3AQZCYjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
168
168
  },
169
169
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
170
170
  mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -188,13 +188,13 @@ var getConfigEnv = () => {
188
188
  },
189
189
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
190
190
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
191
- ) ? _chunkT3LLHZTMjs.getLogLevelLabel.call(void 0,
191
+ ) ? _chunkKX3AQZCYjs.getLogLevelLabel.call(void 0,
192
192
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
193
193
  ) : process.env[`${prefix}LOG_LEVEL`] : void 0,
194
194
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
195
195
  };
196
196
  const themeNames = Object.keys(process.env).filter(
197
- (envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkT3LLHZTMjs.COLOR_KEYS.every(
197
+ (envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkKX3AQZCYjs.COLOR_KEYS.every(
198
198
  (colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
199
199
  )
200
200
  );
@@ -205,16 +205,16 @@ var getConfigEnv = () => {
205
205
  },
206
206
  {}
207
207
  ) : getThemeColorConfigEnv(prefix);
208
- if (config.docs === _chunkT3LLHZTMjs.STORM_DEFAULT_DOCS) {
209
- if (config.homepage === _chunkT3LLHZTMjs.STORM_DEFAULT_HOMEPAGE) {
210
- config.docs = `${_chunkT3LLHZTMjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
208
+ if (config.docs === _chunkKX3AQZCYjs.STORM_DEFAULT_DOCS) {
209
+ if (config.homepage === _chunkKX3AQZCYjs.STORM_DEFAULT_HOMEPAGE) {
210
+ config.docs = `${_chunkKX3AQZCYjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
211
211
  } else {
212
212
  config.docs = `${config.homepage}/docs`;
213
213
  }
214
214
  }
215
- if (config.licensing === _chunkT3LLHZTMjs.STORM_DEFAULT_LICENSING) {
216
- if (config.homepage === _chunkT3LLHZTMjs.STORM_DEFAULT_HOMEPAGE) {
217
- config.licensing = `${_chunkT3LLHZTMjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
215
+ if (config.licensing === _chunkKX3AQZCYjs.STORM_DEFAULT_LICENSING) {
216
+ if (config.homepage === _chunkKX3AQZCYjs.STORM_DEFAULT_HOMEPAGE) {
217
+ config.licensing = `${_chunkKX3AQZCYjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
218
218
  } else {
219
219
  config.licensing = `${config.homepage}/docs`;
220
220
  }
@@ -415,40 +415,40 @@ var setConfigEnv = (config) => {
415
415
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
416
416
  }
417
417
  if (config.configFile) {
418
- process.env[`${prefix}CONFIG_FILE`] = _chunkT3LLHZTMjs.correctPaths.call(void 0, config.configFile);
418
+ process.env[`${prefix}CONFIG_FILE`] = _chunkKX3AQZCYjs.correctPaths.call(void 0, config.configFile);
419
419
  }
420
420
  if (config.workspaceRoot) {
421
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunkT3LLHZTMjs.correctPaths.call(void 0, config.workspaceRoot);
422
- process.env.NX_WORKSPACE_ROOT = _chunkT3LLHZTMjs.correctPaths.call(void 0, config.workspaceRoot);
423
- process.env.NX_WORKSPACE_ROOT_PATH = _chunkT3LLHZTMjs.correctPaths.call(void 0, config.workspaceRoot);
421
+ process.env[`${prefix}WORKSPACE_ROOT`] = _chunkKX3AQZCYjs.correctPaths.call(void 0, config.workspaceRoot);
422
+ process.env.NX_WORKSPACE_ROOT = _chunkKX3AQZCYjs.correctPaths.call(void 0, config.workspaceRoot);
423
+ process.env.NX_WORKSPACE_ROOT_PATH = _chunkKX3AQZCYjs.correctPaths.call(void 0, config.workspaceRoot);
424
424
  }
425
425
  if (config.directories) {
426
426
  if (!config.skipCache && config.directories.cache) {
427
- process.env[`${prefix}CACHE_DIR`] = _chunkT3LLHZTMjs.correctPaths.call(void 0,
427
+ process.env[`${prefix}CACHE_DIR`] = _chunkKX3AQZCYjs.correctPaths.call(void 0,
428
428
  config.directories.cache
429
429
  );
430
430
  process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
431
431
  }
432
432
  if (config.directories.data) {
433
- process.env[`${prefix}DATA_DIR`] = _chunkT3LLHZTMjs.correctPaths.call(void 0, config.directories.data);
433
+ process.env[`${prefix}DATA_DIR`] = _chunkKX3AQZCYjs.correctPaths.call(void 0, config.directories.data);
434
434
  process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
435
435
  }
436
436
  if (config.directories.config) {
437
- process.env[`${prefix}CONFIG_DIR`] = _chunkT3LLHZTMjs.correctPaths.call(void 0,
437
+ process.env[`${prefix}CONFIG_DIR`] = _chunkKX3AQZCYjs.correctPaths.call(void 0,
438
438
  config.directories.config
439
439
  );
440
440
  process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
441
441
  }
442
442
  if (config.directories.temp) {
443
- process.env[`${prefix}TEMP_DIR`] = _chunkT3LLHZTMjs.correctPaths.call(void 0, config.directories.temp);
443
+ process.env[`${prefix}TEMP_DIR`] = _chunkKX3AQZCYjs.correctPaths.call(void 0, config.directories.temp);
444
444
  process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
445
445
  }
446
446
  if (config.directories.log) {
447
- process.env[`${prefix}LOG_DIR`] = _chunkT3LLHZTMjs.correctPaths.call(void 0, config.directories.log);
447
+ process.env[`${prefix}LOG_DIR`] = _chunkKX3AQZCYjs.correctPaths.call(void 0, config.directories.log);
448
448
  process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
449
449
  }
450
450
  if (config.directories.build) {
451
- process.env[`${prefix}BUILD_DIR`] = _chunkT3LLHZTMjs.correctPaths.call(void 0,
451
+ process.env[`${prefix}BUILD_DIR`] = _chunkKX3AQZCYjs.correctPaths.call(void 0,
452
452
  config.directories.build
453
453
  );
454
454
  process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
@@ -510,9 +510,9 @@ var setConfigEnv = (config) => {
510
510
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
511
511
  process.env.LOG_LEVEL = String(config.logLevel);
512
512
  process.env.NX_VERBOSE_LOGGING = String(
513
- _chunkT3LLHZTMjs.getLogLevel.call(void 0, config.logLevel) >= _chunkT3LLHZTMjs.LogLevel.DEBUG ? true : false
513
+ _chunkKX3AQZCYjs.getLogLevel.call(void 0, config.logLevel) >= _chunkKX3AQZCYjs.LogLevel.DEBUG ? true : false
514
514
  );
515
- process.env.RUST_BACKTRACE = _chunkT3LLHZTMjs.getLogLevel.call(void 0, config.logLevel) >= _chunkT3LLHZTMjs.LogLevel.DEBUG ? "full" : "none";
515
+ process.env.RUST_BACKTRACE = _chunkKX3AQZCYjs.getLogLevel.call(void 0, config.logLevel) >= _chunkKX3AQZCYjs.LogLevel.DEBUG ? "full" : "none";
516
516
  }
517
517
  if (config.skipConfigLogging !== void 0) {
518
518
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
@@ -632,13 +632,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
632
632
  if (!_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) || !_optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
633
633
  let _workspaceRoot = workspaceRoot;
634
634
  if (!_workspaceRoot) {
635
- _workspaceRoot = _chunkT3LLHZTMjs.findWorkspaceRoot.call(void 0, );
635
+ _workspaceRoot = _chunkKX3AQZCYjs.findWorkspaceRoot.call(void 0, );
636
636
  }
637
637
  const configEnv = getConfigEnv();
638
638
  const configFile = await getConfigFile(_workspaceRoot);
639
639
  if (!configFile) {
640
640
  if (!skipLogs) {
641
- _chunkT3LLHZTMjs.writeWarning.call(void 0,
641
+ _chunkKX3AQZCYjs.writeWarning.call(void 0,
642
642
  "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",
643
643
  { logLevel: "all" }
644
644
  );
@@ -647,22 +647,22 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
647
647
  return void 0;
648
648
  }
649
649
  }
650
- const defaultConfig = await _chunkT3LLHZTMjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
650
+ const defaultConfig = await _chunkKX3AQZCYjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
651
651
  const configInput = _defu2.default.call(void 0,
652
652
  configEnv,
653
653
  configFile,
654
654
  defaultConfig
655
655
  );
656
656
  try {
657
- result = _chunkT3LLHZTMjs.applyDefaultConfig.call(void 0,
658
- await _chunkT3LLHZTMjs.stormWorkspaceConfigSchema.parseAsync(configInput)
657
+ result = _chunkKX3AQZCYjs.applyDefaultConfig.call(void 0,
658
+ await _chunkKX3AQZCYjs.stormWorkspaceConfigSchema.parseAsync(configInput)
659
659
  );
660
660
  result.workspaceRoot ??= _workspaceRoot;
661
661
  } catch (error) {
662
662
  throw new Error(
663
663
  `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _31 => _31.message]) ? `: ${error.message}` : ""}
664
664
 
665
- Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkT3LLHZTMjs.formatLogMessage.call(void 0,
665
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkKX3AQZCYjs.formatLogMessage.call(void 0,
666
666
  configInput
667
667
  )}`,
668
668
  {
@@ -707,9 +707,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
707
707
  );
708
708
  setConfigEnv(config);
709
709
  if (!skipLogs && !config.skipConfigLogging) {
710
- _chunkT3LLHZTMjs.writeTrace.call(void 0,
710
+ _chunkKX3AQZCYjs.writeTrace.call(void 0,
711
711
  `\u2699\uFE0F Using Storm Workspace configuration:
712
- ${_chunkT3LLHZTMjs.formatLogMessage.call(void 0, config)}`,
712
+ ${_chunkKX3AQZCYjs.formatLogMessage.call(void 0, config)}`,
713
713
  config
714
714
  );
715
715
  }
@@ -730,7 +730,7 @@ var readNxConfig = async (workspaceRoot) => {
730
730
  const config = await getConfig();
731
731
  rootDir = config.workspaceRoot;
732
732
  }
733
- const nxJsonPath = _chunkT3LLHZTMjs.joinPaths.call(void 0, rootDir, "nx.json");
733
+ const nxJsonPath = _chunkKX3AQZCYjs.joinPaths.call(void 0, rootDir, "nx.json");
734
734
  if (!_fs.existsSync.call(void 0, nxJsonPath)) {
735
735
  throw new Error("Cannot find project.json configuration");
736
736
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeDebug
3
- } from "./chunk-NEWQJXLG.mjs";
3
+ } from "./chunk-SLT545V6.mjs";
4
4
 
5
5
  // src/plugins/ts-resolve.ts
6
6
  import fs from "node:fs";
@@ -3,7 +3,7 @@ import {
3
3
  findWorkspaceRoot,
4
4
  joinPaths,
5
5
  writeDebug
6
- } from "./chunk-NEWQJXLG.mjs";
6
+ } from "./chunk-SLT545V6.mjs";
7
7
 
8
8
  // src/utilities/get-entry-points.ts
9
9
  import { glob } from "glob";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkT3LLHZTMjs = require('./chunk-T3LLHZTM.js');
5
+ var _chunkKX3AQZCYjs = require('./chunk-KX3AQZCY.js');
6
6
 
7
7
  // src/utilities/copy-assets.ts
8
8
  var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
@@ -34,9 +34,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
34
34
  output: "src/"
35
35
  });
36
36
  }
37
- _chunkT3LLHZTMjs.writeTrace.call(void 0,
37
+ _chunkKX3AQZCYjs.writeTrace.call(void 0,
38
38
  `\u{1F4DD} Copying the following assets to the output directory:
39
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkT3LLHZTMjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
39
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkKX3AQZCYjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
40
40
  config
41
41
  );
42
42
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
@@ -46,20 +46,20 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
46
46
  assets: pendingAssets
47
47
  });
48
48
  await assetHandler.processAllAssetsOnce();
49
- _chunkT3LLHZTMjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
49
+ _chunkKX3AQZCYjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
50
50
  if (includeSrc === true) {
51
- _chunkT3LLHZTMjs.writeDebug.call(void 0,
52
- `\u{1F4DD} Adding banner and writing source files: ${_chunkT3LLHZTMjs.joinPaths.call(void 0,
51
+ _chunkKX3AQZCYjs.writeDebug.call(void 0,
52
+ `\u{1F4DD} Adding banner and writing source files: ${_chunkKX3AQZCYjs.joinPaths.call(void 0,
53
53
  outputPath,
54
54
  "src"
55
55
  )}`,
56
56
  config
57
57
  );
58
58
  const files = await _glob.glob.call(void 0, [
59
- _chunkT3LLHZTMjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
60
- _chunkT3LLHZTMjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
61
- _chunkT3LLHZTMjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
62
- _chunkT3LLHZTMjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
59
+ _chunkKX3AQZCYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
60
+ _chunkKX3AQZCYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
61
+ _chunkKX3AQZCYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
62
+ _chunkKX3AQZCYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
63
63
  ]);
64
64
  await Promise.allSettled(
65
65
  files.map(
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkT3LLHZTMjs = require('./chunk-T3LLHZTM.js');
3
+ var _chunkKX3AQZCYjs = require('./chunk-KX3AQZCY.js');
4
4
 
5
5
  // src/plugins/analyze.ts
6
6
  var formatBytes = (bytes) => {
@@ -22,7 +22,7 @@ function analyze() {
22
22
  renderChunk(source, chunk) {
23
23
  const sourceBytes = formatBytes(source.length);
24
24
  const fileName = chunk.fileName;
25
- _chunkT3LLHZTMjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`);
25
+ _chunkKX3AQZCYjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`);
26
26
  }
27
27
  };
28
28
  }
@@ -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 _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 _chunkT3LLHZTMjs = require('./chunk-T3LLHZTM.js');
3
+ var _chunkKX3AQZCYjs = require('./chunk-KX3AQZCY.js');
4
4
 
5
5
  // src/plugins/ts-resolve.ts
6
6
  var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
@@ -26,8 +26,8 @@ var tsResolvePlugin = ({
26
26
  return {
27
27
  name: `storm:ts-resolve`,
28
28
  async resolveId(source, importer) {
29
- _chunkT3LLHZTMjs.writeDebug.call(void 0, `ts-resolve - resolveId source: ${source}`);
30
- _chunkT3LLHZTMjs.writeDebug.call(void 0, `ts-resolve - resolveId importer: ${importer}`);
29
+ _chunkKX3AQZCYjs.writeDebug.call(void 0, `ts-resolve - resolveId source: ${source}`);
30
+ _chunkKX3AQZCYjs.writeDebug.call(void 0, `ts-resolve - resolveId importer: ${importer}`);
31
31
  if (!importer) {
32
32
  return null;
33
33
  }
@@ -38,7 +38,7 @@ var tsResolvePlugin = ({
38
38
  return false;
39
39
  }
40
40
  if (ignore && ignore(source, importer)) {
41
- _chunkT3LLHZTMjs.writeDebug.call(void 0, `ts-resolve - ignored ${source}`);
41
+ _chunkKX3AQZCYjs.writeDebug.call(void 0, `ts-resolve - ignored ${source}`);
42
42
  return null;
43
43
  }
44
44
  if (resolveOnly) {
@@ -47,12 +47,12 @@ var tsResolvePlugin = ({
47
47
  return v.test(source);
48
48
  });
49
49
  if (!shouldResolve) {
50
- _chunkT3LLHZTMjs.writeDebug.call(void 0, `ts-resolve - skipped by matching resolveOnly ${source}`);
50
+ _chunkKX3AQZCYjs.writeDebug.call(void 0, `ts-resolve - skipped by matching resolveOnly ${source}`);
51
51
  return null;
52
52
  }
53
53
  }
54
54
  if (_path2.default.isAbsolute(source)) {
55
- _chunkT3LLHZTMjs.writeDebug.call(void 0, `ts-resolve - skipped absolute path: ${source}`);
55
+ _chunkKX3AQZCYjs.writeDebug.call(void 0, `ts-resolve - skipped absolute path: ${source}`);
56
56
  return null;
57
57
  }
58
58
  const basedir = importer ? await _fs2.default.promises.realpath(_path2.default.dirname(importer)) : process.cwd();
@@ -81,10 +81,10 @@ var tsResolvePlugin = ({
81
81
  });
82
82
  }
83
83
  if (id) {
84
- _chunkT3LLHZTMjs.writeDebug.call(void 0, `ts-resolve - resolved ${source} to ${id}`);
84
+ _chunkKX3AQZCYjs.writeDebug.call(void 0, `ts-resolve - resolved ${source} to ${id}`);
85
85
  return id;
86
86
  }
87
- _chunkT3LLHZTMjs.writeDebug.call(void 0, `ts-resolve - mark ${source} as external`);
87
+ _chunkKX3AQZCYjs.writeDebug.call(void 0, `ts-resolve - mark ${source} as external`);
88
88
  return false;
89
89
  }
90
90
  };
@@ -3,12 +3,12 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkT3LLHZTMjs = require('./chunk-T3LLHZTM.js');
6
+ var _chunkKX3AQZCYjs = require('./chunk-KX3AQZCY.js');
7
7
 
8
8
  // src/utilities/get-entry-points.ts
9
9
  var _glob = require('glob');
10
10
  var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
11
- const workspaceRoot = config.workspaceRoot || _chunkT3LLHZTMjs.findWorkspaceRoot.call(void 0, );
11
+ const workspaceRoot = config.workspaceRoot || _chunkKX3AQZCYjs.findWorkspaceRoot.call(void 0, );
12
12
  const entryPoints = [];
13
13
  if (entry) {
14
14
  if (typeof entry === "string") {
@@ -21,7 +21,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
21
21
  }
22
22
  if (emitOnAll) {
23
23
  entryPoints.push(
24
- _chunkT3LLHZTMjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}")
24
+ _chunkKX3AQZCYjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}")
25
25
  );
26
26
  }
27
27
  const results = await Promise.all(
@@ -34,12 +34,12 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
34
34
  });
35
35
  paths.push(
36
36
  ...files.reduce((ret, filePath) => {
37
- const result = _chunkT3LLHZTMjs.correctPaths.call(void 0,
38
- _chunkT3LLHZTMjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkT3LLHZTMjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkT3LLHZTMjs.correctPaths.call(void 0, projectRoot), "")
37
+ const result = _chunkKX3AQZCYjs.correctPaths.call(void 0,
38
+ _chunkKX3AQZCYjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkKX3AQZCYjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkKX3AQZCYjs.correctPaths.call(void 0, projectRoot), "")
39
39
  );
40
40
  if (result) {
41
- _chunkT3LLHZTMjs.writeDebug.call(void 0,
42
- `Trying to add entry point ${result} at "${_chunkT3LLHZTMjs.joinPaths.call(void 0,
41
+ _chunkKX3AQZCYjs.writeDebug.call(void 0,
42
+ `Trying to add entry point ${result} at "${_chunkKX3AQZCYjs.joinPaths.call(void 0,
43
43
  filePath.path,
44
44
  filePath.name
45
45
  )}"`,
@@ -53,7 +53,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
53
53
  }, [])
54
54
  );
55
55
  } else {
56
- _chunkT3LLHZTMjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
56
+ _chunkKX3AQZCYjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
57
57
  if (!paths.includes(entryPoint)) {
58
58
  paths.push(entryPoint);
59
59
  }
@@ -264,7 +264,7 @@ If this sounds interesting, and you would like to help us in creating the next g
264
264
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
265
265
 
266
266
  // ../config/src/schema.ts
267
- var _v4 = require('zod/v4'); var z = _interopRequireWildcard(_v4);
267
+ var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
268
268
  var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
269
269
  var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
270
270
  var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
@@ -331,7 +331,7 @@ var SingleThemeColorConfigSchema = z.object({
331
331
  positive: PositiveColorSchema,
332
332
  negative: NegativeColorSchema
333
333
  });
334
- var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
334
+ var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
335
335
  var RegistryConfigSchema = z.object({
336
336
  github: RegistryUrlConfigSchema,
337
337
  npm: RegistryUrlConfigSchema,
@@ -358,7 +358,7 @@ var WorkspaceBotConfigSchema = z.object({
358
358
  name: z.string().trim().default("stormie-bot").describe(
359
359
  "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
360
360
  ),
361
- email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
361
+ email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
362
362
  }).describe(
363
363
  "The workspace's bot user's config used to automated various operations tasks"
364
364
  );
@@ -401,16 +401,16 @@ var WorkspaceDirectoryConfigSchema = z.object({
401
401
  );
402
402
  var errorConfigSchema = z.object({
403
403
  codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
404
- url: z.string().trim().url().optional().describe(
404
+ url: z.url().optional().describe(
405
405
  "A URL to a page that looks up the workspace's error messages given a specific error code"
406
406
  )
407
407
  }).describe("The workspace's error config used during the error process");
408
408
  var organizationConfigSchema = z.object({
409
409
  name: z.string().trim().describe("The name of the organization"),
410
410
  description: z.string().trim().optional().describe("A description of the organization"),
411
- logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
412
- icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
413
- url: z.string().trim().url().optional().describe(
411
+ logo: z.url().optional().describe("A URL to the organization's logo image"),
412
+ icon: z.url().optional().describe("A URL to the organization's icon image"),
413
+ url: z.url().optional().describe(
414
414
  "A URL to a page that provides more information about the organization"
415
415
  )
416
416
  }).describe("The workspace's organization details");
@@ -430,12 +430,12 @@ var stormWorkspaceConfigSchema = z.object({
430
430
  ),
431
431
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
432
432
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
433
- homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
434
- docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
435
- portal: z.string().trim().url().optional().describe("The development portal site for the workspace"),
436
- licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
437
- contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
438
- support: z.string().trim().url().optional().describe(
433
+ homepage: z.url().optional().describe("The homepage of the workspace"),
434
+ docs: z.url().optional().describe("The documentation site for the workspace"),
435
+ portal: z.url().optional().describe("The development portal site for the workspace"),
436
+ licensing: z.url().optional().describe("The licensing site for the workspace"),
437
+ contact: z.url().optional().describe("The contact site for the workspace"),
438
+ support: z.url().optional().describe(
439
439
  "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
440
440
  ),
441
441
  branch: z.string().trim().default("main").describe("The branch of the workspace"),
@@ -445,7 +445,7 @@ var stormWorkspaceConfigSchema = z.object({
445
445
  release: WorkspaceReleaseConfigSchema,
446
446
  socials: WorkspaceSocialsConfigSchema,
447
447
  error: errorConfigSchema,
448
- mode: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
448
+ mode: z.string().trim().default("production").describe("The current runtime environment mode for the package"),
449
449
  workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
450
450
  skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
451
451
  directories: WorkspaceDirectoryConfigSchema,
@@ -2,7 +2,7 @@ import {
2
2
  joinPaths,
3
3
  writeDebug,
4
4
  writeTrace
5
- } from "./chunk-NEWQJXLG.mjs";
5
+ } from "./chunk-SLT545V6.mjs";
6
6
 
7
7
  // src/utilities/copy-assets.ts
8
8
  import { CopyAssetsHandler } from "@nx/js/src/utils/assets/copy-assets-handler";
@@ -15,7 +15,7 @@ import {
15
15
  stormWorkspaceConfigSchema,
16
16
  writeTrace,
17
17
  writeWarning
18
- } from "./chunk-NEWQJXLG.mjs";
18
+ } from "./chunk-SLT545V6.mjs";
19
19
 
20
20
  // ../config-tools/src/config-file/get-config-file.ts
21
21
  import { loadConfig } from "c12";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkT3LLHZTMjs = require('./chunk-T3LLHZTM.js');
5
+ var _chunkKX3AQZCYjs = require('./chunk-KX3AQZCY.js');
6
6
 
7
7
  // src/utilities/generate-package-json.ts
8
8
  var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
@@ -42,7 +42,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
42
42
  )) {
43
43
  const projectNode = project.node;
44
44
  if (projectNode.data.root) {
45
- const projectPackageJsonPath = _chunkT3LLHZTMjs.joinPaths.call(void 0,
45
+ const projectPackageJsonPath = _chunkKX3AQZCYjs.joinPaths.call(void 0,
46
46
  workspaceRoot,
47
47
  projectNode.data.root,
48
48
  "package.json"
@@ -60,11 +60,11 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
60
60
  }
61
61
  }
62
62
  if (localPackages.length > 0) {
63
- _chunkT3LLHZTMjs.writeTrace.call(void 0,
63
+ _chunkKX3AQZCYjs.writeTrace.call(void 0,
64
64
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
65
65
  );
66
66
  const projectJsonFile = await _promises.readFile.call(void 0,
67
- _chunkT3LLHZTMjs.joinPaths.call(void 0, projectRoot, "project.json"),
67
+ _chunkKX3AQZCYjs.joinPaths.call(void 0, projectRoot, "project.json"),
68
68
  "utf8"
69
69
  );
70
70
  const projectJson = JSON.parse(projectJsonFile);
@@ -77,7 +77,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
77
77
  }
78
78
  const implicitDependencies = _optionalChain([projectConfigurations, 'access', _9 => _9.projects, 'optionalAccess', _10 => _10[projectName2], 'access', _11 => _11.implicitDependencies, 'optionalAccess', _12 => _12.reduce, 'call', _13 => _13((ret, dep) => {
79
79
  if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
80
- const depPackageJsonPath = _chunkT3LLHZTMjs.joinPaths.call(void 0,
80
+ const depPackageJsonPath = _chunkKX3AQZCYjs.joinPaths.call(void 0,
81
81
  workspaceRoot,
82
82
  projectConfigurations.projects[dep].root,
83
83
  "package.json"
@@ -108,14 +108,14 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
108
108
  return ret;
109
109
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
110
110
  } else {
111
- _chunkT3LLHZTMjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
111
+ _chunkKX3AQZCYjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
112
112
  }
113
113
  return packageJson;
114
114
  };
115
115
  var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
116
- const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkT3LLHZTMjs.findWorkspaceRoot.call(void 0, );
116
+ const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkKX3AQZCYjs.findWorkspaceRoot.call(void 0, );
117
117
  const workspacePackageJsonContent = await _promises.readFile.call(void 0,
118
- _chunkT3LLHZTMjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
118
+ _chunkKX3AQZCYjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
119
119
  "utf8"
120
120
  );
121
121
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
@@ -126,7 +126,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
126
126
  if (distSrc.startsWith("/")) {
127
127
  distSrc = distSrc.substring(1);
128
128
  }
129
- packageJson.source ??= `${_chunkT3LLHZTMjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
129
+ packageJson.source ??= `${_chunkKX3AQZCYjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
130
130
  }
131
131
  packageJson.files ??= ["dist/**/*"];
132
132
  if (includeSrc === true && !packageJson.files.includes("src")) {
@@ -151,7 +151,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
151
151
  packageJson.contributors = [packageJson.author];
152
152
  }
153
153
  packageJson.repository ??= workspacePackageJson.repository;
154
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkT3LLHZTMjs.joinPaths.call(void 0, "packages", projectName);
154
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkKX3AQZCYjs.joinPaths.call(void 0, "packages", projectName);
155
155
  return packageJson;
156
156
  };
157
157
  var addPackageJsonExport = (file, type = "module", sourceRoot) => {