@storm-software/workspace-tools 1.68.9 → 1.68.10
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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/index.js +26 -12
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +26 -12
- package/src/executors/rolldown/executor.js +26 -12
- package/src/executors/tsup/executor.js +26 -12
- package/src/executors/tsup-browser/executor.js +26 -12
- package/src/executors/tsup-neutral/executor.js +26 -12
- package/src/executors/tsup-node/executor.js +26 -12
- package/src/executors/typia/executor.js +26 -12
- package/src/generators/browser-library/generator.js +26 -12
- package/src/generators/config-schema/generator.js +26 -12
- package/src/generators/neutral-library/generator.js +26 -12
- package/src/generators/node-library/generator.js +26 -12
- package/src/generators/preset/generator.js +26 -12
- package/src/generators/release-version/generator.js +26 -12
- package/src/utils/index.js +26 -12
package/package.json
CHANGED
package/src/base/index.js
CHANGED
|
@@ -4602,7 +4602,7 @@ var require_lib3 = __commonJS({
|
|
|
4602
4602
|
return _chalk.default.level > 0 || options.forceColor;
|
|
4603
4603
|
}
|
|
4604
4604
|
var chalkWithForcedColor = void 0;
|
|
4605
|
-
function
|
|
4605
|
+
function getChalk2(forceColor) {
|
|
4606
4606
|
if (forceColor) {
|
|
4607
4607
|
var _chalkWithForcedColor;
|
|
4608
4608
|
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
|
@@ -4614,11 +4614,11 @@ var require_lib3 = __commonJS({
|
|
|
4614
4614
|
return _chalk.default;
|
|
4615
4615
|
}
|
|
4616
4616
|
{
|
|
4617
|
-
exports2.getChalk = (options) =>
|
|
4617
|
+
exports2.getChalk = (options) => getChalk2(options.forceColor);
|
|
4618
4618
|
}
|
|
4619
4619
|
function highlight(code, options = {}) {
|
|
4620
4620
|
if (code !== "" && shouldHighlight(options)) {
|
|
4621
|
-
const defs = getDefs(
|
|
4621
|
+
const defs = getDefs(getChalk2(options.forceColor));
|
|
4622
4622
|
return highlightTokens(defs, code);
|
|
4623
4623
|
} else {
|
|
4624
4624
|
return code;
|
|
@@ -4663,7 +4663,7 @@ var require_lib4 = __commonJS({
|
|
|
4663
4663
|
return n.default = e, t && t.set(e, n), n;
|
|
4664
4664
|
}
|
|
4665
4665
|
var chalkWithForcedColor = void 0;
|
|
4666
|
-
function
|
|
4666
|
+
function getChalk2(forceColor) {
|
|
4667
4667
|
if (forceColor) {
|
|
4668
4668
|
var _chalkWithForcedColor;
|
|
4669
4669
|
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
|
@@ -4741,7 +4741,7 @@ var require_lib4 = __commonJS({
|
|
|
4741
4741
|
}
|
|
4742
4742
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
4743
4743
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
4744
|
-
const chalk2 =
|
|
4744
|
+
const chalk2 = getChalk2(opts.forceColor);
|
|
4745
4745
|
const defs = getDefs(chalk2);
|
|
4746
4746
|
const maybeHighlight = (chalkFn, string) => {
|
|
4747
4747
|
return highlighted ? chalkFn(string) : string;
|
|
@@ -218044,12 +218044,10 @@ var init_get_log_level = __esm({
|
|
|
218044
218044
|
}
|
|
218045
218045
|
});
|
|
218046
218046
|
|
|
218047
|
-
// packages/config-tools/src/utilities/
|
|
218048
|
-
var import_chalk, chalkDefault,
|
|
218049
|
-
var
|
|
218050
|
-
"packages/config-tools/src/utilities/
|
|
218051
|
-
init_types2();
|
|
218052
|
-
init_get_log_level();
|
|
218047
|
+
// packages/config-tools/src/utilities/chalk.ts
|
|
218048
|
+
var import_chalk, chalkDefault, getChalk;
|
|
218049
|
+
var init_chalk = __esm({
|
|
218050
|
+
"packages/config-tools/src/utilities/chalk.ts"() {
|
|
218053
218051
|
import_chalk = __toESM(require_source());
|
|
218054
218052
|
chalkDefault = {
|
|
218055
218053
|
hex: (_) => (message) => message,
|
|
@@ -218065,11 +218063,25 @@ var init_logger = __esm({
|
|
|
218065
218063
|
whiteBright: (message) => message
|
|
218066
218064
|
}
|
|
218067
218065
|
};
|
|
218068
|
-
|
|
218066
|
+
getChalk = () => {
|
|
218069
218067
|
let _chalk = import_chalk.default;
|
|
218070
218068
|
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
218071
218069
|
_chalk = chalkDefault;
|
|
218072
218070
|
}
|
|
218071
|
+
return _chalk;
|
|
218072
|
+
};
|
|
218073
|
+
}
|
|
218074
|
+
});
|
|
218075
|
+
|
|
218076
|
+
// packages/config-tools/src/utilities/logger.ts
|
|
218077
|
+
var getLogFn, writeFatal, writeError, writeWarning, writeInfo, writeSuccess, writeDebug, writeTrace, writeSystem, getStopwatch;
|
|
218078
|
+
var init_logger = __esm({
|
|
218079
|
+
"packages/config-tools/src/utilities/logger.ts"() {
|
|
218080
|
+
init_types2();
|
|
218081
|
+
init_get_log_level();
|
|
218082
|
+
init_chalk();
|
|
218083
|
+
getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
218084
|
+
let _chalk = getChalk();
|
|
218073
218085
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
218074
218086
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
218075
218087
|
return (_) => {
|
|
@@ -218343,6 +218355,7 @@ var init_utilities = __esm({
|
|
|
218343
218355
|
init_correct_paths();
|
|
218344
218356
|
init_file_path_utils();
|
|
218345
218357
|
init_apply_workspace_tokens();
|
|
218358
|
+
init_chalk();
|
|
218346
218359
|
}
|
|
218347
218360
|
});
|
|
218348
218361
|
|
|
@@ -218689,6 +218702,7 @@ __export(src_exports, {
|
|
|
218689
218702
|
findFileName: () => findFileName,
|
|
218690
218703
|
findWorkspaceRoot: () => findWorkspaceRoot,
|
|
218691
218704
|
findWorkspaceRootSafe: () => findWorkspaceRootSafe,
|
|
218705
|
+
getChalk: () => getChalk,
|
|
218692
218706
|
getConfigEnv: () => getConfigEnv,
|
|
218693
218707
|
getConfigFile: () => getConfigFile,
|
|
218694
218708
|
getConfigFileByName: () => getConfigFileByName,
|
|
@@ -4602,7 +4602,7 @@ var require_lib3 = __commonJS({
|
|
|
4602
4602
|
return _chalk.default.level > 0 || options.forceColor;
|
|
4603
4603
|
}
|
|
4604
4604
|
var chalkWithForcedColor = void 0;
|
|
4605
|
-
function
|
|
4605
|
+
function getChalk2(forceColor) {
|
|
4606
4606
|
if (forceColor) {
|
|
4607
4607
|
var _chalkWithForcedColor;
|
|
4608
4608
|
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
|
@@ -4614,11 +4614,11 @@ var require_lib3 = __commonJS({
|
|
|
4614
4614
|
return _chalk.default;
|
|
4615
4615
|
}
|
|
4616
4616
|
{
|
|
4617
|
-
exports2.getChalk = (options) =>
|
|
4617
|
+
exports2.getChalk = (options) => getChalk2(options.forceColor);
|
|
4618
4618
|
}
|
|
4619
4619
|
function highlight(code, options = {}) {
|
|
4620
4620
|
if (code !== "" && shouldHighlight(options)) {
|
|
4621
|
-
const defs = getDefs(
|
|
4621
|
+
const defs = getDefs(getChalk2(options.forceColor));
|
|
4622
4622
|
return highlightTokens(defs, code);
|
|
4623
4623
|
} else {
|
|
4624
4624
|
return code;
|
|
@@ -4663,7 +4663,7 @@ var require_lib4 = __commonJS({
|
|
|
4663
4663
|
return n.default = e, t && t.set(e, n), n;
|
|
4664
4664
|
}
|
|
4665
4665
|
var chalkWithForcedColor = void 0;
|
|
4666
|
-
function
|
|
4666
|
+
function getChalk2(forceColor) {
|
|
4667
4667
|
if (forceColor) {
|
|
4668
4668
|
var _chalkWithForcedColor;
|
|
4669
4669
|
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
|
@@ -4741,7 +4741,7 @@ var require_lib4 = __commonJS({
|
|
|
4741
4741
|
}
|
|
4742
4742
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
4743
4743
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
4744
|
-
const chalk2 =
|
|
4744
|
+
const chalk2 = getChalk2(opts.forceColor);
|
|
4745
4745
|
const defs = getDefs(chalk2);
|
|
4746
4746
|
const maybeHighlight = (chalkFn, string) => {
|
|
4747
4747
|
return highlighted ? chalkFn(string) : string;
|
|
@@ -218044,12 +218044,10 @@ var init_get_log_level = __esm({
|
|
|
218044
218044
|
}
|
|
218045
218045
|
});
|
|
218046
218046
|
|
|
218047
|
-
// packages/config-tools/src/utilities/
|
|
218048
|
-
var import_chalk, chalkDefault,
|
|
218049
|
-
var
|
|
218050
|
-
"packages/config-tools/src/utilities/
|
|
218051
|
-
init_types2();
|
|
218052
|
-
init_get_log_level();
|
|
218047
|
+
// packages/config-tools/src/utilities/chalk.ts
|
|
218048
|
+
var import_chalk, chalkDefault, getChalk;
|
|
218049
|
+
var init_chalk = __esm({
|
|
218050
|
+
"packages/config-tools/src/utilities/chalk.ts"() {
|
|
218053
218051
|
import_chalk = __toESM(require_source());
|
|
218054
218052
|
chalkDefault = {
|
|
218055
218053
|
hex: (_) => (message) => message,
|
|
@@ -218065,11 +218063,25 @@ var init_logger = __esm({
|
|
|
218065
218063
|
whiteBright: (message) => message
|
|
218066
218064
|
}
|
|
218067
218065
|
};
|
|
218068
|
-
|
|
218066
|
+
getChalk = () => {
|
|
218069
218067
|
let _chalk = import_chalk.default;
|
|
218070
218068
|
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
218071
218069
|
_chalk = chalkDefault;
|
|
218072
218070
|
}
|
|
218071
|
+
return _chalk;
|
|
218072
|
+
};
|
|
218073
|
+
}
|
|
218074
|
+
});
|
|
218075
|
+
|
|
218076
|
+
// packages/config-tools/src/utilities/logger.ts
|
|
218077
|
+
var getLogFn, writeFatal, writeError, writeWarning, writeInfo, writeSuccess, writeDebug, writeTrace, writeSystem, getStopwatch;
|
|
218078
|
+
var init_logger = __esm({
|
|
218079
|
+
"packages/config-tools/src/utilities/logger.ts"() {
|
|
218080
|
+
init_types2();
|
|
218081
|
+
init_get_log_level();
|
|
218082
|
+
init_chalk();
|
|
218083
|
+
getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
218084
|
+
let _chalk = getChalk();
|
|
218073
218085
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
218074
218086
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
218075
218087
|
return (_) => {
|
|
@@ -218343,6 +218355,7 @@ var init_utilities = __esm({
|
|
|
218343
218355
|
init_correct_paths();
|
|
218344
218356
|
init_file_path_utils();
|
|
218345
218357
|
init_apply_workspace_tokens();
|
|
218358
|
+
init_chalk();
|
|
218346
218359
|
}
|
|
218347
218360
|
});
|
|
218348
218361
|
|
|
@@ -218689,6 +218702,7 @@ __export(src_exports, {
|
|
|
218689
218702
|
findFileName: () => findFileName,
|
|
218690
218703
|
findWorkspaceRoot: () => findWorkspaceRoot,
|
|
218691
218704
|
findWorkspaceRootSafe: () => findWorkspaceRootSafe,
|
|
218705
|
+
getChalk: () => getChalk,
|
|
218692
218706
|
getConfigEnv: () => getConfigEnv,
|
|
218693
218707
|
getConfigFile: () => getConfigFile,
|
|
218694
218708
|
getConfigFileByName: () => getConfigFileByName,
|
|
@@ -4602,7 +4602,7 @@ var require_lib3 = __commonJS({
|
|
|
4602
4602
|
return _chalk.default.level > 0 || options.forceColor;
|
|
4603
4603
|
}
|
|
4604
4604
|
var chalkWithForcedColor = void 0;
|
|
4605
|
-
function
|
|
4605
|
+
function getChalk2(forceColor) {
|
|
4606
4606
|
if (forceColor) {
|
|
4607
4607
|
var _chalkWithForcedColor;
|
|
4608
4608
|
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
|
@@ -4614,11 +4614,11 @@ var require_lib3 = __commonJS({
|
|
|
4614
4614
|
return _chalk.default;
|
|
4615
4615
|
}
|
|
4616
4616
|
{
|
|
4617
|
-
exports2.getChalk = (options) =>
|
|
4617
|
+
exports2.getChalk = (options) => getChalk2(options.forceColor);
|
|
4618
4618
|
}
|
|
4619
4619
|
function highlight(code, options = {}) {
|
|
4620
4620
|
if (code !== "" && shouldHighlight(options)) {
|
|
4621
|
-
const defs = getDefs(
|
|
4621
|
+
const defs = getDefs(getChalk2(options.forceColor));
|
|
4622
4622
|
return highlightTokens(defs, code);
|
|
4623
4623
|
} else {
|
|
4624
4624
|
return code;
|
|
@@ -4663,7 +4663,7 @@ var require_lib4 = __commonJS({
|
|
|
4663
4663
|
return n.default = e, t && t.set(e, n), n;
|
|
4664
4664
|
}
|
|
4665
4665
|
var chalkWithForcedColor = void 0;
|
|
4666
|
-
function
|
|
4666
|
+
function getChalk2(forceColor) {
|
|
4667
4667
|
if (forceColor) {
|
|
4668
4668
|
var _chalkWithForcedColor;
|
|
4669
4669
|
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
|
@@ -4741,7 +4741,7 @@ var require_lib4 = __commonJS({
|
|
|
4741
4741
|
}
|
|
4742
4742
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
4743
4743
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
4744
|
-
const chalk2 =
|
|
4744
|
+
const chalk2 = getChalk2(opts.forceColor);
|
|
4745
4745
|
const defs = getDefs(chalk2);
|
|
4746
4746
|
const maybeHighlight = (chalkFn, string) => {
|
|
4747
4747
|
return highlighted ? chalkFn(string) : string;
|
|
@@ -218044,12 +218044,10 @@ var init_get_log_level = __esm({
|
|
|
218044
218044
|
}
|
|
218045
218045
|
});
|
|
218046
218046
|
|
|
218047
|
-
// packages/config-tools/src/utilities/
|
|
218048
|
-
var import_chalk, chalkDefault,
|
|
218049
|
-
var
|
|
218050
|
-
"packages/config-tools/src/utilities/
|
|
218051
|
-
init_types2();
|
|
218052
|
-
init_get_log_level();
|
|
218047
|
+
// packages/config-tools/src/utilities/chalk.ts
|
|
218048
|
+
var import_chalk, chalkDefault, getChalk;
|
|
218049
|
+
var init_chalk = __esm({
|
|
218050
|
+
"packages/config-tools/src/utilities/chalk.ts"() {
|
|
218053
218051
|
import_chalk = __toESM(require_source());
|
|
218054
218052
|
chalkDefault = {
|
|
218055
218053
|
hex: (_) => (message) => message,
|
|
@@ -218065,11 +218063,25 @@ var init_logger = __esm({
|
|
|
218065
218063
|
whiteBright: (message) => message
|
|
218066
218064
|
}
|
|
218067
218065
|
};
|
|
218068
|
-
|
|
218066
|
+
getChalk = () => {
|
|
218069
218067
|
let _chalk = import_chalk.default;
|
|
218070
218068
|
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
218071
218069
|
_chalk = chalkDefault;
|
|
218072
218070
|
}
|
|
218071
|
+
return _chalk;
|
|
218072
|
+
};
|
|
218073
|
+
}
|
|
218074
|
+
});
|
|
218075
|
+
|
|
218076
|
+
// packages/config-tools/src/utilities/logger.ts
|
|
218077
|
+
var getLogFn, writeFatal, writeError, writeWarning, writeInfo, writeSuccess, writeDebug, writeTrace, writeSystem, getStopwatch;
|
|
218078
|
+
var init_logger = __esm({
|
|
218079
|
+
"packages/config-tools/src/utilities/logger.ts"() {
|
|
218080
|
+
init_types2();
|
|
218081
|
+
init_get_log_level();
|
|
218082
|
+
init_chalk();
|
|
218083
|
+
getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
218084
|
+
let _chalk = getChalk();
|
|
218073
218085
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
218074
218086
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
218075
218087
|
return (_) => {
|
|
@@ -218343,6 +218355,7 @@ var init_utilities = __esm({
|
|
|
218343
218355
|
init_correct_paths();
|
|
218344
218356
|
init_file_path_utils();
|
|
218345
218357
|
init_apply_workspace_tokens();
|
|
218358
|
+
init_chalk();
|
|
218346
218359
|
}
|
|
218347
218360
|
});
|
|
218348
218361
|
|
|
@@ -218689,6 +218702,7 @@ __export(src_exports, {
|
|
|
218689
218702
|
findFileName: () => findFileName,
|
|
218690
218703
|
findWorkspaceRoot: () => findWorkspaceRoot,
|
|
218691
218704
|
findWorkspaceRootSafe: () => findWorkspaceRootSafe,
|
|
218705
|
+
getChalk: () => getChalk,
|
|
218692
218706
|
getConfigEnv: () => getConfigEnv,
|
|
218693
218707
|
getConfigFile: () => getConfigFile,
|
|
218694
218708
|
getConfigFileByName: () => getConfigFileByName,
|
|
@@ -4602,7 +4602,7 @@ var require_lib3 = __commonJS({
|
|
|
4602
4602
|
return _chalk.default.level > 0 || options.forceColor;
|
|
4603
4603
|
}
|
|
4604
4604
|
var chalkWithForcedColor = void 0;
|
|
4605
|
-
function
|
|
4605
|
+
function getChalk2(forceColor) {
|
|
4606
4606
|
if (forceColor) {
|
|
4607
4607
|
var _chalkWithForcedColor;
|
|
4608
4608
|
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
|
@@ -4614,11 +4614,11 @@ var require_lib3 = __commonJS({
|
|
|
4614
4614
|
return _chalk.default;
|
|
4615
4615
|
}
|
|
4616
4616
|
{
|
|
4617
|
-
exports2.getChalk = (options) =>
|
|
4617
|
+
exports2.getChalk = (options) => getChalk2(options.forceColor);
|
|
4618
4618
|
}
|
|
4619
4619
|
function highlight(code, options = {}) {
|
|
4620
4620
|
if (code !== "" && shouldHighlight(options)) {
|
|
4621
|
-
const defs = getDefs(
|
|
4621
|
+
const defs = getDefs(getChalk2(options.forceColor));
|
|
4622
4622
|
return highlightTokens(defs, code);
|
|
4623
4623
|
} else {
|
|
4624
4624
|
return code;
|
|
@@ -4663,7 +4663,7 @@ var require_lib4 = __commonJS({
|
|
|
4663
4663
|
return n.default = e, t && t.set(e, n), n;
|
|
4664
4664
|
}
|
|
4665
4665
|
var chalkWithForcedColor = void 0;
|
|
4666
|
-
function
|
|
4666
|
+
function getChalk2(forceColor) {
|
|
4667
4667
|
if (forceColor) {
|
|
4668
4668
|
var _chalkWithForcedColor;
|
|
4669
4669
|
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
|
@@ -4741,7 +4741,7 @@ var require_lib4 = __commonJS({
|
|
|
4741
4741
|
}
|
|
4742
4742
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
4743
4743
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
4744
|
-
const chalk2 =
|
|
4744
|
+
const chalk2 = getChalk2(opts.forceColor);
|
|
4745
4745
|
const defs = getDefs(chalk2);
|
|
4746
4746
|
const maybeHighlight = (chalkFn, string) => {
|
|
4747
4747
|
return highlighted ? chalkFn(string) : string;
|
|
@@ -218044,12 +218044,10 @@ var init_get_log_level = __esm({
|
|
|
218044
218044
|
}
|
|
218045
218045
|
});
|
|
218046
218046
|
|
|
218047
|
-
// packages/config-tools/src/utilities/
|
|
218048
|
-
var import_chalk, chalkDefault,
|
|
218049
|
-
var
|
|
218050
|
-
"packages/config-tools/src/utilities/
|
|
218051
|
-
init_types2();
|
|
218052
|
-
init_get_log_level();
|
|
218047
|
+
// packages/config-tools/src/utilities/chalk.ts
|
|
218048
|
+
var import_chalk, chalkDefault, getChalk;
|
|
218049
|
+
var init_chalk = __esm({
|
|
218050
|
+
"packages/config-tools/src/utilities/chalk.ts"() {
|
|
218053
218051
|
import_chalk = __toESM(require_source());
|
|
218054
218052
|
chalkDefault = {
|
|
218055
218053
|
hex: (_) => (message) => message,
|
|
@@ -218065,11 +218063,25 @@ var init_logger = __esm({
|
|
|
218065
218063
|
whiteBright: (message) => message
|
|
218066
218064
|
}
|
|
218067
218065
|
};
|
|
218068
|
-
|
|
218066
|
+
getChalk = () => {
|
|
218069
218067
|
let _chalk = import_chalk.default;
|
|
218070
218068
|
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
218071
218069
|
_chalk = chalkDefault;
|
|
218072
218070
|
}
|
|
218071
|
+
return _chalk;
|
|
218072
|
+
};
|
|
218073
|
+
}
|
|
218074
|
+
});
|
|
218075
|
+
|
|
218076
|
+
// packages/config-tools/src/utilities/logger.ts
|
|
218077
|
+
var getLogFn, writeFatal, writeError, writeWarning, writeInfo, writeSuccess, writeDebug, writeTrace, writeSystem, getStopwatch;
|
|
218078
|
+
var init_logger = __esm({
|
|
218079
|
+
"packages/config-tools/src/utilities/logger.ts"() {
|
|
218080
|
+
init_types2();
|
|
218081
|
+
init_get_log_level();
|
|
218082
|
+
init_chalk();
|
|
218083
|
+
getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
218084
|
+
let _chalk = getChalk();
|
|
218073
218085
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
218074
218086
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
218075
218087
|
return (_) => {
|
|
@@ -218343,6 +218355,7 @@ var init_utilities = __esm({
|
|
|
218343
218355
|
init_correct_paths();
|
|
218344
218356
|
init_file_path_utils();
|
|
218345
218357
|
init_apply_workspace_tokens();
|
|
218358
|
+
init_chalk();
|
|
218346
218359
|
}
|
|
218347
218360
|
});
|
|
218348
218361
|
|
|
@@ -218689,6 +218702,7 @@ __export(src_exports, {
|
|
|
218689
218702
|
findFileName: () => findFileName,
|
|
218690
218703
|
findWorkspaceRoot: () => findWorkspaceRoot,
|
|
218691
218704
|
findWorkspaceRootSafe: () => findWorkspaceRootSafe,
|
|
218705
|
+
getChalk: () => getChalk,
|
|
218692
218706
|
getConfigEnv: () => getConfigEnv,
|
|
218693
218707
|
getConfigFile: () => getConfigFile,
|
|
218694
218708
|
getConfigFileByName: () => getConfigFileByName,
|
|
@@ -4602,7 +4602,7 @@ var require_lib3 = __commonJS({
|
|
|
4602
4602
|
return _chalk.default.level > 0 || options.forceColor;
|
|
4603
4603
|
}
|
|
4604
4604
|
var chalkWithForcedColor = void 0;
|
|
4605
|
-
function
|
|
4605
|
+
function getChalk2(forceColor) {
|
|
4606
4606
|
if (forceColor) {
|
|
4607
4607
|
var _chalkWithForcedColor;
|
|
4608
4608
|
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
|
@@ -4614,11 +4614,11 @@ var require_lib3 = __commonJS({
|
|
|
4614
4614
|
return _chalk.default;
|
|
4615
4615
|
}
|
|
4616
4616
|
{
|
|
4617
|
-
exports2.getChalk = (options) =>
|
|
4617
|
+
exports2.getChalk = (options) => getChalk2(options.forceColor);
|
|
4618
4618
|
}
|
|
4619
4619
|
function highlight(code, options = {}) {
|
|
4620
4620
|
if (code !== "" && shouldHighlight(options)) {
|
|
4621
|
-
const defs = getDefs(
|
|
4621
|
+
const defs = getDefs(getChalk2(options.forceColor));
|
|
4622
4622
|
return highlightTokens(defs, code);
|
|
4623
4623
|
} else {
|
|
4624
4624
|
return code;
|
|
@@ -4663,7 +4663,7 @@ var require_lib4 = __commonJS({
|
|
|
4663
4663
|
return n.default = e, t && t.set(e, n), n;
|
|
4664
4664
|
}
|
|
4665
4665
|
var chalkWithForcedColor = void 0;
|
|
4666
|
-
function
|
|
4666
|
+
function getChalk2(forceColor) {
|
|
4667
4667
|
if (forceColor) {
|
|
4668
4668
|
var _chalkWithForcedColor;
|
|
4669
4669
|
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
|
@@ -4741,7 +4741,7 @@ var require_lib4 = __commonJS({
|
|
|
4741
4741
|
}
|
|
4742
4742
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
4743
4743
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
4744
|
-
const chalk2 =
|
|
4744
|
+
const chalk2 = getChalk2(opts.forceColor);
|
|
4745
4745
|
const defs = getDefs(chalk2);
|
|
4746
4746
|
const maybeHighlight = (chalkFn, string) => {
|
|
4747
4747
|
return highlighted ? chalkFn(string) : string;
|
|
@@ -218044,12 +218044,10 @@ var init_get_log_level = __esm({
|
|
|
218044
218044
|
}
|
|
218045
218045
|
});
|
|
218046
218046
|
|
|
218047
|
-
// packages/config-tools/src/utilities/
|
|
218048
|
-
var import_chalk, chalkDefault,
|
|
218049
|
-
var
|
|
218050
|
-
"packages/config-tools/src/utilities/
|
|
218051
|
-
init_types2();
|
|
218052
|
-
init_get_log_level();
|
|
218047
|
+
// packages/config-tools/src/utilities/chalk.ts
|
|
218048
|
+
var import_chalk, chalkDefault, getChalk;
|
|
218049
|
+
var init_chalk = __esm({
|
|
218050
|
+
"packages/config-tools/src/utilities/chalk.ts"() {
|
|
218053
218051
|
import_chalk = __toESM(require_source());
|
|
218054
218052
|
chalkDefault = {
|
|
218055
218053
|
hex: (_) => (message) => message,
|
|
@@ -218065,11 +218063,25 @@ var init_logger = __esm({
|
|
|
218065
218063
|
whiteBright: (message) => message
|
|
218066
218064
|
}
|
|
218067
218065
|
};
|
|
218068
|
-
|
|
218066
|
+
getChalk = () => {
|
|
218069
218067
|
let _chalk = import_chalk.default;
|
|
218070
218068
|
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
218071
218069
|
_chalk = chalkDefault;
|
|
218072
218070
|
}
|
|
218071
|
+
return _chalk;
|
|
218072
|
+
};
|
|
218073
|
+
}
|
|
218074
|
+
});
|
|
218075
|
+
|
|
218076
|
+
// packages/config-tools/src/utilities/logger.ts
|
|
218077
|
+
var getLogFn, writeFatal, writeError, writeWarning, writeInfo, writeSuccess, writeDebug, writeTrace, writeSystem, getStopwatch;
|
|
218078
|
+
var init_logger = __esm({
|
|
218079
|
+
"packages/config-tools/src/utilities/logger.ts"() {
|
|
218080
|
+
init_types2();
|
|
218081
|
+
init_get_log_level();
|
|
218082
|
+
init_chalk();
|
|
218083
|
+
getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
218084
|
+
let _chalk = getChalk();
|
|
218073
218085
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
218074
218086
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
218075
218087
|
return (_) => {
|
|
@@ -218343,6 +218355,7 @@ var init_utilities = __esm({
|
|
|
218343
218355
|
init_correct_paths();
|
|
218344
218356
|
init_file_path_utils();
|
|
218345
218357
|
init_apply_workspace_tokens();
|
|
218358
|
+
init_chalk();
|
|
218346
218359
|
}
|
|
218347
218360
|
});
|
|
218348
218361
|
|
|
@@ -218689,6 +218702,7 @@ __export(src_exports, {
|
|
|
218689
218702
|
findFileName: () => findFileName,
|
|
218690
218703
|
findWorkspaceRoot: () => findWorkspaceRoot,
|
|
218691
218704
|
findWorkspaceRootSafe: () => findWorkspaceRootSafe,
|
|
218705
|
+
getChalk: () => getChalk,
|
|
218692
218706
|
getConfigEnv: () => getConfigEnv,
|
|
218693
218707
|
getConfigFile: () => getConfigFile,
|
|
218694
218708
|
getConfigFileByName: () => getConfigFileByName,
|
|
@@ -4602,7 +4602,7 @@ var require_lib3 = __commonJS({
|
|
|
4602
4602
|
return _chalk.default.level > 0 || options.forceColor;
|
|
4603
4603
|
}
|
|
4604
4604
|
var chalkWithForcedColor = void 0;
|
|
4605
|
-
function
|
|
4605
|
+
function getChalk2(forceColor) {
|
|
4606
4606
|
if (forceColor) {
|
|
4607
4607
|
var _chalkWithForcedColor;
|
|
4608
4608
|
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
|
@@ -4614,11 +4614,11 @@ var require_lib3 = __commonJS({
|
|
|
4614
4614
|
return _chalk.default;
|
|
4615
4615
|
}
|
|
4616
4616
|
{
|
|
4617
|
-
exports2.getChalk = (options) =>
|
|
4617
|
+
exports2.getChalk = (options) => getChalk2(options.forceColor);
|
|
4618
4618
|
}
|
|
4619
4619
|
function highlight(code, options = {}) {
|
|
4620
4620
|
if (code !== "" && shouldHighlight(options)) {
|
|
4621
|
-
const defs = getDefs(
|
|
4621
|
+
const defs = getDefs(getChalk2(options.forceColor));
|
|
4622
4622
|
return highlightTokens(defs, code);
|
|
4623
4623
|
} else {
|
|
4624
4624
|
return code;
|
|
@@ -4663,7 +4663,7 @@ var require_lib4 = __commonJS({
|
|
|
4663
4663
|
return n.default = e, t && t.set(e, n), n;
|
|
4664
4664
|
}
|
|
4665
4665
|
var chalkWithForcedColor = void 0;
|
|
4666
|
-
function
|
|
4666
|
+
function getChalk2(forceColor) {
|
|
4667
4667
|
if (forceColor) {
|
|
4668
4668
|
var _chalkWithForcedColor;
|
|
4669
4669
|
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
|
@@ -4741,7 +4741,7 @@ var require_lib4 = __commonJS({
|
|
|
4741
4741
|
}
|
|
4742
4742
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
4743
4743
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
4744
|
-
const chalk2 =
|
|
4744
|
+
const chalk2 = getChalk2(opts.forceColor);
|
|
4745
4745
|
const defs = getDefs(chalk2);
|
|
4746
4746
|
const maybeHighlight = (chalkFn, string) => {
|
|
4747
4747
|
return highlighted ? chalkFn(string) : string;
|
|
@@ -218044,12 +218044,10 @@ var init_get_log_level = __esm({
|
|
|
218044
218044
|
}
|
|
218045
218045
|
});
|
|
218046
218046
|
|
|
218047
|
-
// packages/config-tools/src/utilities/
|
|
218048
|
-
var import_chalk, chalkDefault,
|
|
218049
|
-
var
|
|
218050
|
-
"packages/config-tools/src/utilities/
|
|
218051
|
-
init_types2();
|
|
218052
|
-
init_get_log_level();
|
|
218047
|
+
// packages/config-tools/src/utilities/chalk.ts
|
|
218048
|
+
var import_chalk, chalkDefault, getChalk;
|
|
218049
|
+
var init_chalk = __esm({
|
|
218050
|
+
"packages/config-tools/src/utilities/chalk.ts"() {
|
|
218053
218051
|
import_chalk = __toESM(require_source());
|
|
218054
218052
|
chalkDefault = {
|
|
218055
218053
|
hex: (_) => (message) => message,
|
|
@@ -218065,11 +218063,25 @@ var init_logger = __esm({
|
|
|
218065
218063
|
whiteBright: (message) => message
|
|
218066
218064
|
}
|
|
218067
218065
|
};
|
|
218068
|
-
|
|
218066
|
+
getChalk = () => {
|
|
218069
218067
|
let _chalk = import_chalk.default;
|
|
218070
218068
|
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
218071
218069
|
_chalk = chalkDefault;
|
|
218072
218070
|
}
|
|
218071
|
+
return _chalk;
|
|
218072
|
+
};
|
|
218073
|
+
}
|
|
218074
|
+
});
|
|
218075
|
+
|
|
218076
|
+
// packages/config-tools/src/utilities/logger.ts
|
|
218077
|
+
var getLogFn, writeFatal, writeError, writeWarning, writeInfo, writeSuccess, writeDebug, writeTrace, writeSystem, getStopwatch;
|
|
218078
|
+
var init_logger = __esm({
|
|
218079
|
+
"packages/config-tools/src/utilities/logger.ts"() {
|
|
218080
|
+
init_types2();
|
|
218081
|
+
init_get_log_level();
|
|
218082
|
+
init_chalk();
|
|
218083
|
+
getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
218084
|
+
let _chalk = getChalk();
|
|
218073
218085
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
218074
218086
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
218075
218087
|
return (_) => {
|
|
@@ -218343,6 +218355,7 @@ var init_utilities = __esm({
|
|
|
218343
218355
|
init_correct_paths();
|
|
218344
218356
|
init_file_path_utils();
|
|
218345
218357
|
init_apply_workspace_tokens();
|
|
218358
|
+
init_chalk();
|
|
218346
218359
|
}
|
|
218347
218360
|
});
|
|
218348
218361
|
|
|
@@ -218689,6 +218702,7 @@ __export(src_exports, {
|
|
|
218689
218702
|
findFileName: () => findFileName,
|
|
218690
218703
|
findWorkspaceRoot: () => findWorkspaceRoot,
|
|
218691
218704
|
findWorkspaceRootSafe: () => findWorkspaceRootSafe,
|
|
218705
|
+
getChalk: () => getChalk,
|
|
218692
218706
|
getConfigEnv: () => getConfigEnv,
|
|
218693
218707
|
getConfigFile: () => getConfigFile,
|
|
218694
218708
|
getConfigFileByName: () => getConfigFileByName,
|