@storm-software/tsdown 0.21.0 → 0.21.2

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.20.2-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.1-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 _chunkWRVVU7ZBcjs = require('./chunk-WRVVU7ZB.cjs');
4
- require('./chunk-3RSRST47.cjs');
3
+ var _chunkVEOBAPPUcjs = require('./chunk-VEOBAPPU.cjs');
4
+ require('./chunk-TVRSY6E4.cjs');
5
5
  require('./chunk-5KRF6IVW.cjs');
6
6
  require('./chunk-USNT2KNT.cjs');
7
7
 
8
8
 
9
- exports.build = _chunkWRVVU7ZBcjs.build;
9
+ exports.build = _chunkVEOBAPPUcjs.build;
package/dist/build.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-FWJ4AMBZ.js";
4
- import "./chunk-4WO7ZRQL.js";
3
+ } from "./chunk-VG7AZNCL.js";
4
+ import "./chunk-HSPF27VT.js";
5
5
  import "./chunk-UQLCBJOS.js";
6
6
  import "./chunk-SHUYVCID.js";
7
7
  export {
@@ -481,8 +481,7 @@ var isVerbose = /* @__PURE__ */ __name((label = LogLevelLabel.SILENT) => {
481
481
  }, "isVerbose");
482
482
 
483
483
  // ../config-tools/src/logger/console.ts
484
- var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) => {
485
- const _chalk = getChalk();
484
+ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
486
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;
487
486
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
488
487
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
@@ -481,8 +481,7 @@ var isVerbose = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (label = L
481
481
  }, "isVerbose");
482
482
 
483
483
  // ../config-tools/src/logger/console.ts
484
- var getLogFn = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}) => {
485
- const _chalk = getChalk();
484
+ var getLogFn = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
486
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;
487
486
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
488
487
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
@@ -20,7 +20,7 @@
20
20
 
21
21
 
22
22
 
23
- var _chunk3RSRST47cjs = require('./chunk-3RSRST47.cjs');
23
+ var _chunkTVRSY6E4cjs = require('./chunk-TVRSY6E4.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 || _chunk3RSRST47cjs.findWorkspaceRoot.call(void 0, filePath);
63
+ const workspacePath = filePath || _chunkTVRSY6E4cjs.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 : _chunk3RSRST47cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
71
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkTVRSY6E4cjs.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 : _chunk3RSRST47cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
83
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkTVRSY6E4cjs.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 : _chunk3RSRST47cjs.findWorkspaceRoot.call(void 0, filePath);
92
+ const workspacePath = filePath ? filePath : _chunkTVRSY6E4cjs.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
- _chunk3RSRST47cjs.writeSystem.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
97
+ _chunkTVRSY6E4cjs.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
- _chunk3RSRST47cjs.writeSystem.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
105
+ _chunkTVRSY6E4cjs.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`] ? _chunk3RSRST47cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
143
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunk3RSRST47cjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : 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,
144
144
  directories: {
145
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunk3RSRST47cjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
146
- data: process.env[`${prefix}DATA_DIR`] ? _chunk3RSRST47cjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
147
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunk3RSRST47cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
148
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunk3RSRST47cjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
149
- log: process.env[`${prefix}LOG_DIR`] ? _chunk3RSRST47cjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
150
- build: process.env[`${prefix}BUILD_DIR`] ? _chunk3RSRST47cjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
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
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`])) ? _chunk3RSRST47cjs.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`])) ? _chunkTVRSY6E4cjs.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_`) && _chunk3RSRST47cjs.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_`) && _chunkTVRSY6E4cjs.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 === _chunk3RSRST47cjs.STORM_DEFAULT_DOCS) {
181
- if (config.homepage === _chunk3RSRST47cjs.STORM_DEFAULT_HOMEPAGE) {
182
- config.docs = `${_chunk3RSRST47cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
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`;
183
183
  } else {
184
184
  config.docs = `${config.homepage}/docs`;
185
185
  }
186
186
  }
187
- if (config.licensing === _chunk3RSRST47cjs.STORM_DEFAULT_LICENSING) {
188
- if (config.homepage === _chunk3RSRST47cjs.STORM_DEFAULT_HOMEPAGE) {
189
- config.licensing = `${_chunk3RSRST47cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
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`;
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`] = _chunk3RSRST47cjs.correctPaths.call(void 0, config.configFile);
327
+ process.env[`${prefix}CONFIG_FILE`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.configFile);
328
328
  }
329
329
  if (config.workspaceRoot) {
330
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunk3RSRST47cjs.correctPaths.call(void 0, config.workspaceRoot);
331
- process.env.NX_WORKSPACE_ROOT = _chunk3RSRST47cjs.correctPaths.call(void 0, config.workspaceRoot);
332
- process.env.NX_WORKSPACE_ROOT_PATH = _chunk3RSRST47cjs.correctPaths.call(void 0, 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);
333
333
  }
334
334
  if (config.directories) {
335
335
  if (!config.skipCache && config.directories.cache) {
336
- process.env[`${prefix}CACHE_DIR`] = _chunk3RSRST47cjs.correctPaths.call(void 0, config.directories.cache);
336
+ process.env[`${prefix}CACHE_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.cache);
337
337
  }
338
338
  if (config.directories.data) {
339
- process.env[`${prefix}DATA_DIR`] = _chunk3RSRST47cjs.correctPaths.call(void 0, config.directories.data);
339
+ process.env[`${prefix}DATA_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.data);
340
340
  }
341
341
  if (config.directories.config) {
342
- process.env[`${prefix}CONFIG_DIR`] = _chunk3RSRST47cjs.correctPaths.call(void 0, config.directories.config);
342
+ process.env[`${prefix}CONFIG_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.config);
343
343
  }
344
344
  if (config.directories.temp) {
345
- process.env[`${prefix}TEMP_DIR`] = _chunk3RSRST47cjs.correctPaths.call(void 0, config.directories.temp);
345
+ process.env[`${prefix}TEMP_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.temp);
346
346
  }
347
347
  if (config.directories.log) {
348
- process.env[`${prefix}LOG_DIR`] = _chunk3RSRST47cjs.correctPaths.call(void 0, config.directories.log);
348
+ process.env[`${prefix}LOG_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.log);
349
349
  }
350
350
  if (config.directories.build) {
351
- process.env[`${prefix}BUILD_DIR`] = _chunk3RSRST47cjs.correctPaths.call(void 0, config.directories.build);
351
+ process.env[`${prefix}BUILD_DIR`] = _chunkTVRSY6E4cjs.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(_chunk3RSRST47cjs.getLogLevel.call(void 0, config.logLevel) >= _chunk3RSRST47cjs.LogLevel.DEBUG ? true : false);
406
- process.env.RUST_BACKTRACE = _chunk3RSRST47cjs.getLogLevel.call(void 0, config.logLevel) >= _chunk3RSRST47cjs.LogLevel.DEBUG ? "full" : "none";
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";
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
- _chunk3RSRST47cjs.writeTrace.call(void 0, `Configuration cache hit - ${_static_cache.timestamp}`, _static_cache.data);
516
+ _chunkTVRSY6E4cjs.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 = _chunk3RSRST47cjs.findWorkspaceRoot.call(void 0, );
521
+ _workspaceRoot = _chunkTVRSY6E4cjs.findWorkspaceRoot.call(void 0, );
522
522
  }
523
523
  const configFile = await getConfigFile(_workspaceRoot);
524
524
  if (!configFile) {
525
- _chunk3RSRST47cjs.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
+ _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", {
526
526
  logLevel: "all"
527
527
  });
528
528
  }
529
- config = _defu2.default.call(void 0, getConfigEnv(), configFile, _chunk3RSRST47cjs.getDefaultConfig.call(void 0, _workspaceRoot));
529
+ config = _defu2.default.call(void 0, getConfigEnv(), configFile, _chunkTVRSY6E4cjs.getDefaultConfig.call(void 0, _workspaceRoot));
530
530
  setConfigEnv(config);
531
- _chunk3RSRST47cjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm configuration:
532
- ${_chunk3RSRST47cjs.formatLogMessage.call(void 0, config)}`, config);
531
+ _chunkTVRSY6E4cjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm configuration:
532
+ ${_chunkTVRSY6E4cjs.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 = _chunk3RSRST47cjs.joinPaths.call(void 0, rootDir, "nx.json");
545
+ const nxJsonPath = _chunkTVRSY6E4cjs.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
  }
@@ -589,7 +589,7 @@ var copyAssets = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (co
589
589
  }
590
590
  const buildTarget = _optionalChain([projectsConfigurations, 'access', _39 => _39.projects, 'access', _40 => _40[projectName], 'access', _41 => _41.targets, 'optionalAccess', _42 => _42.build]);
591
591
  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 ${_chunk3RSRST47cjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
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")}`);
593
593
  }
594
594
  const result = await _js.copyAssets.call(void 0, {
595
595
  assets,
@@ -604,18 +604,18 @@ var copyAssets = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (co
604
604
  projectsConfigurations,
605
605
  nxJsonConfiguration: nxJson,
606
606
  cwd: config.workspaceRoot,
607
- isVerbose: _chunk3RSRST47cjs.isVerbose.call(void 0, config.logLevel)
607
+ isVerbose: _chunkTVRSY6E4cjs.isVerbose.call(void 0, config.logLevel)
608
608
  });
609
609
  if (!result.success) {
610
610
  throw new Error("The Build process failed trying to copy assets");
611
611
  }
612
612
  if (includeSrc === true) {
613
- _chunk3RSRST47cjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunk3RSRST47cjs.joinPaths.call(void 0, outputPath, "src")}`, config);
613
+ _chunkTVRSY6E4cjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkTVRSY6E4cjs.joinPaths.call(void 0, outputPath, "src")}`, config);
614
614
  const files = await _glob.glob.call(void 0, [
615
- _chunk3RSRST47cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
616
- _chunk3RSRST47cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
617
- _chunk3RSRST47cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
618
- _chunk3RSRST47cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
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")
619
619
  ]);
620
620
  await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
621
621
 
@@ -637,7 +637,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
637
637
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
638
638
  const projectNode = project.node;
639
639
  if (projectNode.data.root) {
640
- const projectPackageJsonPath = _chunk3RSRST47cjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
640
+ const projectPackageJsonPath = _chunkTVRSY6E4cjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
641
641
  if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
642
642
  const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
643
643
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
@@ -648,7 +648,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
648
648
  }
649
649
  }
650
650
  if (localPackages.length > 0) {
651
- _chunk3RSRST47cjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
651
+ _chunkTVRSY6E4cjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
652
652
  packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
653
653
  if (!ret[localPackage.name]) {
654
654
  ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
@@ -670,13 +670,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
670
670
  return ret;
671
671
  }, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
672
672
  } else {
673
- _chunk3RSRST47cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
673
+ _chunkTVRSY6E4cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
674
674
  }
675
675
  return packageJson;
676
676
  }, "addPackageDependencies");
677
677
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
678
- const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunk3RSRST47cjs.findWorkspaceRoot.call(void 0, );
679
- const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunk3RSRST47cjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
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");
680
680
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
681
681
  packageJson.type ??= "module";
682
682
  packageJson.sideEffects ??= false;
@@ -685,7 +685,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.cal
685
685
  if (distSrc.startsWith("/")) {
686
686
  distSrc = distSrc.substring(1);
687
687
  }
688
- packageJson.source ??= `${_chunk3RSRST47cjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
688
+ packageJson.source ??= `${_chunkTVRSY6E4cjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
689
689
  }
690
690
  packageJson.files ??= [
691
691
  "dist/**/*"
@@ -716,7 +716,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.cal
716
716
  ];
717
717
  }
718
718
  packageJson.repository ??= workspacePackageJson.repository;
719
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunk3RSRST47cjs.joinPaths.call(void 0, "packages", projectName);
719
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkTVRSY6E4cjs.joinPaths.call(void 0, "packages", projectName);
720
720
  return packageJson;
721
721
  }, "addWorkspacePackageJsonFields");
722
722
  var addPackageJsonExport = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
@@ -743,7 +743,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
743
743
  // ../build-tools/src/utilities/get-entry-points.ts
744
744
 
745
745
  var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
746
- const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunk3RSRST47cjs.findWorkspaceRoot.call(void 0, );
746
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkTVRSY6E4cjs.findWorkspaceRoot.call(void 0, );
747
747
  const entryPoints = [];
748
748
  if (entry) {
749
749
  if (Array.isArray(entry)) {
@@ -755,7 +755,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
755
755
  }
756
756
  }
757
757
  if (emitOnAll) {
758
- entryPoints.push(_chunk3RSRST47cjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
758
+ entryPoints.push(_chunkTVRSY6E4cjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
759
759
  }
760
760
  const results = [];
761
761
  for (const entryPoint in entryPoints) {
@@ -764,9 +764,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
764
764
  withFileTypes: true
765
765
  });
766
766
  results.push(...files.reduce((ret, filePath) => {
767
- const result = _chunk3RSRST47cjs.correctPaths.call(void 0, _chunk3RSRST47cjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunk3RSRST47cjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunk3RSRST47cjs.correctPaths.call(void 0, projectRoot), ""));
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), ""));
768
768
  if (result) {
769
- _chunk3RSRST47cjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunk3RSRST47cjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
769
+ _chunkTVRSY6E4cjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkTVRSY6E4cjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
770
770
  if (!results.includes(result)) {
771
771
  results.push(result);
772
772
  }
@@ -808,12 +808,12 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
808
808
  throw new Error("Cannot find Nx workspace root");
809
809
  }
810
810
  const config = await loadStormConfig(workspaceRoot.dir);
811
- _chunk3RSRST47cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
812
- const stopwatch = _chunk3RSRST47cjs.getStopwatch.call(void 0, "Build options resolution");
811
+ _chunkTVRSY6E4cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
812
+ const stopwatch = _chunkTVRSY6E4cjs.getStopwatch.call(void 0, "Build options resolution");
813
813
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
814
814
  exitOnError: true
815
815
  });
816
- const projectJsonPath = _chunk3RSRST47cjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
816
+ const projectJsonPath = _chunkTVRSY6E4cjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
817
817
  if (!await _node.hfs.isFile(projectJsonPath)) {
818
818
  throw new Error("Cannot find project.json configuration");
819
819
  }
@@ -826,7 +826,7 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
826
826
  const options = _defu2.default.call(void 0, userOptions, _chunk5KRF6IVWcjs.DEFAULT_BUILD_OPTIONS);
827
827
  options.name ??= `${projectName}-${options.format}`;
828
828
  options.target ??= DEFAULT_TARGET;
829
- const packageJsonPath = _chunk3RSRST47cjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
829
+ const packageJsonPath = _chunkTVRSY6E4cjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
830
830
  if (!await _node.hfs.isFile(packageJsonPath)) {
831
831
  throw new Error("Cannot find package.json configuration");
832
832
  }
@@ -835,20 +835,20 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
835
835
  ...options,
836
836
  config,
837
837
  ...userOptions,
838
- tsconfig: _chunk3RSRST47cjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
838
+ tsconfig: _chunkTVRSY6E4cjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
839
839
  format: options.format || "cjs",
840
840
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
841
841
  "./src/index.ts"
842
842
  ], userOptions.emitOnAll),
843
- outdir: userOptions.outputPath || _chunk3RSRST47cjs.joinPaths.call(void 0, "dist", projectRoot),
843
+ outdir: userOptions.outputPath || _chunkTVRSY6E4cjs.joinPaths.call(void 0, "dist", projectRoot),
844
844
  plugins: [],
845
845
  name: userOptions.name || projectName,
846
846
  projectConfigurations,
847
847
  projectName,
848
848
  projectGraph,
849
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunk3RSRST47cjs.joinPaths.call(void 0, projectRoot, "src"),
849
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkTVRSY6E4cjs.joinPaths.call(void 0, projectRoot, "src"),
850
850
  minify: userOptions.minify || !userOptions.debug,
851
- verbose: userOptions.verbose || _chunk3RSRST47cjs.isVerbose.call(void 0, ) || userOptions.debug === true,
851
+ verbose: userOptions.verbose || _chunkTVRSY6E4cjs.isVerbose.call(void 0, ) || userOptions.debug === true,
852
852
  includeSrc: userOptions.includeSrc === true,
853
853
  metafile: userOptions.metafile !== false,
854
854
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -882,14 +882,14 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
882
882
  return result;
883
883
  }, "resolveOptions");
884
884
  async function generatePackageJson(options) {
885
- if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunk3RSRST47cjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
886
- _chunk3RSRST47cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
887
- const stopwatch = _chunk3RSRST47cjs.getStopwatch.call(void 0, "Write package.json file");
888
- const packageJsonPath = _chunk3RSRST47cjs.joinPaths.call(void 0, options.projectRoot, "project.json");
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");
889
889
  if (!await _node.hfs.isFile(packageJsonPath)) {
890
890
  throw new Error("Cannot find package.json configuration");
891
891
  }
892
- let packageJson = await _node.hfs.json(_chunk3RSRST47cjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
892
+ let packageJson = await _node.hfs.json(_chunkTVRSY6E4cjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
893
893
  if (!packageJson) {
894
894
  throw new Error("Cannot find package.json configuration file");
895
895
  }
@@ -927,15 +927,15 @@ async function generatePackageJson(options) {
927
927
  }
928
928
  return ret;
929
929
  }, packageJson.exports);
930
- await _devkit.writeJsonFile.call(void 0, _chunk3RSRST47cjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
930
+ await _devkit.writeJsonFile.call(void 0, _chunkTVRSY6E4cjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
931
931
  stopwatch();
932
932
  }
933
933
  return options;
934
934
  }
935
935
  _chunkUSNT2KNTcjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
936
936
  async function executeTSDown(options) {
937
- _chunk3RSRST47cjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
938
- const stopwatch = _chunk3RSRST47cjs.getStopwatch.call(void 0, `${options.name} build`);
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`);
939
939
  await _tsdown.build.call(void 0, {
940
940
  ...options,
941
941
  entry: options.entryPoints,
@@ -947,27 +947,27 @@ async function executeTSDown(options) {
947
947
  }
948
948
  _chunkUSNT2KNTcjs.__name.call(void 0, executeTSDown, "executeTSDown");
949
949
  async function copyBuildAssets(options) {
950
- _chunk3RSRST47cjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
951
- const stopwatch = _chunk3RSRST47cjs.getStopwatch.call(void 0, `${options.name} asset copy`);
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`);
952
952
  await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
953
953
  stopwatch();
954
954
  return options;
955
955
  }
956
956
  _chunkUSNT2KNTcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
957
957
  async function reportResults(options) {
958
- _chunk3RSRST47cjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
958
+ _chunkTVRSY6E4cjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
959
959
  }
960
960
  _chunkUSNT2KNTcjs.__name.call(void 0, reportResults, "reportResults");
961
961
  async function cleanOutputPath(options) {
962
962
  if (options.clean !== false && options.outdir) {
963
- await _chunk3RSRST47cjs.clean.call(void 0, options.name, options.outdir, options.config);
963
+ await _chunkTVRSY6E4cjs.clean.call(void 0, options.name, options.outdir, options.config);
964
964
  }
965
965
  return options;
966
966
  }
967
967
  _chunkUSNT2KNTcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
968
968
  async function build(options) {
969
- _chunk3RSRST47cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
970
- const stopwatch = _chunk3RSRST47cjs.getStopwatch.call(void 0, "TSDown pipeline");
969
+ _chunkTVRSY6E4cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
970
+ const stopwatch = _chunkTVRSY6E4cjs.getStopwatch.call(void 0, "TSDown pipeline");
971
971
  try {
972
972
  const opts = Array.isArray(options) ? options : [
973
973
  options
@@ -985,11 +985,11 @@ async function build(options) {
985
985
  await reportResults(opt);
986
986
  }));
987
987
  } else {
988
- _chunk3RSRST47cjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
988
+ _chunkTVRSY6E4cjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
989
989
  }
990
- _chunk3RSRST47cjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
990
+ _chunkTVRSY6E4cjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
991
991
  } catch (error) {
992
- _chunk3RSRST47cjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
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.");
993
993
  throw error;
994
994
  } finally {
995
995
  stopwatch();
@@ -20,7 +20,7 @@ import {
20
20
  writeSystem,
21
21
  writeTrace,
22
22
  writeWarning
23
- } from "./chunk-4WO7ZRQL.js";
23
+ } from "./chunk-HSPF27VT.js";
24
24
  import {
25
25
  DEFAULT_BUILD_OPTIONS
26
26
  } from "./chunk-UQLCBJOS.js";
package/dist/clean.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3RSRST47cjs = require('./chunk-3RSRST47.cjs');
3
+ var _chunkTVRSY6E4cjs = require('./chunk-TVRSY6E4.cjs');
4
4
  require('./chunk-USNT2KNT.cjs');
5
5
 
6
6
 
7
- exports.clean = _chunk3RSRST47cjs.clean;
7
+ exports.clean = _chunkTVRSY6E4cjs.clean;
package/dist/clean.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clean
3
- } from "./chunk-4WO7ZRQL.js";
3
+ } from "./chunk-HSPF27VT.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 _chunkWRVVU7ZBcjs = require('./chunk-WRVVU7ZB.cjs');
3
+ var _chunkVEOBAPPUcjs = require('./chunk-VEOBAPPU.cjs');
4
4
 
5
5
 
6
- var _chunk3RSRST47cjs = require('./chunk-3RSRST47.cjs');
6
+ var _chunkTVRSY6E4cjs = require('./chunk-TVRSY6E4.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 = _chunkWRVVU7ZBcjs.build; exports.clean = _chunk3RSRST47cjs.clean;
16
+ exports.DEFAULT_BUILD_OPTIONS = _chunk5KRF6IVWcjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunkVEOBAPPUcjs.build; exports.clean = _chunkTVRSY6E4cjs.clean;
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-FWJ4AMBZ.js";
3
+ } from "./chunk-VG7AZNCL.js";
4
4
  import {
5
5
  clean
6
- } from "./chunk-4WO7ZRQL.js";
6
+ } from "./chunk-HSPF27VT.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.0",
3
+ "version": "0.21.2",
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.130.0",
177
- "@storm-software/config": "1.97.0",
178
- "@storm-software/config-tools": "1.137.0",
176
+ "@storm-software/build-tools": "0.131.1",
177
+ "@storm-software/config": "1.97.2",
178
+ "@storm-software/config-tools": "1.138.1",
179
179
  "@types/node": "^22.10.2",
180
180
  "defu": "6.1.4",
181
181
  "rollup": "4.29.1",