@storm-software/tsdown 0.45.75 → 0.45.76
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 +3 -3
- package/dist/build.js +2 -2
- package/dist/{chunk-ZBB6AVP7.cjs → chunk-BKNMM3T2.cjs} +47 -32
- package/dist/{chunk-SFDYOFNO.js → chunk-IZIA5T45.js} +4 -2
- package/dist/{chunk-5VG5EM3N.cjs → chunk-OGY672PY.cjs} +4 -2
- package/dist/{chunk-UWYS5ICX.js → chunk-QV2ETWQU.js} +16 -1
- package/dist/clean.cjs +2 -2
- package/dist/clean.js +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +2 -2
- package/package.json +5 -5
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
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkBKNMM3T2cjs = require('./chunk-BKNMM3T2.cjs');
|
|
5
|
+
require('./chunk-OGY672PY.cjs');
|
|
6
6
|
require('./chunk-DPNREUD4.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.build =
|
|
10
|
+
exports.build = _chunkBKNMM3T2cjs.build; exports.cleanOutputPath = _chunkBKNMM3T2cjs.cleanOutputPath;
|
package/dist/build.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkOGY672PYcjs = require('./chunk-OGY672PY.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -198,7 +198,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
198
198
|
output: "src/"
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
|
|
201
|
+
_chunkOGY672PYcjs.writeTrace.call(void 0,
|
|
202
202
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
203
203
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
204
204
|
config
|
|
@@ -210,9 +210,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
210
210
|
assets: pendingAssets
|
|
211
211
|
});
|
|
212
212
|
await assetHandler.processAllAssetsOnce();
|
|
213
|
-
|
|
213
|
+
_chunkOGY672PYcjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
214
214
|
if (includeSrc === true) {
|
|
215
|
-
|
|
215
|
+
_chunkOGY672PYcjs.writeDebug.call(void 0,
|
|
216
216
|
`\u{1F4DD} Adding banner and writing source files: ${joinPaths(
|
|
217
217
|
outputPath,
|
|
218
218
|
"src"
|
|
@@ -391,7 +391,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
if (localPackages.length > 0) {
|
|
394
|
-
|
|
394
|
+
_chunkOGY672PYcjs.writeTrace.call(void 0,
|
|
395
395
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
396
396
|
);
|
|
397
397
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
@@ -439,7 +439,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
439
439
|
return ret;
|
|
440
440
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
441
441
|
} else {
|
|
442
|
-
|
|
442
|
+
_chunkOGY672PYcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
443
443
|
}
|
|
444
444
|
return packageJson;
|
|
445
445
|
};
|
|
@@ -576,6 +576,10 @@ var infoColorSchema = z._default(colorSchema, "#38bdf8");
|
|
|
576
576
|
schemaRegistry.add(infoColorSchema, {
|
|
577
577
|
description: "The informational color of the workspace"
|
|
578
578
|
});
|
|
579
|
+
var debugColorSchema = z._default(colorSchema, "#8afafc");
|
|
580
|
+
schemaRegistry.add(debugColorSchema, {
|
|
581
|
+
description: "The debug color of the workspace"
|
|
582
|
+
});
|
|
579
583
|
var warningColorSchema = z._default(colorSchema, "#f3d371");
|
|
580
584
|
schemaRegistry.add(warningColorSchema, {
|
|
581
585
|
description: "The warning color of the workspace"
|
|
@@ -610,6 +614,7 @@ var darkColorsSchema = z.object({
|
|
|
610
614
|
help: helpColorSchema,
|
|
611
615
|
success: successColorSchema,
|
|
612
616
|
info: infoColorSchema,
|
|
617
|
+
debug: debugColorSchema,
|
|
613
618
|
warning: warningColorSchema,
|
|
614
619
|
danger: dangerColorSchema,
|
|
615
620
|
fatal: fatalColorSchema,
|
|
@@ -627,6 +632,7 @@ var lightColorsSchema = z.object({
|
|
|
627
632
|
help: helpColorSchema,
|
|
628
633
|
success: successColorSchema,
|
|
629
634
|
info: infoColorSchema,
|
|
635
|
+
debug: debugColorSchema,
|
|
630
636
|
warning: warningColorSchema,
|
|
631
637
|
danger: dangerColorSchema,
|
|
632
638
|
fatal: fatalColorSchema,
|
|
@@ -648,6 +654,7 @@ var singleColorsSchema = z.object({
|
|
|
648
654
|
help: helpColorSchema,
|
|
649
655
|
success: successColorSchema,
|
|
650
656
|
info: infoColorSchema,
|
|
657
|
+
debug: debugColorSchema,
|
|
651
658
|
warning: warningColorSchema,
|
|
652
659
|
danger: dangerColorSchema,
|
|
653
660
|
fatal: fatalColorSchema,
|
|
@@ -1230,7 +1237,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1230
1237
|
let config = result.config;
|
|
1231
1238
|
const configFile = result.configFile;
|
|
1232
1239
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
1233
|
-
|
|
1240
|
+
_chunkOGY672PYcjs.writeTrace.call(void 0,
|
|
1234
1241
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
1235
1242
|
{
|
|
1236
1243
|
logLevel: "all"
|
|
@@ -1246,7 +1253,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1246
1253
|
for (const result2 of results) {
|
|
1247
1254
|
if (_optionalChain([result2, 'optionalAccess', _34 => _34.config]) && _optionalChain([result2, 'optionalAccess', _35 => _35.configFile]) && Object.keys(result2.config).length > 0) {
|
|
1248
1255
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
1249
|
-
|
|
1256
|
+
_chunkOGY672PYcjs.writeTrace.call(void 0,
|
|
1250
1257
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
1251
1258
|
{
|
|
1252
1259
|
logLevel: "all"
|
|
@@ -1362,7 +1369,7 @@ var getConfigEnv = () => {
|
|
|
1362
1369
|
},
|
|
1363
1370
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
1364
1371
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1365
|
-
) ?
|
|
1372
|
+
) ? _chunkOGY672PYcjs.getLogLevelLabel.call(void 0,
|
|
1366
1373
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1367
1374
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
1368
1375
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
@@ -1433,6 +1440,7 @@ var getSingleThemeColorsEnv = (prefix) => {
|
|
|
1433
1440
|
help: process.env[`${prefix}HELP`],
|
|
1434
1441
|
success: process.env[`${prefix}SUCCESS`],
|
|
1435
1442
|
info: process.env[`${prefix}INFO`],
|
|
1443
|
+
debug: process.env[`${prefix}DEBUG`],
|
|
1436
1444
|
warning: process.env[`${prefix}WARNING`],
|
|
1437
1445
|
danger: process.env[`${prefix}DANGER`],
|
|
1438
1446
|
fatal: process.env[`${prefix}FATAL`],
|
|
@@ -1471,6 +1479,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1471
1479
|
help: process.env[`${prefix}HELP`],
|
|
1472
1480
|
success: process.env[`${prefix}SUCCESS`],
|
|
1473
1481
|
info: process.env[`${prefix}INFO`],
|
|
1482
|
+
debug: process.env[`${prefix}DEBUG`],
|
|
1474
1483
|
warning: process.env[`${prefix}WARNING`],
|
|
1475
1484
|
danger: process.env[`${prefix}DANGER`],
|
|
1476
1485
|
fatal: process.env[`${prefix}FATAL`],
|
|
@@ -1725,9 +1734,9 @@ var setConfigEnv = (config) => {
|
|
|
1725
1734
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1726
1735
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1727
1736
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1728
|
-
|
|
1737
|
+
_chunkOGY672PYcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkOGY672PYcjs.LogLevel.DEBUG ? true : false
|
|
1729
1738
|
);
|
|
1730
|
-
process.env.RUST_BACKTRACE =
|
|
1739
|
+
process.env.RUST_BACKTRACE = _chunkOGY672PYcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkOGY672PYcjs.LogLevel.DEBUG ? "full" : "none";
|
|
1731
1740
|
}
|
|
1732
1741
|
if (config.skipConfigLogging !== void 0) {
|
|
1733
1742
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -1772,6 +1781,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
|
|
|
1772
1781
|
if (config.info) {
|
|
1773
1782
|
process.env[`${prefix}INFO`] = config.info;
|
|
1774
1783
|
}
|
|
1784
|
+
if (config.debug) {
|
|
1785
|
+
process.env[`${prefix}DEBUG`] = config.debug;
|
|
1786
|
+
}
|
|
1775
1787
|
if (config.warning) {
|
|
1776
1788
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
1777
1789
|
}
|
|
@@ -1827,6 +1839,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
1827
1839
|
if (config.info) {
|
|
1828
1840
|
process.env[`${prefix}INFO`] = config.info;
|
|
1829
1841
|
}
|
|
1842
|
+
if (config.debug) {
|
|
1843
|
+
process.env[`${prefix}DEBUG`] = config.debug;
|
|
1844
|
+
}
|
|
1830
1845
|
if (config.warning) {
|
|
1831
1846
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
1832
1847
|
}
|
|
@@ -1863,7 +1878,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1863
1878
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1864
1879
|
if (!configFile) {
|
|
1865
1880
|
if (!skipLogs) {
|
|
1866
|
-
|
|
1881
|
+
_chunkOGY672PYcjs.writeWarning.call(void 0,
|
|
1867
1882
|
"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",
|
|
1868
1883
|
{ logLevel: "all" }
|
|
1869
1884
|
);
|
|
@@ -1890,7 +1905,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1890
1905
|
throw new Error(
|
|
1891
1906
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _60 => _60.message]) ? `: ${error.message}` : ""}
|
|
1892
1907
|
|
|
1893
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1908
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkOGY672PYcjs.formatLogMessage.call(void 0,
|
|
1894
1909
|
configInput
|
|
1895
1910
|
)}`,
|
|
1896
1911
|
{
|
|
@@ -1935,9 +1950,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1935
1950
|
);
|
|
1936
1951
|
setConfigEnv(config);
|
|
1937
1952
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1938
|
-
|
|
1953
|
+
_chunkOGY672PYcjs.writeTrace.call(void 0,
|
|
1939
1954
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1940
|
-
${
|
|
1955
|
+
${_chunkOGY672PYcjs.formatLogMessage.call(void 0, config)}`,
|
|
1941
1956
|
config
|
|
1942
1957
|
);
|
|
1943
1958
|
}
|
|
@@ -1997,8 +2012,8 @@ var resolveOptions = async (userOptions) => {
|
|
|
1997
2012
|
const workspaceConfig = await getWorkspaceConfig(options.debug === true, {
|
|
1998
2013
|
workspaceRoot
|
|
1999
2014
|
});
|
|
2000
|
-
|
|
2001
|
-
const stopwatch =
|
|
2015
|
+
_chunkOGY672PYcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
2016
|
+
const stopwatch = _chunkOGY672PYcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
2002
2017
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2003
2018
|
exitOnError: true
|
|
2004
2019
|
});
|
|
@@ -2071,8 +2086,8 @@ var resolveOptions = async (userOptions) => {
|
|
|
2071
2086
|
};
|
|
2072
2087
|
async function generatePackageJson(options) {
|
|
2073
2088
|
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, joinPaths(options.projectRoot, "package.json"))) {
|
|
2074
|
-
|
|
2075
|
-
const stopwatch =
|
|
2089
|
+
_chunkOGY672PYcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
2090
|
+
const stopwatch = _chunkOGY672PYcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
2076
2091
|
const packageJsonPath = joinPaths(options.projectRoot, "project.json");
|
|
2077
2092
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2078
2093
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -2146,8 +2161,8 @@ async function generatePackageJson(options) {
|
|
|
2146
2161
|
return options;
|
|
2147
2162
|
}
|
|
2148
2163
|
async function executeTSDown(options) {
|
|
2149
|
-
|
|
2150
|
-
const stopwatch =
|
|
2164
|
+
_chunkOGY672PYcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
|
|
2165
|
+
const stopwatch = _chunkOGY672PYcjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
2151
2166
|
await _tsdown.build.call(void 0, {
|
|
2152
2167
|
...options,
|
|
2153
2168
|
entry: options.entry,
|
|
@@ -2157,11 +2172,11 @@ async function executeTSDown(options) {
|
|
|
2157
2172
|
return options;
|
|
2158
2173
|
}
|
|
2159
2174
|
async function copyBuildAssets(options) {
|
|
2160
|
-
|
|
2175
|
+
_chunkOGY672PYcjs.writeDebug.call(void 0,
|
|
2161
2176
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
2162
2177
|
options.workspaceConfig
|
|
2163
2178
|
);
|
|
2164
|
-
const stopwatch =
|
|
2179
|
+
const stopwatch = _chunkOGY672PYcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
2165
2180
|
await copyAssets(
|
|
2166
2181
|
options.workspaceConfig,
|
|
2167
2182
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
@@ -2175,19 +2190,19 @@ async function copyBuildAssets(options) {
|
|
|
2175
2190
|
return options;
|
|
2176
2191
|
}
|
|
2177
2192
|
async function reportResults(options) {
|
|
2178
|
-
|
|
2193
|
+
_chunkOGY672PYcjs.writeSuccess.call(void 0,
|
|
2179
2194
|
` \u{1F4E6} The ${options.name} build completed successfully`,
|
|
2180
2195
|
options.workspaceConfig
|
|
2181
2196
|
);
|
|
2182
2197
|
}
|
|
2183
2198
|
async function cleanOutputPath(options) {
|
|
2184
2199
|
if (options.clean !== false && options.workspaceConfig) {
|
|
2185
|
-
|
|
2200
|
+
_chunkOGY672PYcjs.writeDebug.call(void 0,
|
|
2186
2201
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
|
|
2187
2202
|
options.workspaceConfig
|
|
2188
2203
|
);
|
|
2189
|
-
const stopwatch =
|
|
2190
|
-
await
|
|
2204
|
+
const stopwatch = _chunkOGY672PYcjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
2205
|
+
await _chunkOGY672PYcjs.cleanDirectories.call(void 0,
|
|
2191
2206
|
options.name,
|
|
2192
2207
|
options.outDir,
|
|
2193
2208
|
options.workspaceConfig
|
|
@@ -2197,8 +2212,8 @@ async function cleanOutputPath(options) {
|
|
|
2197
2212
|
return options;
|
|
2198
2213
|
}
|
|
2199
2214
|
async function build(options) {
|
|
2200
|
-
|
|
2201
|
-
const stopwatch =
|
|
2215
|
+
_chunkOGY672PYcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
2216
|
+
const stopwatch = _chunkOGY672PYcjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
2202
2217
|
try {
|
|
2203
2218
|
const opts = Array.isArray(options) ? options : [options];
|
|
2204
2219
|
if (opts.length === 0) {
|
|
@@ -2218,13 +2233,13 @@ async function build(options) {
|
|
|
2218
2233
|
})
|
|
2219
2234
|
);
|
|
2220
2235
|
} else {
|
|
2221
|
-
|
|
2236
|
+
_chunkOGY672PYcjs.writeWarning.call(void 0,
|
|
2222
2237
|
" \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
|
|
2223
2238
|
);
|
|
2224
2239
|
}
|
|
2225
|
-
|
|
2240
|
+
_chunkOGY672PYcjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
2226
2241
|
} catch (error) {
|
|
2227
|
-
|
|
2242
|
+
_chunkOGY672PYcjs.writeFatal.call(void 0,
|
|
2228
2243
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
2229
2244
|
);
|
|
2230
2245
|
throw error;
|
|
@@ -35,6 +35,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
35
35
|
help: "#5C4EE5",
|
|
36
36
|
success: "#087f5b",
|
|
37
37
|
info: "#0550ae",
|
|
38
|
+
debug: "#8afafc",
|
|
38
39
|
warning: "#e3b341",
|
|
39
40
|
danger: "#D8314A",
|
|
40
41
|
fatal: "#51070f",
|
|
@@ -51,6 +52,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
51
52
|
help: "#818cf8",
|
|
52
53
|
success: "#10b981",
|
|
53
54
|
info: "#58a6ff",
|
|
55
|
+
debug: "#8afafc",
|
|
54
56
|
warning: "#f3d371",
|
|
55
57
|
danger: "#D8314A",
|
|
56
58
|
fatal: "#a40e26",
|
|
@@ -231,7 +233,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
|
|
|
231
233
|
return (message) => {
|
|
232
234
|
console.debug(
|
|
233
235
|
`
|
|
234
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.
|
|
236
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
235
237
|
`
|
|
236
238
|
);
|
|
237
239
|
};
|
|
@@ -240,7 +242,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
|
|
|
240
242
|
return (message) => {
|
|
241
243
|
console.debug(
|
|
242
244
|
`
|
|
243
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.
|
|
245
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
244
246
|
`
|
|
245
247
|
);
|
|
246
248
|
};
|
|
@@ -35,6 +35,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
35
35
|
help: "#5C4EE5",
|
|
36
36
|
success: "#087f5b",
|
|
37
37
|
info: "#0550ae",
|
|
38
|
+
debug: "#8afafc",
|
|
38
39
|
warning: "#e3b341",
|
|
39
40
|
danger: "#D8314A",
|
|
40
41
|
fatal: "#51070f",
|
|
@@ -51,6 +52,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
51
52
|
help: "#818cf8",
|
|
52
53
|
success: "#10b981",
|
|
53
54
|
info: "#58a6ff",
|
|
55
|
+
debug: "#8afafc",
|
|
54
56
|
warning: "#f3d371",
|
|
55
57
|
danger: "#D8314A",
|
|
56
58
|
fatal: "#a40e26",
|
|
@@ -231,7 +233,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, ()
|
|
|
231
233
|
return (message) => {
|
|
232
234
|
console.debug(
|
|
233
235
|
`
|
|
234
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.
|
|
236
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.debug, () => ( DEFAULT_COLOR_CONFIG.dark.info)))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
235
237
|
`
|
|
236
238
|
);
|
|
237
239
|
};
|
|
@@ -240,7 +242,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, ()
|
|
|
240
242
|
return (message) => {
|
|
241
243
|
console.debug(
|
|
242
244
|
`
|
|
243
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.
|
|
245
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.debug, () => ( DEFAULT_COLOR_CONFIG.dark.debug)))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
244
246
|
`
|
|
245
247
|
);
|
|
246
248
|
};
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
writeSuccess,
|
|
11
11
|
writeTrace,
|
|
12
12
|
writeWarning
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IZIA5T45.js";
|
|
14
14
|
import {
|
|
15
15
|
getDefaultOptions,
|
|
16
16
|
toTSDownFormat
|
|
@@ -576,6 +576,10 @@ var infoColorSchema = z._default(colorSchema, "#38bdf8");
|
|
|
576
576
|
schemaRegistry.add(infoColorSchema, {
|
|
577
577
|
description: "The informational color of the workspace"
|
|
578
578
|
});
|
|
579
|
+
var debugColorSchema = z._default(colorSchema, "#8afafc");
|
|
580
|
+
schemaRegistry.add(debugColorSchema, {
|
|
581
|
+
description: "The debug color of the workspace"
|
|
582
|
+
});
|
|
579
583
|
var warningColorSchema = z._default(colorSchema, "#f3d371");
|
|
580
584
|
schemaRegistry.add(warningColorSchema, {
|
|
581
585
|
description: "The warning color of the workspace"
|
|
@@ -610,6 +614,7 @@ var darkColorsSchema = z.object({
|
|
|
610
614
|
help: helpColorSchema,
|
|
611
615
|
success: successColorSchema,
|
|
612
616
|
info: infoColorSchema,
|
|
617
|
+
debug: debugColorSchema,
|
|
613
618
|
warning: warningColorSchema,
|
|
614
619
|
danger: dangerColorSchema,
|
|
615
620
|
fatal: fatalColorSchema,
|
|
@@ -627,6 +632,7 @@ var lightColorsSchema = z.object({
|
|
|
627
632
|
help: helpColorSchema,
|
|
628
633
|
success: successColorSchema,
|
|
629
634
|
info: infoColorSchema,
|
|
635
|
+
debug: debugColorSchema,
|
|
630
636
|
warning: warningColorSchema,
|
|
631
637
|
danger: dangerColorSchema,
|
|
632
638
|
fatal: fatalColorSchema,
|
|
@@ -648,6 +654,7 @@ var singleColorsSchema = z.object({
|
|
|
648
654
|
help: helpColorSchema,
|
|
649
655
|
success: successColorSchema,
|
|
650
656
|
info: infoColorSchema,
|
|
657
|
+
debug: debugColorSchema,
|
|
651
658
|
warning: warningColorSchema,
|
|
652
659
|
danger: dangerColorSchema,
|
|
653
660
|
fatal: fatalColorSchema,
|
|
@@ -1433,6 +1440,7 @@ var getSingleThemeColorsEnv = (prefix) => {
|
|
|
1433
1440
|
help: process.env[`${prefix}HELP`],
|
|
1434
1441
|
success: process.env[`${prefix}SUCCESS`],
|
|
1435
1442
|
info: process.env[`${prefix}INFO`],
|
|
1443
|
+
debug: process.env[`${prefix}DEBUG`],
|
|
1436
1444
|
warning: process.env[`${prefix}WARNING`],
|
|
1437
1445
|
danger: process.env[`${prefix}DANGER`],
|
|
1438
1446
|
fatal: process.env[`${prefix}FATAL`],
|
|
@@ -1471,6 +1479,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1471
1479
|
help: process.env[`${prefix}HELP`],
|
|
1472
1480
|
success: process.env[`${prefix}SUCCESS`],
|
|
1473
1481
|
info: process.env[`${prefix}INFO`],
|
|
1482
|
+
debug: process.env[`${prefix}DEBUG`],
|
|
1474
1483
|
warning: process.env[`${prefix}WARNING`],
|
|
1475
1484
|
danger: process.env[`${prefix}DANGER`],
|
|
1476
1485
|
fatal: process.env[`${prefix}FATAL`],
|
|
@@ -1772,6 +1781,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
|
|
|
1772
1781
|
if (config.info) {
|
|
1773
1782
|
process.env[`${prefix}INFO`] = config.info;
|
|
1774
1783
|
}
|
|
1784
|
+
if (config.debug) {
|
|
1785
|
+
process.env[`${prefix}DEBUG`] = config.debug;
|
|
1786
|
+
}
|
|
1775
1787
|
if (config.warning) {
|
|
1776
1788
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
1777
1789
|
}
|
|
@@ -1827,6 +1839,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
1827
1839
|
if (config.info) {
|
|
1828
1840
|
process.env[`${prefix}INFO`] = config.info;
|
|
1829
1841
|
}
|
|
1842
|
+
if (config.debug) {
|
|
1843
|
+
process.env[`${prefix}DEBUG`] = config.debug;
|
|
1844
|
+
}
|
|
1830
1845
|
if (config.warning) {
|
|
1831
1846
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
1832
1847
|
}
|
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
|
|
4
|
+
var _chunkOGY672PYcjs = require('./chunk-OGY672PY.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.clean =
|
|
8
|
+
exports.clean = _chunkOGY672PYcjs.clean; exports.cleanDirectories = _chunkOGY672PYcjs.cleanDirectories;
|
package/dist/clean.js
CHANGED
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
|
|
4
|
+
var _chunkBKNMM3T2cjs = require('./chunk-BKNMM3T2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkOGY672PYcjs = require('./chunk-OGY672PY.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -18,4 +18,4 @@ require('./chunk-ZBPRDZS4.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.build =
|
|
21
|
+
exports.build = _chunkBKNMM3T2cjs.build; exports.clean = _chunkOGY672PYcjs.clean; exports.cleanDirectories = _chunkOGY672PYcjs.cleanDirectories; exports.cleanOutputPath = _chunkBKNMM3T2cjs.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-
|
|
4
|
+
} from "./chunk-QV2ETWQU.js";
|
|
5
5
|
import {
|
|
6
6
|
clean,
|
|
7
7
|
cleanDirectories
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IZIA5T45.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.
|
|
3
|
+
"version": "0.45.76",
|
|
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.
|
|
150
|
-
"@storm-software/config": "^1.
|
|
151
|
-
"@storm-software/config-tools": "^1.188.
|
|
149
|
+
"@storm-software/build-tools": "^0.158.76",
|
|
150
|
+
"@storm-software/config": "^1.135.0",
|
|
151
|
+
"@storm-software/config-tools": "^1.188.76",
|
|
152
152
|
"chokidar": "^4.0.3",
|
|
153
153
|
"commander": "^12.1.0",
|
|
154
154
|
"es-toolkit": "^1.43.0",
|
|
@@ -171,5 +171,5 @@
|
|
|
171
171
|
},
|
|
172
172
|
"publishConfig": { "access": "public" },
|
|
173
173
|
"sideEffects": false,
|
|
174
|
-
"gitHead": "
|
|
174
|
+
"gitHead": "e19d4a36814afd4e68d56d8c7e620ec273b71a03"
|
|
175
175
|
}
|