@storm-software/tsdown 0.45.121 → 0.45.123

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/dist/build.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkQ2X6VUOHcjs = require('./chunk-Q2X6VUOH.cjs');
5
- require('./chunk-LR76NCPT.cjs');
4
+ var _chunk5KDSVEN3cjs = require('./chunk-5KDSVEN3.cjs');
5
+ require('./chunk-M4EC6ZP3.cjs');
6
6
  require('./chunk-DPNREUD4.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.build = _chunkQ2X6VUOHcjs.build; exports.cleanOutputPath = _chunkQ2X6VUOHcjs.cleanOutputPath;
10
+ exports.build = _chunk5KDSVEN3cjs.build; exports.cleanOutputPath = _chunk5KDSVEN3cjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-OS3WVEAH.js";
5
- import "./chunk-AGPWNIQU.js";
4
+ } from "./chunk-OT7DF7PC.js";
5
+ import "./chunk-HJ6ELEHI.js";
6
6
  import "./chunk-BMIIFT6J.js";
7
7
  export {
8
8
  build,
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkLR76NCPTcjs = require('./chunk-LR76NCPT.cjs');
14
+ var _chunkM4EC6ZP3cjs = require('./chunk-M4EC6ZP3.cjs');
15
15
 
16
16
 
17
17
 
@@ -199,7 +199,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
199
199
  output: "src/"
200
200
  });
201
201
  }
202
- _chunkLR76NCPTcjs.writeTrace.call(void 0,
202
+ _chunkM4EC6ZP3cjs.writeTrace.call(void 0,
203
203
  `\u{1F4DD} Copying the following assets to the output directory:
204
204
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`,
205
205
  config
@@ -211,9 +211,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
211
211
  assets: pendingAssets
212
212
  });
213
213
  await assetHandler.processAllAssetsOnce();
214
- _chunkLR76NCPTcjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
214
+ _chunkM4EC6ZP3cjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
215
215
  if (includeSrc === true) {
216
- _chunkLR76NCPTcjs.writeDebug.call(void 0,
216
+ _chunkM4EC6ZP3cjs.writeDebug.call(void 0,
217
217
  `\u{1F4DD} Adding banner and writing source files: ${joinPaths(
218
218
  outputPath,
219
219
  "src"
@@ -392,7 +392,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
392
392
  }
393
393
  }
394
394
  if (localPackages.length > 0) {
395
- _chunkLR76NCPTcjs.writeTrace.call(void 0,
395
+ _chunkM4EC6ZP3cjs.writeTrace.call(void 0,
396
396
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
397
397
  );
398
398
  const projectJsonFile = await _promises.readFile.call(void 0,
@@ -440,7 +440,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
440
440
  return ret;
441
441
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
442
442
  } else {
443
- _chunkLR76NCPTcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
443
+ _chunkM4EC6ZP3cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
444
444
  }
445
445
  return packageJson;
446
446
  };
@@ -593,6 +593,10 @@ var fatalColorSchema = z.optional(colorSchema);
593
593
  schemaRegistry.add(fatalColorSchema, {
594
594
  description: "The fatal color of the workspace"
595
595
  });
596
+ var performanceColorSchema = z._default(colorSchema, "#00ff00");
597
+ schemaRegistry.add(performanceColorSchema, {
598
+ description: "The performance color of the workspace"
599
+ });
596
600
  var positiveColorSchema = z._default(colorSchema, "#4ade80");
597
601
  schemaRegistry.add(positiveColorSchema, {
598
602
  description: "The positive number color of the workspace"
@@ -619,6 +623,7 @@ var darkColorsSchema = z.object({
619
623
  warning: warningColorSchema,
620
624
  danger: dangerColorSchema,
621
625
  fatal: fatalColorSchema,
626
+ performance: performanceColorSchema,
622
627
  positive: positiveColorSchema,
623
628
  negative: negativeColorSchema,
624
629
  gradient: gradientStopsSchema
@@ -637,6 +642,7 @@ var lightColorsSchema = z.object({
637
642
  warning: warningColorSchema,
638
643
  danger: dangerColorSchema,
639
644
  fatal: fatalColorSchema,
645
+ performance: performanceColorSchema,
640
646
  positive: positiveColorSchema,
641
647
  negative: negativeColorSchema,
642
648
  gradient: gradientStopsSchema
@@ -659,6 +665,7 @@ var singleColorsSchema = z.object({
659
665
  warning: warningColorSchema,
660
666
  danger: dangerColorSchema,
661
667
  fatal: fatalColorSchema,
668
+ performance: performanceColorSchema,
662
669
  positive: positiveColorSchema,
663
670
  negative: negativeColorSchema,
664
671
  gradient: gradientStopsSchema
@@ -1026,6 +1033,7 @@ var logLevelSchema = z._default(
1026
1033
  "warn",
1027
1034
  "success",
1028
1035
  "info",
1036
+ "performance",
1029
1037
  "debug",
1030
1038
  "trace",
1031
1039
  "all"
@@ -1105,6 +1113,7 @@ var COLOR_KEYS = [
1105
1113
  "warning",
1106
1114
  "danger",
1107
1115
  "fatal",
1116
+ "performance",
1108
1117
  "positive",
1109
1118
  "negative"
1110
1119
  ];
@@ -1238,7 +1247,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
1238
1247
  let config = result.config;
1239
1248
  const configFile = result.configFile;
1240
1249
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
1241
- _chunkLR76NCPTcjs.writeTrace.call(void 0,
1250
+ _chunkM4EC6ZP3cjs.writeTrace.call(void 0,
1242
1251
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
1243
1252
  {
1244
1253
  logLevel: "all"
@@ -1254,7 +1263,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
1254
1263
  for (const result2 of results) {
1255
1264
  if (_optionalChain([result2, 'optionalAccess', _34 => _34.config]) && _optionalChain([result2, 'optionalAccess', _35 => _35.configFile]) && Object.keys(result2.config).length > 0) {
1256
1265
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
1257
- _chunkLR76NCPTcjs.writeTrace.call(void 0,
1266
+ _chunkM4EC6ZP3cjs.writeTrace.call(void 0,
1258
1267
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
1259
1268
  {
1260
1269
  logLevel: "all"
@@ -1370,7 +1379,7 @@ var getConfigEnv = () => {
1370
1379
  },
1371
1380
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
1372
1381
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
1373
- ) ? _chunkLR76NCPTcjs.getLogLevelLabel.call(void 0,
1382
+ ) ? _chunkM4EC6ZP3cjs.getLogLevelLabel.call(void 0,
1374
1383
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
1375
1384
  ) : process.env[`${prefix}LOG_LEVEL`] : void 0,
1376
1385
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
@@ -1445,6 +1454,7 @@ var getSingleThemeColorsEnv = (prefix) => {
1445
1454
  warning: process.env[`${prefix}WARNING`],
1446
1455
  danger: process.env[`${prefix}DANGER`],
1447
1456
  fatal: process.env[`${prefix}FATAL`],
1457
+ performance: process.env[`${prefix}PERFORMANCE`],
1448
1458
  positive: process.env[`${prefix}POSITIVE`],
1449
1459
  negative: process.env[`${prefix}NEGATIVE`],
1450
1460
  gradient
@@ -1484,6 +1494,7 @@ var getBaseThemeColorsEnv = (prefix) => {
1484
1494
  warning: process.env[`${prefix}WARNING`],
1485
1495
  danger: process.env[`${prefix}DANGER`],
1486
1496
  fatal: process.env[`${prefix}FATAL`],
1497
+ performance: process.env[`${prefix}PERFORMANCE`],
1487
1498
  positive: process.env[`${prefix}POSITIVE`],
1488
1499
  negative: process.env[`${prefix}NEGATIVE`],
1489
1500
  gradient
@@ -1735,9 +1746,9 @@ var setConfigEnv = (config) => {
1735
1746
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
1736
1747
  process.env.LOG_LEVEL = String(config.logLevel);
1737
1748
  process.env.NX_VERBOSE_LOGGING = String(
1738
- _chunkLR76NCPTcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkLR76NCPTcjs.LogLevel.DEBUG ? true : false
1749
+ _chunkM4EC6ZP3cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkM4EC6ZP3cjs.LogLevel.DEBUG ? true : false
1739
1750
  );
1740
- process.env.RUST_BACKTRACE = _chunkLR76NCPTcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkLR76NCPTcjs.LogLevel.DEBUG ? "full" : "none";
1751
+ process.env.RUST_BACKTRACE = _chunkM4EC6ZP3cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkM4EC6ZP3cjs.LogLevel.DEBUG ? "full" : "none";
1741
1752
  }
1742
1753
  if (config.skipConfigLogging !== void 0) {
1743
1754
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
@@ -1794,6 +1805,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
1794
1805
  if (config.fatal) {
1795
1806
  process.env[`${prefix}FATAL`] = config.fatal;
1796
1807
  }
1808
+ if (config.performance) {
1809
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
1810
+ }
1797
1811
  if (config.positive) {
1798
1812
  process.env[`${prefix}POSITIVE`] = config.positive;
1799
1813
  }
@@ -1852,6 +1866,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
1852
1866
  if (config.fatal) {
1853
1867
  process.env[`${prefix}FATAL`] = config.fatal;
1854
1868
  }
1869
+ if (config.performance) {
1870
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
1871
+ }
1855
1872
  if (config.positive) {
1856
1873
  process.env[`${prefix}POSITIVE`] = config.positive;
1857
1874
  }
@@ -1879,7 +1896,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1879
1896
  const configFile = await getConfigFile(_workspaceRoot);
1880
1897
  if (!configFile) {
1881
1898
  if (!skipLogs) {
1882
- _chunkLR76NCPTcjs.writeWarning.call(void 0,
1899
+ _chunkM4EC6ZP3cjs.writeWarning.call(void 0,
1883
1900
  "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",
1884
1901
  { logLevel: "all" }
1885
1902
  );
@@ -1906,7 +1923,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1906
1923
  throw new Error(
1907
1924
  `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _60 => _60.message]) ? `: ${error.message}` : ""}
1908
1925
 
1909
- Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkLR76NCPTcjs.formatLogMessage.call(void 0,
1926
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkM4EC6ZP3cjs.formatLogMessage.call(void 0,
1910
1927
  configInput
1911
1928
  )}`,
1912
1929
  {
@@ -1951,9 +1968,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
1951
1968
  );
1952
1969
  setConfigEnv(config);
1953
1970
  if (!skipLogs && !config.skipConfigLogging) {
1954
- _chunkLR76NCPTcjs.writeTrace.call(void 0,
1971
+ _chunkM4EC6ZP3cjs.writeTrace.call(void 0,
1955
1972
  `\u2699\uFE0F Using Storm Workspace configuration:
1956
- ${_chunkLR76NCPTcjs.formatLogMessage.call(void 0, config)}`,
1973
+ ${_chunkM4EC6ZP3cjs.formatLogMessage.call(void 0, config)}`,
1957
1974
  config
1958
1975
  );
1959
1976
  }
@@ -2013,8 +2030,8 @@ var resolveOptions = async (userOptions) => {
2013
2030
  const workspaceConfig = await getWorkspaceConfig(options.debug === true, {
2014
2031
  workspaceRoot
2015
2032
  });
2016
- _chunkLR76NCPTcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
2017
- const stopwatch = _chunkLR76NCPTcjs.getStopwatch.call(void 0, "Build options resolution");
2033
+ _chunkM4EC6ZP3cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
2034
+ const stopwatch = _chunkM4EC6ZP3cjs.getStopwatch.call(void 0, "Build options resolution");
2018
2035
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
2019
2036
  exitOnError: true
2020
2037
  });
@@ -2057,7 +2074,7 @@ var resolveOptions = async (userOptions) => {
2057
2074
  dts: true,
2058
2075
  shims: true,
2059
2076
  silent: !debug,
2060
- logLevel: workspaceConfig.logLevel === "success" || workspaceConfig.logLevel === "debug" || workspaceConfig.logLevel === "trace" || workspaceConfig.logLevel === "all" ? "info" : workspaceConfig.logLevel === "fatal" ? "error" : workspaceConfig.logLevel,
2077
+ logLevel: workspaceConfig.logLevel === "success" || workspaceConfig.logLevel === "performance" || workspaceConfig.logLevel === "debug" || workspaceConfig.logLevel === "trace" || workspaceConfig.logLevel === "all" ? "info" : workspaceConfig.logLevel === "fatal" ? "error" : workspaceConfig.logLevel,
2061
2078
  sourcemap: debug ? "inline" : false,
2062
2079
  clean: false,
2063
2080
  fixedExtension: true,
@@ -2087,8 +2104,8 @@ var resolveOptions = async (userOptions) => {
2087
2104
  };
2088
2105
  async function generatePackageJson(options) {
2089
2106
  if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, joinPaths(options.projectRoot, "package.json"))) {
2090
- _chunkLR76NCPTcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
2091
- const stopwatch = _chunkLR76NCPTcjs.getStopwatch.call(void 0, "Write package.json file");
2107
+ _chunkM4EC6ZP3cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
2108
+ const stopwatch = _chunkM4EC6ZP3cjs.getStopwatch.call(void 0, "Write package.json file");
2092
2109
  const packageJsonPath = joinPaths(options.projectRoot, "project.json");
2093
2110
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
2094
2111
  throw new Error("Cannot find package.json configuration");
@@ -2162,8 +2179,8 @@ async function generatePackageJson(options) {
2162
2179
  return options;
2163
2180
  }
2164
2181
  async function executeTSDown(options) {
2165
- _chunkLR76NCPTcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
2166
- const stopwatch = _chunkLR76NCPTcjs.getStopwatch.call(void 0, `${options.name} build`);
2182
+ _chunkM4EC6ZP3cjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
2183
+ const stopwatch = _chunkM4EC6ZP3cjs.getStopwatch.call(void 0, `${options.name} build`);
2167
2184
  await _tsdown.build.call(void 0, {
2168
2185
  ...options,
2169
2186
  entry: options.entry,
@@ -2173,11 +2190,11 @@ async function executeTSDown(options) {
2173
2190
  return options;
2174
2191
  }
2175
2192
  async function copyBuildAssets(options) {
2176
- _chunkLR76NCPTcjs.writeDebug.call(void 0,
2193
+ _chunkM4EC6ZP3cjs.writeDebug.call(void 0,
2177
2194
  ` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
2178
2195
  options.workspaceConfig
2179
2196
  );
2180
- const stopwatch = _chunkLR76NCPTcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
2197
+ const stopwatch = _chunkM4EC6ZP3cjs.getStopwatch.call(void 0, `${options.name} asset copy`);
2181
2198
  await copyAssets(
2182
2199
  options.workspaceConfig,
2183
2200
  _nullishCoalesce(options.assets, () => ( [])),
@@ -2191,19 +2208,19 @@ async function copyBuildAssets(options) {
2191
2208
  return options;
2192
2209
  }
2193
2210
  async function reportResults(options) {
2194
- _chunkLR76NCPTcjs.writeSuccess.call(void 0,
2211
+ _chunkM4EC6ZP3cjs.writeSuccess.call(void 0,
2195
2212
  ` \u{1F4E6} The ${options.name} build completed successfully`,
2196
2213
  options.workspaceConfig
2197
2214
  );
2198
2215
  }
2199
2216
  async function cleanOutputPath(options) {
2200
2217
  if (options.clean !== false && options.workspaceConfig) {
2201
- _chunkLR76NCPTcjs.writeDebug.call(void 0,
2218
+ _chunkM4EC6ZP3cjs.writeDebug.call(void 0,
2202
2219
  ` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
2203
2220
  options.workspaceConfig
2204
2221
  );
2205
- const stopwatch = _chunkLR76NCPTcjs.getStopwatch.call(void 0, `${options.name} output clean`);
2206
- await _chunkLR76NCPTcjs.cleanDirectories.call(void 0,
2222
+ const stopwatch = _chunkM4EC6ZP3cjs.getStopwatch.call(void 0, `${options.name} output clean`);
2223
+ await _chunkM4EC6ZP3cjs.cleanDirectories.call(void 0,
2207
2224
  options.name,
2208
2225
  options.outDir,
2209
2226
  options.workspaceConfig
@@ -2213,8 +2230,8 @@ async function cleanOutputPath(options) {
2213
2230
  return options;
2214
2231
  }
2215
2232
  async function build(options) {
2216
- _chunkLR76NCPTcjs.writeDebug.call(void 0, ` ${_chunkLR76NCPTcjs.brandIcon.call(void 0, )} Executing Storm TSDown pipeline`);
2217
- const stopwatch = _chunkLR76NCPTcjs.getStopwatch.call(void 0, "TSDown pipeline");
2233
+ _chunkM4EC6ZP3cjs.writeDebug.call(void 0, ` ${_chunkM4EC6ZP3cjs.brandIcon.call(void 0, )} Executing Storm TSDown pipeline`);
2234
+ const stopwatch = _chunkM4EC6ZP3cjs.getStopwatch.call(void 0, "TSDown pipeline");
2218
2235
  try {
2219
2236
  const opts = Array.isArray(options) ? options : [options];
2220
2237
  if (opts.length === 0) {
@@ -2234,13 +2251,13 @@ async function build(options) {
2234
2251
  })
2235
2252
  );
2236
2253
  } else {
2237
- _chunkLR76NCPTcjs.writeWarning.call(void 0,
2254
+ _chunkM4EC6ZP3cjs.writeWarning.call(void 0,
2238
2255
  " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
2239
2256
  );
2240
2257
  }
2241
- _chunkLR76NCPTcjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
2258
+ _chunkM4EC6ZP3cjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
2242
2259
  } catch (error) {
2243
- _chunkLR76NCPTcjs.writeFatal.call(void 0,
2260
+ _chunkM4EC6ZP3cjs.writeFatal.call(void 0,
2244
2261
  "Fatal errors that the build process could not recover from have occured. The build process has been terminated."
2245
2262
  );
2246
2263
  throw error;
@@ -9,6 +9,7 @@ var LogLevel = {
9
9
  WARN: 30,
10
10
  SUCCESS: 35,
11
11
  INFO: 40,
12
+ PERFORMANCE: 50,
12
13
  DEBUG: 60,
13
14
  TRACE: 70,
14
15
  ALL: 100
@@ -20,6 +21,7 @@ var LogLevelLabel = {
20
21
  WARN: "warn",
21
22
  SUCCESS: "success",
22
23
  INFO: "info",
24
+ PERFORMANCE: "performance",
23
25
  DEBUG: "debug",
24
26
  TRACE: "trace",
25
27
  ALL: "all"
@@ -39,6 +41,7 @@ var DEFAULT_COLOR_CONFIG = {
39
41
  warning: "#e3b341",
40
42
  danger: "#D8314A",
41
43
  fatal: "#51070f",
44
+ performance: "#83ff83",
42
45
  link: "#3fa6ff",
43
46
  positive: "#22c55e",
44
47
  negative: "#dc2626",
@@ -56,6 +59,7 @@ var DEFAULT_COLOR_CONFIG = {
56
59
  warning: "#f3d371",
57
60
  danger: "#D8314A",
58
61
  fatal: "#a40e26",
62
+ performance: "#00ff00",
59
63
  link: "#3fa6ff",
60
64
  positive: "#22c55e",
61
65
  negative: "#dc2626",
@@ -143,6 +147,7 @@ var CONSOLE_ICONS = {
143
147
  [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
144
148
  [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
145
149
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
150
+ [LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
146
151
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
147
152
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
148
153
  [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
@@ -163,6 +168,8 @@ var getLogLevel = (label) => {
163
168
  return LogLevel.TRACE;
164
169
  case "debug":
165
170
  return LogLevel.DEBUG;
171
+ case "performance":
172
+ return LogLevel.PERFORMANCE;
166
173
  case "info":
167
174
  return LogLevel.INFO;
168
175
  case "warn":
@@ -187,6 +194,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
187
194
  if (logLevel >= LogLevel.DEBUG) {
188
195
  return LogLevelLabel.DEBUG;
189
196
  }
197
+ if (logLevel >= LogLevel.PERFORMANCE) {
198
+ return LogLevelLabel.PERFORMANCE;
199
+ }
190
200
  if (logLevel >= LogLevel.INFO) {
191
201
  return LogLevelLabel.INFO;
192
202
  }
@@ -274,6 +284,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
274
284
  )(
275
285
  `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
276
286
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
287
+ `
288
+ );
289
+ };
290
+ }
291
+ if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
292
+ return (message) => {
293
+ console.debug(
294
+ `
295
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
296
+ colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
297
+ )(
298
+ `[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
299
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
277
300
  `
278
301
  );
279
302
  };
@@ -317,18 +340,16 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
317
340
  var writeFatal = (message, config) => getLogFn(LogLevel.FATAL, config)(message);
318
341
  var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
319
342
  var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
343
+ var writePerformance = (message, config) => getLogFn(LogLevel.PERFORMANCE, config)(message);
320
344
  var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
321
345
  var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
322
346
  var getStopwatch = (name) => {
323
347
  const start = /* @__PURE__ */ new Date();
324
348
  return () => {
325
- console.info(
326
- `> \u23F1 The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(
327
- start,
328
- {
329
- includeSeconds: true
330
- }
331
- )} to complete`
349
+ writePerformance(
350
+ `The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(start, {
351
+ includeSeconds: true
352
+ })} to complete`
332
353
  );
333
354
  };
334
355
  };
@@ -9,6 +9,7 @@ var LogLevel = {
9
9
  WARN: 30,
10
10
  SUCCESS: 35,
11
11
  INFO: 40,
12
+ PERFORMANCE: 50,
12
13
  DEBUG: 60,
13
14
  TRACE: 70,
14
15
  ALL: 100
@@ -20,6 +21,7 @@ var LogLevelLabel = {
20
21
  WARN: "warn",
21
22
  SUCCESS: "success",
22
23
  INFO: "info",
24
+ PERFORMANCE: "performance",
23
25
  DEBUG: "debug",
24
26
  TRACE: "trace",
25
27
  ALL: "all"
@@ -39,6 +41,7 @@ var DEFAULT_COLOR_CONFIG = {
39
41
  warning: "#e3b341",
40
42
  danger: "#D8314A",
41
43
  fatal: "#51070f",
44
+ performance: "#83ff83",
42
45
  link: "#3fa6ff",
43
46
  positive: "#22c55e",
44
47
  negative: "#dc2626",
@@ -56,6 +59,7 @@ var DEFAULT_COLOR_CONFIG = {
56
59
  warning: "#f3d371",
57
60
  danger: "#D8314A",
58
61
  fatal: "#a40e26",
62
+ performance: "#00ff00",
59
63
  link: "#3fa6ff",
60
64
  positive: "#22c55e",
61
65
  negative: "#dc2626",
@@ -143,6 +147,7 @@ var CONSOLE_ICONS = {
143
147
  [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
144
148
  [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
145
149
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
150
+ [LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
146
151
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
147
152
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
148
153
  [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
@@ -163,6 +168,8 @@ var getLogLevel = (label) => {
163
168
  return LogLevel.TRACE;
164
169
  case "debug":
165
170
  return LogLevel.DEBUG;
171
+ case "performance":
172
+ return LogLevel.PERFORMANCE;
166
173
  case "info":
167
174
  return LogLevel.INFO;
168
175
  case "warn":
@@ -187,6 +194,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
187
194
  if (logLevel >= LogLevel.DEBUG) {
188
195
  return LogLevelLabel.DEBUG;
189
196
  }
197
+ if (logLevel >= LogLevel.PERFORMANCE) {
198
+ return LogLevelLabel.PERFORMANCE;
199
+ }
190
200
  if (logLevel >= LogLevel.INFO) {
191
201
  return LogLevelLabel.INFO;
192
202
  }
@@ -274,6 +284,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
274
284
  )(
275
285
  `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
276
286
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
287
+ `
288
+ );
289
+ };
290
+ }
291
+ if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
292
+ return (message) => {
293
+ console.debug(
294
+ `
295
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
296
+ _nullishCoalesce(colors.performance, () => ( DEFAULT_COLOR_CONFIG.dark.performance))
297
+ )(
298
+ `[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
299
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
277
300
  `
278
301
  );
279
302
  };
@@ -317,18 +340,16 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
317
340
  var writeFatal = (message, config) => getLogFn(LogLevel.FATAL, config)(message);
318
341
  var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
319
342
  var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
343
+ var writePerformance = (message, config) => getLogFn(LogLevel.PERFORMANCE, config)(message);
320
344
  var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
321
345
  var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
322
346
  var getStopwatch = (name) => {
323
347
  const start = /* @__PURE__ */ new Date();
324
348
  return () => {
325
- console.info(
326
- `> \u23F1 The${name ? ` ${name}` : ""} process took ${_formatDistanceToNow.formatDistanceToNow.call(void 0,
327
- start,
328
- {
329
- includeSeconds: true
330
- }
331
- )} to complete`
349
+ writePerformance(
350
+ `The${name ? ` ${name}` : ""} process took ${_formatDistanceToNow.formatDistanceToNow.call(void 0, start, {
351
+ includeSeconds: true
352
+ })} to complete`
332
353
  );
333
354
  };
334
355
  };
@@ -11,7 +11,7 @@ import {
11
11
  writeSuccess,
12
12
  writeTrace,
13
13
  writeWarning
14
- } from "./chunk-AGPWNIQU.js";
14
+ } from "./chunk-HJ6ELEHI.js";
15
15
  import {
16
16
  getDefaultOptions,
17
17
  toTSDownFormat
@@ -593,6 +593,10 @@ var fatalColorSchema = z.optional(colorSchema);
593
593
  schemaRegistry.add(fatalColorSchema, {
594
594
  description: "The fatal color of the workspace"
595
595
  });
596
+ var performanceColorSchema = z._default(colorSchema, "#00ff00");
597
+ schemaRegistry.add(performanceColorSchema, {
598
+ description: "The performance color of the workspace"
599
+ });
596
600
  var positiveColorSchema = z._default(colorSchema, "#4ade80");
597
601
  schemaRegistry.add(positiveColorSchema, {
598
602
  description: "The positive number color of the workspace"
@@ -619,6 +623,7 @@ var darkColorsSchema = z.object({
619
623
  warning: warningColorSchema,
620
624
  danger: dangerColorSchema,
621
625
  fatal: fatalColorSchema,
626
+ performance: performanceColorSchema,
622
627
  positive: positiveColorSchema,
623
628
  negative: negativeColorSchema,
624
629
  gradient: gradientStopsSchema
@@ -637,6 +642,7 @@ var lightColorsSchema = z.object({
637
642
  warning: warningColorSchema,
638
643
  danger: dangerColorSchema,
639
644
  fatal: fatalColorSchema,
645
+ performance: performanceColorSchema,
640
646
  positive: positiveColorSchema,
641
647
  negative: negativeColorSchema,
642
648
  gradient: gradientStopsSchema
@@ -659,6 +665,7 @@ var singleColorsSchema = z.object({
659
665
  warning: warningColorSchema,
660
666
  danger: dangerColorSchema,
661
667
  fatal: fatalColorSchema,
668
+ performance: performanceColorSchema,
662
669
  positive: positiveColorSchema,
663
670
  negative: negativeColorSchema,
664
671
  gradient: gradientStopsSchema
@@ -1026,6 +1033,7 @@ var logLevelSchema = z._default(
1026
1033
  "warn",
1027
1034
  "success",
1028
1035
  "info",
1036
+ "performance",
1029
1037
  "debug",
1030
1038
  "trace",
1031
1039
  "all"
@@ -1105,6 +1113,7 @@ var COLOR_KEYS = [
1105
1113
  "warning",
1106
1114
  "danger",
1107
1115
  "fatal",
1116
+ "performance",
1108
1117
  "positive",
1109
1118
  "negative"
1110
1119
  ];
@@ -1445,6 +1454,7 @@ var getSingleThemeColorsEnv = (prefix) => {
1445
1454
  warning: process.env[`${prefix}WARNING`],
1446
1455
  danger: process.env[`${prefix}DANGER`],
1447
1456
  fatal: process.env[`${prefix}FATAL`],
1457
+ performance: process.env[`${prefix}PERFORMANCE`],
1448
1458
  positive: process.env[`${prefix}POSITIVE`],
1449
1459
  negative: process.env[`${prefix}NEGATIVE`],
1450
1460
  gradient
@@ -1484,6 +1494,7 @@ var getBaseThemeColorsEnv = (prefix) => {
1484
1494
  warning: process.env[`${prefix}WARNING`],
1485
1495
  danger: process.env[`${prefix}DANGER`],
1486
1496
  fatal: process.env[`${prefix}FATAL`],
1497
+ performance: process.env[`${prefix}PERFORMANCE`],
1487
1498
  positive: process.env[`${prefix}POSITIVE`],
1488
1499
  negative: process.env[`${prefix}NEGATIVE`],
1489
1500
  gradient
@@ -1794,6 +1805,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
1794
1805
  if (config.fatal) {
1795
1806
  process.env[`${prefix}FATAL`] = config.fatal;
1796
1807
  }
1808
+ if (config.performance) {
1809
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
1810
+ }
1797
1811
  if (config.positive) {
1798
1812
  process.env[`${prefix}POSITIVE`] = config.positive;
1799
1813
  }
@@ -1852,6 +1866,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
1852
1866
  if (config.fatal) {
1853
1867
  process.env[`${prefix}FATAL`] = config.fatal;
1854
1868
  }
1869
+ if (config.performance) {
1870
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
1871
+ }
1855
1872
  if (config.positive) {
1856
1873
  process.env[`${prefix}POSITIVE`] = config.positive;
1857
1874
  }
@@ -2057,7 +2074,7 @@ var resolveOptions = async (userOptions) => {
2057
2074
  dts: true,
2058
2075
  shims: true,
2059
2076
  silent: !debug,
2060
- logLevel: workspaceConfig.logLevel === "success" || workspaceConfig.logLevel === "debug" || workspaceConfig.logLevel === "trace" || workspaceConfig.logLevel === "all" ? "info" : workspaceConfig.logLevel === "fatal" ? "error" : workspaceConfig.logLevel,
2077
+ logLevel: workspaceConfig.logLevel === "success" || workspaceConfig.logLevel === "performance" || workspaceConfig.logLevel === "debug" || workspaceConfig.logLevel === "trace" || workspaceConfig.logLevel === "all" ? "info" : workspaceConfig.logLevel === "fatal" ? "error" : workspaceConfig.logLevel,
2061
2078
  sourcemap: debug ? "inline" : false,
2062
2079
  clean: false,
2063
2080
  fixedExtension: true,
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 _chunkLR76NCPTcjs = require('./chunk-LR76NCPT.cjs');
4
+ var _chunkM4EC6ZP3cjs = require('./chunk-M4EC6ZP3.cjs');
5
5
 
6
6
 
7
7
 
8
- exports.clean = _chunkLR76NCPTcjs.clean; exports.cleanDirectories = _chunkLR76NCPTcjs.cleanDirectories;
8
+ exports.clean = _chunkM4EC6ZP3cjs.clean; exports.cleanDirectories = _chunkM4EC6ZP3cjs.cleanDirectories;
package/dist/clean.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-AGPWNIQU.js";
4
+ } from "./chunk-HJ6ELEHI.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 _chunkQ2X6VUOHcjs = require('./chunk-Q2X6VUOH.cjs');
4
+ var _chunk5KDSVEN3cjs = require('./chunk-5KDSVEN3.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkLR76NCPTcjs = require('./chunk-LR76NCPT.cjs');
8
+ var _chunkM4EC6ZP3cjs = require('./chunk-M4EC6ZP3.cjs');
9
9
 
10
10
 
11
11
 
@@ -18,4 +18,4 @@ require('./chunk-ZBPRDZS4.cjs');
18
18
 
19
19
 
20
20
 
21
- exports.build = _chunkQ2X6VUOHcjs.build; exports.clean = _chunkLR76NCPTcjs.clean; exports.cleanDirectories = _chunkLR76NCPTcjs.cleanDirectories; exports.cleanOutputPath = _chunkQ2X6VUOHcjs.cleanOutputPath; exports.getDefaultOptions = _chunkDPNREUD4cjs.getDefaultOptions; exports.toTSDownFormat = _chunkDPNREUD4cjs.toTSDownFormat;
21
+ exports.build = _chunk5KDSVEN3cjs.build; exports.clean = _chunkM4EC6ZP3cjs.clean; exports.cleanDirectories = _chunkM4EC6ZP3cjs.cleanDirectories; exports.cleanOutputPath = _chunk5KDSVEN3cjs.cleanOutputPath; exports.getDefaultOptions = _chunkDPNREUD4cjs.getDefaultOptions; exports.toTSDownFormat = _chunkDPNREUD4cjs.toTSDownFormat;