@storm-software/tsdown 0.45.160 → 0.45.162

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 _chunkJDN3SVUTcjs = require('./chunk-JDN3SVUT.cjs');
5
- require('./chunk-FAFMBXRT.cjs');
4
+ var _chunkFENDZBFJcjs = require('./chunk-FENDZBFJ.cjs');
5
+ require('./chunk-GQOZXHZO.cjs');
6
6
  require('./chunk-DPNREUD4.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.build = _chunkJDN3SVUTcjs.build; exports.cleanOutputPath = _chunkJDN3SVUTcjs.cleanOutputPath;
10
+ exports.build = _chunkFENDZBFJcjs.build; exports.cleanOutputPath = _chunkFENDZBFJcjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-VN4TNNRE.js";
5
- import "./chunk-KT2YPNCX.js";
4
+ } from "./chunk-RKBRFFB3.js";
5
+ import "./chunk-VUHSDRKE.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 _chunkFAFMBXRTcjs = require('./chunk-FAFMBXRT.cjs');
14
+ var _chunkGQOZXHZOcjs = require('./chunk-GQOZXHZO.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
- _chunkFAFMBXRTcjs.writeTrace.call(void 0,
202
+ _chunkGQOZXHZOcjs.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
- _chunkFAFMBXRTcjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
214
+ _chunkGQOZXHZOcjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
215
215
  if (includeSrc === true) {
216
- _chunkFAFMBXRTcjs.writeDebug.call(void 0,
216
+ _chunkGQOZXHZOcjs.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
- _chunkFAFMBXRTcjs.writeTrace.call(void 0,
395
+ _chunkGQOZXHZOcjs.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
- _chunkFAFMBXRTcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
443
+ _chunkGQOZXHZOcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
444
444
  }
445
445
  return packageJson;
446
446
  };
@@ -1247,7 +1247,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
1247
1247
  let config = result.config;
1248
1248
  const configFile = result.configFile;
1249
1249
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
1250
- _chunkFAFMBXRTcjs.writeTrace.call(void 0,
1250
+ _chunkGQOZXHZOcjs.writeTrace.call(void 0,
1251
1251
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
1252
1252
  {
1253
1253
  logLevel: "all"
@@ -1263,7 +1263,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
1263
1263
  for (const result2 of results) {
1264
1264
  if (_optionalChain([result2, 'optionalAccess', _34 => _34.config]) && _optionalChain([result2, 'optionalAccess', _35 => _35.configFile]) && Object.keys(result2.config).length > 0) {
1265
1265
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
1266
- _chunkFAFMBXRTcjs.writeTrace.call(void 0,
1266
+ _chunkGQOZXHZOcjs.writeTrace.call(void 0,
1267
1267
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
1268
1268
  {
1269
1269
  logLevel: "all"
@@ -1379,7 +1379,7 @@ var getConfigEnv = () => {
1379
1379
  },
1380
1380
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
1381
1381
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
1382
- ) ? _chunkFAFMBXRTcjs.getLogLevelLabel.call(void 0,
1382
+ ) ? _chunkGQOZXHZOcjs.getLogLevelLabel.call(void 0,
1383
1383
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
1384
1384
  ) : process.env[`${prefix}LOG_LEVEL`] : void 0,
1385
1385
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
@@ -1746,9 +1746,9 @@ var setConfigEnv = (config) => {
1746
1746
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
1747
1747
  process.env.LOG_LEVEL = String(config.logLevel);
1748
1748
  process.env.NX_VERBOSE_LOGGING = String(
1749
- _chunkFAFMBXRTcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkFAFMBXRTcjs.LogLevel.DEBUG ? true : false
1749
+ _chunkGQOZXHZOcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkGQOZXHZOcjs.LogLevel.DEBUG ? true : false
1750
1750
  );
1751
- process.env.RUST_BACKTRACE = _chunkFAFMBXRTcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkFAFMBXRTcjs.LogLevel.DEBUG ? "full" : "none";
1751
+ process.env.RUST_BACKTRACE = _chunkGQOZXHZOcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkGQOZXHZOcjs.LogLevel.DEBUG ? "full" : "none";
1752
1752
  }
1753
1753
  if (config.skipConfigLogging !== void 0) {
1754
1754
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
@@ -1896,7 +1896,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1896
1896
  const configFile = await getConfigFile(_workspaceRoot);
1897
1897
  if (!configFile) {
1898
1898
  if (!skipLogs) {
1899
- _chunkFAFMBXRTcjs.writeWarning.call(void 0,
1899
+ _chunkGQOZXHZOcjs.writeWarning.call(void 0,
1900
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",
1901
1901
  { logLevel: "all" }
1902
1902
  );
@@ -1927,7 +1927,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1927
1927
  throw new Error(
1928
1928
  `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _60 => _60.message]) ? `: ${error.message}` : ""}
1929
1929
 
1930
- Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkFAFMBXRTcjs.formatLogMessage.call(void 0,
1930
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkGQOZXHZOcjs.formatLogMessage.call(void 0,
1931
1931
  configInput
1932
1932
  )}`,
1933
1933
  {
@@ -1972,9 +1972,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
1972
1972
  );
1973
1973
  setConfigEnv(config);
1974
1974
  if (!skipLogs && !config.skipConfigLogging) {
1975
- _chunkFAFMBXRTcjs.writeTrace.call(void 0,
1975
+ _chunkGQOZXHZOcjs.writeTrace.call(void 0,
1976
1976
  `\u2699\uFE0F Using Storm Workspace configuration:
1977
- ${_chunkFAFMBXRTcjs.formatLogMessage.call(void 0, config)}`,
1977
+ ${_chunkGQOZXHZOcjs.formatLogMessage.call(void 0, config)}`,
1978
1978
  config
1979
1979
  );
1980
1980
  }
@@ -2034,8 +2034,8 @@ var resolveOptions = async (userOptions) => {
2034
2034
  const workspaceConfig = await getWorkspaceConfig(options.debug === true, {
2035
2035
  workspaceRoot
2036
2036
  });
2037
- _chunkFAFMBXRTcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
2038
- const stopwatch = _chunkFAFMBXRTcjs.getStopwatch.call(void 0, "Build options resolution");
2037
+ _chunkGQOZXHZOcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
2038
+ const stopwatch = _chunkGQOZXHZOcjs.getStopwatch.call(void 0, "Build options resolution");
2039
2039
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
2040
2040
  exitOnError: true
2041
2041
  });
@@ -2108,8 +2108,8 @@ var resolveOptions = async (userOptions) => {
2108
2108
  };
2109
2109
  async function generatePackageJson(options) {
2110
2110
  if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, joinPaths(options.projectRoot, "package.json"))) {
2111
- _chunkFAFMBXRTcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
2112
- const stopwatch = _chunkFAFMBXRTcjs.getStopwatch.call(void 0, "Write package.json file");
2111
+ _chunkGQOZXHZOcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
2112
+ const stopwatch = _chunkGQOZXHZOcjs.getStopwatch.call(void 0, "Write package.json file");
2113
2113
  const packageJsonPath = joinPaths(options.projectRoot, "project.json");
2114
2114
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
2115
2115
  throw new Error("Cannot find package.json configuration");
@@ -2183,8 +2183,8 @@ async function generatePackageJson(options) {
2183
2183
  return options;
2184
2184
  }
2185
2185
  async function executeTSDown(options) {
2186
- _chunkFAFMBXRTcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
2187
- const stopwatch = _chunkFAFMBXRTcjs.getStopwatch.call(void 0, `${options.name} build`);
2186
+ _chunkGQOZXHZOcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
2187
+ const stopwatch = _chunkGQOZXHZOcjs.getStopwatch.call(void 0, `${options.name} build`);
2188
2188
  await _tsdown.build.call(void 0, {
2189
2189
  ...options,
2190
2190
  entry: options.entry,
@@ -2194,11 +2194,11 @@ async function executeTSDown(options) {
2194
2194
  return options;
2195
2195
  }
2196
2196
  async function copyBuildAssets(options) {
2197
- _chunkFAFMBXRTcjs.writeDebug.call(void 0,
2197
+ _chunkGQOZXHZOcjs.writeDebug.call(void 0,
2198
2198
  ` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
2199
2199
  options.workspaceConfig
2200
2200
  );
2201
- const stopwatch = _chunkFAFMBXRTcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
2201
+ const stopwatch = _chunkGQOZXHZOcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
2202
2202
  await copyAssets(
2203
2203
  options.workspaceConfig,
2204
2204
  _nullishCoalesce(options.assets, () => ( [])),
@@ -2212,19 +2212,19 @@ async function copyBuildAssets(options) {
2212
2212
  return options;
2213
2213
  }
2214
2214
  async function reportResults(options) {
2215
- _chunkFAFMBXRTcjs.writeSuccess.call(void 0,
2215
+ _chunkGQOZXHZOcjs.writeSuccess.call(void 0,
2216
2216
  ` \u{1F4E6} The ${options.name} build completed successfully`,
2217
2217
  options.workspaceConfig
2218
2218
  );
2219
2219
  }
2220
2220
  async function cleanOutputPath(options) {
2221
2221
  if (options.clean !== false && options.workspaceConfig) {
2222
- _chunkFAFMBXRTcjs.writeDebug.call(void 0,
2222
+ _chunkGQOZXHZOcjs.writeDebug.call(void 0,
2223
2223
  ` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
2224
2224
  options.workspaceConfig
2225
2225
  );
2226
- const stopwatch = _chunkFAFMBXRTcjs.getStopwatch.call(void 0, `${options.name} output clean`);
2227
- await _chunkFAFMBXRTcjs.cleanDirectories.call(void 0,
2226
+ const stopwatch = _chunkGQOZXHZOcjs.getStopwatch.call(void 0, `${options.name} output clean`);
2227
+ await _chunkGQOZXHZOcjs.cleanDirectories.call(void 0,
2228
2228
  options.name,
2229
2229
  options.outDir,
2230
2230
  options.workspaceConfig
@@ -2234,8 +2234,8 @@ async function cleanOutputPath(options) {
2234
2234
  return options;
2235
2235
  }
2236
2236
  async function build(options) {
2237
- _chunkFAFMBXRTcjs.writeDebug.call(void 0, ` ${_chunkFAFMBXRTcjs.brandIcon.call(void 0, )} Executing Storm TSDown pipeline`);
2238
- const stopwatch = _chunkFAFMBXRTcjs.getStopwatch.call(void 0, "TSDown pipeline");
2237
+ _chunkGQOZXHZOcjs.writeDebug.call(void 0, ` ${_chunkGQOZXHZOcjs.brandIcon.call(void 0, )} Executing Storm TSDown pipeline`);
2238
+ const stopwatch = _chunkGQOZXHZOcjs.getStopwatch.call(void 0, "TSDown pipeline");
2239
2239
  try {
2240
2240
  const opts = Array.isArray(options) ? options : [options];
2241
2241
  if (opts.length === 0) {
@@ -2255,13 +2255,13 @@ async function build(options) {
2255
2255
  })
2256
2256
  );
2257
2257
  } else {
2258
- _chunkFAFMBXRTcjs.writeWarning.call(void 0,
2258
+ _chunkGQOZXHZOcjs.writeWarning.call(void 0,
2259
2259
  " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
2260
2260
  );
2261
2261
  }
2262
- _chunkFAFMBXRTcjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
2262
+ _chunkGQOZXHZOcjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
2263
2263
  } catch (error) {
2264
- _chunkFAFMBXRTcjs.writeFatal.call(void 0,
2264
+ _chunkGQOZXHZOcjs.writeFatal.call(void 0,
2265
2265
  "Fatal errors that the build process could not recover from have occured. The build process has been terminated."
2266
2266
  );
2267
2267
  throw error;
@@ -155,8 +155,8 @@ var CONSOLE_ICONS = {
155
155
  };
156
156
 
157
157
  // ../config-tools/src/logger/format-timestamp.ts
158
- var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
159
- return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
158
+ var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
159
+ return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
160
160
  };
161
161
 
162
162
  // ../config-tools/src/logger/get-log-level.ts
@@ -216,7 +216,12 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
216
216
  };
217
217
 
218
218
  // ../config-tools/src/logger/console.ts
219
- var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
219
+ var getLogFn = (logLevel = LogLevel.INFO, config = {}, options = {}) => {
220
+ const {
221
+ chalk: _chalk = getChalk(),
222
+ fullDateTime = false,
223
+ hideDateTime = false
224
+ } = options;
220
225
  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;
221
226
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
222
227
  if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
@@ -227,9 +232,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
227
232
  return (message) => {
228
233
  console.error(
229
234
  `
230
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
231
- _nullishCoalesce(colors.fatal, () => ( DEFAULT_COLOR_CONFIG.dark.fatal))
232
- )(
235
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( DEFAULT_COLOR_CONFIG.dark.fatal)))(
233
236
  `[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
234
237
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
235
238
  `
@@ -240,9 +243,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
240
243
  return (message) => {
241
244
  console.error(
242
245
  `
243
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
244
- _nullishCoalesce(colors.danger, () => ( DEFAULT_COLOR_CONFIG.dark.danger))
245
- )(
246
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.danger, () => ( DEFAULT_COLOR_CONFIG.dark.danger)))(
246
247
  `[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
247
248
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
248
249
  `
@@ -253,9 +254,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
253
254
  return (message) => {
254
255
  console.warn(
255
256
  `
256
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
257
- _nullishCoalesce(colors.warning, () => ( DEFAULT_COLOR_CONFIG.dark.warning))
258
- )(
257
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.warning, () => ( DEFAULT_COLOR_CONFIG.dark.warning)))(
259
258
  `[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
260
259
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
261
260
  `
@@ -266,9 +265,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
266
265
  return (message) => {
267
266
  console.info(
268
267
  `
269
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
270
- _nullishCoalesce(colors.success, () => ( DEFAULT_COLOR_CONFIG.dark.success))
271
- )(
268
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.success, () => ( DEFAULT_COLOR_CONFIG.dark.success)))(
272
269
  `[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
273
270
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
274
271
  `
@@ -279,9 +276,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
279
276
  return (message) => {
280
277
  console.info(
281
278
  `
282
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
283
- _nullishCoalesce(colors.info, () => ( DEFAULT_COLOR_CONFIG.dark.info))
284
- )(
279
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.info, () => ( DEFAULT_COLOR_CONFIG.dark.info)))(
285
280
  `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
286
281
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
287
282
  `
@@ -292,9 +287,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
292
287
  return (message) => {
293
288
  console.debug(
294
289
  `
295
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
296
- _nullishCoalesce(colors.performance, () => ( DEFAULT_COLOR_CONFIG.dark.performance))
297
- )(
290
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.performance, () => ( DEFAULT_COLOR_CONFIG.dark.performance)))(
298
291
  `[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
299
292
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
300
293
  `
@@ -305,9 +298,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
305
298
  return (message) => {
306
299
  console.debug(
307
300
  `
308
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
309
- _nullishCoalesce(colors.debug, () => ( DEFAULT_COLOR_CONFIG.dark.debug))
310
- )(
301
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.debug, () => ( DEFAULT_COLOR_CONFIG.dark.debug)))(
311
302
  `[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
312
303
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
313
304
  `
@@ -318,7 +309,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
318
309
  return (message) => {
319
310
  console.debug(
320
311
  `
321
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
312
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex("#bbbbbb")(
322
313
  `[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
323
314
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
324
315
  `
@@ -328,9 +319,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
328
319
  return (message) => {
329
320
  console.log(
330
321
  `
331
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
332
- _nullishCoalesce(colors.brand, () => ( DEFAULT_COLOR_CONFIG.dark.brand))
333
- )(
322
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.brand, () => ( DEFAULT_COLOR_CONFIG.dark.brand)))(
334
323
  `[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
335
324
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
336
325
  `
@@ -11,7 +11,7 @@ import {
11
11
  writeSuccess,
12
12
  writeTrace,
13
13
  writeWarning
14
- } from "./chunk-KT2YPNCX.js";
14
+ } from "./chunk-VUHSDRKE.js";
15
15
  import {
16
16
  getDefaultOptions,
17
17
  toTSDownFormat
@@ -155,8 +155,8 @@ var CONSOLE_ICONS = {
155
155
  };
156
156
 
157
157
  // ../config-tools/src/logger/format-timestamp.ts
158
- var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
159
- return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
158
+ var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
159
+ return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
160
160
  };
161
161
 
162
162
  // ../config-tools/src/logger/get-log-level.ts
@@ -216,7 +216,12 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
216
216
  };
217
217
 
218
218
  // ../config-tools/src/logger/console.ts
219
- var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
219
+ var getLogFn = (logLevel = LogLevel.INFO, config = {}, options = {}) => {
220
+ const {
221
+ chalk: _chalk = getChalk(),
222
+ fullDateTime = false,
223
+ hideDateTime = false
224
+ } = options;
220
225
  const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
221
226
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
222
227
  if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
@@ -227,9 +232,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
227
232
  return (message) => {
228
233
  console.error(
229
234
  `
230
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
231
- colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
232
- )(
235
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal)(
233
236
  `[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
234
237
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
235
238
  `
@@ -240,9 +243,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
240
243
  return (message) => {
241
244
  console.error(
242
245
  `
243
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
244
- colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
245
- )(
246
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger)(
246
247
  `[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
247
248
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
248
249
  `
@@ -253,9 +254,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
253
254
  return (message) => {
254
255
  console.warn(
255
256
  `
256
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
257
- colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
258
- )(
257
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning)(
259
258
  `[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
260
259
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
261
260
  `
@@ -266,9 +265,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
266
265
  return (message) => {
267
266
  console.info(
268
267
  `
269
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
270
- colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
271
- )(
268
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.success ?? DEFAULT_COLOR_CONFIG.dark.success)(
272
269
  `[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
273
270
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
274
271
  `
@@ -279,9 +276,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
279
276
  return (message) => {
280
277
  console.info(
281
278
  `
282
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
283
- colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
284
- )(
279
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(
285
280
  `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
286
281
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
287
282
  `
@@ -292,9 +287,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
292
287
  return (message) => {
293
288
  console.debug(
294
289
  `
295
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
296
- colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
297
- )(
290
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance)(
298
291
  `[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
299
292
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
300
293
  `
@@ -305,9 +298,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
305
298
  return (message) => {
306
299
  console.debug(
307
300
  `
308
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
309
- colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
310
- )(
301
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(
311
302
  `[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
312
303
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
313
304
  `
@@ -318,7 +309,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
318
309
  return (message) => {
319
310
  console.debug(
320
311
  `
321
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
312
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex("#bbbbbb")(
322
313
  `[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
323
314
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
324
315
  `
@@ -328,9 +319,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
328
319
  return (message) => {
329
320
  console.log(
330
321
  `
331
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
332
- colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
333
- )(
322
+ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand)(
334
323
  `[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
335
324
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
336
325
  `
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 _chunkFAFMBXRTcjs = require('./chunk-FAFMBXRT.cjs');
4
+ var _chunkGQOZXHZOcjs = require('./chunk-GQOZXHZO.cjs');
5
5
 
6
6
 
7
7
 
8
- exports.clean = _chunkFAFMBXRTcjs.clean; exports.cleanDirectories = _chunkFAFMBXRTcjs.cleanDirectories;
8
+ exports.clean = _chunkGQOZXHZOcjs.clean; exports.cleanDirectories = _chunkGQOZXHZOcjs.cleanDirectories;
package/dist/clean.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-KT2YPNCX.js";
4
+ } from "./chunk-VUHSDRKE.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 _chunkJDN3SVUTcjs = require('./chunk-JDN3SVUT.cjs');
4
+ var _chunkFENDZBFJcjs = require('./chunk-FENDZBFJ.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkFAFMBXRTcjs = require('./chunk-FAFMBXRT.cjs');
8
+ var _chunkGQOZXHZOcjs = require('./chunk-GQOZXHZO.cjs');
9
9
 
10
10
 
11
11
 
@@ -18,4 +18,4 @@ require('./chunk-ZBPRDZS4.cjs');
18
18
 
19
19
 
20
20
 
21
- exports.build = _chunkJDN3SVUTcjs.build; exports.clean = _chunkFAFMBXRTcjs.clean; exports.cleanDirectories = _chunkFAFMBXRTcjs.cleanDirectories; exports.cleanOutputPath = _chunkJDN3SVUTcjs.cleanOutputPath; exports.getDefaultOptions = _chunkDPNREUD4cjs.getDefaultOptions; exports.toTSDownFormat = _chunkDPNREUD4cjs.toTSDownFormat;
21
+ exports.build = _chunkFENDZBFJcjs.build; exports.clean = _chunkGQOZXHZOcjs.clean; exports.cleanDirectories = _chunkGQOZXHZOcjs.cleanDirectories; exports.cleanOutputPath = _chunkFENDZBFJcjs.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-VN4TNNRE.js";
4
+ } from "./chunk-RKBRFFB3.js";
5
5
  import {
6
6
  clean,
7
7
  cleanDirectories
8
- } from "./chunk-KT2YPNCX.js";
8
+ } from "./chunk-VUHSDRKE.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.160",
3
+ "version": "0.45.162",
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.159",
150
- "@storm-software/config": "^1.137.32",
151
- "@storm-software/config-tools": "^1.189.78",
149
+ "@storm-software/build-tools": "^0.158.161",
150
+ "@storm-software/config": "^1.137.34",
151
+ "@storm-software/config-tools": "^1.190.1",
152
152
  "chokidar": "^4.0.3",
153
153
  "commander": "^12.1.0",
154
154
  "es-toolkit": "^1.46.0",
@@ -171,5 +171,5 @@
171
171
  },
172
172
  "publishConfig": { "access": "public" },
173
173
  "sideEffects": false,
174
- "gitHead": "53d2ed234e902be71b97a3f927d2613f1a15731f"
174
+ "gitHead": "07683ca13c988d45253edcd947640ab1a7f31e25"
175
175
  }