@storm-software/tsdown 0.21.3 → 0.21.5

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.
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.21.3-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.21.4-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 -->
package/dist/build.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkVEOBAPPUcjs = require('./chunk-VEOBAPPU.cjs');
4
- require('./chunk-TVRSY6E4.cjs');
3
+ var _chunkCTOS4DYDcjs = require('./chunk-CTOS4DYD.cjs');
4
+ require('./chunk-EHVHDVI3.cjs');
5
5
  require('./chunk-5KRF6IVW.cjs');
6
6
  require('./chunk-USNT2KNT.cjs');
7
7
 
8
8
 
9
- exports.build = _chunkVEOBAPPUcjs.build;
9
+ exports.build = _chunkCTOS4DYDcjs.build;
package/dist/build.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-VG7AZNCL.js";
4
- import "./chunk-HSPF27VT.js";
3
+ } from "./chunk-KNBVJN3A.js";
4
+ import "./chunk-MLTU5LTF.js";
5
5
  import "./chunk-UQLCBJOS.js";
6
6
  import "./chunk-SHUYVCID.js";
7
7
  export {
@@ -20,7 +20,7 @@
20
20
 
21
21
 
22
22
 
23
- var _chunkTVRSY6E4cjs = require('./chunk-TVRSY6E4.cjs');
23
+ var _chunkEHVHDVI3cjs = require('./chunk-EHVHDVI3.cjs');
24
24
 
25
25
 
26
26
  var _chunk5KRF6IVWcjs = require('./chunk-5KRF6IVW.cjs');
@@ -60,7 +60,7 @@ var _promises = require('fs/promises');
60
60
  var _c12 = require('c12');
61
61
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
62
62
  var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
63
- const workspacePath = filePath || _chunkTVRSY6E4cjs.findWorkspaceRoot.call(void 0, filePath);
63
+ const workspacePath = filePath || _chunkEHVHDVI3cjs.findWorkspaceRoot.call(void 0, filePath);
64
64
  let config = await _c12.loadConfig.call(void 0, {
65
65
  cwd: workspacePath,
66
66
  packageJson: true,
@@ -68,7 +68,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
68
68
  envName: _optionalChain([fileName, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]),
69
69
  jitiOptions: {
70
70
  debug: false,
71
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkTVRSY6E4cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
71
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkEHVHDVI3cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
72
72
  },
73
73
  ...options
74
74
  });
@@ -80,7 +80,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
80
80
  envName: _optionalChain([fileName, 'optionalAccess', _3 => _3.toUpperCase, 'call', _4 => _4()]),
81
81
  jitiOptions: {
82
82
  debug: false,
83
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkTVRSY6E4cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
83
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkEHVHDVI3cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
84
84
  },
85
85
  configFile: fileName,
86
86
  ...options
@@ -89,12 +89,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
89
89
  return config;
90
90
  }, "getConfigFileByName");
91
91
  var getConfigFile = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
92
- const workspacePath = filePath ? filePath : _chunkTVRSY6E4cjs.findWorkspaceRoot.call(void 0, filePath);
92
+ const workspacePath = filePath ? filePath : _chunkEHVHDVI3cjs.findWorkspaceRoot.call(void 0, filePath);
93
93
  const result = await getConfigFileByName("storm", workspacePath);
94
94
  let config = result.config;
95
95
  const configFile = result.configFile;
96
96
  if (config && configFile && Object.keys(config).length > 0) {
97
- _chunkTVRSY6E4cjs.writeSystem.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
97
+ _chunkEHVHDVI3cjs.writeSystem.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
98
98
  logLevel: "all"
99
99
  });
100
100
  }
@@ -102,7 +102,7 @@ var getConfigFile = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
102
102
  const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
103
103
  for (const result2 of results) {
104
104
  if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
105
- _chunkTVRSY6E4cjs.writeSystem.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
105
+ _chunkEHVHDVI3cjs.writeSystem.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
106
106
  logLevel: "all"
107
107
  });
108
108
  config = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
@@ -139,15 +139,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
139
139
  licensing: process.env[`${prefix}LICENSING`] || void 0,
140
140
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
141
141
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
142
- configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
143
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
142
+ configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkEHVHDVI3cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
143
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkEHVHDVI3cjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
144
144
  directories: {
145
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
146
- data: process.env[`${prefix}DATA_DIR`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
147
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
148
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
149
- log: process.env[`${prefix}LOG_DIR`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
150
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
145
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunkEHVHDVI3cjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
146
+ data: process.env[`${prefix}DATA_DIR`] ? _chunkEHVHDVI3cjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
147
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunkEHVHDVI3cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
148
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunkEHVHDVI3cjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
149
+ log: process.env[`${prefix}LOG_DIR`] ? _chunkEHVHDVI3cjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
150
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunkEHVHDVI3cjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
151
151
  },
152
152
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
153
153
  env: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}ENV`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -170,23 +170,23 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
170
170
  cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
171
171
  container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
172
172
  },
173
- logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? _chunkTVRSY6E4cjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
173
+ logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? _chunkEHVHDVI3cjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
174
174
  };
175
- const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkTVRSY6E4cjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
175
+ const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkEHVHDVI3cjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
176
176
  config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
177
177
  ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
178
178
  return ret;
179
179
  }, {}) : getThemeColorConfigEnv(prefix);
180
- if (config.docs === _chunkTVRSY6E4cjs.STORM_DEFAULT_DOCS) {
181
- if (config.homepage === _chunkTVRSY6E4cjs.STORM_DEFAULT_HOMEPAGE) {
182
- config.docs = `${_chunkTVRSY6E4cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
180
+ if (config.docs === _chunkEHVHDVI3cjs.STORM_DEFAULT_DOCS) {
181
+ if (config.homepage === _chunkEHVHDVI3cjs.STORM_DEFAULT_HOMEPAGE) {
182
+ config.docs = `${_chunkEHVHDVI3cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
183
183
  } else {
184
184
  config.docs = `${config.homepage}/docs`;
185
185
  }
186
186
  }
187
- if (config.licensing === _chunkTVRSY6E4cjs.STORM_DEFAULT_LICENSING) {
188
- if (config.homepage === _chunkTVRSY6E4cjs.STORM_DEFAULT_HOMEPAGE) {
189
- config.licensing = `${_chunkTVRSY6E4cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
187
+ if (config.licensing === _chunkEHVHDVI3cjs.STORM_DEFAULT_LICENSING) {
188
+ if (config.homepage === _chunkEHVHDVI3cjs.STORM_DEFAULT_HOMEPAGE) {
189
+ config.licensing = `${_chunkEHVHDVI3cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
190
190
  } else {
191
191
  config.licensing = `${config.homepage}/docs`;
192
192
  }
@@ -324,31 +324,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
324
324
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
325
325
  }
326
326
  if (config.configFile) {
327
- process.env[`${prefix}CONFIG_FILE`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.configFile);
327
+ process.env[`${prefix}CONFIG_FILE`] = _chunkEHVHDVI3cjs.correctPaths.call(void 0, config.configFile);
328
328
  }
329
329
  if (config.workspaceRoot) {
330
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.workspaceRoot);
331
- process.env.NX_WORKSPACE_ROOT = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.workspaceRoot);
332
- process.env.NX_WORKSPACE_ROOT_PATH = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.workspaceRoot);
330
+ process.env[`${prefix}WORKSPACE_ROOT`] = _chunkEHVHDVI3cjs.correctPaths.call(void 0, config.workspaceRoot);
331
+ process.env.NX_WORKSPACE_ROOT = _chunkEHVHDVI3cjs.correctPaths.call(void 0, config.workspaceRoot);
332
+ process.env.NX_WORKSPACE_ROOT_PATH = _chunkEHVHDVI3cjs.correctPaths.call(void 0, config.workspaceRoot);
333
333
  }
334
334
  if (config.directories) {
335
335
  if (!config.skipCache && config.directories.cache) {
336
- process.env[`${prefix}CACHE_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.cache);
336
+ process.env[`${prefix}CACHE_DIR`] = _chunkEHVHDVI3cjs.correctPaths.call(void 0, config.directories.cache);
337
337
  }
338
338
  if (config.directories.data) {
339
- process.env[`${prefix}DATA_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.data);
339
+ process.env[`${prefix}DATA_DIR`] = _chunkEHVHDVI3cjs.correctPaths.call(void 0, config.directories.data);
340
340
  }
341
341
  if (config.directories.config) {
342
- process.env[`${prefix}CONFIG_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.config);
342
+ process.env[`${prefix}CONFIG_DIR`] = _chunkEHVHDVI3cjs.correctPaths.call(void 0, config.directories.config);
343
343
  }
344
344
  if (config.directories.temp) {
345
- process.env[`${prefix}TEMP_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.temp);
345
+ process.env[`${prefix}TEMP_DIR`] = _chunkEHVHDVI3cjs.correctPaths.call(void 0, config.directories.temp);
346
346
  }
347
347
  if (config.directories.log) {
348
- process.env[`${prefix}LOG_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.log);
348
+ process.env[`${prefix}LOG_DIR`] = _chunkEHVHDVI3cjs.correctPaths.call(void 0, config.directories.log);
349
349
  }
350
350
  if (config.directories.build) {
351
- process.env[`${prefix}BUILD_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.build);
351
+ process.env[`${prefix}BUILD_DIR`] = _chunkEHVHDVI3cjs.correctPaths.call(void 0, config.directories.build);
352
352
  }
353
353
  }
354
354
  if (config.skipCache !== void 0) {
@@ -402,8 +402,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
402
402
  if (config.logLevel) {
403
403
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
404
404
  process.env.LOG_LEVEL = String(config.logLevel);
405
- process.env.NX_VERBOSE_LOGGING = String(_chunkTVRSY6E4cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkTVRSY6E4cjs.LogLevel.DEBUG ? true : false);
406
- process.env.RUST_BACKTRACE = _chunkTVRSY6E4cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkTVRSY6E4cjs.LogLevel.DEBUG ? "full" : "none";
405
+ process.env.NX_VERBOSE_LOGGING = String(_chunkEHVHDVI3cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkEHVHDVI3cjs.LogLevel.DEBUG ? true : false);
406
+ process.env.RUST_BACKTRACE = _chunkEHVHDVI3cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkEHVHDVI3cjs.LogLevel.DEBUG ? "full" : "none";
407
407
  }
408
408
  process.env[`${prefix}CONFIG`] = JSON.stringify(config);
409
409
  for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
@@ -513,23 +513,23 @@ var _static_cache = void 0;
513
513
  var loadStormConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (workspaceRoot) => {
514
514
  let config = {};
515
515
  if (_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) && _optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) && _static_cache.timestamp >= Date.now() + 3e4) {
516
- _chunkTVRSY6E4cjs.writeTrace.call(void 0, `Configuration cache hit - ${_static_cache.timestamp}`, _static_cache.data);
516
+ _chunkEHVHDVI3cjs.writeTrace.call(void 0, `Configuration cache hit - ${_static_cache.timestamp}`, _static_cache.data);
517
517
  return _static_cache.data;
518
518
  }
519
519
  let _workspaceRoot = workspaceRoot;
520
520
  if (!_workspaceRoot) {
521
- _workspaceRoot = _chunkTVRSY6E4cjs.findWorkspaceRoot.call(void 0, );
521
+ _workspaceRoot = _chunkEHVHDVI3cjs.findWorkspaceRoot.call(void 0, );
522
522
  }
523
523
  const configFile = await getConfigFile(_workspaceRoot);
524
524
  if (!configFile) {
525
- _chunkTVRSY6E4cjs.writeWarning.call(void 0, "No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
525
+ _chunkEHVHDVI3cjs.writeWarning.call(void 0, "No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
526
526
  logLevel: "all"
527
527
  });
528
528
  }
529
- config = _defu2.default.call(void 0, getConfigEnv(), configFile, _chunkTVRSY6E4cjs.getDefaultConfig.call(void 0, _workspaceRoot));
529
+ config = _defu2.default.call(void 0, getConfigEnv(), configFile, _chunkEHVHDVI3cjs.getDefaultConfig.call(void 0, _workspaceRoot));
530
530
  setConfigEnv(config);
531
- _chunkTVRSY6E4cjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm configuration:
532
- ${_chunkTVRSY6E4cjs.formatLogMessage.call(void 0, config)}`, config);
531
+ _chunkEHVHDVI3cjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm configuration:
532
+ ${_chunkEHVHDVI3cjs.formatLogMessage.call(void 0, config)}`, config);
533
533
  return config;
534
534
  }, "loadStormConfig");
535
535
 
@@ -542,7 +542,7 @@ var readNxConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (
542
542
  const config = await loadStormConfig();
543
543
  rootDir = config.workspaceRoot;
544
544
  }
545
- const nxJsonPath = _chunkTVRSY6E4cjs.joinPaths.call(void 0, rootDir, "nx.json");
545
+ const nxJsonPath = _chunkEHVHDVI3cjs.joinPaths.call(void 0, rootDir, "nx.json");
546
546
  if (!_fs.existsSync.call(void 0, nxJsonPath)) {
547
547
  throw new Error("Cannot find project.json configuration");
548
548
  }
@@ -553,27 +553,23 @@ var readNxConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (
553
553
  // ../build-tools/src/utilities/copy-assets.ts
554
554
  var copyAssets = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
555
555
  const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
556
- if (!_optionalChain([pendingAssets, 'optionalAccess', _31 => _31.some, 'call', _32 => _32((asset) => _optionalChain([asset, 'optionalAccess', _33 => _33.glob]) === "*.md")])) {
557
- pendingAssets.push({
558
- input: projectRoot,
559
- glob: "*.md",
560
- output: "/"
561
- });
562
- }
556
+ pendingAssets.push({
557
+ input: projectRoot,
558
+ glob: "*.md",
559
+ output: "."
560
+ });
561
+ pendingAssets.push({
562
+ input: config.workspaceRoot,
563
+ glob: "LICENSE",
564
+ output: "."
565
+ });
563
566
  if (generatePackageJson2 === false) {
564
567
  pendingAssets.push({
565
- input: sourceRoot,
568
+ input: projectRoot,
566
569
  glob: "package.json",
567
570
  output: "."
568
571
  });
569
572
  }
570
- if (!_optionalChain([pendingAssets, 'optionalAccess', _34 => _34.some, 'call', _35 => _35((asset) => _optionalChain([asset, 'optionalAccess', _36 => _36.glob]) === "LICENSE")])) {
571
- pendingAssets.push({
572
- input: "",
573
- glob: "LICENSE",
574
- output: "."
575
- });
576
- }
577
573
  if (includeSrc === true) {
578
574
  pendingAssets.push({
579
575
  input: sourceRoot,
@@ -584,12 +580,12 @@ var copyAssets = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (co
584
580
  const nxJson = readNxConfig(config.workspaceRoot);
585
581
  const projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
586
582
  const projectsConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
587
- if (!_optionalChain([projectsConfigurations, 'optionalAccess', _37 => _37.projects, 'optionalAccess', _38 => _38[projectName]])) {
583
+ if (!_optionalChain([projectsConfigurations, 'optionalAccess', _31 => _31.projects, 'optionalAccess', _32 => _32[projectName]])) {
588
584
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
589
585
  }
590
- const buildTarget = _optionalChain([projectsConfigurations, 'access', _39 => _39.projects, 'access', _40 => _40[projectName], 'access', _41 => _41.targets, 'optionalAccess', _42 => _42.build]);
586
+ const buildTarget = _optionalChain([projectsConfigurations, 'access', _33 => _33.projects, 'access', _34 => _34[projectName], 'access', _35 => _35.targets, 'optionalAccess', _36 => _36.build]);
591
587
  if (!buildTarget) {
592
- throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkTVRSY6E4cjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
588
+ throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkEHVHDVI3cjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
593
589
  }
594
590
  const result = await _js.copyAssets.call(void 0, {
595
591
  assets,
@@ -604,18 +600,18 @@ var copyAssets = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (co
604
600
  projectsConfigurations,
605
601
  nxJsonConfiguration: nxJson,
606
602
  cwd: config.workspaceRoot,
607
- isVerbose: _chunkTVRSY6E4cjs.isVerbose.call(void 0, config.logLevel)
603
+ isVerbose: _chunkEHVHDVI3cjs.isVerbose.call(void 0, config.logLevel)
608
604
  });
609
605
  if (!result.success) {
610
606
  throw new Error("The Build process failed trying to copy assets");
611
607
  }
612
608
  if (includeSrc === true) {
613
- _chunkTVRSY6E4cjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkTVRSY6E4cjs.joinPaths.call(void 0, outputPath, "src")}`, config);
609
+ _chunkEHVHDVI3cjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkEHVHDVI3cjs.joinPaths.call(void 0, outputPath, "src")}`, config);
614
610
  const files = await _glob.glob.call(void 0, [
615
- _chunkTVRSY6E4cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
616
- _chunkTVRSY6E4cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
617
- _chunkTVRSY6E4cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
618
- _chunkTVRSY6E4cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
611
+ _chunkEHVHDVI3cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
612
+ _chunkEHVHDVI3cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
613
+ _chunkEHVHDVI3cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
614
+ _chunkEHVHDVI3cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
619
615
  ]);
620
616
  await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
621
617
 
@@ -637,7 +633,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
637
633
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
638
634
  const projectNode = project.node;
639
635
  if (projectNode.data.root) {
640
- const projectPackageJsonPath = _chunkTVRSY6E4cjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
636
+ const projectPackageJsonPath = _chunkEHVHDVI3cjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
641
637
  if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
642
638
  const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
643
639
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
@@ -648,7 +644,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
648
644
  }
649
645
  }
650
646
  if (localPackages.length > 0) {
651
- _chunkTVRSY6E4cjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
647
+ _chunkEHVHDVI3cjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
652
648
  packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
653
649
  if (!ret[localPackage.name]) {
654
650
  ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
@@ -670,13 +666,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
670
666
  return ret;
671
667
  }, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
672
668
  } else {
673
- _chunkTVRSY6E4cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
669
+ _chunkEHVHDVI3cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
674
670
  }
675
671
  return packageJson;
676
672
  }, "addPackageDependencies");
677
673
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
678
- const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkTVRSY6E4cjs.findWorkspaceRoot.call(void 0, );
679
- const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkTVRSY6E4cjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
674
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkEHVHDVI3cjs.findWorkspaceRoot.call(void 0, );
675
+ const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkEHVHDVI3cjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
680
676
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
681
677
  packageJson.type ??= "module";
682
678
  packageJson.sideEffects ??= false;
@@ -685,7 +681,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.cal
685
681
  if (distSrc.startsWith("/")) {
686
682
  distSrc = distSrc.substring(1);
687
683
  }
688
- packageJson.source ??= `${_chunkTVRSY6E4cjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
684
+ packageJson.source ??= `${_chunkEHVHDVI3cjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
689
685
  }
690
686
  packageJson.files ??= [
691
687
  "dist/**/*"
@@ -716,7 +712,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.cal
716
712
  ];
717
713
  }
718
714
  packageJson.repository ??= workspacePackageJson.repository;
719
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkTVRSY6E4cjs.joinPaths.call(void 0, "packages", projectName);
715
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkEHVHDVI3cjs.joinPaths.call(void 0, "packages", projectName);
720
716
  return packageJson;
721
717
  }, "addWorkspacePackageJsonFields");
722
718
  var addPackageJsonExport = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
@@ -743,7 +739,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
743
739
  // ../build-tools/src/utilities/get-entry-points.ts
744
740
 
745
741
  var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
746
- const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkTVRSY6E4cjs.findWorkspaceRoot.call(void 0, );
742
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkEHVHDVI3cjs.findWorkspaceRoot.call(void 0, );
747
743
  const entryPoints = [];
748
744
  if (entry) {
749
745
  if (Array.isArray(entry)) {
@@ -755,7 +751,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
755
751
  }
756
752
  }
757
753
  if (emitOnAll) {
758
- entryPoints.push(_chunkTVRSY6E4cjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
754
+ entryPoints.push(_chunkEHVHDVI3cjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
759
755
  }
760
756
  const results = [];
761
757
  for (const entryPoint in entryPoints) {
@@ -764,9 +760,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
764
760
  withFileTypes: true
765
761
  });
766
762
  results.push(...files.reduce((ret, filePath) => {
767
- const result = _chunkTVRSY6E4cjs.correctPaths.call(void 0, _chunkTVRSY6E4cjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkTVRSY6E4cjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkTVRSY6E4cjs.correctPaths.call(void 0, projectRoot), ""));
763
+ const result = _chunkEHVHDVI3cjs.correctPaths.call(void 0, _chunkEHVHDVI3cjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkEHVHDVI3cjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkEHVHDVI3cjs.correctPaths.call(void 0, projectRoot), ""));
768
764
  if (result) {
769
- _chunkTVRSY6E4cjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkTVRSY6E4cjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
765
+ _chunkEHVHDVI3cjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkEHVHDVI3cjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
770
766
  if (!results.includes(result)) {
771
767
  results.push(result);
772
768
  }
@@ -808,25 +804,25 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
808
804
  throw new Error("Cannot find Nx workspace root");
809
805
  }
810
806
  const config = await loadStormConfig(workspaceRoot.dir);
811
- _chunkTVRSY6E4cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
812
- const stopwatch = _chunkTVRSY6E4cjs.getStopwatch.call(void 0, "Build options resolution");
807
+ _chunkEHVHDVI3cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
808
+ const stopwatch = _chunkEHVHDVI3cjs.getStopwatch.call(void 0, "Build options resolution");
813
809
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
814
810
  exitOnError: true
815
811
  });
816
- const projectJsonPath = _chunkTVRSY6E4cjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
812
+ const projectJsonPath = _chunkEHVHDVI3cjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
817
813
  if (!await _node.hfs.isFile(projectJsonPath)) {
818
814
  throw new Error("Cannot find project.json configuration");
819
815
  }
820
816
  const projectJson = await _node.hfs.json(projectJsonPath);
821
817
  const projectName = projectJson.name;
822
818
  const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
823
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _43 => _43.projects, 'optionalAccess', _44 => _44[projectName]])) {
819
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _37 => _37.projects, 'optionalAccess', _38 => _38[projectName]])) {
824
820
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
825
821
  }
826
822
  const options = _defu2.default.call(void 0, userOptions, _chunk5KRF6IVWcjs.DEFAULT_BUILD_OPTIONS);
827
823
  options.name ??= `${projectName}-${options.format}`;
828
824
  options.target ??= DEFAULT_TARGET;
829
- const packageJsonPath = _chunkTVRSY6E4cjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
825
+ const packageJsonPath = _chunkEHVHDVI3cjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
830
826
  if (!await _node.hfs.isFile(packageJsonPath)) {
831
827
  throw new Error("Cannot find package.json configuration");
832
828
  }
@@ -835,20 +831,20 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
835
831
  ...options,
836
832
  config,
837
833
  ...userOptions,
838
- tsconfig: _chunkTVRSY6E4cjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
834
+ tsconfig: _chunkEHVHDVI3cjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
839
835
  format: options.format || "cjs",
840
836
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
841
837
  "./src/index.ts"
842
838
  ], userOptions.emitOnAll),
843
- outdir: userOptions.outputPath || _chunkTVRSY6E4cjs.joinPaths.call(void 0, "dist", projectRoot),
839
+ outdir: userOptions.outputPath || _chunkEHVHDVI3cjs.joinPaths.call(void 0, "dist", projectRoot),
844
840
  plugins: [],
845
841
  name: userOptions.name || projectName,
846
842
  projectConfigurations,
847
843
  projectName,
848
844
  projectGraph,
849
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkTVRSY6E4cjs.joinPaths.call(void 0, projectRoot, "src"),
845
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkEHVHDVI3cjs.joinPaths.call(void 0, projectRoot, "src"),
850
846
  minify: userOptions.minify || !userOptions.debug,
851
- verbose: userOptions.verbose || _chunkTVRSY6E4cjs.isVerbose.call(void 0, ) || userOptions.debug === true,
847
+ verbose: userOptions.verbose || _chunkEHVHDVI3cjs.isVerbose.call(void 0, ) || userOptions.debug === true,
852
848
  includeSrc: userOptions.includeSrc === true,
853
849
  metafile: userOptions.metafile !== false,
854
850
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -882,14 +878,14 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
882
878
  return result;
883
879
  }, "resolveOptions");
884
880
  async function generatePackageJson(options) {
885
- if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkTVRSY6E4cjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
886
- _chunkTVRSY6E4cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
887
- const stopwatch = _chunkTVRSY6E4cjs.getStopwatch.call(void 0, "Write package.json file");
888
- const packageJsonPath = _chunkTVRSY6E4cjs.joinPaths.call(void 0, options.projectRoot, "project.json");
881
+ if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkEHVHDVI3cjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
882
+ _chunkEHVHDVI3cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
883
+ const stopwatch = _chunkEHVHDVI3cjs.getStopwatch.call(void 0, "Write package.json file");
884
+ const packageJsonPath = _chunkEHVHDVI3cjs.joinPaths.call(void 0, options.projectRoot, "project.json");
889
885
  if (!await _node.hfs.isFile(packageJsonPath)) {
890
886
  throw new Error("Cannot find package.json configuration");
891
887
  }
892
- let packageJson = await _node.hfs.json(_chunkTVRSY6E4cjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
888
+ let packageJson = await _node.hfs.json(_chunkEHVHDVI3cjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
893
889
  if (!packageJson) {
894
890
  throw new Error("Cannot find package.json configuration file");
895
891
  }
@@ -927,15 +923,15 @@ async function generatePackageJson(options) {
927
923
  }
928
924
  return ret;
929
925
  }, packageJson.exports);
930
- await _devkit.writeJsonFile.call(void 0, _chunkTVRSY6E4cjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
926
+ await _devkit.writeJsonFile.call(void 0, _chunkEHVHDVI3cjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
931
927
  stopwatch();
932
928
  }
933
929
  return options;
934
930
  }
935
931
  _chunkUSNT2KNTcjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
936
932
  async function executeTSDown(options) {
937
- _chunkTVRSY6E4cjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
938
- const stopwatch = _chunkTVRSY6E4cjs.getStopwatch.call(void 0, `${options.name} build`);
933
+ _chunkEHVHDVI3cjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
934
+ const stopwatch = _chunkEHVHDVI3cjs.getStopwatch.call(void 0, `${options.name} build`);
939
935
  await _tsdown.build.call(void 0, {
940
936
  ...options,
941
937
  entry: options.entryPoints,
@@ -947,27 +943,27 @@ async function executeTSDown(options) {
947
943
  }
948
944
  _chunkUSNT2KNTcjs.__name.call(void 0, executeTSDown, "executeTSDown");
949
945
  async function copyBuildAssets(options) {
950
- _chunkTVRSY6E4cjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
951
- const stopwatch = _chunkTVRSY6E4cjs.getStopwatch.call(void 0, `${options.name} asset copy`);
946
+ _chunkEHVHDVI3cjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
947
+ const stopwatch = _chunkEHVHDVI3cjs.getStopwatch.call(void 0, `${options.name} asset copy`);
952
948
  await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
953
949
  stopwatch();
954
950
  return options;
955
951
  }
956
952
  _chunkUSNT2KNTcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
957
953
  async function reportResults(options) {
958
- _chunkTVRSY6E4cjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
954
+ _chunkEHVHDVI3cjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
959
955
  }
960
956
  _chunkUSNT2KNTcjs.__name.call(void 0, reportResults, "reportResults");
961
957
  async function cleanOutputPath(options) {
962
958
  if (options.clean !== false && options.outdir) {
963
- await _chunkTVRSY6E4cjs.clean.call(void 0, options.name, options.outdir, options.config);
959
+ await _chunkEHVHDVI3cjs.clean.call(void 0, options.name, options.outdir, options.config);
964
960
  }
965
961
  return options;
966
962
  }
967
963
  _chunkUSNT2KNTcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
968
964
  async function build(options) {
969
- _chunkTVRSY6E4cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
970
- const stopwatch = _chunkTVRSY6E4cjs.getStopwatch.call(void 0, "TSDown pipeline");
965
+ _chunkEHVHDVI3cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
966
+ const stopwatch = _chunkEHVHDVI3cjs.getStopwatch.call(void 0, "TSDown pipeline");
971
967
  try {
972
968
  const opts = Array.isArray(options) ? options : [
973
969
  options
@@ -985,11 +981,11 @@ async function build(options) {
985
981
  await reportResults(opt);
986
982
  }));
987
983
  } else {
988
- _chunkTVRSY6E4cjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
984
+ _chunkEHVHDVI3cjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
989
985
  }
990
- _chunkTVRSY6E4cjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
986
+ _chunkEHVHDVI3cjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
991
987
  } catch (error) {
992
- _chunkTVRSY6E4cjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
988
+ _chunkEHVHDVI3cjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
993
989
  throw error;
994
990
  } finally {
995
991
  stopwatch();
@@ -484,49 +484,56 @@ var isVerbose = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (label = L
484
484
  var getLogFn = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
485
485
  const colors = !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12.dark]) && !_optionalChain([config, 'access', _13 => _13.colors, 'optionalAccess', _14 => _14["base"]]) && !_optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16["base"], 'optionalAccess', _17 => _17.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24["base"]]) ? _optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26["base"]]) : DEFAULT_COLOR_CONFIG;
486
486
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
487
- if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
487
+ if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
488
488
  return (_) => {
489
489
  };
490
490
  }
491
- if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
491
+ if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
492
492
  return (message) => {
493
493
  console.error(`
494
494
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
495
495
  `);
496
496
  };
497
497
  }
498
- if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
498
+ if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
499
499
  return (message) => {
500
500
  console.error(`
501
501
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
502
502
  `);
503
503
  };
504
504
  }
505
- if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
505
+ if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
506
506
  return (message) => {
507
507
  console.warn(`
508
508
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
509
509
  `);
510
510
  };
511
511
  }
512
- if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
512
+ if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
513
513
  return (message) => {
514
514
  console.info(`
515
515
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
516
516
  `);
517
517
  };
518
518
  }
519
- if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
519
+ if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
520
520
  return (message) => {
521
521
  console.info(`
522
522
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
523
523
  `);
524
524
  };
525
525
  }
526
- if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
526
+ if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
527
527
  return (message) => {
528
528
  console.debug(`
529
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
529
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
530
+ `);
531
+ };
532
+ }
533
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
534
+ return (message) => {
535
+ console.debug(`
536
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
530
537
  `);
531
538
  };
532
539
  }
@@ -20,7 +20,7 @@ import {
20
20
  writeSystem,
21
21
  writeTrace,
22
22
  writeWarning
23
- } from "./chunk-HSPF27VT.js";
23
+ } from "./chunk-MLTU5LTF.js";
24
24
  import {
25
25
  DEFAULT_BUILD_OPTIONS
26
26
  } from "./chunk-UQLCBJOS.js";
@@ -553,27 +553,23 @@ var readNxConfig = /* @__PURE__ */ __name(async (workspaceRoot) => {
553
553
  // ../build-tools/src/utilities/copy-assets.ts
554
554
  var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
555
555
  const pendingAssets = Array.from(assets ?? []);
556
- if (!pendingAssets?.some((asset) => asset?.glob === "*.md")) {
557
- pendingAssets.push({
558
- input: projectRoot,
559
- glob: "*.md",
560
- output: "/"
561
- });
562
- }
556
+ pendingAssets.push({
557
+ input: projectRoot,
558
+ glob: "*.md",
559
+ output: "."
560
+ });
561
+ pendingAssets.push({
562
+ input: config.workspaceRoot,
563
+ glob: "LICENSE",
564
+ output: "."
565
+ });
563
566
  if (generatePackageJson2 === false) {
564
567
  pendingAssets.push({
565
- input: sourceRoot,
568
+ input: projectRoot,
566
569
  glob: "package.json",
567
570
  output: "."
568
571
  });
569
572
  }
570
- if (!pendingAssets?.some((asset) => asset?.glob === "LICENSE")) {
571
- pendingAssets.push({
572
- input: "",
573
- glob: "LICENSE",
574
- output: "."
575
- });
576
- }
577
573
  if (includeSrc === true) {
578
574
  pendingAssets.push({
579
575
  input: sourceRoot,
@@ -484,49 +484,56 @@ var isVerbose = /* @__PURE__ */ __name((label = LogLevelLabel.SILENT) => {
484
484
  var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
485
485
  const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
486
486
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
487
- if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
487
+ if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
488
488
  return (_) => {
489
489
  };
490
490
  }
491
- if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
491
+ if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
492
492
  return (message) => {
493
493
  console.error(`
494
494
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
495
495
  `);
496
496
  };
497
497
  }
498
- if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
498
+ if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
499
499
  return (message) => {
500
500
  console.error(`
501
501
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
502
502
  `);
503
503
  };
504
504
  }
505
- if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
505
+ if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
506
506
  return (message) => {
507
507
  console.warn(`
508
508
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
509
509
  `);
510
510
  };
511
511
  }
512
- if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
512
+ if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
513
513
  return (message) => {
514
514
  console.info(`
515
515
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
516
516
  `);
517
517
  };
518
518
  }
519
- if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
519
+ if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
520
520
  return (message) => {
521
521
  console.info(`
522
522
  ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
523
523
  `);
524
524
  };
525
525
  }
526
- if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
526
+ if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
527
527
  return (message) => {
528
528
  console.debug(`
529
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
529
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
530
+ `);
531
+ };
532
+ }
533
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
534
+ return (message) => {
535
+ console.debug(`
536
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
530
537
  `);
531
538
  };
532
539
  }
package/dist/clean.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkTVRSY6E4cjs = require('./chunk-TVRSY6E4.cjs');
3
+ var _chunkEHVHDVI3cjs = require('./chunk-EHVHDVI3.cjs');
4
4
  require('./chunk-USNT2KNT.cjs');
5
5
 
6
6
 
7
- exports.clean = _chunkTVRSY6E4cjs.clean;
7
+ exports.clean = _chunkEHVHDVI3cjs.clean;
package/dist/clean.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clean
3
- } from "./chunk-HSPF27VT.js";
3
+ } from "./chunk-MLTU5LTF.js";
4
4
  import "./chunk-SHUYVCID.js";
5
5
  export {
6
6
  clean
package/dist/index.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkVEOBAPPUcjs = require('./chunk-VEOBAPPU.cjs');
3
+ var _chunkCTOS4DYDcjs = require('./chunk-CTOS4DYD.cjs');
4
4
 
5
5
 
6
- var _chunkTVRSY6E4cjs = require('./chunk-TVRSY6E4.cjs');
6
+ var _chunkEHVHDVI3cjs = require('./chunk-EHVHDVI3.cjs');
7
7
 
8
8
 
9
9
  var _chunk5KRF6IVWcjs = require('./chunk-5KRF6IVW.cjs');
@@ -13,4 +13,4 @@ require('./chunk-SFZRYJZ2.cjs');
13
13
 
14
14
 
15
15
 
16
- exports.DEFAULT_BUILD_OPTIONS = _chunk5KRF6IVWcjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunkVEOBAPPUcjs.build; exports.clean = _chunkTVRSY6E4cjs.clean;
16
+ exports.DEFAULT_BUILD_OPTIONS = _chunk5KRF6IVWcjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunkCTOS4DYDcjs.build; exports.clean = _chunkEHVHDVI3cjs.clean;
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-VG7AZNCL.js";
3
+ } from "./chunk-KNBVJN3A.js";
4
4
  import {
5
5
  clean
6
- } from "./chunk-HSPF27VT.js";
6
+ } from "./chunk-MLTU5LTF.js";
7
7
  import {
8
8
  DEFAULT_BUILD_OPTIONS
9
9
  } from "./chunk-UQLCBJOS.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/tsdown",
3
- "version": "0.21.3",
3
+ "version": "0.21.5",
4
4
  "type": "module",
5
5
  "description": "A package containing `tsdown` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -173,9 +173,9 @@
173
173
  "@microsoft/api-extractor": "^7.48.1",
174
174
  "@nx/devkit": "^20.3.1",
175
175
  "@nx/js": "^20.3.1",
176
- "@storm-software/build-tools": "0.131.3",
177
- "@storm-software/config": "1.97.3",
178
- "@storm-software/config-tools": "1.138.3",
176
+ "@storm-software/build-tools": "0.133.1",
177
+ "@storm-software/config": "1.97.5",
178
+ "@storm-software/config-tools": "1.140.1",
179
179
  "@types/node": "^22.10.2",
180
180
  "defu": "6.1.4",
181
181
  "rollup": "4.29.1",