@storm-software/git-tools 2.67.0 → 2.70.0
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 +24 -0
- package/README.md +1 -1
- package/bin/git.js +21 -20
- package/bin/post-checkout.js +21 -20
- package/bin/post-commit.js +21 -20
- package/bin/post-merge.js +21 -20
- package/bin/pre-commit.js +21 -20
- package/bin/pre-install.js +21 -20
- package/bin/pre-push.js +21 -20
- package/bin/prepare.js +21 -20
- package/bin/version-warning.js +21 -20
- package/package.json +2 -2
- package/src/cli/index.js +21 -20
- package/src/commit/index.js +10 -10
- package/src/commitizen/index.js +10 -10
- package/src/index.js +21 -20
- package/src/release/index.js +10 -10
package/bin/version-warning.js
CHANGED
|
@@ -66561,7 +66561,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
66561
66561
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
66562
66562
|
const _chalk = getChalk();
|
|
66563
66563
|
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
66564
|
-
const configLogLevel = config.logLevel
|
|
66564
|
+
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
66565
66565
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
66566
66566
|
return (_6) => {
|
|
66567
66567
|
};
|
|
@@ -66569,9 +66569,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66569
66569
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
66570
66570
|
return (message) => {
|
|
66571
66571
|
console.error(
|
|
66572
|
-
`${_chalk.bold.hex(colors.
|
|
66572
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66573
66573
|
" \u{1F480} Fatal "
|
|
66574
|
-
)} ${_chalk.hex(colors.
|
|
66574
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
66575
66575
|
`
|
|
66576
66576
|
);
|
|
66577
66577
|
};
|
|
@@ -66581,7 +66581,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66581
66581
|
console.error(
|
|
66582
66582
|
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66583
66583
|
" \u2718 Error "
|
|
66584
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66584
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66585
66585
|
`
|
|
66586
66586
|
);
|
|
66587
66587
|
};
|
|
@@ -66591,7 +66591,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66591
66591
|
console.warn(
|
|
66592
66592
|
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66593
66593
|
" \u26A0 Warn "
|
|
66594
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
66594
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
66595
66595
|
`
|
|
66596
66596
|
);
|
|
66597
66597
|
};
|
|
@@ -66601,7 +66601,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66601
66601
|
console.info(
|
|
66602
66602
|
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66603
66603
|
" \u2713 Success "
|
|
66604
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
66604
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
66605
66605
|
`
|
|
66606
66606
|
);
|
|
66607
66607
|
};
|
|
@@ -66611,17 +66611,17 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66611
66611
|
console.info(
|
|
66612
66612
|
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66613
66613
|
" \u2139 Info "
|
|
66614
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
66614
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
66615
66615
|
`
|
|
66616
66616
|
);
|
|
66617
66617
|
};
|
|
66618
66618
|
}
|
|
66619
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
66619
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
66620
66620
|
return (message) => {
|
|
66621
66621
|
console.debug(
|
|
66622
66622
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66623
66623
|
" \u{1F6E0} Debug "
|
|
66624
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66624
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66625
66625
|
`
|
|
66626
66626
|
);
|
|
66627
66627
|
};
|
|
@@ -66630,7 +66630,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66630
66630
|
console.log(
|
|
66631
66631
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66632
66632
|
" \u2709 System "
|
|
66633
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66633
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66634
66634
|
`
|
|
66635
66635
|
);
|
|
66636
66636
|
};
|
|
@@ -66640,6 +66640,7 @@ var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
|
|
|
66640
66640
|
var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
66641
66641
|
var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
66642
66642
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
66643
|
+
var writeSystem = (message, config) => getLogFn(LogLevel.ALL, config)(message);
|
|
66643
66644
|
var MAX_DEPTH = 4;
|
|
66644
66645
|
var formatLogMessage = (message, options = {}, depth2 = 0) => {
|
|
66645
66646
|
if (depth2 > MAX_DEPTH) {
|
|
@@ -66716,8 +66717,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
66716
66717
|
name: fileName,
|
|
66717
66718
|
envName: fileName?.toUpperCase(),
|
|
66718
66719
|
jitiOptions: {
|
|
66719
|
-
debug:
|
|
66720
|
-
cache: process.env.
|
|
66720
|
+
debug: false,
|
|
66721
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
66721
66722
|
},
|
|
66722
66723
|
...options
|
|
66723
66724
|
});
|
|
@@ -66728,8 +66729,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
66728
66729
|
name: fileName,
|
|
66729
66730
|
envName: fileName?.toUpperCase(),
|
|
66730
66731
|
jitiOptions: {
|
|
66731
|
-
debug:
|
|
66732
|
-
cache: process.env.
|
|
66732
|
+
debug: false,
|
|
66733
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
66733
66734
|
},
|
|
66734
66735
|
configFile: fileName,
|
|
66735
66736
|
...options
|
|
@@ -66742,9 +66743,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
66742
66743
|
const result = await getConfigFileByName("storm", workspacePath);
|
|
66743
66744
|
let config = result.config;
|
|
66744
66745
|
const configFile = result.configFile;
|
|
66745
|
-
if (config && Object.keys(config).length > 0) {
|
|
66746
|
-
|
|
66747
|
-
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
66746
|
+
if (config && configFile && Object.keys(config).length > 0) {
|
|
66747
|
+
writeSystem(
|
|
66748
|
+
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
66748
66749
|
{
|
|
66749
66750
|
logLevel: "all"
|
|
66750
66751
|
}
|
|
@@ -66757,9 +66758,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
66757
66758
|
)
|
|
66758
66759
|
);
|
|
66759
66760
|
for (const result2 of results) {
|
|
66760
|
-
if (result2?.config && Object.keys(result2.config).length > 0) {
|
|
66761
|
-
|
|
66762
|
-
`Found
|
|
66761
|
+
if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
|
|
66762
|
+
writeSystem(
|
|
66763
|
+
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
66763
66764
|
{
|
|
66764
66765
|
logLevel: "all"
|
|
66765
66766
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/git-tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.70.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "⚡ A package containing various git tools used in Storm workspaces.",
|
|
6
6
|
"repository": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"htmlparser2": "9.1.0",
|
|
71
71
|
"inquirer": "9.2.23",
|
|
72
72
|
"jsonc-parser": "3.2.1",
|
|
73
|
-
"nx": "
|
|
73
|
+
"nx": "20.0.6",
|
|
74
74
|
"prettier": "3.3.2",
|
|
75
75
|
"semver": "7.6.2",
|
|
76
76
|
"tsconfig-paths": "4.2.0",
|
package/src/cli/index.js
CHANGED
|
@@ -226083,7 +226083,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
226083
226083
|
var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
226084
226084
|
const _chalk = getChalk();
|
|
226085
226085
|
const colors = !config2.colors?.dark && !config2.colors?.["base"] && !config2.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config2.colors?.dark && typeof config2.colors.dark === "string" ? config2.colors : config2.colors?.["base"]?.dark && typeof config2.colors["base"].dark === "string" ? config2.colors["base"].dark : config2.colors?.["base"] ? config2.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
226086
|
-
const configLogLevel = config2.logLevel
|
|
226086
|
+
const configLogLevel = config2.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
226087
226087
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
226088
226088
|
return (_15) => {
|
|
226089
226089
|
};
|
|
@@ -226091,9 +226091,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226091
226091
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
226092
226092
|
return (message) => {
|
|
226093
226093
|
console.error(
|
|
226094
|
-
`${_chalk.bold.hex(colors.
|
|
226094
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
226095
226095
|
" \u{1F480} Fatal "
|
|
226096
|
-
)} ${_chalk.hex(colors.
|
|
226096
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
226097
226097
|
`
|
|
226098
226098
|
);
|
|
226099
226099
|
};
|
|
@@ -226103,7 +226103,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226103
226103
|
console.error(
|
|
226104
226104
|
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
226105
226105
|
" \u2718 Error "
|
|
226106
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
226106
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
226107
226107
|
`
|
|
226108
226108
|
);
|
|
226109
226109
|
};
|
|
@@ -226113,7 +226113,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226113
226113
|
console.warn(
|
|
226114
226114
|
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
226115
226115
|
" \u26A0 Warn "
|
|
226116
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
226116
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
226117
226117
|
`
|
|
226118
226118
|
);
|
|
226119
226119
|
};
|
|
@@ -226123,7 +226123,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226123
226123
|
console.info(
|
|
226124
226124
|
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
226125
226125
|
" \u2713 Success "
|
|
226126
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
226126
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
226127
226127
|
`
|
|
226128
226128
|
);
|
|
226129
226129
|
};
|
|
@@ -226133,17 +226133,17 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226133
226133
|
console.info(
|
|
226134
226134
|
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
226135
226135
|
" \u2139 Info "
|
|
226136
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
226136
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
226137
226137
|
`
|
|
226138
226138
|
);
|
|
226139
226139
|
};
|
|
226140
226140
|
}
|
|
226141
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
226141
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
226142
226142
|
return (message) => {
|
|
226143
226143
|
console.debug(
|
|
226144
226144
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
226145
226145
|
" \u{1F6E0} Debug "
|
|
226146
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
226146
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
226147
226147
|
`
|
|
226148
226148
|
);
|
|
226149
226149
|
};
|
|
@@ -226152,7 +226152,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226152
226152
|
console.log(
|
|
226153
226153
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
226154
226154
|
" \u2709 System "
|
|
226155
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
226155
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
226156
226156
|
`
|
|
226157
226157
|
);
|
|
226158
226158
|
};
|
|
@@ -226164,6 +226164,7 @@ var writeInfo = (message, config2) => getLogFn(LogLevel.INFO, config2)(message);
|
|
|
226164
226164
|
var writeSuccess = (message, config2) => getLogFn(LogLevel.SUCCESS, config2)(message);
|
|
226165
226165
|
var writeDebug = (message, config2) => getLogFn(LogLevel.DEBUG, config2)(message);
|
|
226166
226166
|
var writeTrace = (message, config2) => getLogFn(LogLevel.TRACE, config2)(message);
|
|
226167
|
+
var writeSystem = (message, config2) => getLogFn(LogLevel.ALL, config2)(message);
|
|
226167
226168
|
var MAX_DEPTH = 4;
|
|
226168
226169
|
var formatLogMessage = (message, options8 = {}, depth2 = 0) => {
|
|
226169
226170
|
if (depth2 > MAX_DEPTH) {
|
|
@@ -226201,8 +226202,8 @@ var getConfigFileByName = async (fileName, filePath, options8 = {}) => {
|
|
|
226201
226202
|
name: fileName,
|
|
226202
226203
|
envName: fileName?.toUpperCase(),
|
|
226203
226204
|
jitiOptions: {
|
|
226204
|
-
debug:
|
|
226205
|
-
cache: process.env.
|
|
226205
|
+
debug: false,
|
|
226206
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
226206
226207
|
},
|
|
226207
226208
|
...options8
|
|
226208
226209
|
});
|
|
@@ -226213,8 +226214,8 @@ var getConfigFileByName = async (fileName, filePath, options8 = {}) => {
|
|
|
226213
226214
|
name: fileName,
|
|
226214
226215
|
envName: fileName?.toUpperCase(),
|
|
226215
226216
|
jitiOptions: {
|
|
226216
|
-
debug:
|
|
226217
|
-
cache: process.env.
|
|
226217
|
+
debug: false,
|
|
226218
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
226218
226219
|
},
|
|
226219
226220
|
configFile: fileName,
|
|
226220
226221
|
...options8
|
|
@@ -226227,9 +226228,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
226227
226228
|
const result2 = await getConfigFileByName("storm", workspacePath);
|
|
226228
226229
|
let config2 = result2.config;
|
|
226229
226230
|
const configFile = result2.configFile;
|
|
226230
|
-
if (config2 && Object.keys(config2).length > 0) {
|
|
226231
|
-
|
|
226232
|
-
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
226231
|
+
if (config2 && configFile && Object.keys(config2).length > 0) {
|
|
226232
|
+
writeSystem(
|
|
226233
|
+
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
226233
226234
|
{
|
|
226234
226235
|
logLevel: "all"
|
|
226235
226236
|
}
|
|
@@ -226242,9 +226243,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
226242
226243
|
)
|
|
226243
226244
|
);
|
|
226244
226245
|
for (const result3 of results) {
|
|
226245
|
-
if (result3?.config && Object.keys(result3.config).length > 0) {
|
|
226246
|
-
|
|
226247
|
-
`Found
|
|
226246
|
+
if (result3?.config && result3?.configFile && Object.keys(result3.config).length > 0) {
|
|
226247
|
+
writeSystem(
|
|
226248
|
+
`Found alternative configuration file "${result3.configFile.includes(`${workspacePath}/`) ? result3.configFile.replace(`${workspacePath}/`, "") : result3.configFile}" at "${workspacePath}"`,
|
|
226248
226249
|
{
|
|
226249
226250
|
logLevel: "all"
|
|
226250
226251
|
}
|
package/src/commit/index.js
CHANGED
|
@@ -37538,7 +37538,7 @@ var getLogLevel = (label) => {
|
|
|
37538
37538
|
var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
37539
37539
|
const _chalk = getChalk();
|
|
37540
37540
|
const colors = !config2.colors?.dark && !config2.colors?.["base"] && !config2.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config2.colors?.dark && typeof config2.colors.dark === "string" ? config2.colors : config2.colors?.["base"]?.dark && typeof config2.colors["base"].dark === "string" ? config2.colors["base"].dark : config2.colors?.["base"] ? config2.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
37541
|
-
const configLogLevel = config2.logLevel
|
|
37541
|
+
const configLogLevel = config2.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
37542
37542
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
37543
37543
|
return (_3) => {
|
|
37544
37544
|
};
|
|
@@ -37546,9 +37546,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37546
37546
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
37547
37547
|
return (message) => {
|
|
37548
37548
|
console.error(
|
|
37549
|
-
`${_chalk.bold.hex(colors.
|
|
37549
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
37550
37550
|
" \u{1F480} Fatal "
|
|
37551
|
-
)} ${_chalk.hex(colors.
|
|
37551
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
37552
37552
|
`
|
|
37553
37553
|
);
|
|
37554
37554
|
};
|
|
@@ -37558,7 +37558,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37558
37558
|
console.error(
|
|
37559
37559
|
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
37560
37560
|
" \u2718 Error "
|
|
37561
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
37561
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
37562
37562
|
`
|
|
37563
37563
|
);
|
|
37564
37564
|
};
|
|
@@ -37568,7 +37568,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37568
37568
|
console.warn(
|
|
37569
37569
|
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
37570
37570
|
" \u26A0 Warn "
|
|
37571
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
37571
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
37572
37572
|
`
|
|
37573
37573
|
);
|
|
37574
37574
|
};
|
|
@@ -37578,7 +37578,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37578
37578
|
console.info(
|
|
37579
37579
|
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
37580
37580
|
" \u2713 Success "
|
|
37581
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
37581
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
37582
37582
|
`
|
|
37583
37583
|
);
|
|
37584
37584
|
};
|
|
@@ -37588,17 +37588,17 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37588
37588
|
console.info(
|
|
37589
37589
|
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
37590
37590
|
" \u2139 Info "
|
|
37591
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
37591
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
37592
37592
|
`
|
|
37593
37593
|
);
|
|
37594
37594
|
};
|
|
37595
37595
|
}
|
|
37596
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
37596
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
37597
37597
|
return (message) => {
|
|
37598
37598
|
console.debug(
|
|
37599
37599
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
37600
37600
|
" \u{1F6E0} Debug "
|
|
37601
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
37601
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
37602
37602
|
`
|
|
37603
37603
|
);
|
|
37604
37604
|
};
|
|
@@ -37607,7 +37607,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37607
37607
|
console.log(
|
|
37608
37608
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
37609
37609
|
" \u2709 System "
|
|
37610
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
37610
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
37611
37611
|
`
|
|
37612
37612
|
);
|
|
37613
37613
|
};
|
package/src/commitizen/index.js
CHANGED
|
@@ -37485,7 +37485,7 @@ var getLogLevel = (label) => {
|
|
|
37485
37485
|
var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
37486
37486
|
const _chalk = getChalk();
|
|
37487
37487
|
const colors = !config2.colors?.dark && !config2.colors?.["base"] && !config2.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config2.colors?.dark && typeof config2.colors.dark === "string" ? config2.colors : config2.colors?.["base"]?.dark && typeof config2.colors["base"].dark === "string" ? config2.colors["base"].dark : config2.colors?.["base"] ? config2.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
37488
|
-
const configLogLevel = config2.logLevel
|
|
37488
|
+
const configLogLevel = config2.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
37489
37489
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
37490
37490
|
return (_3) => {
|
|
37491
37491
|
};
|
|
@@ -37493,9 +37493,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37493
37493
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
37494
37494
|
return (message) => {
|
|
37495
37495
|
console.error(
|
|
37496
|
-
`${_chalk.bold.hex(colors.
|
|
37496
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
37497
37497
|
" \u{1F480} Fatal "
|
|
37498
|
-
)} ${_chalk.hex(colors.
|
|
37498
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
37499
37499
|
`
|
|
37500
37500
|
);
|
|
37501
37501
|
};
|
|
@@ -37505,7 +37505,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37505
37505
|
console.error(
|
|
37506
37506
|
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
37507
37507
|
" \u2718 Error "
|
|
37508
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
37508
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
37509
37509
|
`
|
|
37510
37510
|
);
|
|
37511
37511
|
};
|
|
@@ -37515,7 +37515,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37515
37515
|
console.warn(
|
|
37516
37516
|
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
37517
37517
|
" \u26A0 Warn "
|
|
37518
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
37518
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
37519
37519
|
`
|
|
37520
37520
|
);
|
|
37521
37521
|
};
|
|
@@ -37525,7 +37525,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37525
37525
|
console.info(
|
|
37526
37526
|
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
37527
37527
|
" \u2713 Success "
|
|
37528
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
37528
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
37529
37529
|
`
|
|
37530
37530
|
);
|
|
37531
37531
|
};
|
|
@@ -37535,17 +37535,17 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37535
37535
|
console.info(
|
|
37536
37536
|
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
37537
37537
|
" \u2139 Info "
|
|
37538
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
37538
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
37539
37539
|
`
|
|
37540
37540
|
);
|
|
37541
37541
|
};
|
|
37542
37542
|
}
|
|
37543
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
37543
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
37544
37544
|
return (message) => {
|
|
37545
37545
|
console.debug(
|
|
37546
37546
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
37547
37547
|
" \u{1F6E0} Debug "
|
|
37548
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
37548
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
37549
37549
|
`
|
|
37550
37550
|
);
|
|
37551
37551
|
};
|
|
@@ -37554,7 +37554,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37554
37554
|
console.log(
|
|
37555
37555
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
37556
37556
|
" \u2709 System "
|
|
37557
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
37557
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
37558
37558
|
`
|
|
37559
37559
|
);
|
|
37560
37560
|
};
|
package/src/index.js
CHANGED
|
@@ -226083,7 +226083,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
226083
226083
|
var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
226084
226084
|
const _chalk = getChalk();
|
|
226085
226085
|
const colors = !config2.colors?.dark && !config2.colors?.["base"] && !config2.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config2.colors?.dark && typeof config2.colors.dark === "string" ? config2.colors : config2.colors?.["base"]?.dark && typeof config2.colors["base"].dark === "string" ? config2.colors["base"].dark : config2.colors?.["base"] ? config2.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
226086
|
-
const configLogLevel = config2.logLevel
|
|
226086
|
+
const configLogLevel = config2.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
226087
226087
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
226088
226088
|
return (_15) => {
|
|
226089
226089
|
};
|
|
@@ -226091,9 +226091,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226091
226091
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
226092
226092
|
return (message) => {
|
|
226093
226093
|
console.error(
|
|
226094
|
-
`${_chalk.bold.hex(colors.
|
|
226094
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
226095
226095
|
" \u{1F480} Fatal "
|
|
226096
|
-
)} ${_chalk.hex(colors.
|
|
226096
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
226097
226097
|
`
|
|
226098
226098
|
);
|
|
226099
226099
|
};
|
|
@@ -226103,7 +226103,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226103
226103
|
console.error(
|
|
226104
226104
|
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
226105
226105
|
" \u2718 Error "
|
|
226106
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
226106
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
226107
226107
|
`
|
|
226108
226108
|
);
|
|
226109
226109
|
};
|
|
@@ -226113,7 +226113,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226113
226113
|
console.warn(
|
|
226114
226114
|
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
226115
226115
|
" \u26A0 Warn "
|
|
226116
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
226116
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
226117
226117
|
`
|
|
226118
226118
|
);
|
|
226119
226119
|
};
|
|
@@ -226123,7 +226123,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226123
226123
|
console.info(
|
|
226124
226124
|
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
226125
226125
|
" \u2713 Success "
|
|
226126
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
226126
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
226127
226127
|
`
|
|
226128
226128
|
);
|
|
226129
226129
|
};
|
|
@@ -226133,17 +226133,17 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226133
226133
|
console.info(
|
|
226134
226134
|
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
226135
226135
|
" \u2139 Info "
|
|
226136
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
226136
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
226137
226137
|
`
|
|
226138
226138
|
);
|
|
226139
226139
|
};
|
|
226140
226140
|
}
|
|
226141
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
226141
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
226142
226142
|
return (message) => {
|
|
226143
226143
|
console.debug(
|
|
226144
226144
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
226145
226145
|
" \u{1F6E0} Debug "
|
|
226146
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
226146
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
226147
226147
|
`
|
|
226148
226148
|
);
|
|
226149
226149
|
};
|
|
@@ -226152,7 +226152,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226152
226152
|
console.log(
|
|
226153
226153
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
226154
226154
|
" \u2709 System "
|
|
226155
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
226155
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
226156
226156
|
`
|
|
226157
226157
|
);
|
|
226158
226158
|
};
|
|
@@ -226164,6 +226164,7 @@ var writeInfo = (message, config2) => getLogFn(LogLevel.INFO, config2)(message);
|
|
|
226164
226164
|
var writeSuccess = (message, config2) => getLogFn(LogLevel.SUCCESS, config2)(message);
|
|
226165
226165
|
var writeDebug = (message, config2) => getLogFn(LogLevel.DEBUG, config2)(message);
|
|
226166
226166
|
var writeTrace = (message, config2) => getLogFn(LogLevel.TRACE, config2)(message);
|
|
226167
|
+
var writeSystem = (message, config2) => getLogFn(LogLevel.ALL, config2)(message);
|
|
226167
226168
|
var MAX_DEPTH = 4;
|
|
226168
226169
|
var formatLogMessage = (message, options8 = {}, depth2 = 0) => {
|
|
226169
226170
|
if (depth2 > MAX_DEPTH) {
|
|
@@ -226201,8 +226202,8 @@ var getConfigFileByName = async (fileName, filePath, options8 = {}) => {
|
|
|
226201
226202
|
name: fileName,
|
|
226202
226203
|
envName: fileName?.toUpperCase(),
|
|
226203
226204
|
jitiOptions: {
|
|
226204
|
-
debug:
|
|
226205
|
-
cache: process.env.
|
|
226205
|
+
debug: false,
|
|
226206
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
226206
226207
|
},
|
|
226207
226208
|
...options8
|
|
226208
226209
|
});
|
|
@@ -226213,8 +226214,8 @@ var getConfigFileByName = async (fileName, filePath, options8 = {}) => {
|
|
|
226213
226214
|
name: fileName,
|
|
226214
226215
|
envName: fileName?.toUpperCase(),
|
|
226215
226216
|
jitiOptions: {
|
|
226216
|
-
debug:
|
|
226217
|
-
cache: process.env.
|
|
226217
|
+
debug: false,
|
|
226218
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
226218
226219
|
},
|
|
226219
226220
|
configFile: fileName,
|
|
226220
226221
|
...options8
|
|
@@ -226227,9 +226228,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
226227
226228
|
const result2 = await getConfigFileByName("storm", workspacePath);
|
|
226228
226229
|
let config2 = result2.config;
|
|
226229
226230
|
const configFile = result2.configFile;
|
|
226230
|
-
if (config2 && Object.keys(config2).length > 0) {
|
|
226231
|
-
|
|
226232
|
-
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
226231
|
+
if (config2 && configFile && Object.keys(config2).length > 0) {
|
|
226232
|
+
writeSystem(
|
|
226233
|
+
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
226233
226234
|
{
|
|
226234
226235
|
logLevel: "all"
|
|
226235
226236
|
}
|
|
@@ -226242,9 +226243,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
226242
226243
|
)
|
|
226243
226244
|
);
|
|
226244
226245
|
for (const result3 of results) {
|
|
226245
|
-
if (result3?.config && Object.keys(result3.config).length > 0) {
|
|
226246
|
-
|
|
226247
|
-
`Found
|
|
226246
|
+
if (result3?.config && result3?.configFile && Object.keys(result3.config).length > 0) {
|
|
226247
|
+
writeSystem(
|
|
226248
|
+
`Found alternative configuration file "${result3.configFile.includes(`${workspacePath}/`) ? result3.configFile.replace(`${workspacePath}/`, "") : result3.configFile}" at "${workspacePath}"`,
|
|
226248
226249
|
{
|
|
226249
226250
|
logLevel: "all"
|
|
226250
226251
|
}
|