@storm-software/config-tools 1.190.120 → 1.190.121
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/bin/config.cjs +1272 -105
- package/bin/config.mjs +1271 -0
- package/dist/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/config-file/get-config-file.cjs +63 -79
- package/dist/config-file/get-config-file.d.cts +5 -5
- package/dist/config-file/{get-config-file.d.ts → get-config-file.d.mts} +7 -5
- package/dist/config-file/get-config-file.mjs +66 -0
- package/dist/config-file/index.cjs +4 -1
- package/dist/config-file/index.d.cts +2 -3
- package/dist/config-file/index.d.mts +4 -0
- package/dist/config-file/index.mjs +5 -0
- package/dist/create-storm-config.cjs +105 -136
- package/dist/create-storm-config.d.cts +5 -5
- package/dist/{create-storm-config.d.ts → create-storm-config.d.mts} +7 -5
- package/dist/create-storm-config.mjs +113 -0
- package/dist/env/get-env.cjs +190 -214
- package/dist/env/get-env.d.cts +5 -5
- package/dist/env/{get-env.d.ts → get-env.d.mts} +7 -5
- package/dist/env/get-env.mjs +203 -0
- package/dist/env/index.cjs +7 -2
- package/dist/env/index.d.cts +3 -4
- package/dist/env/index.d.mts +5 -0
- package/dist/env/index.mjs +6 -0
- package/dist/env/set-env.cjs +218 -374
- package/dist/env/set-env.d.cts +8 -8
- package/dist/env/{set-env.d.ts → set-env.d.mts} +10 -8
- package/dist/env/set-env.mjs +231 -0
- package/dist/get-config.cjs +40 -29
- package/dist/get-config.d.cts +18 -18
- package/dist/{get-config.d.ts → get-config.d.mts} +20 -18
- package/dist/get-config.mjs +46 -0
- package/dist/index.cjs +98 -7
- package/dist/index.d.cts +27 -28
- package/dist/index.d.mts +29 -0
- package/dist/index.mjs +26 -0
- package/dist/logger/chalk.cjs +38 -29
- package/dist/logger/chalk.d.cts +18 -17
- package/dist/logger/chalk.d.mts +37 -0
- package/dist/logger/chalk.mjs +43 -0
- package/dist/logger/console-icons.cjs +15 -14
- package/dist/logger/console-icons.d.cts +5 -8
- package/dist/logger/console-icons.d.mts +7 -0
- package/dist/logger/console-icons.mjs +20 -0
- package/dist/logger/console.cjs +187 -183
- package/dist/logger/console.d.cts +25 -25
- package/dist/logger/{console.d.ts → console.d.mts} +27 -25
- package/dist/logger/console.mjs +185 -0
- package/dist/logger/create-logger.cjs +31 -24
- package/dist/logger/create-logger.d.cts +5 -6
- package/dist/logger/{create-logger.d.ts → create-logger.d.mts} +7 -6
- package/dist/logger/create-logger.mjs +34 -0
- package/dist/logger/format-timestamp.cjs +12 -4
- package/dist/logger/format-timestamp.d.cts +3 -2
- package/dist/logger/{format-timestamp.d.ts → format-timestamp.d.mts} +5 -2
- package/dist/logger/format-timestamp.mjs +16 -0
- package/dist/logger/get-log-level.cjs +50 -60
- package/dist/logger/get-log-level.d.cts +4 -5
- package/dist/logger/{get-log-level.d.ts → get-log-level.d.mts} +6 -5
- package/dist/logger/get-log-level.mjs +54 -0
- package/dist/logger/index.cjs +29 -7
- package/dist/logger/index.d.cts +8 -10
- package/dist/logger/index.d.mts +10 -0
- package/dist/logger/index.mjs +11 -0
- package/dist/logger/is-unicode-supported.cjs +6 -10
- package/dist/logger/is-unicode-supported.d.cts +3 -2
- package/dist/logger/is-unicode-supported.d.mts +6 -0
- package/dist/logger/is-unicode-supported.mjs +10 -0
- package/dist/types.cjs +26 -25
- package/dist/types.d.cts +39 -41
- package/dist/types.d.mts +53 -0
- package/dist/types.mjs +30 -0
- package/dist/utilities/apply-workspace-tokens.cjs +31 -70
- package/dist/utilities/apply-workspace-tokens.d.cts +4 -5
- package/dist/utilities/{apply-workspace-tokens.d.ts → apply-workspace-tokens.d.mts} +6 -5
- package/dist/utilities/apply-workspace-tokens.mjs +37 -0
- package/dist/utilities/colors.cjs +91 -74
- package/dist/utilities/colors.d.cts +4 -4
- package/dist/utilities/{colors.d.ts → colors.d.mts} +6 -4
- package/dist/utilities/colors.mjs +97 -0
- package/dist/utilities/correct-paths.cjs +166 -196
- package/dist/utilities/correct-paths.d.cts +4 -4
- package/dist/utilities/{correct-paths.d.ts → correct-paths.d.mts} +6 -4
- package/dist/utilities/correct-paths.mjs +190 -0
- package/dist/utilities/file-path-utils.cjs +42 -27
- package/dist/utilities/file-path-utils.d.cts +15 -14
- package/dist/utilities/{file-path-utils.d.ts → file-path-utils.d.mts} +17 -14
- package/dist/utilities/file-path-utils.mjs +48 -0
- package/dist/utilities/find-up.cjs +12 -18
- package/dist/utilities/find-up.d.cts +3 -2
- package/dist/utilities/{find-up.d.ts → find-up.d.mts} +5 -2
- package/dist/utilities/find-up.mjs +19 -0
- package/dist/utilities/find-workspace-root.cjs +64 -69
- package/dist/utilities/find-workspace-root.d.cts +3 -2
- package/dist/utilities/{find-workspace-root.d.ts → find-workspace-root.d.mts} +5 -2
- package/dist/utilities/find-workspace-root.mjs +73 -0
- package/dist/utilities/get-default-config.cjs +69 -91
- package/dist/utilities/get-default-config.d.cts +4 -4
- package/dist/utilities/{get-default-config.d.ts → get-default-config.d.mts} +6 -4
- package/dist/utilities/get-default-config.mjs +74 -0
- package/dist/utilities/index.cjs +49 -9
- package/dist/utilities/index.d.cts +10 -14
- package/dist/utilities/index.d.mts +12 -0
- package/dist/utilities/index.mjs +13 -0
- package/dist/utilities/process-handler.cjs +32 -47
- package/dist/utilities/process-handler.d.cts +4 -4
- package/dist/utilities/process-handler.d.mts +9 -0
- package/dist/utilities/process-handler.mjs +38 -0
- package/dist/utilities/run.cjs +62 -36
- package/dist/utilities/run.d.cts +5 -6
- package/dist/utilities/{run.d.ts → run.d.mts} +7 -6
- package/dist/utilities/run.mjs +64 -0
- package/dist/utilities/toml.cjs +27 -32
- package/dist/utilities/toml.d.cts +148 -147
- package/dist/utilities/toml.d.mts +192 -0
- package/dist/utilities/toml.mjs +33 -0
- package/package.json +105 -157
- package/bin/config.js +0 -108
- package/dist/config-file/get-config-file.js +0 -83
- package/dist/config-file/index.d.ts +0 -3
- package/dist/config-file/index.js +0 -1
- package/dist/create-storm-config.js +0 -147
- package/dist/env/get-env.js +0 -226
- package/dist/env/index.d.ts +0 -4
- package/dist/env/index.js +0 -2
- package/dist/env/set-env.js +0 -386
- package/dist/get-config.js +0 -35
- package/dist/index.d.ts +0 -28
- package/dist/index.js +0 -7
- package/dist/logger/chalk.d.ts +0 -34
- package/dist/logger/chalk.js +0 -34
- package/dist/logger/console-icons.d.ts +0 -8
- package/dist/logger/console-icons.js +0 -17
- package/dist/logger/console.js +0 -191
- package/dist/logger/create-logger.js +0 -27
- package/dist/logger/format-timestamp.js +0 -6
- package/dist/logger/get-log-level.js +0 -64
- package/dist/logger/index.d.ts +0 -10
- package/dist/logger/index.js +0 -7
- package/dist/logger/is-unicode-supported.d.ts +0 -3
- package/dist/logger/is-unicode-supported.js +0 -12
- package/dist/types.d.ts +0 -53
- package/dist/types.js +0 -28
- package/dist/utilities/apply-workspace-tokens.js +0 -76
- package/dist/utilities/colors.js +0 -81
- package/dist/utilities/correct-paths.js +0 -231
- package/dist/utilities/file-path-utils.js +0 -33
- package/dist/utilities/find-up.js +0 -23
- package/dist/utilities/find-workspace-root.js +0 -77
- package/dist/utilities/get-default-config.js +0 -95
- package/dist/utilities/index.d.ts +0 -14
- package/dist/utilities/index.js +0 -9
- package/dist/utilities/process-handler.d.ts +0 -7
- package/dist/utilities/process-handler.js +0 -53
- package/dist/utilities/run.js +0 -38
- package/dist/utilities/toml.d.ts +0 -189
- package/dist/utilities/toml.js +0 -42
package/dist/index.d.cts
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
|
|
28
|
-
import 'node:child_process';
|
|
1
|
+
import { getConfigFile, getConfigFileByName } from "./config-file/get-config-file.cjs";
|
|
2
|
+
import "./config-file/index.cjs";
|
|
3
|
+
import { createConfigExtension, createStormWorkspaceConfig, loadStormWorkspaceConfig, tryLoadStormWorkspaceConfig } from "./create-storm-config.cjs";
|
|
4
|
+
import { BaseTokenizerOptions, DeepPartial, LogLevel, LogLevelLabel, Logger, ProjectTokenizerOptions } from "./types.cjs";
|
|
5
|
+
import { getConfigEnv, getExtensionEnv } from "./env/get-env.cjs";
|
|
6
|
+
import { setConfigEnv, setExtensionEnv } from "./env/set-env.cjs";
|
|
7
|
+
import "./env/index.cjs";
|
|
8
|
+
import { GetWorkspaceConfigOptions, getConfig, getWorkspaceConfig, tryGetWorkspaceConfig } from "./get-config.cjs";
|
|
9
|
+
import { GetChalkReturn, getChalk } from "./logger/chalk.cjs";
|
|
10
|
+
import { FormatLogMessageOptions, GetLogFnOptions, brandIcon, formatLogMessage, getLogFn, getStopwatch, writeDebug, writeError, writeFatal, writeInfo, writePerformance, writeSuccess, writeSystem, writeTrace, writeWarning } from "./logger/console.cjs";
|
|
11
|
+
import { CONSOLE_ICONS } from "./logger/console-icons.cjs";
|
|
12
|
+
import { createLogger } from "./logger/create-logger.cjs";
|
|
13
|
+
import { formatTimestamp } from "./logger/format-timestamp.cjs";
|
|
14
|
+
import { getLogLevel, getLogLevelLabel, isVerbose } from "./logger/get-log-level.cjs";
|
|
15
|
+
import { isUnicodeSupported } from "./logger/is-unicode-supported.cjs";
|
|
16
|
+
import "./logger/index.cjs";
|
|
17
|
+
import { applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens } from "./utilities/apply-workspace-tokens.cjs";
|
|
18
|
+
import { DEFAULT_COLOR_CONFIG, getColor, getColors, getGradient } from "./utilities/colors.cjs";
|
|
19
|
+
import { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from "./utilities/correct-paths.cjs";
|
|
20
|
+
import { FindFileNameOptions, findFileName, findFilePath, removeExtension } from "./utilities/file-path-utils.cjs";
|
|
21
|
+
import { findWorkspaceRoot, findWorkspaceRootSafe } from "./utilities/find-workspace-root.cjs";
|
|
22
|
+
import { applyDefaultConfig, getPackageJsonConfig } from "./utilities/get-default-config.cjs";
|
|
23
|
+
import { exitWithError, exitWithSuccess, handleProcess } from "./utilities/process-handler.cjs";
|
|
24
|
+
import { IOType, LARGE_BUFFER, StdioOptions, run, runAsync } from "./utilities/run.cjs";
|
|
25
|
+
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
|
+
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 };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import __tsdown_shims_path from 'node:path';
|
|
2
|
+
import __tsdown_shims_url from 'node:url';
|
|
3
|
+
import { getConfigFile, getConfigFileByName } from "./config-file/get-config-file.mjs";
|
|
4
|
+
import "./config-file/index.mjs";
|
|
5
|
+
import { createConfigExtension, createStormWorkspaceConfig, loadStormWorkspaceConfig, tryLoadStormWorkspaceConfig } from "./create-storm-config.mjs";
|
|
6
|
+
import { BaseTokenizerOptions, DeepPartial, LogLevel, LogLevelLabel, Logger, ProjectTokenizerOptions } from "./types.mjs";
|
|
7
|
+
import { getConfigEnv, getExtensionEnv } from "./env/get-env.mjs";
|
|
8
|
+
import { setConfigEnv, setExtensionEnv } from "./env/set-env.mjs";
|
|
9
|
+
import "./env/index.mjs";
|
|
10
|
+
import { GetWorkspaceConfigOptions, getConfig, getWorkspaceConfig, tryGetWorkspaceConfig } from "./get-config.mjs";
|
|
11
|
+
import { GetChalkReturn, getChalk } from "./logger/chalk.mjs";
|
|
12
|
+
import { FormatLogMessageOptions, GetLogFnOptions, brandIcon, formatLogMessage, getLogFn, getStopwatch, writeDebug, writeError, writeFatal, writeInfo, writePerformance, writeSuccess, writeSystem, writeTrace, writeWarning } from "./logger/console.mjs";
|
|
13
|
+
import { CONSOLE_ICONS } from "./logger/console-icons.mjs";
|
|
14
|
+
import { createLogger } from "./logger/create-logger.mjs";
|
|
15
|
+
import { formatTimestamp } from "./logger/format-timestamp.mjs";
|
|
16
|
+
import { getLogLevel, getLogLevelLabel, isVerbose } from "./logger/get-log-level.mjs";
|
|
17
|
+
import { isUnicodeSupported } from "./logger/is-unicode-supported.mjs";
|
|
18
|
+
import "./logger/index.mjs";
|
|
19
|
+
import { applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens } from "./utilities/apply-workspace-tokens.mjs";
|
|
20
|
+
import { DEFAULT_COLOR_CONFIG, getColor, getColors, getGradient } from "./utilities/colors.mjs";
|
|
21
|
+
import { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from "./utilities/correct-paths.mjs";
|
|
22
|
+
import { FindFileNameOptions, findFileName, findFilePath, removeExtension } from "./utilities/file-path-utils.mjs";
|
|
23
|
+
import { findWorkspaceRoot, findWorkspaceRootSafe } from "./utilities/find-workspace-root.mjs";
|
|
24
|
+
import { applyDefaultConfig, getPackageJsonConfig } from "./utilities/get-default-config.mjs";
|
|
25
|
+
import { exitWithError, exitWithSuccess, handleProcess } from "./utilities/process-handler.mjs";
|
|
26
|
+
import { IOType, LARGE_BUFFER, StdioOptions, run, runAsync } from "./utilities/run.mjs";
|
|
27
|
+
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
|
+
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 };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import "node:path";
|
|
2
|
+
import "node:url";
|
|
3
|
+
import.meta.url;
|
|
4
|
+
import { LogLevel, LogLevelLabel } from "./types.mjs";
|
|
5
|
+
import { DEFAULT_COLOR_CONFIG, getColor, getColors, getGradient } from "./utilities/colors.mjs";
|
|
6
|
+
import { getChalk } from "./logger/chalk.mjs";
|
|
7
|
+
import { isUnicodeSupported } from "./logger/is-unicode-supported.mjs";
|
|
8
|
+
import { CONSOLE_ICONS } from "./logger/console-icons.mjs";
|
|
9
|
+
import { formatTimestamp } from "./logger/format-timestamp.mjs";
|
|
10
|
+
import { getLogLevel, getLogLevelLabel, isVerbose } from "./logger/get-log-level.mjs";
|
|
11
|
+
import { brandIcon, formatLogMessage, getLogFn, getStopwatch, writeDebug, writeError, writeFatal, writeInfo, writePerformance, writeSuccess, writeSystem, writeTrace, writeWarning } from "./logger/console.mjs";
|
|
12
|
+
import { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from "./utilities/correct-paths.mjs";
|
|
13
|
+
import { findWorkspaceRoot, findWorkspaceRootSafe } from "./utilities/find-workspace-root.mjs";
|
|
14
|
+
import { applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens } from "./utilities/apply-workspace-tokens.mjs";
|
|
15
|
+
import { findFileName, findFilePath, removeExtension } from "./utilities/file-path-utils.mjs";
|
|
16
|
+
import { applyDefaultConfig, getPackageJsonConfig } from "./utilities/get-default-config.mjs";
|
|
17
|
+
import { exitWithError, exitWithSuccess, handleProcess } from "./utilities/process-handler.mjs";
|
|
18
|
+
import { LARGE_BUFFER, run, runAsync } from "./utilities/run.mjs";
|
|
19
|
+
import { createLogger } from "./logger/create-logger.mjs";
|
|
20
|
+
import { modifyCargoNestedTable, modifyCargoTable, parseCargoToml, parseCargoTomlWithTree, stringifyCargoToml } from "./utilities/toml.mjs";
|
|
21
|
+
import { getConfigFile, getConfigFileByName } from "./config-file/get-config-file.mjs";
|
|
22
|
+
import { getConfigEnv, getExtensionEnv } from "./env/get-env.mjs";
|
|
23
|
+
import { setConfigEnv, setExtensionEnv } from "./env/set-env.mjs";
|
|
24
|
+
import { createConfigExtension, createStormWorkspaceConfig, loadStormWorkspaceConfig, tryLoadStormWorkspaceConfig } from "./create-storm-config.mjs";
|
|
25
|
+
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 };
|
package/dist/logger/chalk.cjs
CHANGED
|
@@ -1,34 +1,43 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
let chalk = require("chalk");
|
|
4
|
+
chalk = require_runtime.__toESM(chalk, 1);
|
|
5
|
+
//#region src/logger/chalk.ts
|
|
2
6
|
const chalkDefault = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
7
|
+
hex: (_) => (message) => message,
|
|
8
|
+
bgHex: (_) => ({
|
|
9
|
+
whiteBright: (message) => message,
|
|
10
|
+
white: (message) => message
|
|
11
|
+
}),
|
|
12
|
+
white: (message) => message,
|
|
13
|
+
whiteBright: (message) => message,
|
|
14
|
+
gray: (message) => message,
|
|
15
|
+
bold: {
|
|
16
|
+
hex: (_) => (message) => message,
|
|
17
|
+
bgHex: (_) => ({
|
|
18
|
+
whiteBright: (message) => message,
|
|
19
|
+
white: (message) => message
|
|
20
|
+
}),
|
|
21
|
+
whiteBright: (message) => message,
|
|
22
|
+
white: (message) => message
|
|
23
|
+
},
|
|
24
|
+
dim: {
|
|
25
|
+
hex: (_) => (message) => message,
|
|
26
|
+
gray: (message) => message
|
|
27
|
+
}
|
|
24
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Get the chalk instance
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Annoying polyfill to temporarily fix the issue with the `chalk` import
|
|
34
|
+
*
|
|
35
|
+
* @returns The chalk instance
|
|
36
|
+
*/
|
|
25
37
|
const getChalk = () => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
return _chalk;
|
|
38
|
+
let _chalk = chalk.default;
|
|
39
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) _chalk = chalkDefault;
|
|
40
|
+
return _chalk;
|
|
31
41
|
};
|
|
32
|
-
|
|
33
|
-
|
|
42
|
+
//#endregion
|
|
34
43
|
exports.getChalk = getChalk;
|
package/dist/logger/chalk.d.cts
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
+
//#region src/logger/chalk.d.ts
|
|
1
2
|
type GetChalkReturn = {
|
|
3
|
+
hex: (_: string) => (message?: string) => string | undefined;
|
|
4
|
+
bgHex: (_: string) => {
|
|
5
|
+
whiteBright: (message?: string) => string | undefined;
|
|
6
|
+
white: (message?: string) => string | undefined;
|
|
7
|
+
};
|
|
8
|
+
whiteBright: (message?: string) => string | undefined;
|
|
9
|
+
white: (message?: string) => string | undefined;
|
|
10
|
+
gray: (message?: string) => string | undefined;
|
|
11
|
+
bold: {
|
|
2
12
|
hex: (_: string) => (message?: string) => string | undefined;
|
|
3
13
|
bgHex: (_: string) => {
|
|
4
|
-
|
|
5
|
-
|
|
14
|
+
whiteBright: (message?: string) => string | undefined;
|
|
15
|
+
white: (message?: string) => string | undefined;
|
|
6
16
|
};
|
|
7
17
|
whiteBright: (message?: string) => string | undefined;
|
|
8
18
|
white: (message?: string) => string | undefined;
|
|
19
|
+
};
|
|
20
|
+
dim: {
|
|
21
|
+
hex: (_: string) => (message?: string) => string | undefined;
|
|
9
22
|
gray: (message?: string) => string | undefined;
|
|
10
|
-
|
|
11
|
-
hex: (_: string) => (message?: string) => string | undefined;
|
|
12
|
-
bgHex: (_: string) => {
|
|
13
|
-
whiteBright: (message?: string) => string | undefined;
|
|
14
|
-
white: (message?: string) => string | undefined;
|
|
15
|
-
};
|
|
16
|
-
whiteBright: (message?: string) => string | undefined;
|
|
17
|
-
white: (message?: string) => string | undefined;
|
|
18
|
-
};
|
|
19
|
-
dim: {
|
|
20
|
-
hex: (_: string) => (message?: string) => string | undefined;
|
|
21
|
-
gray: (message?: string) => string | undefined;
|
|
22
|
-
};
|
|
23
|
+
};
|
|
23
24
|
};
|
|
24
25
|
/**
|
|
25
26
|
* Get the chalk instance
|
|
@@ -30,5 +31,5 @@ type GetChalkReturn = {
|
|
|
30
31
|
* @returns The chalk instance
|
|
31
32
|
*/
|
|
32
33
|
declare const getChalk: () => GetChalkReturn;
|
|
33
|
-
|
|
34
|
-
export {
|
|
34
|
+
//#endregion
|
|
35
|
+
export { GetChalkReturn, getChalk };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import __tsdown_shims_path from 'node:path';
|
|
2
|
+
import __tsdown_shims_url from 'node:url';
|
|
3
|
+
//#region src/logger/chalk.d.ts
|
|
4
|
+
type GetChalkReturn = {
|
|
5
|
+
hex: (_: string) => (message?: string) => string | undefined;
|
|
6
|
+
bgHex: (_: string) => {
|
|
7
|
+
whiteBright: (message?: string) => string | undefined;
|
|
8
|
+
white: (message?: string) => string | undefined;
|
|
9
|
+
};
|
|
10
|
+
whiteBright: (message?: string) => string | undefined;
|
|
11
|
+
white: (message?: string) => string | undefined;
|
|
12
|
+
gray: (message?: string) => string | undefined;
|
|
13
|
+
bold: {
|
|
14
|
+
hex: (_: string) => (message?: string) => string | undefined;
|
|
15
|
+
bgHex: (_: string) => {
|
|
16
|
+
whiteBright: (message?: string) => string | undefined;
|
|
17
|
+
white: (message?: string) => string | undefined;
|
|
18
|
+
};
|
|
19
|
+
whiteBright: (message?: string) => string | undefined;
|
|
20
|
+
white: (message?: string) => string | undefined;
|
|
21
|
+
};
|
|
22
|
+
dim: {
|
|
23
|
+
hex: (_: string) => (message?: string) => string | undefined;
|
|
24
|
+
gray: (message?: string) => string | undefined;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Get the chalk instance
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Annoying polyfill to temporarily fix the issue with the `chalk` import
|
|
32
|
+
*
|
|
33
|
+
* @returns The chalk instance
|
|
34
|
+
*/
|
|
35
|
+
declare const getChalk: () => GetChalkReturn;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { GetChalkReturn, getChalk };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import "node:path";
|
|
2
|
+
import "node:url";
|
|
3
|
+
import.meta.url;
|
|
4
|
+
import chalk from "chalk";
|
|
5
|
+
//#region src/logger/chalk.ts
|
|
6
|
+
const chalkDefault = {
|
|
7
|
+
hex: (_) => (message) => message,
|
|
8
|
+
bgHex: (_) => ({
|
|
9
|
+
whiteBright: (message) => message,
|
|
10
|
+
white: (message) => message
|
|
11
|
+
}),
|
|
12
|
+
white: (message) => message,
|
|
13
|
+
whiteBright: (message) => message,
|
|
14
|
+
gray: (message) => message,
|
|
15
|
+
bold: {
|
|
16
|
+
hex: (_) => (message) => message,
|
|
17
|
+
bgHex: (_) => ({
|
|
18
|
+
whiteBright: (message) => message,
|
|
19
|
+
white: (message) => message
|
|
20
|
+
}),
|
|
21
|
+
whiteBright: (message) => message,
|
|
22
|
+
white: (message) => message
|
|
23
|
+
},
|
|
24
|
+
dim: {
|
|
25
|
+
hex: (_) => (message) => message,
|
|
26
|
+
gray: (message) => message
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Get the chalk instance
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Annoying polyfill to temporarily fix the issue with the `chalk` import
|
|
34
|
+
*
|
|
35
|
+
* @returns The chalk instance
|
|
36
|
+
*/
|
|
37
|
+
const getChalk = () => {
|
|
38
|
+
let _chalk = chalk;
|
|
39
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) _chalk = chalkDefault;
|
|
40
|
+
return _chalk;
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { getChalk };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_types = require("../types.cjs");
|
|
3
|
+
const require_logger_is_unicode_supported = require("./is-unicode-supported.cjs");
|
|
4
|
+
//#region src/logger/console-icons.ts
|
|
5
|
+
const useIcon = (c, fallback) => require_logger_is_unicode_supported.isUnicodeSupported() ? c : fallback;
|
|
4
6
|
const CONSOLE_ICONS = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
[require_types.LogLevelLabel.ERROR]: useIcon("✘", "×"),
|
|
8
|
+
[require_types.LogLevelLabel.FATAL]: useIcon("🕱", "×"),
|
|
9
|
+
[require_types.LogLevelLabel.WARN]: useIcon("⚠", "‼"),
|
|
10
|
+
[require_types.LogLevelLabel.INFO]: useIcon("ℹ", "i"),
|
|
11
|
+
[require_types.LogLevelLabel.PERFORMANCE]: useIcon("⏱", "⏱"),
|
|
12
|
+
[require_types.LogLevelLabel.SUCCESS]: useIcon("✔", "√"),
|
|
13
|
+
[require_types.LogLevelLabel.DEBUG]: useIcon("🛠", "D"),
|
|
14
|
+
[require_types.LogLevelLabel.TRACE]: useIcon("⚙", "T"),
|
|
15
|
+
[require_types.LogLevelLabel.ALL]: useIcon("✉", "→")
|
|
14
16
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
//#endregion
|
|
17
18
|
exports.CONSOLE_ICONS = CONSOLE_ICONS;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { LogLevelLabel } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export { CONSOLE_ICONS };
|
|
1
|
+
import { LogLevelLabel } from "../types.cjs";
|
|
2
|
+
//#region src/logger/console-icons.d.ts
|
|
3
|
+
declare const CONSOLE_ICONS: { [k in LogLevelLabel]?: string; };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { CONSOLE_ICONS };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import __tsdown_shims_path from 'node:path';
|
|
2
|
+
import __tsdown_shims_url from 'node:url';
|
|
3
|
+
import { LogLevelLabel } from "../types.mjs";
|
|
4
|
+
//#region src/logger/console-icons.d.ts
|
|
5
|
+
declare const CONSOLE_ICONS: { [k in LogLevelLabel]?: string; };
|
|
6
|
+
//#endregion
|
|
7
|
+
export { CONSOLE_ICONS };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "node:path";
|
|
2
|
+
import "node:url";
|
|
3
|
+
import.meta.url;
|
|
4
|
+
import { LogLevelLabel } from "../types.mjs";
|
|
5
|
+
import { isUnicodeSupported } from "./is-unicode-supported.mjs";
|
|
6
|
+
//#region src/logger/console-icons.ts
|
|
7
|
+
const useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
8
|
+
const CONSOLE_ICONS = {
|
|
9
|
+
[LogLevelLabel.ERROR]: useIcon("✘", "×"),
|
|
10
|
+
[LogLevelLabel.FATAL]: useIcon("🕱", "×"),
|
|
11
|
+
[LogLevelLabel.WARN]: useIcon("⚠", "‼"),
|
|
12
|
+
[LogLevelLabel.INFO]: useIcon("ℹ", "i"),
|
|
13
|
+
[LogLevelLabel.PERFORMANCE]: useIcon("⏱", "⏱"),
|
|
14
|
+
[LogLevelLabel.SUCCESS]: useIcon("✔", "√"),
|
|
15
|
+
[LogLevelLabel.DEBUG]: useIcon("🛠", "D"),
|
|
16
|
+
[LogLevelLabel.TRACE]: useIcon("⚙", "T"),
|
|
17
|
+
[LogLevelLabel.ALL]: useIcon("✉", "→")
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { CONSOLE_ICONS };
|