@storm-software/tsdown 0.24.17 → 0.24.18

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.24.16-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.24.17-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,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkTFFKZFJGcjs = require('./chunk-TFFKZFJG.cjs');
5
- require('./chunk-JXYBDFPK.cjs');
4
+ var _chunkD6L3KZ5Scjs = require('./chunk-D6L3KZ5S.cjs');
5
+ require('./chunk-G4464EF4.cjs');
6
6
  require('./chunk-5KRF6IVW.cjs');
7
7
  require('./chunk-USNT2KNT.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.build = _chunkTFFKZFJGcjs.build; exports.cleanOutputPath = _chunkTFFKZFJGcjs.cleanOutputPath;
11
+ exports.build = _chunkD6L3KZ5Scjs.build; exports.cleanOutputPath = _chunkD6L3KZ5Scjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-PJF37ZAU.js";
5
- import "./chunk-EO2JNC24.js";
4
+ } from "./chunk-5A7FYWCJ.js";
5
+ import "./chunk-65SPFK5R.js";
6
6
  import "./chunk-UQLCBJOS.js";
7
7
  import "./chunk-SHUYVCID.js";
8
8
  export {
@@ -20,7 +20,7 @@ import {
20
20
  writeSuccess,
21
21
  writeTrace,
22
22
  writeWarning
23
- } from "./chunk-EO2JNC24.js";
23
+ } from "./chunk-65SPFK5R.js";
24
24
  import {
25
25
  DEFAULT_BUILD_OPTIONS
26
26
  } from "./chunk-UQLCBJOS.js";
@@ -613,55 +613,55 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _c
613
613
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
614
614
  return (message) => {
615
615
  console.error(`
616
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
616
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
617
617
  `);
618
618
  };
619
619
  }
620
620
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
621
621
  return (message) => {
622
622
  console.error(`
623
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
623
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
624
624
  `);
625
625
  };
626
626
  }
627
627
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
628
628
  return (message) => {
629
629
  console.warn(`
630
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
630
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
631
631
  `);
632
632
  };
633
633
  }
634
634
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
635
635
  return (message) => {
636
636
  console.info(`
637
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
637
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
638
638
  `);
639
639
  };
640
640
  }
641
641
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
642
642
  return (message) => {
643
643
  console.info(`
644
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
644
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
645
645
  `);
646
646
  };
647
647
  }
648
648
  if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
649
649
  return (message) => {
650
650
  console.debug(`
651
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
651
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
652
652
  `);
653
653
  };
654
654
  }
655
655
  if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
656
656
  return (message) => {
657
657
  console.debug(`
658
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
658
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
659
659
  `);
660
660
  };
661
661
  }
662
662
  return (message) => {
663
663
  console.log(`
664
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
664
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
665
665
  `);
666
666
  };
667
667
  }, "getLogFn");
@@ -676,7 +676,6 @@ var getStopwatch = /* @__PURE__ */ __name((name) => {
676
676
  const end = process.hrtime(start);
677
677
  console.info(`
678
678
  > \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(end[0] * 1e3 + end[1] / 1e6)}ms to complete
679
-
680
679
  `);
681
680
  };
682
681
  }, "getStopwatch");
@@ -20,7 +20,7 @@
20
20
 
21
21
 
22
22
 
23
- var _chunkJXYBDFPKcjs = require('./chunk-JXYBDFPK.cjs');
23
+ var _chunkG4464EF4cjs = require('./chunk-G4464EF4.cjs');
24
24
 
25
25
 
26
26
  var _chunk5KRF6IVWcjs = require('./chunk-5KRF6IVW.cjs');
@@ -79,8 +79,8 @@ var copyAssets = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (co
79
79
  output: "src/"
80
80
  });
81
81
  }
82
- _chunkJXYBDFPKcjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
83
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkJXYBDFPKcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
82
+ _chunkG4464EF4cjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
83
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkG4464EF4cjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
84
84
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
85
85
  projectDir: projectRoot,
86
86
  rootDir: config.workspaceRoot,
@@ -89,12 +89,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
89
89
  });
90
90
  await assetHandler.processAllAssetsOnce();
91
91
  if (includeSrc === true) {
92
- _chunkJXYBDFPKcjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkJXYBDFPKcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
92
+ _chunkG4464EF4cjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkG4464EF4cjs.joinPaths.call(void 0, outputPath, "src")}`, config);
93
93
  const files = await _glob.glob.call(void 0, [
94
- _chunkJXYBDFPKcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
95
- _chunkJXYBDFPKcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
96
- _chunkJXYBDFPKcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
97
- _chunkJXYBDFPKcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
94
+ _chunkG4464EF4cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
95
+ _chunkG4464EF4cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
96
+ _chunkG4464EF4cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
97
+ _chunkG4464EF4cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
98
98
  ]);
99
99
  await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
100
100
 
@@ -117,7 +117,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
117
117
  for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
118
118
  const projectNode = project.node;
119
119
  if (projectNode.data.root) {
120
- const projectPackageJsonPath = _chunkJXYBDFPKcjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
120
+ const projectPackageJsonPath = _chunkG4464EF4cjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
121
121
  if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
122
122
  const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
123
123
  const projectPackageJson = JSON.parse(projectPackageJsonContent);
@@ -128,8 +128,8 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
128
128
  }
129
129
  }
130
130
  if (localPackages.length > 0) {
131
- _chunkJXYBDFPKcjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
132
- const projectJsonFile = await _promises.readFile.call(void 0, _chunkJXYBDFPKcjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
131
+ _chunkG4464EF4cjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
132
+ const projectJsonFile = await _promises.readFile.call(void 0, _chunkG4464EF4cjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
133
133
  const projectJson = JSON.parse(projectJsonFile);
134
134
  const projectName2 = projectJson.name;
135
135
  const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
@@ -138,7 +138,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
138
138
  }
139
139
  const implicitDependencies = _optionalChain([projectConfigurations, 'access', _3 => _3.projects, 'optionalAccess', _4 => _4[projectName2], 'access', _5 => _5.implicitDependencies, 'optionalAccess', _6 => _6.reduce, 'call', _7 => _7((ret, dep) => {
140
140
  if (_optionalChain([projectConfigurations, 'access', _8 => _8.projects, 'optionalAccess', _9 => _9[dep]])) {
141
- const depPackageJsonPath = _chunkJXYBDFPKcjs.joinPaths.call(void 0, workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
141
+ const depPackageJsonPath = _chunkG4464EF4cjs.joinPaths.call(void 0, workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
142
142
  if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
143
143
  const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
144
144
  const depPackageJson = JSON.parse(depPackageJsonContent);
@@ -162,13 +162,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
162
162
  return ret;
163
163
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
164
164
  } else {
165
- _chunkJXYBDFPKcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
165
+ _chunkG4464EF4cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
166
166
  }
167
167
  return packageJson;
168
168
  }, "addPackageDependencies");
169
169
  var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
170
- const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkJXYBDFPKcjs.findWorkspaceRoot.call(void 0, );
171
- const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkJXYBDFPKcjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
170
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkG4464EF4cjs.findWorkspaceRoot.call(void 0, );
171
+ const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkG4464EF4cjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
172
172
  const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
173
173
  packageJson.type ??= "module";
174
174
  packageJson.sideEffects ??= false;
@@ -177,7 +177,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.cal
177
177
  if (distSrc.startsWith("/")) {
178
178
  distSrc = distSrc.substring(1);
179
179
  }
180
- packageJson.source ??= `${_chunkJXYBDFPKcjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
180
+ packageJson.source ??= `${_chunkG4464EF4cjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
181
181
  }
182
182
  packageJson.files ??= [
183
183
  "dist/**/*"
@@ -208,7 +208,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.cal
208
208
  ];
209
209
  }
210
210
  packageJson.repository ??= workspacePackageJson.repository;
211
- packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkJXYBDFPKcjs.joinPaths.call(void 0, "packages", projectName);
211
+ packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkG4464EF4cjs.joinPaths.call(void 0, "packages", projectName);
212
212
  return packageJson;
213
213
  }, "addWorkspacePackageJsonFields");
214
214
  var addPackageJsonExport = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
@@ -236,7 +236,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
236
236
  var _c12 = require('c12');
237
237
  var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
238
238
  var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
239
- const workspacePath = filePath || _chunkJXYBDFPKcjs.findWorkspaceRoot.call(void 0, filePath);
239
+ const workspacePath = filePath || _chunkG4464EF4cjs.findWorkspaceRoot.call(void 0, filePath);
240
240
  const configs = await Promise.all([
241
241
  _c12.loadConfig.call(void 0, {
242
242
  cwd: workspacePath,
@@ -245,7 +245,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
245
245
  envName: _optionalChain([fileName, 'optionalAccess', _14 => _14.toUpperCase, 'call', _15 => _15()]),
246
246
  jitiOptions: {
247
247
  debug: false,
248
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkJXYBDFPKcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
248
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkG4464EF4cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
249
249
  },
250
250
  ...options
251
251
  }),
@@ -256,7 +256,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
256
256
  envName: _optionalChain([fileName, 'optionalAccess', _16 => _16.toUpperCase, 'call', _17 => _17()]),
257
257
  jitiOptions: {
258
258
  debug: false,
259
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkJXYBDFPKcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
259
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkG4464EF4cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
260
260
  },
261
261
  configFile: fileName,
262
262
  ...options
@@ -265,12 +265,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
265
265
  return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
266
266
  }, "getConfigFileByName");
267
267
  var getConfigFile = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
268
- const workspacePath = filePath ? filePath : _chunkJXYBDFPKcjs.findWorkspaceRoot.call(void 0, filePath);
268
+ const workspacePath = filePath ? filePath : _chunkG4464EF4cjs.findWorkspaceRoot.call(void 0, filePath);
269
269
  const result = await getConfigFileByName("storm-workspace", workspacePath);
270
270
  let config = result.config;
271
271
  const configFile = result.configFile;
272
272
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
273
- _chunkJXYBDFPKcjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
273
+ _chunkG4464EF4cjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
274
274
  logLevel: "all"
275
275
  });
276
276
  }
@@ -279,7 +279,7 @@ var getConfigFile = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
279
279
  for (const result2 of results) {
280
280
  if (_optionalChain([result2, 'optionalAccess', _18 => _18.config]) && _optionalChain([result2, 'optionalAccess', _19 => _19.configFile]) && Object.keys(result2.config).length > 0) {
281
281
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
282
- _chunkJXYBDFPKcjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
282
+ _chunkG4464EF4cjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
283
283
  logLevel: "all"
284
284
  });
285
285
  }
@@ -327,15 +327,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
327
327
  licensing: process.env[`${prefix}LICENSING`] || void 0,
328
328
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
329
329
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
330
- configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkJXYBDFPKcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
331
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkJXYBDFPKcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
330
+ configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkG4464EF4cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
331
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkG4464EF4cjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
332
332
  directories: {
333
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkJXYBDFPKcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
334
- data: process.env[`${prefix}DATA_DIR`] ? _chunkJXYBDFPKcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
335
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkJXYBDFPKcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
336
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkJXYBDFPKcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
337
- log: process.env[`${prefix}LOG_DIR`] ? _chunkJXYBDFPKcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
338
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkJXYBDFPKcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
333
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunkG4464EF4cjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
334
+ data: process.env[`${prefix}DATA_DIR`] ? _chunkG4464EF4cjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
335
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunkG4464EF4cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
336
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunkG4464EF4cjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
337
+ log: process.env[`${prefix}LOG_DIR`] ? _chunkG4464EF4cjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
338
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunkG4464EF4cjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
339
339
  },
340
340
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
341
341
  env: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}ENV`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -358,24 +358,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
358
358
  cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
359
359
  container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
360
360
  },
361
- 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`])) ? _chunkJXYBDFPKcjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
361
+ 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`])) ? _chunkG4464EF4cjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
362
362
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
363
363
  };
364
- const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkJXYBDFPKcjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
364
+ const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkG4464EF4cjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
365
365
  config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
366
366
  ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
367
367
  return ret;
368
368
  }, {}) : getThemeColorConfigEnv(prefix);
369
- if (config.docs === _chunkJXYBDFPKcjs.STORM_DEFAULT_DOCS) {
370
- if (config.homepage === _chunkJXYBDFPKcjs.STORM_DEFAULT_HOMEPAGE) {
371
- config.docs = `${_chunkJXYBDFPKcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
369
+ if (config.docs === _chunkG4464EF4cjs.STORM_DEFAULT_DOCS) {
370
+ if (config.homepage === _chunkG4464EF4cjs.STORM_DEFAULT_HOMEPAGE) {
371
+ config.docs = `${_chunkG4464EF4cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
372
372
  } else {
373
373
  config.docs = `${config.homepage}/docs`;
374
374
  }
375
375
  }
376
- if (config.licensing === _chunkJXYBDFPKcjs.STORM_DEFAULT_LICENSING) {
377
- if (config.homepage === _chunkJXYBDFPKcjs.STORM_DEFAULT_HOMEPAGE) {
378
- config.licensing = `${_chunkJXYBDFPKcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
376
+ if (config.licensing === _chunkG4464EF4cjs.STORM_DEFAULT_LICENSING) {
377
+ if (config.homepage === _chunkG4464EF4cjs.STORM_DEFAULT_HOMEPAGE) {
378
+ config.licensing = `${_chunkG4464EF4cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
379
379
  } else {
380
380
  config.licensing = `${config.homepage}/docs`;
381
381
  }
@@ -513,31 +513,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
513
513
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
514
514
  }
515
515
  if (config.configFile) {
516
- process.env[`${prefix}CONFIG_FILE`] = _chunkJXYBDFPKcjs.correctPaths.call(void 0, config.configFile);
516
+ process.env[`${prefix}CONFIG_FILE`] = _chunkG4464EF4cjs.correctPaths.call(void 0, config.configFile);
517
517
  }
518
518
  if (config.workspaceRoot) {
519
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunkJXYBDFPKcjs.correctPaths.call(void 0, config.workspaceRoot);
520
- process.env.NX_WORKSPACE_ROOT = _chunkJXYBDFPKcjs.correctPaths.call(void 0, config.workspaceRoot);
521
- process.env.NX_WORKSPACE_ROOT_PATH = _chunkJXYBDFPKcjs.correctPaths.call(void 0, config.workspaceRoot);
519
+ process.env[`${prefix}WORKSPACE_ROOT`] = _chunkG4464EF4cjs.correctPaths.call(void 0, config.workspaceRoot);
520
+ process.env.NX_WORKSPACE_ROOT = _chunkG4464EF4cjs.correctPaths.call(void 0, config.workspaceRoot);
521
+ process.env.NX_WORKSPACE_ROOT_PATH = _chunkG4464EF4cjs.correctPaths.call(void 0, config.workspaceRoot);
522
522
  }
523
523
  if (config.directories) {
524
524
  if (!config.skipCache && config.directories.cache) {
525
- process.env[`${prefix}CACHE_DIR`] = _chunkJXYBDFPKcjs.correctPaths.call(void 0, config.directories.cache);
525
+ process.env[`${prefix}CACHE_DIR`] = _chunkG4464EF4cjs.correctPaths.call(void 0, config.directories.cache);
526
526
  }
527
527
  if (config.directories.data) {
528
- process.env[`${prefix}DATA_DIR`] = _chunkJXYBDFPKcjs.correctPaths.call(void 0, config.directories.data);
528
+ process.env[`${prefix}DATA_DIR`] = _chunkG4464EF4cjs.correctPaths.call(void 0, config.directories.data);
529
529
  }
530
530
  if (config.directories.config) {
531
- process.env[`${prefix}CONFIG_DIR`] = _chunkJXYBDFPKcjs.correctPaths.call(void 0, config.directories.config);
531
+ process.env[`${prefix}CONFIG_DIR`] = _chunkG4464EF4cjs.correctPaths.call(void 0, config.directories.config);
532
532
  }
533
533
  if (config.directories.temp) {
534
- process.env[`${prefix}TEMP_DIR`] = _chunkJXYBDFPKcjs.correctPaths.call(void 0, config.directories.temp);
534
+ process.env[`${prefix}TEMP_DIR`] = _chunkG4464EF4cjs.correctPaths.call(void 0, config.directories.temp);
535
535
  }
536
536
  if (config.directories.log) {
537
- process.env[`${prefix}LOG_DIR`] = _chunkJXYBDFPKcjs.correctPaths.call(void 0, config.directories.log);
537
+ process.env[`${prefix}LOG_DIR`] = _chunkG4464EF4cjs.correctPaths.call(void 0, config.directories.log);
538
538
  }
539
539
  if (config.directories.build) {
540
- process.env[`${prefix}BUILD_DIR`] = _chunkJXYBDFPKcjs.correctPaths.call(void 0, config.directories.build);
540
+ process.env[`${prefix}BUILD_DIR`] = _chunkG4464EF4cjs.correctPaths.call(void 0, config.directories.build);
541
541
  }
542
542
  }
543
543
  if (config.skipCache !== void 0) {
@@ -591,8 +591,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
591
591
  if (config.logLevel) {
592
592
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
593
593
  process.env.LOG_LEVEL = String(config.logLevel);
594
- process.env.NX_VERBOSE_LOGGING = String(_chunkJXYBDFPKcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkJXYBDFPKcjs.LogLevel.DEBUG ? true : false);
595
- process.env.RUST_BACKTRACE = _chunkJXYBDFPKcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkJXYBDFPKcjs.LogLevel.DEBUG ? "full" : "none";
594
+ process.env.NX_VERBOSE_LOGGING = String(_chunkG4464EF4cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkG4464EF4cjs.LogLevel.DEBUG ? true : false);
595
+ process.env.RUST_BACKTRACE = _chunkG4464EF4cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkG4464EF4cjs.LogLevel.DEBUG ? "full" : "none";
596
596
  }
597
597
  if (config.skipConfigLogging !== void 0) {
598
598
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
@@ -708,17 +708,17 @@ var createStormConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, as
708
708
  if (!_optionalChain([_static_cache, 'optionalAccess', _42 => _42.data]) || !_optionalChain([_static_cache, 'optionalAccess', _43 => _43.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
709
709
  let _workspaceRoot = workspaceRoot;
710
710
  if (!_workspaceRoot) {
711
- _workspaceRoot = _chunkJXYBDFPKcjs.findWorkspaceRoot.call(void 0, );
711
+ _workspaceRoot = _chunkG4464EF4cjs.findWorkspaceRoot.call(void 0, );
712
712
  }
713
713
  const configEnv = getConfigEnv();
714
- const defaultConfig = await _chunkJXYBDFPKcjs.getDefaultConfig.call(void 0, _workspaceRoot);
714
+ const defaultConfig = await _chunkG4464EF4cjs.getDefaultConfig.call(void 0, _workspaceRoot);
715
715
  const configFile = await getConfigFile(_workspaceRoot);
716
716
  if (!configFile && !skipLogs) {
717
- _chunkJXYBDFPKcjs.writeWarning.call(void 0, "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
717
+ _chunkG4464EF4cjs.writeWarning.call(void 0, "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
718
718
  logLevel: "all"
719
719
  });
720
720
  }
721
- result = await _chunkJXYBDFPKcjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
721
+ result = await _chunkG4464EF4cjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
722
722
  result.workspaceRoot ??= _workspaceRoot;
723
723
  } else {
724
724
  result = _static_cache.data;
@@ -753,8 +753,8 @@ var loadStormConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, asyn
753
753
  const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
754
754
  setConfigEnv(config);
755
755
  if (!skipLogs && !config.skipConfigLogging) {
756
- _chunkJXYBDFPKcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
757
- ${_chunkJXYBDFPKcjs.formatLogMessage.call(void 0, config)}`, config);
756
+ _chunkG4464EF4cjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
757
+ ${_chunkG4464EF4cjs.formatLogMessage.call(void 0, config)}`, config);
758
758
  }
759
759
  return config;
760
760
  }, "loadStormConfig");
@@ -767,7 +767,7 @@ var getConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (workspace
767
767
  // ../build-tools/src/utilities/get-entry-points.ts
768
768
 
769
769
  var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
770
- const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkJXYBDFPKcjs.findWorkspaceRoot.call(void 0, );
770
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkG4464EF4cjs.findWorkspaceRoot.call(void 0, );
771
771
  const entryPoints = [];
772
772
  if (entry) {
773
773
  if (Array.isArray(entry)) {
@@ -779,7 +779,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
779
779
  }
780
780
  }
781
781
  if (emitOnAll) {
782
- entryPoints.push(_chunkJXYBDFPKcjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
782
+ entryPoints.push(_chunkG4464EF4cjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
783
783
  }
784
784
  const results = [];
785
785
  for (const entryPoint in entryPoints) {
@@ -788,9 +788,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
788
788
  withFileTypes: true
789
789
  });
790
790
  results.push(...files.reduce((ret, filePath) => {
791
- const result = _chunkJXYBDFPKcjs.correctPaths.call(void 0, _chunkJXYBDFPKcjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkJXYBDFPKcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkJXYBDFPKcjs.correctPaths.call(void 0, projectRoot), ""));
791
+ const result = _chunkG4464EF4cjs.correctPaths.call(void 0, _chunkG4464EF4cjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkG4464EF4cjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkG4464EF4cjs.correctPaths.call(void 0, projectRoot), ""));
792
792
  if (result) {
793
- _chunkJXYBDFPKcjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkJXYBDFPKcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
793
+ _chunkG4464EF4cjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkG4464EF4cjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
794
794
  if (!results.includes(result)) {
795
795
  results.push(result);
796
796
  }
@@ -838,12 +838,12 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
838
838
  throw new Error("Cannot find Nx workspace root");
839
839
  }
840
840
  const config = await getConfig(workspaceRoot.dir);
841
- _chunkJXYBDFPKcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
842
- const stopwatch = _chunkJXYBDFPKcjs.getStopwatch.call(void 0, "Build options resolution");
841
+ _chunkG4464EF4cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
842
+ const stopwatch = _chunkG4464EF4cjs.getStopwatch.call(void 0, "Build options resolution");
843
843
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
844
844
  exitOnError: true
845
845
  });
846
- const projectJsonPath = _chunkJXYBDFPKcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
846
+ const projectJsonPath = _chunkG4464EF4cjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
847
847
  if (!_fs.existsSync.call(void 0, projectJsonPath)) {
848
848
  throw new Error("Cannot find project.json configuration");
849
849
  }
@@ -857,7 +857,7 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
857
857
  const options = _defu2.default.call(void 0, userOptions, _chunk5KRF6IVWcjs.DEFAULT_BUILD_OPTIONS);
858
858
  options.name ??= `${projectName}-${options.format}`;
859
859
  options.target ??= DEFAULT_TARGET;
860
- const packageJsonPath = _chunkJXYBDFPKcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
860
+ const packageJsonPath = _chunkG4464EF4cjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
861
861
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
862
862
  throw new Error("Cannot find package.json configuration");
863
863
  }
@@ -866,20 +866,20 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
866
866
  ...options,
867
867
  config,
868
868
  ...userOptions,
869
- tsconfig: _chunkJXYBDFPKcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
869
+ tsconfig: _chunkG4464EF4cjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
870
870
  format: options.format || "cjs",
871
871
  entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
872
872
  "./src/index.ts"
873
873
  ], userOptions.emitOnAll),
874
- outdir: userOptions.outputPath || _chunkJXYBDFPKcjs.joinPaths.call(void 0, "dist", projectRoot),
874
+ outdir: userOptions.outputPath || _chunkG4464EF4cjs.joinPaths.call(void 0, "dist", projectRoot),
875
875
  plugins: [],
876
876
  name: userOptions.name || projectName,
877
877
  projectConfigurations,
878
878
  projectName,
879
879
  projectGraph,
880
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkJXYBDFPKcjs.joinPaths.call(void 0, projectRoot, "src"),
880
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkG4464EF4cjs.joinPaths.call(void 0, projectRoot, "src"),
881
881
  minify: userOptions.minify || !userOptions.debug,
882
- verbose: userOptions.verbose || _chunkJXYBDFPKcjs.isVerbose.call(void 0, ) || userOptions.debug === true,
882
+ verbose: userOptions.verbose || _chunkG4464EF4cjs.isVerbose.call(void 0, ) || userOptions.debug === true,
883
883
  includeSrc: userOptions.includeSrc === true,
884
884
  metafile: userOptions.metafile !== false,
885
885
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -913,14 +913,14 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
913
913
  return result;
914
914
  }, "resolveOptions");
915
915
  async function generatePackageJson(options) {
916
- if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJXYBDFPKcjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
917
- _chunkJXYBDFPKcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
918
- const stopwatch = _chunkJXYBDFPKcjs.getStopwatch.call(void 0, "Write package.json file");
919
- const packageJsonPath = _chunkJXYBDFPKcjs.joinPaths.call(void 0, options.projectRoot, "project.json");
916
+ if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkG4464EF4cjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
917
+ _chunkG4464EF4cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
918
+ const stopwatch = _chunkG4464EF4cjs.getStopwatch.call(void 0, "Write package.json file");
919
+ const packageJsonPath = _chunkG4464EF4cjs.joinPaths.call(void 0, options.projectRoot, "project.json");
920
920
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
921
921
  throw new Error("Cannot find package.json configuration");
922
922
  }
923
- const packageJsonFile = await _promises2.default.readFile(_chunkJXYBDFPKcjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
923
+ const packageJsonFile = await _promises2.default.readFile(_chunkG4464EF4cjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
924
924
  if (!packageJsonFile) {
925
925
  throw new Error("Cannot find package.json configuration file");
926
926
  }
@@ -959,15 +959,15 @@ async function generatePackageJson(options) {
959
959
  }
960
960
  return ret;
961
961
  }, packageJson.exports);
962
- await _devkit.writeJsonFile.call(void 0, _chunkJXYBDFPKcjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
962
+ await _devkit.writeJsonFile.call(void 0, _chunkG4464EF4cjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
963
963
  stopwatch();
964
964
  }
965
965
  return options;
966
966
  }
967
967
  _chunkUSNT2KNTcjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
968
968
  async function executeTSDown(options) {
969
- _chunkJXYBDFPKcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
970
- const stopwatch = _chunkJXYBDFPKcjs.getStopwatch.call(void 0, `${options.name} build`);
969
+ _chunkG4464EF4cjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
970
+ const stopwatch = _chunkG4464EF4cjs.getStopwatch.call(void 0, `${options.name} build`);
971
971
  await _tsdown.build.call(void 0, {
972
972
  ...options,
973
973
  entry: options.entryPoints,
@@ -979,30 +979,30 @@ async function executeTSDown(options) {
979
979
  }
980
980
  _chunkUSNT2KNTcjs.__name.call(void 0, executeTSDown, "executeTSDown");
981
981
  async function copyBuildAssets(options) {
982
- _chunkJXYBDFPKcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
983
- const stopwatch = _chunkJXYBDFPKcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
982
+ _chunkG4464EF4cjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
983
+ const stopwatch = _chunkG4464EF4cjs.getStopwatch.call(void 0, `${options.name} asset copy`);
984
984
  await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
985
985
  stopwatch();
986
986
  return options;
987
987
  }
988
988
  _chunkUSNT2KNTcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
989
989
  async function reportResults(options) {
990
- _chunkJXYBDFPKcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
990
+ _chunkG4464EF4cjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
991
991
  }
992
992
  _chunkUSNT2KNTcjs.__name.call(void 0, reportResults, "reportResults");
993
993
  async function cleanOutputPath(options) {
994
994
  if (options.clean !== false && options.outdir) {
995
- _chunkJXYBDFPKcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
996
- const stopwatch = _chunkJXYBDFPKcjs.getStopwatch.call(void 0, `${options.name} output clean`);
997
- await _chunkJXYBDFPKcjs.cleanDirectories.call(void 0, options.name, options.outdir, options.config);
995
+ _chunkG4464EF4cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
996
+ const stopwatch = _chunkG4464EF4cjs.getStopwatch.call(void 0, `${options.name} output clean`);
997
+ await _chunkG4464EF4cjs.cleanDirectories.call(void 0, options.name, options.outdir, options.config);
998
998
  stopwatch();
999
999
  }
1000
1000
  return options;
1001
1001
  }
1002
1002
  _chunkUSNT2KNTcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
1003
1003
  async function build(options) {
1004
- _chunkJXYBDFPKcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1005
- const stopwatch = _chunkJXYBDFPKcjs.getStopwatch.call(void 0, "TSDown pipeline");
1004
+ _chunkG4464EF4cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
1005
+ const stopwatch = _chunkG4464EF4cjs.getStopwatch.call(void 0, "TSDown pipeline");
1006
1006
  try {
1007
1007
  const opts = Array.isArray(options) ? options : [
1008
1008
  options
@@ -1020,11 +1020,11 @@ async function build(options) {
1020
1020
  await reportResults(opt);
1021
1021
  }));
1022
1022
  } else {
1023
- _chunkJXYBDFPKcjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
1023
+ _chunkG4464EF4cjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
1024
1024
  }
1025
- _chunkJXYBDFPKcjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1025
+ _chunkG4464EF4cjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
1026
1026
  } catch (error) {
1027
- _chunkJXYBDFPKcjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1027
+ _chunkG4464EF4cjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
1028
1028
  throw error;
1029
1029
  } finally {
1030
1030
  stopwatch();
@@ -613,55 +613,55 @@ var getLogFn = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (logLevel =
613
613
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
614
614
  return (message) => {
615
615
  console.error(`
616
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
616
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
617
617
  `);
618
618
  };
619
619
  }
620
620
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
621
621
  return (message) => {
622
622
  console.error(`
623
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
623
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
624
624
  `);
625
625
  };
626
626
  }
627
627
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
628
628
  return (message) => {
629
629
  console.warn(`
630
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
630
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
631
631
  `);
632
632
  };
633
633
  }
634
634
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
635
635
  return (message) => {
636
636
  console.info(`
637
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
637
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
638
638
  `);
639
639
  };
640
640
  }
641
641
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
642
642
  return (message) => {
643
643
  console.info(`
644
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
644
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
645
645
  `);
646
646
  };
647
647
  }
648
648
  if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
649
649
  return (message) => {
650
650
  console.debug(`
651
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
651
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
652
652
  `);
653
653
  };
654
654
  }
655
655
  if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
656
656
  return (message) => {
657
657
  console.debug(`
658
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
658
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
659
659
  `);
660
660
  };
661
661
  }
662
662
  return (message) => {
663
663
  console.log(`
664
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
664
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
665
665
  `);
666
666
  };
667
667
  }, "getLogFn");
@@ -676,7 +676,6 @@ var getStopwatch = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (name)
676
676
  const end = process.hrtime(start);
677
677
  console.info(`
678
678
  > \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(end[0] * 1e3 + end[1] / 1e6)}ms to complete
679
-
680
679
  `);
681
680
  };
682
681
  }, "getStopwatch");
package/dist/clean.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkJXYBDFPKcjs = require('./chunk-JXYBDFPK.cjs');
4
+ var _chunkG4464EF4cjs = require('./chunk-G4464EF4.cjs');
5
5
  require('./chunk-USNT2KNT.cjs');
6
6
 
7
7
 
8
8
 
9
- exports.clean = _chunkJXYBDFPKcjs.clean; exports.cleanDirectories = _chunkJXYBDFPKcjs.cleanDirectories;
9
+ exports.clean = _chunkG4464EF4cjs.clean; exports.cleanDirectories = _chunkG4464EF4cjs.cleanDirectories;
package/dist/clean.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-EO2JNC24.js";
4
+ } from "./chunk-65SPFK5R.js";
5
5
  import "./chunk-SHUYVCID.js";
6
6
  export {
7
7
  clean,
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkTFFKZFJGcjs = require('./chunk-TFFKZFJG.cjs');
4
+ var _chunkD6L3KZ5Scjs = require('./chunk-D6L3KZ5S.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkJXYBDFPKcjs = require('./chunk-JXYBDFPK.cjs');
8
+ var _chunkG4464EF4cjs = require('./chunk-G4464EF4.cjs');
9
9
 
10
10
 
11
11
  var _chunk5KRF6IVWcjs = require('./chunk-5KRF6IVW.cjs');
@@ -17,4 +17,4 @@ require('./chunk-SFZRYJZ2.cjs');
17
17
 
18
18
 
19
19
 
20
- exports.DEFAULT_BUILD_OPTIONS = _chunk5KRF6IVWcjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunkTFFKZFJGcjs.build; exports.clean = _chunkJXYBDFPKcjs.clean; exports.cleanDirectories = _chunkJXYBDFPKcjs.cleanDirectories; exports.cleanOutputPath = _chunkTFFKZFJGcjs.cleanOutputPath;
20
+ exports.DEFAULT_BUILD_OPTIONS = _chunk5KRF6IVWcjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunkD6L3KZ5Scjs.build; exports.clean = _chunkG4464EF4cjs.clean; exports.cleanDirectories = _chunkG4464EF4cjs.cleanDirectories; exports.cleanOutputPath = _chunkD6L3KZ5Scjs.cleanOutputPath;
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-PJF37ZAU.js";
4
+ } from "./chunk-5A7FYWCJ.js";
5
5
  import {
6
6
  clean,
7
7
  cleanDirectories
8
- } from "./chunk-EO2JNC24.js";
8
+ } from "./chunk-65SPFK5R.js";
9
9
  import {
10
10
  DEFAULT_BUILD_OPTIONS
11
11
  } from "./chunk-UQLCBJOS.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/tsdown",
3
- "version": "0.24.17",
3
+ "version": "0.24.18",
4
4
  "type": "module",
5
5
  "description": "A package containing `tsdown` utilities for building Storm Software libraries and applications",
6
6
  "repository": {