@storm-software/tsdown 0.45.80 → 0.45.82

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
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.45.73-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)
30
+ [![Version](https://img.shields.io/badge/version-0.45.81-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)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
package/bin/tsdown.cjs CHANGED
@@ -136627,7 +136627,7 @@ async function cleanOutputPath(options8) {
136627
136627
  return options8;
136628
136628
  }
136629
136629
  async function build(options8) {
136630
- (0, import_console2.writeDebug)(` \u26A1 Executing Storm TSDown pipeline`);
136630
+ (0, import_console2.writeDebug)(` ${(0, import_console2.brandIcon)()} Executing Storm TSDown pipeline`);
136631
136631
  const stopwatch = (0, import_console2.getStopwatch)("TSDown pipeline");
136632
136632
  try {
136633
136633
  const opts = Array.isArray(options8) ? options8 : [options8];
@@ -136666,7 +136666,7 @@ async function build(options8) {
136666
136666
  // bin/tsdown.ts
136667
136667
  async function createProgram(config) {
136668
136668
  try {
136669
- (0, import_console3.writeInfo)("\u26A1 Running Storm TSDown pipeline", config);
136669
+ (0, import_console3.writeInfo)(`${(0, import_console3.brandIcon)(config)} Running Storm TSDown pipeline`, config);
136670
136670
  const root2 = (0, import_find_workspace_root2.findWorkspaceRootSafe)();
136671
136671
  process.env.STORM_WORKSPACE_ROOT ??= root2;
136672
136672
  process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
@@ -136675,7 +136675,7 @@ async function createProgram(config) {
136675
136675
  }
136676
136676
  const program = new import_commander.Command("storm-tsdown");
136677
136677
  program.version("1.0.0", "-v --version", "display CLI version");
136678
- program.description("\u26A1 Run the Storm TSDown pipeline").showHelpAfterError().showSuggestionAfterError();
136678
+ program.description("Run the Storm TSDown pipeline").showHelpAfterError().showSuggestionAfterError();
136679
136679
  program.command("build", { isDefault: true }).alias("bundle").description(
136680
136680
  "Run a TypeScript build using ESBuild, API-Extractor, and TSC (for type generation)."
136681
136681
  ).option("-n --name <value>", "The name of the project to build").option(
package/dist/build.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkN6PB5K4Zcjs = require('./chunk-N6PB5K4Z.cjs');
5
- require('./chunk-3GFQ52NA.cjs');
4
+ var _chunkK55IFTYTcjs = require('./chunk-K55IFTYT.cjs');
5
+ require('./chunk-HW23CY4F.cjs');
6
6
  require('./chunk-DPNREUD4.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.build = _chunkN6PB5K4Zcjs.build; exports.cleanOutputPath = _chunkN6PB5K4Zcjs.cleanOutputPath;
10
+ exports.build = _chunkK55IFTYTcjs.build; exports.cleanOutputPath = _chunkK55IFTYTcjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-37FXHMGS.js";
5
- import "./chunk-H7KBSDD4.js";
4
+ } from "./chunk-QMTQKWL3.js";
5
+ import "./chunk-VUMPSH56.js";
6
6
  import "./chunk-BMIIFT6J.js";
7
7
  export {
8
8
  build,
@@ -62,6 +62,35 @@ var DEFAULT_COLOR_CONFIG = {
62
62
  gradient: ["#1fb2a6", "#db2777", "#818cf8"]
63
63
  }
64
64
  };
65
+ function getColors(config) {
66
+ if (!_optionalChain([config, 'optionalAccess', _2 => _2.colors]) || typeof config.colors !== "object" || !config.colors["dark"] && (!config.colors["base"] || typeof config.colors !== "object" || !_optionalChain([config, 'access', _3 => _3.colors, 'access', _4 => _4["base"], 'optionalAccess', _5 => _5["dark"]]))) {
67
+ return DEFAULT_COLOR_CONFIG;
68
+ }
69
+ if (config.colors["base"]) {
70
+ if (typeof config.colors["base"]["dark"] === "object") {
71
+ return config.colors["base"]["dark"];
72
+ } else if (config.colors["base"]["dark"] === "string") {
73
+ return config.colors["base"];
74
+ }
75
+ }
76
+ if (typeof config.colors["dark"] === "object") {
77
+ return config.colors["dark"];
78
+ }
79
+ return _nullishCoalesce(config.colors, () => ( DEFAULT_COLOR_CONFIG));
80
+ }
81
+ function getColor(key, config) {
82
+ const colors = getColors(config);
83
+ const result = (typeof colors["dark"] === "object" ? colors["dark"][key] : colors[key]) || DEFAULT_COLOR_CONFIG["dark"][key] || DEFAULT_COLOR_CONFIG[key];
84
+ if (result) {
85
+ return result;
86
+ }
87
+ if (key === "link" || key === "debug") {
88
+ return getColor("info", config);
89
+ } else if (key === "fatal") {
90
+ return getColor("danger", config);
91
+ }
92
+ return getColor("brand", config);
93
+ }
65
94
 
66
95
  // ../config-tools/src/logger/chalk.ts
67
96
  var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
@@ -90,7 +119,7 @@ var chalkDefault = {
90
119
  };
91
120
  var getChalk = () => {
92
121
  let _chalk = _chalk3.default;
93
- if (!_optionalChain([_chalk, 'optionalAccess', _2 => _2.hex]) || !_optionalChain([_chalk, 'optionalAccess', _3 => _3.bold, 'optionalAccess', _4 => _4.hex]) || !_optionalChain([_chalk, 'optionalAccess', _5 => _5.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _6 => _6.whiteBright]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.white])) {
122
+ if (!_optionalChain([_chalk, 'optionalAccess', _6 => _6.hex]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.bold, 'optionalAccess', _8 => _8.hex]) || !_optionalChain([_chalk, 'optionalAccess', _9 => _9.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _10 => _10.whiteBright]) || !_optionalChain([_chalk, 'optionalAccess', _11 => _11.white])) {
94
123
  _chalk = chalkDefault;
95
124
  }
96
125
  return _chalk;
@@ -178,7 +207,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
178
207
 
179
208
  // ../config-tools/src/logger/console.ts
180
209
  var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
181
- const colors = !_optionalChain([config, 'access', _8 => _8.colors, 'optionalAccess', _9 => _9.dark]) && !_optionalChain([config, 'access', _10 => _10.colors, 'optionalAccess', _11 => _11["base"]]) && !_optionalChain([config, 'access', _12 => _12.colors, 'optionalAccess', _13 => _13["base"], 'optionalAccess', _14 => _14.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _17 => _17.colors, 'optionalAccess', _18 => _18["base"], 'optionalAccess', _19 => _19.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"]]) ? _optionalChain([config, 'access', _22 => _22.colors, 'optionalAccess', _23 => _23["base"]]) : DEFAULT_COLOR_CONFIG;
210
+ const colors = !_optionalChain([config, 'access', _12 => _12.colors, 'optionalAccess', _13 => _13.dark]) && !_optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) && !_optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"], 'optionalAccess', _23 => _23.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _24 => _24.colors, 'optionalAccess', _25 => _25["base"]]) ? _optionalChain([config, 'access', _26 => _26.colors, 'optionalAccess', _27 => _27["base"]]) : DEFAULT_COLOR_CONFIG;
182
211
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
183
212
  if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
184
213
  return (_) => {
@@ -321,11 +350,12 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
321
350
  };
322
351
  var _isFunction = (value) => {
323
352
  try {
324
- return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _24 => _24.constructor]) && _optionalChain([value, 'optionalAccess', _25 => _25.call]) && _optionalChain([value, 'optionalAccess', _26 => _26.apply]));
353
+ return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _28 => _28.constructor]) && _optionalChain([value, 'optionalAccess', _29 => _29.call]) && _optionalChain([value, 'optionalAccess', _30 => _30.apply]));
325
354
  } catch (e) {
326
355
  return false;
327
356
  }
328
357
  };
358
+ var brandIcon = (config = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config))("\u{1F5F2}");
329
359
 
330
360
  // src/clean.ts
331
361
  var _promises = require('fs/promises');
@@ -352,4 +382,5 @@ async function cleanDirectories(name = "TSDown", directory, config) {
352
382
 
353
383
 
354
384
 
355
- exports.LogLevel = LogLevel; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.writeFatal = writeFatal; exports.writeWarning = writeWarning; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage; exports.clean = clean; exports.cleanDirectories = cleanDirectories;
385
+
386
+ exports.LogLevel = LogLevel; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.writeFatal = writeFatal; exports.writeWarning = writeWarning; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage; exports.brandIcon = brandIcon; exports.clean = clean; exports.cleanDirectories = cleanDirectories;
@@ -10,7 +10,8 @@
10
10
 
11
11
 
12
12
 
13
- var _chunk3GFQ52NAcjs = require('./chunk-3GFQ52NA.cjs');
13
+
14
+ var _chunkHW23CY4Fcjs = require('./chunk-HW23CY4F.cjs');
14
15
 
15
16
 
16
17
 
@@ -198,7 +199,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
198
199
  output: "src/"
199
200
  });
200
201
  }
201
- _chunk3GFQ52NAcjs.writeTrace.call(void 0,
202
+ _chunkHW23CY4Fcjs.writeTrace.call(void 0,
202
203
  `\u{1F4DD} Copying the following assets to the output directory:
203
204
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`,
204
205
  config
@@ -210,9 +211,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
210
211
  assets: pendingAssets
211
212
  });
212
213
  await assetHandler.processAllAssetsOnce();
213
- _chunk3GFQ52NAcjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
214
+ _chunkHW23CY4Fcjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
214
215
  if (includeSrc === true) {
215
- _chunk3GFQ52NAcjs.writeDebug.call(void 0,
216
+ _chunkHW23CY4Fcjs.writeDebug.call(void 0,
216
217
  `\u{1F4DD} Adding banner and writing source files: ${joinPaths(
217
218
  outputPath,
218
219
  "src"
@@ -391,7 +392,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
391
392
  }
392
393
  }
393
394
  if (localPackages.length > 0) {
394
- _chunk3GFQ52NAcjs.writeTrace.call(void 0,
395
+ _chunkHW23CY4Fcjs.writeTrace.call(void 0,
395
396
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
396
397
  );
397
398
  const projectJsonFile = await _promises.readFile.call(void 0,
@@ -439,7 +440,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
439
440
  return ret;
440
441
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
441
442
  } else {
442
- _chunk3GFQ52NAcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
443
+ _chunkHW23CY4Fcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
443
444
  }
444
445
  return packageJson;
445
446
  };
@@ -1237,7 +1238,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
1237
1238
  let config = result.config;
1238
1239
  const configFile = result.configFile;
1239
1240
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
1240
- _chunk3GFQ52NAcjs.writeTrace.call(void 0,
1241
+ _chunkHW23CY4Fcjs.writeTrace.call(void 0,
1241
1242
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
1242
1243
  {
1243
1244
  logLevel: "all"
@@ -1253,7 +1254,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
1253
1254
  for (const result2 of results) {
1254
1255
  if (_optionalChain([result2, 'optionalAccess', _34 => _34.config]) && _optionalChain([result2, 'optionalAccess', _35 => _35.configFile]) && Object.keys(result2.config).length > 0) {
1255
1256
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
1256
- _chunk3GFQ52NAcjs.writeTrace.call(void 0,
1257
+ _chunkHW23CY4Fcjs.writeTrace.call(void 0,
1257
1258
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
1258
1259
  {
1259
1260
  logLevel: "all"
@@ -1369,7 +1370,7 @@ var getConfigEnv = () => {
1369
1370
  },
1370
1371
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
1371
1372
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
1372
- ) ? _chunk3GFQ52NAcjs.getLogLevelLabel.call(void 0,
1373
+ ) ? _chunkHW23CY4Fcjs.getLogLevelLabel.call(void 0,
1373
1374
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
1374
1375
  ) : process.env[`${prefix}LOG_LEVEL`] : void 0,
1375
1376
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
@@ -1734,9 +1735,9 @@ var setConfigEnv = (config) => {
1734
1735
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
1735
1736
  process.env.LOG_LEVEL = String(config.logLevel);
1736
1737
  process.env.NX_VERBOSE_LOGGING = String(
1737
- _chunk3GFQ52NAcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk3GFQ52NAcjs.LogLevel.DEBUG ? true : false
1738
+ _chunkHW23CY4Fcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkHW23CY4Fcjs.LogLevel.DEBUG ? true : false
1738
1739
  );
1739
- process.env.RUST_BACKTRACE = _chunk3GFQ52NAcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk3GFQ52NAcjs.LogLevel.DEBUG ? "full" : "none";
1740
+ process.env.RUST_BACKTRACE = _chunkHW23CY4Fcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkHW23CY4Fcjs.LogLevel.DEBUG ? "full" : "none";
1740
1741
  }
1741
1742
  if (config.skipConfigLogging !== void 0) {
1742
1743
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
@@ -1878,7 +1879,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1878
1879
  const configFile = await getConfigFile(_workspaceRoot);
1879
1880
  if (!configFile) {
1880
1881
  if (!skipLogs) {
1881
- _chunk3GFQ52NAcjs.writeWarning.call(void 0,
1882
+ _chunkHW23CY4Fcjs.writeWarning.call(void 0,
1882
1883
  "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",
1883
1884
  { logLevel: "all" }
1884
1885
  );
@@ -1905,7 +1906,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1905
1906
  throw new Error(
1906
1907
  `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _60 => _60.message]) ? `: ${error.message}` : ""}
1907
1908
 
1908
- Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunk3GFQ52NAcjs.formatLogMessage.call(void 0,
1909
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkHW23CY4Fcjs.formatLogMessage.call(void 0,
1909
1910
  configInput
1910
1911
  )}`,
1911
1912
  {
@@ -1950,9 +1951,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
1950
1951
  );
1951
1952
  setConfigEnv(config);
1952
1953
  if (!skipLogs && !config.skipConfigLogging) {
1953
- _chunk3GFQ52NAcjs.writeTrace.call(void 0,
1954
+ _chunkHW23CY4Fcjs.writeTrace.call(void 0,
1954
1955
  `\u2699\uFE0F Using Storm Workspace configuration:
1955
- ${_chunk3GFQ52NAcjs.formatLogMessage.call(void 0, config)}`,
1956
+ ${_chunkHW23CY4Fcjs.formatLogMessage.call(void 0, config)}`,
1956
1957
  config
1957
1958
  );
1958
1959
  }
@@ -2012,8 +2013,8 @@ var resolveOptions = async (userOptions) => {
2012
2013
  const workspaceConfig = await getWorkspaceConfig(options.debug === true, {
2013
2014
  workspaceRoot
2014
2015
  });
2015
- _chunk3GFQ52NAcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
2016
- const stopwatch = _chunk3GFQ52NAcjs.getStopwatch.call(void 0, "Build options resolution");
2016
+ _chunkHW23CY4Fcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
2017
+ const stopwatch = _chunkHW23CY4Fcjs.getStopwatch.call(void 0, "Build options resolution");
2017
2018
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
2018
2019
  exitOnError: true
2019
2020
  });
@@ -2086,8 +2087,8 @@ var resolveOptions = async (userOptions) => {
2086
2087
  };
2087
2088
  async function generatePackageJson(options) {
2088
2089
  if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, joinPaths(options.projectRoot, "package.json"))) {
2089
- _chunk3GFQ52NAcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
2090
- const stopwatch = _chunk3GFQ52NAcjs.getStopwatch.call(void 0, "Write package.json file");
2090
+ _chunkHW23CY4Fcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
2091
+ const stopwatch = _chunkHW23CY4Fcjs.getStopwatch.call(void 0, "Write package.json file");
2091
2092
  const packageJsonPath = joinPaths(options.projectRoot, "project.json");
2092
2093
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
2093
2094
  throw new Error("Cannot find package.json configuration");
@@ -2161,8 +2162,8 @@ async function generatePackageJson(options) {
2161
2162
  return options;
2162
2163
  }
2163
2164
  async function executeTSDown(options) {
2164
- _chunk3GFQ52NAcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
2165
- const stopwatch = _chunk3GFQ52NAcjs.getStopwatch.call(void 0, `${options.name} build`);
2165
+ _chunkHW23CY4Fcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
2166
+ const stopwatch = _chunkHW23CY4Fcjs.getStopwatch.call(void 0, `${options.name} build`);
2166
2167
  await _tsdown.build.call(void 0, {
2167
2168
  ...options,
2168
2169
  entry: options.entry,
@@ -2172,11 +2173,11 @@ async function executeTSDown(options) {
2172
2173
  return options;
2173
2174
  }
2174
2175
  async function copyBuildAssets(options) {
2175
- _chunk3GFQ52NAcjs.writeDebug.call(void 0,
2176
+ _chunkHW23CY4Fcjs.writeDebug.call(void 0,
2176
2177
  ` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
2177
2178
  options.workspaceConfig
2178
2179
  );
2179
- const stopwatch = _chunk3GFQ52NAcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
2180
+ const stopwatch = _chunkHW23CY4Fcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
2180
2181
  await copyAssets(
2181
2182
  options.workspaceConfig,
2182
2183
  _nullishCoalesce(options.assets, () => ( [])),
@@ -2190,19 +2191,19 @@ async function copyBuildAssets(options) {
2190
2191
  return options;
2191
2192
  }
2192
2193
  async function reportResults(options) {
2193
- _chunk3GFQ52NAcjs.writeSuccess.call(void 0,
2194
+ _chunkHW23CY4Fcjs.writeSuccess.call(void 0,
2194
2195
  ` \u{1F4E6} The ${options.name} build completed successfully`,
2195
2196
  options.workspaceConfig
2196
2197
  );
2197
2198
  }
2198
2199
  async function cleanOutputPath(options) {
2199
2200
  if (options.clean !== false && options.workspaceConfig) {
2200
- _chunk3GFQ52NAcjs.writeDebug.call(void 0,
2201
+ _chunkHW23CY4Fcjs.writeDebug.call(void 0,
2201
2202
  ` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
2202
2203
  options.workspaceConfig
2203
2204
  );
2204
- const stopwatch = _chunk3GFQ52NAcjs.getStopwatch.call(void 0, `${options.name} output clean`);
2205
- await _chunk3GFQ52NAcjs.cleanDirectories.call(void 0,
2205
+ const stopwatch = _chunkHW23CY4Fcjs.getStopwatch.call(void 0, `${options.name} output clean`);
2206
+ await _chunkHW23CY4Fcjs.cleanDirectories.call(void 0,
2206
2207
  options.name,
2207
2208
  options.outDir,
2208
2209
  options.workspaceConfig
@@ -2212,8 +2213,8 @@ async function cleanOutputPath(options) {
2212
2213
  return options;
2213
2214
  }
2214
2215
  async function build(options) {
2215
- _chunk3GFQ52NAcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
2216
- const stopwatch = _chunk3GFQ52NAcjs.getStopwatch.call(void 0, "TSDown pipeline");
2216
+ _chunkHW23CY4Fcjs.writeDebug.call(void 0, ` ${_chunkHW23CY4Fcjs.brandIcon.call(void 0, )} Executing Storm TSDown pipeline`);
2217
+ const stopwatch = _chunkHW23CY4Fcjs.getStopwatch.call(void 0, "TSDown pipeline");
2217
2218
  try {
2218
2219
  const opts = Array.isArray(options) ? options : [options];
2219
2220
  if (opts.length === 0) {
@@ -2233,13 +2234,13 @@ async function build(options) {
2233
2234
  })
2234
2235
  );
2235
2236
  } else {
2236
- _chunk3GFQ52NAcjs.writeWarning.call(void 0,
2237
+ _chunkHW23CY4Fcjs.writeWarning.call(void 0,
2237
2238
  " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
2238
2239
  );
2239
2240
  }
2240
- _chunk3GFQ52NAcjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
2241
+ _chunkHW23CY4Fcjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
2241
2242
  } catch (error) {
2242
- _chunk3GFQ52NAcjs.writeFatal.call(void 0,
2243
+ _chunkHW23CY4Fcjs.writeFatal.call(void 0,
2243
2244
  "Fatal errors that the build process could not recover from have occured. The build process has been terminated."
2244
2245
  );
2245
2246
  throw error;
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  LogLevel,
3
+ brandIcon,
3
4
  cleanDirectories,
4
5
  formatLogMessage,
5
6
  getLogLevel,
@@ -10,7 +11,7 @@ import {
10
11
  writeSuccess,
11
12
  writeTrace,
12
13
  writeWarning
13
- } from "./chunk-H7KBSDD4.js";
14
+ } from "./chunk-VUMPSH56.js";
14
15
  import {
15
16
  getDefaultOptions,
16
17
  toTSDownFormat
@@ -2212,7 +2213,7 @@ async function cleanOutputPath(options) {
2212
2213
  return options;
2213
2214
  }
2214
2215
  async function build(options) {
2215
- writeDebug(` \u26A1 Executing Storm TSDown pipeline`);
2216
+ writeDebug(` ${brandIcon()} Executing Storm TSDown pipeline`);
2216
2217
  const stopwatch = getStopwatch("TSDown pipeline");
2217
2218
  try {
2218
2219
  const opts = Array.isArray(options) ? options : [options];
@@ -62,6 +62,35 @@ var DEFAULT_COLOR_CONFIG = {
62
62
  gradient: ["#1fb2a6", "#db2777", "#818cf8"]
63
63
  }
64
64
  };
65
+ function getColors(config) {
66
+ if (!config?.colors || typeof config.colors !== "object" || !config.colors["dark"] && (!config.colors["base"] || typeof config.colors !== "object" || !config.colors["base"]?.["dark"])) {
67
+ return DEFAULT_COLOR_CONFIG;
68
+ }
69
+ if (config.colors["base"]) {
70
+ if (typeof config.colors["base"]["dark"] === "object") {
71
+ return config.colors["base"]["dark"];
72
+ } else if (config.colors["base"]["dark"] === "string") {
73
+ return config.colors["base"];
74
+ }
75
+ }
76
+ if (typeof config.colors["dark"] === "object") {
77
+ return config.colors["dark"];
78
+ }
79
+ return config.colors ?? DEFAULT_COLOR_CONFIG;
80
+ }
81
+ function getColor(key, config) {
82
+ const colors = getColors(config);
83
+ const result = (typeof colors["dark"] === "object" ? colors["dark"][key] : colors[key]) || DEFAULT_COLOR_CONFIG["dark"][key] || DEFAULT_COLOR_CONFIG[key];
84
+ if (result) {
85
+ return result;
86
+ }
87
+ if (key === "link" || key === "debug") {
88
+ return getColor("info", config);
89
+ } else if (key === "fatal") {
90
+ return getColor("danger", config);
91
+ }
92
+ return getColor("brand", config);
93
+ }
65
94
 
66
95
  // ../config-tools/src/logger/chalk.ts
67
96
  import chalk from "chalk";
@@ -326,6 +355,7 @@ var _isFunction = (value) => {
326
355
  return false;
327
356
  }
328
357
  };
358
+ var brandIcon = (config = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config))("\u{1F5F2}");
329
359
 
330
360
  // src/clean.ts
331
361
  import { rm } from "node:fs/promises";
@@ -350,6 +380,7 @@ export {
350
380
  writeTrace,
351
381
  getStopwatch,
352
382
  formatLogMessage,
383
+ brandIcon,
353
384
  clean,
354
385
  cleanDirectories
355
386
  };
package/dist/clean.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk3GFQ52NAcjs = require('./chunk-3GFQ52NA.cjs');
4
+ var _chunkHW23CY4Fcjs = require('./chunk-HW23CY4F.cjs');
5
5
 
6
6
 
7
7
 
8
- exports.clean = _chunk3GFQ52NAcjs.clean; exports.cleanDirectories = _chunk3GFQ52NAcjs.cleanDirectories;
8
+ exports.clean = _chunkHW23CY4Fcjs.clean; exports.cleanDirectories = _chunkHW23CY4Fcjs.cleanDirectories;
package/dist/clean.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-H7KBSDD4.js";
4
+ } from "./chunk-VUMPSH56.js";
5
5
  export {
6
6
  clean,
7
7
  cleanDirectories
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 _chunkN6PB5K4Zcjs = require('./chunk-N6PB5K4Z.cjs');
4
+ var _chunkK55IFTYTcjs = require('./chunk-K55IFTYT.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunk3GFQ52NAcjs = require('./chunk-3GFQ52NA.cjs');
8
+ var _chunkHW23CY4Fcjs = require('./chunk-HW23CY4F.cjs');
9
9
 
10
10
 
11
11
 
@@ -18,4 +18,4 @@ require('./chunk-ZBPRDZS4.cjs');
18
18
 
19
19
 
20
20
 
21
- exports.build = _chunkN6PB5K4Zcjs.build; exports.clean = _chunk3GFQ52NAcjs.clean; exports.cleanDirectories = _chunk3GFQ52NAcjs.cleanDirectories; exports.cleanOutputPath = _chunkN6PB5K4Zcjs.cleanOutputPath; exports.getDefaultOptions = _chunkDPNREUD4cjs.getDefaultOptions; exports.toTSDownFormat = _chunkDPNREUD4cjs.toTSDownFormat;
21
+ exports.build = _chunkK55IFTYTcjs.build; exports.clean = _chunkHW23CY4Fcjs.clean; exports.cleanDirectories = _chunkHW23CY4Fcjs.cleanDirectories; exports.cleanOutputPath = _chunkK55IFTYTcjs.cleanOutputPath; exports.getDefaultOptions = _chunkDPNREUD4cjs.getDefaultOptions; exports.toTSDownFormat = _chunkDPNREUD4cjs.toTSDownFormat;
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-37FXHMGS.js";
4
+ } from "./chunk-QMTQKWL3.js";
5
5
  import {
6
6
  clean,
7
7
  cleanDirectories
8
- } from "./chunk-H7KBSDD4.js";
8
+ } from "./chunk-VUMPSH56.js";
9
9
  import {
10
10
  getDefaultOptions,
11
11
  toTSDownFormat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/tsdown",
3
- "version": "0.45.80",
3
+ "version": "0.45.82",
4
4
  "type": "module",
5
5
  "description": "A package containing `tsdown` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -146,9 +146,9 @@
146
146
  "tsdown": { "optional": false }
147
147
  },
148
148
  "dependencies": {
149
- "@storm-software/build-tools": "^0.158.80",
150
- "@storm-software/config": "^1.135.0",
151
- "@storm-software/config-tools": "^1.188.80",
149
+ "@storm-software/build-tools": "^0.158.82",
150
+ "@storm-software/config": "^1.135.2",
151
+ "@storm-software/config-tools": "^1.189.1",
152
152
  "chokidar": "^4.0.3",
153
153
  "commander": "^12.1.0",
154
154
  "es-toolkit": "^1.43.0",
@@ -171,5 +171,5 @@
171
171
  },
172
172
  "publishConfig": { "access": "public" },
173
173
  "sideEffects": false,
174
- "gitHead": "f0da2445e3b4764750c75fdcd1d0ec13a10c6602"
174
+ "gitHead": "282913d6672835512eeea3570f24995dfb7e40c6"
175
175
  }