@storm-software/config-tools 1.190.128 → 1.190.130
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/index.cjs +2 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +2 -1
- package/dist/utilities/format-error-message.cjs +28 -0
- package/dist/utilities/format-error-message.d.cts +10 -0
- package/dist/utilities/format-error-message.d.mts +12 -0
- package/dist/utilities/format-error-message.mjs +30 -0
- package/dist/utilities/index.cjs +2 -0
- package/dist/utilities/index.d.cts +2 -1
- package/dist/utilities/index.d.mts +2 -1
- package/dist/utilities/index.mjs +2 -1
- package/package.json +7 -3
package/dist/index.cjs
CHANGED
|
@@ -11,6 +11,7 @@ const require_utilities_correct_paths = require("./utilities/correct-paths.cjs")
|
|
|
11
11
|
const require_utilities_find_workspace_root = require("./utilities/find-workspace-root.cjs");
|
|
12
12
|
const require_utilities_apply_workspace_tokens = require("./utilities/apply-workspace-tokens.cjs");
|
|
13
13
|
const require_utilities_file_path_utils = require("./utilities/file-path-utils.cjs");
|
|
14
|
+
const require_utilities_format_error_message = require("./utilities/format-error-message.cjs");
|
|
14
15
|
const require_utilities_get_default_config = require("./utilities/get-default-config.cjs");
|
|
15
16
|
const require_utilities_process_handler = require("./utilities/process-handler.cjs");
|
|
16
17
|
const require_utilities_run = require("./utilities/run.cjs");
|
|
@@ -45,6 +46,7 @@ exports.findFilePath = require_utilities_file_path_utils.findFilePath;
|
|
|
45
46
|
exports.findWorkspaceRoot = require_utilities_find_workspace_root.findWorkspaceRoot;
|
|
46
47
|
exports.findWorkspaceRootSafe = require_utilities_find_workspace_root.findWorkspaceRootSafe;
|
|
47
48
|
exports.format = require_utilities_correct_paths.format;
|
|
49
|
+
exports.formatErrorMessage = require_utilities_format_error_message.formatErrorMessage;
|
|
48
50
|
exports.formatLogMessage = require_logger_console.formatLogMessage;
|
|
49
51
|
exports.formatTimestamp = require_logger_format_timestamp.formatTimestamp;
|
|
50
52
|
exports.getChalk = require_logger_chalk.getChalk;
|
package/dist/index.d.cts
CHANGED
|
@@ -19,9 +19,10 @@ import { DEFAULT_COLOR_CONFIG, getColor, getColors, getGradient } from "./utilit
|
|
|
19
19
|
import { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from "./utilities/correct-paths.cjs";
|
|
20
20
|
import { FindFileNameOptions, findFileName, findFilePath, removeExtension } from "./utilities/file-path-utils.cjs";
|
|
21
21
|
import { findWorkspaceRoot, findWorkspaceRootSafe } from "./utilities/find-workspace-root.cjs";
|
|
22
|
+
import { formatErrorMessage } from "./utilities/format-error-message.cjs";
|
|
22
23
|
import { applyDefaultConfig, getPackageJsonConfig } from "./utilities/get-default-config.cjs";
|
|
23
24
|
import { exitWithError, exitWithSuccess, handleProcess } from "./utilities/process-handler.cjs";
|
|
24
25
|
import { IOType, LARGE_BUFFER, StdioOptions, run, runAsync } from "./utilities/run.cjs";
|
|
25
26
|
import { CargoMetadata, CargoToml, Dep, DepKind, Dependency, Docs, Docs2, Features, Metadata, Metadata2, Node, Package, Resolve, Rs, Rs2, Target, Tree, modifyCargoNestedTable, modifyCargoTable, parseCargoToml, parseCargoTomlWithTree, stringifyCargoToml } from "./utilities/toml.cjs";
|
|
26
27
|
import "./utilities/index.cjs";
|
|
27
|
-
export { BaseTokenizerOptions, CONSOLE_ICONS, CargoMetadata, CargoToml, DEFAULT_COLOR_CONFIG, DeepPartial, Dep, DepKind, Dependency, Docs, Docs2, Features, FindFileNameOptions, FormatLogMessageOptions, GetChalkReturn, GetLogFnOptions, GetWorkspaceConfigOptions, IOType, LARGE_BUFFER, LogLevel, LogLevelLabel, Logger, Metadata, Metadata2, Node, Package, ProjectTokenizerOptions, Resolve, Rs, Rs2, StdioOptions, Target, Tree, applyDefaultConfig, applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens, basename, brandIcon, correctPaths, createConfigExtension, createLogger, createStormWorkspaceConfig, dirname, exitWithError, exitWithSuccess, extname, findFileName, findFilePath, findWorkspaceRoot, findWorkspaceRootSafe, format, formatLogMessage, formatTimestamp, getChalk, getColor, getColors, getConfig, getConfigEnv, getConfigFile, getConfigFileByName, getExtensionEnv, getGradient, getLogFn, getLogLevel, getLogLevelLabel, getPackageJsonConfig, getStopwatch, getWorkspaceConfig, handleProcess, isAbsolute, isUnicodeSupported, isVerbose, joinPaths, loadStormWorkspaceConfig, modifyCargoNestedTable, modifyCargoTable, normalizeString, normalizeWindowsPath, parse, parseCargoToml, parseCargoTomlWithTree, relative, removeExtension, resolve, run, runAsync, sep, setConfigEnv, setExtensionEnv, stringifyCargoToml, toNamespacedPath, tryGetWorkspaceConfig, tryLoadStormWorkspaceConfig, writeDebug, writeError, writeFatal, writeInfo, writePerformance, writeSuccess, writeSystem, writeTrace, writeWarning };
|
|
28
|
+
export { BaseTokenizerOptions, CONSOLE_ICONS, CargoMetadata, CargoToml, DEFAULT_COLOR_CONFIG, DeepPartial, Dep, DepKind, Dependency, Docs, Docs2, Features, FindFileNameOptions, FormatLogMessageOptions, GetChalkReturn, GetLogFnOptions, GetWorkspaceConfigOptions, IOType, LARGE_BUFFER, LogLevel, LogLevelLabel, Logger, Metadata, Metadata2, Node, Package, ProjectTokenizerOptions, Resolve, Rs, Rs2, StdioOptions, Target, Tree, applyDefaultConfig, applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens, basename, brandIcon, correctPaths, createConfigExtension, createLogger, createStormWorkspaceConfig, dirname, exitWithError, exitWithSuccess, extname, findFileName, findFilePath, findWorkspaceRoot, findWorkspaceRootSafe, format, formatErrorMessage, formatLogMessage, formatTimestamp, getChalk, getColor, getColors, getConfig, getConfigEnv, getConfigFile, getConfigFileByName, getExtensionEnv, getGradient, getLogFn, getLogLevel, getLogLevelLabel, getPackageJsonConfig, getStopwatch, getWorkspaceConfig, handleProcess, isAbsolute, isUnicodeSupported, isVerbose, joinPaths, loadStormWorkspaceConfig, modifyCargoNestedTable, modifyCargoTable, normalizeString, normalizeWindowsPath, parse, parseCargoToml, parseCargoTomlWithTree, relative, removeExtension, resolve, run, runAsync, sep, setConfigEnv, setExtensionEnv, stringifyCargoToml, toNamespacedPath, tryGetWorkspaceConfig, tryLoadStormWorkspaceConfig, writeDebug, writeError, writeFatal, writeInfo, writePerformance, writeSuccess, writeSystem, writeTrace, writeWarning };
|
package/dist/index.d.mts
CHANGED
|
@@ -21,9 +21,10 @@ import { DEFAULT_COLOR_CONFIG, getColor, getColors, getGradient } from "./utilit
|
|
|
21
21
|
import { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from "./utilities/correct-paths.mjs";
|
|
22
22
|
import { FindFileNameOptions, findFileName, findFilePath, removeExtension } from "./utilities/file-path-utils.mjs";
|
|
23
23
|
import { findWorkspaceRoot, findWorkspaceRootSafe } from "./utilities/find-workspace-root.mjs";
|
|
24
|
+
import { formatErrorMessage } from "./utilities/format-error-message.mjs";
|
|
24
25
|
import { applyDefaultConfig, getPackageJsonConfig } from "./utilities/get-default-config.mjs";
|
|
25
26
|
import { exitWithError, exitWithSuccess, handleProcess } from "./utilities/process-handler.mjs";
|
|
26
27
|
import { IOType, LARGE_BUFFER, StdioOptions, run, runAsync } from "./utilities/run.mjs";
|
|
27
28
|
import { CargoMetadata, CargoToml, Dep, DepKind, Dependency, Docs, Docs2, Features, Metadata, Metadata2, Node, Package, Resolve, Rs, Rs2, Target, Tree, modifyCargoNestedTable, modifyCargoTable, parseCargoToml, parseCargoTomlWithTree, stringifyCargoToml } from "./utilities/toml.mjs";
|
|
28
29
|
import "./utilities/index.mjs";
|
|
29
|
-
export { BaseTokenizerOptions, CONSOLE_ICONS, CargoMetadata, CargoToml, DEFAULT_COLOR_CONFIG, DeepPartial, Dep, DepKind, Dependency, Docs, Docs2, Features, FindFileNameOptions, FormatLogMessageOptions, GetChalkReturn, GetLogFnOptions, GetWorkspaceConfigOptions, IOType, LARGE_BUFFER, LogLevel, LogLevelLabel, Logger, Metadata, Metadata2, Node, Package, ProjectTokenizerOptions, Resolve, Rs, Rs2, StdioOptions, Target, Tree, applyDefaultConfig, applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens, basename, brandIcon, correctPaths, createConfigExtension, createLogger, createStormWorkspaceConfig, dirname, exitWithError, exitWithSuccess, extname, findFileName, findFilePath, findWorkspaceRoot, findWorkspaceRootSafe, format, formatLogMessage, formatTimestamp, getChalk, getColor, getColors, getConfig, getConfigEnv, getConfigFile, getConfigFileByName, getExtensionEnv, getGradient, getLogFn, getLogLevel, getLogLevelLabel, getPackageJsonConfig, getStopwatch, getWorkspaceConfig, handleProcess, isAbsolute, isUnicodeSupported, isVerbose, joinPaths, loadStormWorkspaceConfig, modifyCargoNestedTable, modifyCargoTable, normalizeString, normalizeWindowsPath, parse, parseCargoToml, parseCargoTomlWithTree, relative, removeExtension, resolve, run, runAsync, sep, setConfigEnv, setExtensionEnv, stringifyCargoToml, toNamespacedPath, tryGetWorkspaceConfig, tryLoadStormWorkspaceConfig, writeDebug, writeError, writeFatal, writeInfo, writePerformance, writeSuccess, writeSystem, writeTrace, writeWarning };
|
|
30
|
+
export { BaseTokenizerOptions, CONSOLE_ICONS, CargoMetadata, CargoToml, DEFAULT_COLOR_CONFIG, DeepPartial, Dep, DepKind, Dependency, Docs, Docs2, Features, FindFileNameOptions, FormatLogMessageOptions, GetChalkReturn, GetLogFnOptions, GetWorkspaceConfigOptions, IOType, LARGE_BUFFER, LogLevel, LogLevelLabel, Logger, Metadata, Metadata2, Node, Package, ProjectTokenizerOptions, Resolve, Rs, Rs2, StdioOptions, Target, Tree, applyDefaultConfig, applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens, basename, brandIcon, correctPaths, createConfigExtension, createLogger, createStormWorkspaceConfig, dirname, exitWithError, exitWithSuccess, extname, findFileName, findFilePath, findWorkspaceRoot, findWorkspaceRootSafe, format, formatErrorMessage, formatLogMessage, formatTimestamp, getChalk, getColor, getColors, getConfig, getConfigEnv, getConfigFile, getConfigFileByName, getExtensionEnv, getGradient, getLogFn, getLogLevel, getLogLevelLabel, getPackageJsonConfig, getStopwatch, getWorkspaceConfig, handleProcess, isAbsolute, isUnicodeSupported, isVerbose, joinPaths, loadStormWorkspaceConfig, modifyCargoNestedTable, modifyCargoTable, normalizeString, normalizeWindowsPath, parse, parseCargoToml, parseCargoTomlWithTree, relative, removeExtension, resolve, run, runAsync, sep, setConfigEnv, setExtensionEnv, stringifyCargoToml, toNamespacedPath, tryGetWorkspaceConfig, tryLoadStormWorkspaceConfig, writeDebug, writeError, writeFatal, writeInfo, writePerformance, writeSuccess, writeSystem, writeTrace, writeWarning };
|
package/dist/index.mjs
CHANGED
|
@@ -13,6 +13,7 @@ import { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths
|
|
|
13
13
|
import { findWorkspaceRoot, findWorkspaceRootSafe } from "./utilities/find-workspace-root.mjs";
|
|
14
14
|
import { applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens } from "./utilities/apply-workspace-tokens.mjs";
|
|
15
15
|
import { findFileName, findFilePath, removeExtension } from "./utilities/file-path-utils.mjs";
|
|
16
|
+
import { formatErrorMessage } from "./utilities/format-error-message.mjs";
|
|
16
17
|
import { applyDefaultConfig, getPackageJsonConfig } from "./utilities/get-default-config.mjs";
|
|
17
18
|
import { exitWithError, exitWithSuccess, handleProcess } from "./utilities/process-handler.mjs";
|
|
18
19
|
import { LARGE_BUFFER, run, runAsync } from "./utilities/run.mjs";
|
|
@@ -23,4 +24,4 @@ import { getConfigEnv, getExtensionEnv } from "./env/get-env.mjs";
|
|
|
23
24
|
import { setConfigEnv, setExtensionEnv } from "./env/set-env.mjs";
|
|
24
25
|
import { createConfigExtension, createStormWorkspaceConfig, loadStormWorkspaceConfig, tryLoadStormWorkspaceConfig } from "./create-storm-config.mjs";
|
|
25
26
|
import { getConfig, getWorkspaceConfig, tryGetWorkspaceConfig } from "./get-config.mjs";
|
|
26
|
-
export { CONSOLE_ICONS, DEFAULT_COLOR_CONFIG, LARGE_BUFFER, LogLevel, LogLevelLabel, applyDefaultConfig, applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens, basename, brandIcon, correctPaths, createConfigExtension, createLogger, createStormWorkspaceConfig, dirname, exitWithError, exitWithSuccess, extname, findFileName, findFilePath, findWorkspaceRoot, findWorkspaceRootSafe, format, formatLogMessage, formatTimestamp, getChalk, getColor, getColors, getConfig, getConfigEnv, getConfigFile, getConfigFileByName, getExtensionEnv, getGradient, getLogFn, getLogLevel, getLogLevelLabel, getPackageJsonConfig, getStopwatch, getWorkspaceConfig, handleProcess, isAbsolute, isUnicodeSupported, isVerbose, joinPaths, loadStormWorkspaceConfig, modifyCargoNestedTable, modifyCargoTable, normalizeString, normalizeWindowsPath, parse, parseCargoToml, parseCargoTomlWithTree, relative, removeExtension, resolve, run, runAsync, sep, setConfigEnv, setExtensionEnv, stringifyCargoToml, toNamespacedPath, tryGetWorkspaceConfig, tryLoadStormWorkspaceConfig, writeDebug, writeError, writeFatal, writeInfo, writePerformance, writeSuccess, writeSystem, writeTrace, writeWarning };
|
|
27
|
+
export { CONSOLE_ICONS, DEFAULT_COLOR_CONFIG, LARGE_BUFFER, LogLevel, LogLevelLabel, applyDefaultConfig, applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens, basename, brandIcon, correctPaths, createConfigExtension, createLogger, createStormWorkspaceConfig, dirname, exitWithError, exitWithSuccess, extname, findFileName, findFilePath, findWorkspaceRoot, findWorkspaceRootSafe, format, formatErrorMessage, formatLogMessage, formatTimestamp, getChalk, getColor, getColors, getConfig, getConfigEnv, getConfigFile, getConfigFileByName, getExtensionEnv, getGradient, getLogFn, getLogLevel, getLogLevelLabel, getPackageJsonConfig, getStopwatch, getWorkspaceConfig, handleProcess, isAbsolute, isUnicodeSupported, isVerbose, joinPaths, loadStormWorkspaceConfig, modifyCargoNestedTable, modifyCargoTable, normalizeString, normalizeWindowsPath, parse, parseCargoToml, parseCargoTomlWithTree, relative, removeExtension, resolve, run, runAsync, sep, setConfigEnv, setExtensionEnv, stringifyCargoToml, toNamespacedPath, tryGetWorkspaceConfig, tryLoadStormWorkspaceConfig, writeDebug, writeError, writeFatal, writeInfo, writePerformance, writeSuccess, writeSystem, writeTrace, writeWarning };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/utilities/format-error-message.ts
|
|
3
|
+
/**
|
|
4
|
+
* Format an unknown error value into a human-readable message.
|
|
5
|
+
*
|
|
6
|
+
* @param error - The error to format.
|
|
7
|
+
* @returns A formatted error message string.
|
|
8
|
+
*/
|
|
9
|
+
function formatErrorMessage(error) {
|
|
10
|
+
if (error == null) return "Unknown error";
|
|
11
|
+
if (typeof error === "string") return error;
|
|
12
|
+
if (error instanceof Error) {
|
|
13
|
+
const message = error.stack || error.message || error.name || "Unknown error";
|
|
14
|
+
if (error.cause) return `${message}\nCause: ${formatErrorMessage(error.cause)}`;
|
|
15
|
+
return message;
|
|
16
|
+
}
|
|
17
|
+
if (typeof error === "object" && "message" in error && typeof error.message === "string" && error.message) {
|
|
18
|
+
const stack = "stack" in error && typeof error.stack === "string" ? error.stack : "";
|
|
19
|
+
return stack ? `${error.message}\n${stack}` : error.message;
|
|
20
|
+
}
|
|
21
|
+
try {
|
|
22
|
+
return JSON.stringify(error, Object.getOwnPropertyNames(error), 2);
|
|
23
|
+
} catch {
|
|
24
|
+
return String(error);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.formatErrorMessage = formatErrorMessage;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/utilities/format-error-message.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Format an unknown error value into a human-readable message.
|
|
4
|
+
*
|
|
5
|
+
* @param error - The error to format.
|
|
6
|
+
* @returns A formatted error message string.
|
|
7
|
+
*/
|
|
8
|
+
declare function formatErrorMessage(error: unknown): string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { formatErrorMessage };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import __tsdown_shims_path from 'node:path';
|
|
2
|
+
import __tsdown_shims_url from 'node:url';
|
|
3
|
+
//#region src/utilities/format-error-message.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Format an unknown error value into a human-readable message.
|
|
6
|
+
*
|
|
7
|
+
* @param error - The error to format.
|
|
8
|
+
* @returns A formatted error message string.
|
|
9
|
+
*/
|
|
10
|
+
declare function formatErrorMessage(error: unknown): string;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { formatErrorMessage };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import "node:path";
|
|
2
|
+
import "node:url";
|
|
3
|
+
import.meta.url;
|
|
4
|
+
//#region src/utilities/format-error-message.ts
|
|
5
|
+
/**
|
|
6
|
+
* Format an unknown error value into a human-readable message.
|
|
7
|
+
*
|
|
8
|
+
* @param error - The error to format.
|
|
9
|
+
* @returns A formatted error message string.
|
|
10
|
+
*/
|
|
11
|
+
function formatErrorMessage(error) {
|
|
12
|
+
if (error == null) return "Unknown error";
|
|
13
|
+
if (typeof error === "string") return error;
|
|
14
|
+
if (error instanceof Error) {
|
|
15
|
+
const message = error.stack || error.message || error.name || "Unknown error";
|
|
16
|
+
if (error.cause) return `${message}\nCause: ${formatErrorMessage(error.cause)}`;
|
|
17
|
+
return message;
|
|
18
|
+
}
|
|
19
|
+
if (typeof error === "object" && "message" in error && typeof error.message === "string" && error.message) {
|
|
20
|
+
const stack = "stack" in error && typeof error.stack === "string" ? error.stack : "";
|
|
21
|
+
return stack ? `${error.message}\n${stack}` : error.message;
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
return JSON.stringify(error, Object.getOwnPropertyNames(error), 2);
|
|
25
|
+
} catch {
|
|
26
|
+
return String(error);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { formatErrorMessage };
|
package/dist/utilities/index.cjs
CHANGED
|
@@ -4,6 +4,7 @@ const require_utilities_correct_paths = require("./correct-paths.cjs");
|
|
|
4
4
|
const require_utilities_find_workspace_root = require("./find-workspace-root.cjs");
|
|
5
5
|
const require_utilities_apply_workspace_tokens = require("./apply-workspace-tokens.cjs");
|
|
6
6
|
const require_utilities_file_path_utils = require("./file-path-utils.cjs");
|
|
7
|
+
const require_utilities_format_error_message = require("./format-error-message.cjs");
|
|
7
8
|
const require_utilities_get_default_config = require("./get-default-config.cjs");
|
|
8
9
|
const require_utilities_process_handler = require("./process-handler.cjs");
|
|
9
10
|
const require_utilities_run = require("./run.cjs");
|
|
@@ -25,6 +26,7 @@ exports.findFilePath = require_utilities_file_path_utils.findFilePath;
|
|
|
25
26
|
exports.findWorkspaceRoot = require_utilities_find_workspace_root.findWorkspaceRoot;
|
|
26
27
|
exports.findWorkspaceRootSafe = require_utilities_find_workspace_root.findWorkspaceRootSafe;
|
|
27
28
|
exports.format = require_utilities_correct_paths.format;
|
|
29
|
+
exports.formatErrorMessage = require_utilities_format_error_message.formatErrorMessage;
|
|
28
30
|
exports.getColor = require_utilities_colors.getColor;
|
|
29
31
|
exports.getColors = require_utilities_colors.getColors;
|
|
30
32
|
exports.getGradient = require_utilities_colors.getGradient;
|
|
@@ -3,8 +3,9 @@ import { DEFAULT_COLOR_CONFIG, getColor, getColors, getGradient } from "./colors
|
|
|
3
3
|
import { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from "./correct-paths.cjs";
|
|
4
4
|
import { FindFileNameOptions, findFileName, findFilePath, removeExtension } from "./file-path-utils.cjs";
|
|
5
5
|
import { findWorkspaceRoot, findWorkspaceRootSafe } from "./find-workspace-root.cjs";
|
|
6
|
+
import { formatErrorMessage } from "./format-error-message.cjs";
|
|
6
7
|
import { applyDefaultConfig, getPackageJsonConfig } from "./get-default-config.cjs";
|
|
7
8
|
import { exitWithError, exitWithSuccess, handleProcess } from "./process-handler.cjs";
|
|
8
9
|
import { IOType, LARGE_BUFFER, StdioOptions, run, runAsync } from "./run.cjs";
|
|
9
10
|
import { CargoMetadata, CargoToml, Dep, DepKind, Dependency, Docs, Docs2, Features, Metadata, Metadata2, Node, Package, Resolve, Rs, Rs2, Target, Tree, modifyCargoNestedTable, modifyCargoTable, parseCargoToml, parseCargoTomlWithTree, stringifyCargoToml } from "./toml.cjs";
|
|
10
|
-
export { CargoMetadata, CargoToml, DEFAULT_COLOR_CONFIG, Dep, DepKind, Dependency, Docs, Docs2, Features, FindFileNameOptions, IOType, LARGE_BUFFER, Metadata, Metadata2, Node, Package, Resolve, Rs, Rs2, StdioOptions, Target, Tree, applyDefaultConfig, applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens, basename, correctPaths, dirname, exitWithError, exitWithSuccess, extname, findFileName, findFilePath, findWorkspaceRoot, findWorkspaceRootSafe, format, getColor, getColors, getGradient, getPackageJsonConfig, handleProcess, isAbsolute, joinPaths, modifyCargoNestedTable, modifyCargoTable, normalizeString, normalizeWindowsPath, parse, parseCargoToml, parseCargoTomlWithTree, relative, removeExtension, resolve, run, runAsync, sep, stringifyCargoToml, toNamespacedPath };
|
|
11
|
+
export { CargoMetadata, CargoToml, DEFAULT_COLOR_CONFIG, Dep, DepKind, Dependency, Docs, Docs2, Features, FindFileNameOptions, IOType, LARGE_BUFFER, Metadata, Metadata2, Node, Package, Resolve, Rs, Rs2, StdioOptions, Target, Tree, applyDefaultConfig, applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens, basename, correctPaths, dirname, exitWithError, exitWithSuccess, extname, findFileName, findFilePath, findWorkspaceRoot, findWorkspaceRootSafe, format, formatErrorMessage, getColor, getColors, getGradient, getPackageJsonConfig, handleProcess, isAbsolute, joinPaths, modifyCargoNestedTable, modifyCargoTable, normalizeString, normalizeWindowsPath, parse, parseCargoToml, parseCargoTomlWithTree, relative, removeExtension, resolve, run, runAsync, sep, stringifyCargoToml, toNamespacedPath };
|
|
@@ -5,8 +5,9 @@ import { DEFAULT_COLOR_CONFIG, getColor, getColors, getGradient } from "./colors
|
|
|
5
5
|
import { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from "./correct-paths.mjs";
|
|
6
6
|
import { FindFileNameOptions, findFileName, findFilePath, removeExtension } from "./file-path-utils.mjs";
|
|
7
7
|
import { findWorkspaceRoot, findWorkspaceRootSafe } from "./find-workspace-root.mjs";
|
|
8
|
+
import { formatErrorMessage } from "./format-error-message.mjs";
|
|
8
9
|
import { applyDefaultConfig, getPackageJsonConfig } from "./get-default-config.mjs";
|
|
9
10
|
import { exitWithError, exitWithSuccess, handleProcess } from "./process-handler.mjs";
|
|
10
11
|
import { IOType, LARGE_BUFFER, StdioOptions, run, runAsync } from "./run.mjs";
|
|
11
12
|
import { CargoMetadata, CargoToml, Dep, DepKind, Dependency, Docs, Docs2, Features, Metadata, Metadata2, Node, Package, Resolve, Rs, Rs2, Target, Tree, modifyCargoNestedTable, modifyCargoTable, parseCargoToml, parseCargoTomlWithTree, stringifyCargoToml } from "./toml.mjs";
|
|
12
|
-
export { CargoMetadata, CargoToml, DEFAULT_COLOR_CONFIG, Dep, DepKind, Dependency, Docs, Docs2, Features, FindFileNameOptions, IOType, LARGE_BUFFER, Metadata, Metadata2, Node, Package, Resolve, Rs, Rs2, StdioOptions, Target, Tree, applyDefaultConfig, applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens, basename, correctPaths, dirname, exitWithError, exitWithSuccess, extname, findFileName, findFilePath, findWorkspaceRoot, findWorkspaceRootSafe, format, getColor, getColors, getGradient, getPackageJsonConfig, handleProcess, isAbsolute, joinPaths, modifyCargoNestedTable, modifyCargoTable, normalizeString, normalizeWindowsPath, parse, parseCargoToml, parseCargoTomlWithTree, relative, removeExtension, resolve, run, runAsync, sep, stringifyCargoToml, toNamespacedPath };
|
|
13
|
+
export { CargoMetadata, CargoToml, DEFAULT_COLOR_CONFIG, Dep, DepKind, Dependency, Docs, Docs2, Features, FindFileNameOptions, IOType, LARGE_BUFFER, Metadata, Metadata2, Node, Package, Resolve, Rs, Rs2, StdioOptions, Target, Tree, applyDefaultConfig, applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens, basename, correctPaths, dirname, exitWithError, exitWithSuccess, extname, findFileName, findFilePath, findWorkspaceRoot, findWorkspaceRootSafe, format, formatErrorMessage, getColor, getColors, getGradient, getPackageJsonConfig, handleProcess, isAbsolute, joinPaths, modifyCargoNestedTable, modifyCargoTable, normalizeString, normalizeWindowsPath, parse, parseCargoToml, parseCargoTomlWithTree, relative, removeExtension, resolve, run, runAsync, sep, stringifyCargoToml, toNamespacedPath };
|
package/dist/utilities/index.mjs
CHANGED
|
@@ -6,8 +6,9 @@ import { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths
|
|
|
6
6
|
import { findWorkspaceRoot, findWorkspaceRootSafe } from "./find-workspace-root.mjs";
|
|
7
7
|
import { applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens } from "./apply-workspace-tokens.mjs";
|
|
8
8
|
import { findFileName, findFilePath, removeExtension } from "./file-path-utils.mjs";
|
|
9
|
+
import { formatErrorMessage } from "./format-error-message.mjs";
|
|
9
10
|
import { applyDefaultConfig, getPackageJsonConfig } from "./get-default-config.mjs";
|
|
10
11
|
import { exitWithError, exitWithSuccess, handleProcess } from "./process-handler.mjs";
|
|
11
12
|
import { LARGE_BUFFER, run, runAsync } from "./run.mjs";
|
|
12
13
|
import { modifyCargoNestedTable, modifyCargoTable, parseCargoToml, parseCargoTomlWithTree, stringifyCargoToml } from "./toml.mjs";
|
|
13
|
-
export { DEFAULT_COLOR_CONFIG, LARGE_BUFFER, applyDefaultConfig, applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens, basename, correctPaths, dirname, exitWithError, exitWithSuccess, extname, findFileName, findFilePath, findWorkspaceRoot, findWorkspaceRootSafe, format, getColor, getColors, getGradient, getPackageJsonConfig, handleProcess, isAbsolute, joinPaths, modifyCargoNestedTable, modifyCargoTable, normalizeString, normalizeWindowsPath, parse, parseCargoToml, parseCargoTomlWithTree, relative, removeExtension, resolve, run, runAsync, sep, stringifyCargoToml, toNamespacedPath };
|
|
14
|
+
export { DEFAULT_COLOR_CONFIG, LARGE_BUFFER, applyDefaultConfig, applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens, basename, correctPaths, dirname, exitWithError, exitWithSuccess, extname, findFileName, findFilePath, findWorkspaceRoot, findWorkspaceRootSafe, format, formatErrorMessage, getColor, getColors, getGradient, getPackageJsonConfig, handleProcess, isAbsolute, joinPaths, modifyCargoNestedTable, modifyCargoTable, normalizeString, normalizeWindowsPath, parse, parseCargoToml, parseCargoTomlWithTree, relative, removeExtension, resolve, run, runAsync, sep, stringifyCargoToml, toNamespacedPath };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config-tools",
|
|
3
|
-
"version": "1.190.
|
|
3
|
+
"version": "1.190.130",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing various utilities to support custom workspace configurations and environment management for Storm Software projects, including configuration file handling, environment variable management, and logging utilities.",
|
|
6
6
|
"keywords": [
|
|
@@ -131,6 +131,10 @@
|
|
|
131
131
|
"import": "./dist/utilities/find-workspace-root.mjs",
|
|
132
132
|
"require": "./dist/utilities/find-workspace-root.cjs"
|
|
133
133
|
},
|
|
134
|
+
"./utilities/format-error-message": {
|
|
135
|
+
"import": "./dist/utilities/format-error-message.mjs",
|
|
136
|
+
"require": "./dist/utilities/format-error-message.cjs"
|
|
137
|
+
},
|
|
134
138
|
"./utilities/get-default-config": {
|
|
135
139
|
"import": "./dist/utilities/get-default-config.mjs",
|
|
136
140
|
"require": "./dist/utilities/get-default-config.cjs"
|
|
@@ -160,7 +164,7 @@
|
|
|
160
164
|
"files": ["dist"],
|
|
161
165
|
"dependencies": {
|
|
162
166
|
"@ltd/j-toml": "1.38.0",
|
|
163
|
-
"@storm-software/config": "1.138.
|
|
167
|
+
"@storm-software/config": "1.138.66",
|
|
164
168
|
"c12": "^2.0.4",
|
|
165
169
|
"chalk": "^4.1.2",
|
|
166
170
|
"commander": "^12.1.0",
|
|
@@ -178,5 +182,5 @@
|
|
|
178
182
|
"peerDependencies": { "zod": "^3.25.0 || ^4.0.0" },
|
|
179
183
|
"peerDependenciesMeta": { "zod": { "optional": false } },
|
|
180
184
|
"publishConfig": { "access": "public" },
|
|
181
|
-
"gitHead": "
|
|
185
|
+
"gitHead": "b3610288676ae47050ac033eedc50101e75171f8"
|
|
182
186
|
}
|