@storm-software/git-tools 2.66.0 → 2.67.1
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/bin/git.js +21 -27
- package/bin/post-checkout.js +21 -27
- package/bin/post-commit.js +21 -27
- package/bin/post-merge.js +21 -27
- package/bin/pre-commit.js +21 -27
- package/bin/pre-install.js +21 -27
- package/bin/pre-push.js +21 -27
- package/bin/prepare.js +21 -27
- package/bin/version-warning.js +21 -27
- package/package.json +1 -1
- package/src/cli/index.js +21 -27
- package/src/commit/index.js +10 -17
- package/src/commitizen/index.js +10 -17
- package/src/index.js +21 -27
- package/src/release/index.js +10 -17
package/bin/pre-commit.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,10 +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
|
-
|
|
66573
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66572
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66574
66573
|
" \u{1F480} Fatal "
|
|
66575
|
-
)} ${_chalk.hex(colors.
|
|
66574
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
66576
66575
|
`
|
|
66577
66576
|
);
|
|
66578
66577
|
};
|
|
@@ -66580,8 +66579,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
|
|
|
66580
66579
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
66581
66580
|
return (message) => {
|
|
66582
66581
|
console.error(
|
|
66583
|
-
|
|
66584
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66582
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66585
66583
|
" \u2718 Error "
|
|
66586
66584
|
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66587
66585
|
`
|
|
@@ -66591,8 +66589,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
|
|
|
66591
66589
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
66592
66590
|
return (message) => {
|
|
66593
66591
|
console.warn(
|
|
66594
|
-
|
|
66595
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66592
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66596
66593
|
" \u26A0 Warn "
|
|
66597
66594
|
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
66598
66595
|
`
|
|
@@ -66602,8 +66599,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66602
66599
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
66603
66600
|
return (message) => {
|
|
66604
66601
|
console.info(
|
|
66605
|
-
|
|
66606
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66602
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66607
66603
|
" \u2713 Success "
|
|
66608
66604
|
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
66609
66605
|
`
|
|
@@ -66613,19 +66609,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66613
66609
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
66614
66610
|
return (message) => {
|
|
66615
66611
|
console.info(
|
|
66616
|
-
|
|
66617
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66612
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66618
66613
|
" \u2139 Info "
|
|
66619
66614
|
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
66620
66615
|
`
|
|
66621
66616
|
);
|
|
66622
66617
|
};
|
|
66623
66618
|
}
|
|
66624
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
66619
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
66625
66620
|
return (message) => {
|
|
66626
66621
|
console.debug(
|
|
66627
|
-
|
|
66628
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66622
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66629
66623
|
" \u{1F6E0} Debug "
|
|
66630
66624
|
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66631
66625
|
`
|
|
@@ -66634,8 +66628,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
|
|
|
66634
66628
|
}
|
|
66635
66629
|
return (message) => {
|
|
66636
66630
|
console.log(
|
|
66637
|
-
|
|
66638
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66631
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66639
66632
|
" \u2709 System "
|
|
66640
66633
|
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66641
66634
|
`
|
|
@@ -66648,6 +66641,7 @@ var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message)
|
|
|
66648
66641
|
var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
66649
66642
|
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
66650
66643
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
66644
|
+
var writeSystem = (message, config) => getLogFn(LogLevel.ALL, config)(message);
|
|
66651
66645
|
var MAX_DEPTH = 4;
|
|
66652
66646
|
var formatLogMessage = (message, options = {}, depth2 = 0) => {
|
|
66653
66647
|
if (depth2 > MAX_DEPTH) {
|
|
@@ -66728,8 +66722,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
66728
66722
|
name: fileName,
|
|
66729
66723
|
envName: fileName?.toUpperCase(),
|
|
66730
66724
|
jitiOptions: {
|
|
66731
|
-
debug:
|
|
66732
|
-
cache: process.env.
|
|
66725
|
+
debug: false,
|
|
66726
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
66733
66727
|
},
|
|
66734
66728
|
...options
|
|
66735
66729
|
});
|
|
@@ -66740,8 +66734,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
66740
66734
|
name: fileName,
|
|
66741
66735
|
envName: fileName?.toUpperCase(),
|
|
66742
66736
|
jitiOptions: {
|
|
66743
|
-
debug:
|
|
66744
|
-
cache: process.env.
|
|
66737
|
+
debug: false,
|
|
66738
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
66745
66739
|
},
|
|
66746
66740
|
configFile: fileName,
|
|
66747
66741
|
...options
|
|
@@ -66754,9 +66748,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
66754
66748
|
const result = await getConfigFileByName("storm", workspacePath);
|
|
66755
66749
|
let config = result.config;
|
|
66756
66750
|
const configFile = result.configFile;
|
|
66757
|
-
if (config && Object.keys(config).length > 0) {
|
|
66758
|
-
|
|
66759
|
-
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
66751
|
+
if (config && configFile && Object.keys(config).length > 0) {
|
|
66752
|
+
writeSystem(
|
|
66753
|
+
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
66760
66754
|
{
|
|
66761
66755
|
logLevel: "all"
|
|
66762
66756
|
}
|
|
@@ -66769,9 +66763,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
66769
66763
|
)
|
|
66770
66764
|
);
|
|
66771
66765
|
for (const result2 of results) {
|
|
66772
|
-
if (result2?.config && Object.keys(result2.config).length > 0) {
|
|
66773
|
-
|
|
66774
|
-
`Found
|
|
66766
|
+
if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
|
|
66767
|
+
writeSystem(
|
|
66768
|
+
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
66775
66769
|
{
|
|
66776
66770
|
logLevel: "all"
|
|
66777
66771
|
}
|
package/bin/pre-install.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,10 +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
|
-
|
|
66573
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66572
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66574
66573
|
" \u{1F480} Fatal "
|
|
66575
|
-
)} ${_chalk.hex(colors.
|
|
66574
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
66576
66575
|
`
|
|
66577
66576
|
);
|
|
66578
66577
|
};
|
|
@@ -66580,8 +66579,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
|
|
|
66580
66579
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
66581
66580
|
return (message) => {
|
|
66582
66581
|
console.error(
|
|
66583
|
-
|
|
66584
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66582
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66585
66583
|
" \u2718 Error "
|
|
66586
66584
|
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66587
66585
|
`
|
|
@@ -66591,8 +66589,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
|
|
|
66591
66589
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
66592
66590
|
return (message) => {
|
|
66593
66591
|
console.warn(
|
|
66594
|
-
|
|
66595
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66592
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66596
66593
|
" \u26A0 Warn "
|
|
66597
66594
|
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
66598
66595
|
`
|
|
@@ -66602,8 +66599,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66602
66599
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
66603
66600
|
return (message) => {
|
|
66604
66601
|
console.info(
|
|
66605
|
-
|
|
66606
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66602
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66607
66603
|
" \u2713 Success "
|
|
66608
66604
|
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
66609
66605
|
`
|
|
@@ -66613,19 +66609,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66613
66609
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
66614
66610
|
return (message) => {
|
|
66615
66611
|
console.info(
|
|
66616
|
-
|
|
66617
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66612
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66618
66613
|
" \u2139 Info "
|
|
66619
66614
|
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
66620
66615
|
`
|
|
66621
66616
|
);
|
|
66622
66617
|
};
|
|
66623
66618
|
}
|
|
66624
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
66619
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
66625
66620
|
return (message) => {
|
|
66626
66621
|
console.debug(
|
|
66627
|
-
|
|
66628
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66622
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66629
66623
|
" \u{1F6E0} Debug "
|
|
66630
66624
|
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66631
66625
|
`
|
|
@@ -66634,8 +66628,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
|
|
|
66634
66628
|
}
|
|
66635
66629
|
return (message) => {
|
|
66636
66630
|
console.log(
|
|
66637
|
-
|
|
66638
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66631
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66639
66632
|
" \u2709 System "
|
|
66640
66633
|
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66641
66634
|
`
|
|
@@ -66648,6 +66641,7 @@ var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message)
|
|
|
66648
66641
|
var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
66649
66642
|
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
66650
66643
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
66644
|
+
var writeSystem = (message, config) => getLogFn(LogLevel.ALL, config)(message);
|
|
66651
66645
|
var MAX_DEPTH = 4;
|
|
66652
66646
|
var formatLogMessage = (message, options = {}, depth2 = 0) => {
|
|
66653
66647
|
if (depth2 > MAX_DEPTH) {
|
|
@@ -66744,8 +66738,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
66744
66738
|
name: fileName,
|
|
66745
66739
|
envName: fileName?.toUpperCase(),
|
|
66746
66740
|
jitiOptions: {
|
|
66747
|
-
debug:
|
|
66748
|
-
cache: process.env.
|
|
66741
|
+
debug: false,
|
|
66742
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
66749
66743
|
},
|
|
66750
66744
|
...options
|
|
66751
66745
|
});
|
|
@@ -66756,8 +66750,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
66756
66750
|
name: fileName,
|
|
66757
66751
|
envName: fileName?.toUpperCase(),
|
|
66758
66752
|
jitiOptions: {
|
|
66759
|
-
debug:
|
|
66760
|
-
cache: process.env.
|
|
66753
|
+
debug: false,
|
|
66754
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
66761
66755
|
},
|
|
66762
66756
|
configFile: fileName,
|
|
66763
66757
|
...options
|
|
@@ -66770,9 +66764,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
66770
66764
|
const result = await getConfigFileByName("storm", workspacePath);
|
|
66771
66765
|
let config = result.config;
|
|
66772
66766
|
const configFile = result.configFile;
|
|
66773
|
-
if (config && Object.keys(config).length > 0) {
|
|
66774
|
-
|
|
66775
|
-
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
66767
|
+
if (config && configFile && Object.keys(config).length > 0) {
|
|
66768
|
+
writeSystem(
|
|
66769
|
+
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
66776
66770
|
{
|
|
66777
66771
|
logLevel: "all"
|
|
66778
66772
|
}
|
|
@@ -66785,9 +66779,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
66785
66779
|
)
|
|
66786
66780
|
);
|
|
66787
66781
|
for (const result2 of results) {
|
|
66788
|
-
if (result2?.config && Object.keys(result2.config).length > 0) {
|
|
66789
|
-
|
|
66790
|
-
`Found
|
|
66782
|
+
if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
|
|
66783
|
+
writeSystem(
|
|
66784
|
+
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
66791
66785
|
{
|
|
66792
66786
|
logLevel: "all"
|
|
66793
66787
|
}
|
package/bin/pre-push.js
CHANGED
|
@@ -66566,7 +66566,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
66566
66566
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
66567
66567
|
const _chalk = getChalk();
|
|
66568
66568
|
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;
|
|
66569
|
-
const configLogLevel = config.logLevel
|
|
66569
|
+
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
66570
66570
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
66571
66571
|
return (_6) => {
|
|
66572
66572
|
};
|
|
@@ -66574,10 +66574,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66574
66574
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
66575
66575
|
return (message) => {
|
|
66576
66576
|
console.error(
|
|
66577
|
-
|
|
66578
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66577
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66579
66578
|
" \u{1F480} Fatal "
|
|
66580
|
-
)} ${_chalk.hex(colors.
|
|
66579
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
66581
66580
|
`
|
|
66582
66581
|
);
|
|
66583
66582
|
};
|
|
@@ -66585,8 +66584,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
|
|
|
66585
66584
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
66586
66585
|
return (message) => {
|
|
66587
66586
|
console.error(
|
|
66588
|
-
|
|
66589
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66587
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66590
66588
|
" \u2718 Error "
|
|
66591
66589
|
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66592
66590
|
`
|
|
@@ -66596,8 +66594,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
|
|
|
66596
66594
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
66597
66595
|
return (message) => {
|
|
66598
66596
|
console.warn(
|
|
66599
|
-
|
|
66600
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66597
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66601
66598
|
" \u26A0 Warn "
|
|
66602
66599
|
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
66603
66600
|
`
|
|
@@ -66607,8 +66604,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66607
66604
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
66608
66605
|
return (message) => {
|
|
66609
66606
|
console.info(
|
|
66610
|
-
|
|
66611
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66607
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66612
66608
|
" \u2713 Success "
|
|
66613
66609
|
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
66614
66610
|
`
|
|
@@ -66618,19 +66614,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66618
66614
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
66619
66615
|
return (message) => {
|
|
66620
66616
|
console.info(
|
|
66621
|
-
|
|
66622
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66617
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66623
66618
|
" \u2139 Info "
|
|
66624
66619
|
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
66625
66620
|
`
|
|
66626
66621
|
);
|
|
66627
66622
|
};
|
|
66628
66623
|
}
|
|
66629
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
66624
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
66630
66625
|
return (message) => {
|
|
66631
66626
|
console.debug(
|
|
66632
|
-
|
|
66633
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66627
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66634
66628
|
" \u{1F6E0} Debug "
|
|
66635
66629
|
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66636
66630
|
`
|
|
@@ -66639,8 +66633,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
|
|
|
66639
66633
|
}
|
|
66640
66634
|
return (message) => {
|
|
66641
66635
|
console.log(
|
|
66642
|
-
|
|
66643
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66636
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66644
66637
|
" \u2709 System "
|
|
66645
66638
|
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66646
66639
|
`
|
|
@@ -66653,6 +66646,7 @@ var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message)
|
|
|
66653
66646
|
var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
66654
66647
|
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
66655
66648
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
66649
|
+
var writeSystem = (message, config) => getLogFn(LogLevel.ALL, config)(message);
|
|
66656
66650
|
var MAX_DEPTH = 4;
|
|
66657
66651
|
var formatLogMessage = (message, options = {}, depth2 = 0) => {
|
|
66658
66652
|
if (depth2 > MAX_DEPTH) {
|
|
@@ -66749,8 +66743,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
66749
66743
|
name: fileName,
|
|
66750
66744
|
envName: fileName?.toUpperCase(),
|
|
66751
66745
|
jitiOptions: {
|
|
66752
|
-
debug:
|
|
66753
|
-
cache: process.env.
|
|
66746
|
+
debug: false,
|
|
66747
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
66754
66748
|
},
|
|
66755
66749
|
...options
|
|
66756
66750
|
});
|
|
@@ -66761,8 +66755,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
66761
66755
|
name: fileName,
|
|
66762
66756
|
envName: fileName?.toUpperCase(),
|
|
66763
66757
|
jitiOptions: {
|
|
66764
|
-
debug:
|
|
66765
|
-
cache: process.env.
|
|
66758
|
+
debug: false,
|
|
66759
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
66766
66760
|
},
|
|
66767
66761
|
configFile: fileName,
|
|
66768
66762
|
...options
|
|
@@ -66775,9 +66769,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
66775
66769
|
const result = await getConfigFileByName("storm", workspacePath);
|
|
66776
66770
|
let config = result.config;
|
|
66777
66771
|
const configFile = result.configFile;
|
|
66778
|
-
if (config && Object.keys(config).length > 0) {
|
|
66779
|
-
|
|
66780
|
-
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
66772
|
+
if (config && configFile && Object.keys(config).length > 0) {
|
|
66773
|
+
writeSystem(
|
|
66774
|
+
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
66781
66775
|
{
|
|
66782
66776
|
logLevel: "all"
|
|
66783
66777
|
}
|
|
@@ -66790,9 +66784,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
66790
66784
|
)
|
|
66791
66785
|
);
|
|
66792
66786
|
for (const result2 of results) {
|
|
66793
|
-
if (result2?.config && Object.keys(result2.config).length > 0) {
|
|
66794
|
-
|
|
66795
|
-
`Found
|
|
66787
|
+
if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
|
|
66788
|
+
writeSystem(
|
|
66789
|
+
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
66796
66790
|
{
|
|
66797
66791
|
logLevel: "all"
|
|
66798
66792
|
}
|
package/bin/prepare.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,10 +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
|
-
|
|
66573
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66572
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66574
66573
|
" \u{1F480} Fatal "
|
|
66575
|
-
)} ${_chalk.hex(colors.
|
|
66574
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
66576
66575
|
`
|
|
66577
66576
|
);
|
|
66578
66577
|
};
|
|
@@ -66580,8 +66579,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
|
|
|
66580
66579
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
66581
66580
|
return (message) => {
|
|
66582
66581
|
console.error(
|
|
66583
|
-
|
|
66584
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66582
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66585
66583
|
" \u2718 Error "
|
|
66586
66584
|
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66587
66585
|
`
|
|
@@ -66591,8 +66589,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
|
|
|
66591
66589
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
66592
66590
|
return (message) => {
|
|
66593
66591
|
console.warn(
|
|
66594
|
-
|
|
66595
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66592
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66596
66593
|
" \u26A0 Warn "
|
|
66597
66594
|
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
66598
66595
|
`
|
|
@@ -66602,8 +66599,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66602
66599
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
66603
66600
|
return (message) => {
|
|
66604
66601
|
console.info(
|
|
66605
|
-
|
|
66606
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66602
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66607
66603
|
" \u2713 Success "
|
|
66608
66604
|
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
66609
66605
|
`
|
|
@@ -66613,19 +66609,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66613
66609
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
66614
66610
|
return (message) => {
|
|
66615
66611
|
console.info(
|
|
66616
|
-
|
|
66617
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66612
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66618
66613
|
" \u2139 Info "
|
|
66619
66614
|
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
66620
66615
|
`
|
|
66621
66616
|
);
|
|
66622
66617
|
};
|
|
66623
66618
|
}
|
|
66624
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
66619
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
66625
66620
|
return (message) => {
|
|
66626
66621
|
console.debug(
|
|
66627
|
-
|
|
66628
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66622
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66629
66623
|
" \u{1F6E0} Debug "
|
|
66630
66624
|
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66631
66625
|
`
|
|
@@ -66634,8 +66628,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
|
|
|
66634
66628
|
}
|
|
66635
66629
|
return (message) => {
|
|
66636
66630
|
console.log(
|
|
66637
|
-
|
|
66638
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66631
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66639
66632
|
" \u2709 System "
|
|
66640
66633
|
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66641
66634
|
`
|
|
@@ -66648,6 +66641,7 @@ var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message)
|
|
|
66648
66641
|
var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
66649
66642
|
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
66650
66643
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
66644
|
+
var writeSystem = (message, config) => getLogFn(LogLevel.ALL, config)(message);
|
|
66651
66645
|
var MAX_DEPTH = 4;
|
|
66652
66646
|
var formatLogMessage = (message, options = {}, depth2 = 0) => {
|
|
66653
66647
|
if (depth2 > MAX_DEPTH) {
|
|
@@ -66744,8 +66738,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
66744
66738
|
name: fileName,
|
|
66745
66739
|
envName: fileName?.toUpperCase(),
|
|
66746
66740
|
jitiOptions: {
|
|
66747
|
-
debug:
|
|
66748
|
-
cache: process.env.
|
|
66741
|
+
debug: false,
|
|
66742
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
66749
66743
|
},
|
|
66750
66744
|
...options
|
|
66751
66745
|
});
|
|
@@ -66756,8 +66750,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
66756
66750
|
name: fileName,
|
|
66757
66751
|
envName: fileName?.toUpperCase(),
|
|
66758
66752
|
jitiOptions: {
|
|
66759
|
-
debug:
|
|
66760
|
-
cache: process.env.
|
|
66753
|
+
debug: false,
|
|
66754
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
66761
66755
|
},
|
|
66762
66756
|
configFile: fileName,
|
|
66763
66757
|
...options
|
|
@@ -66770,9 +66764,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
66770
66764
|
const result = await getConfigFileByName("storm", workspacePath);
|
|
66771
66765
|
let config = result.config;
|
|
66772
66766
|
const configFile = result.configFile;
|
|
66773
|
-
if (config && Object.keys(config).length > 0) {
|
|
66774
|
-
|
|
66775
|
-
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
66767
|
+
if (config && configFile && Object.keys(config).length > 0) {
|
|
66768
|
+
writeSystem(
|
|
66769
|
+
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
66776
66770
|
{
|
|
66777
66771
|
logLevel: "all"
|
|
66778
66772
|
}
|
|
@@ -66785,9 +66779,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
66785
66779
|
)
|
|
66786
66780
|
);
|
|
66787
66781
|
for (const result2 of results) {
|
|
66788
|
-
if (result2?.config && Object.keys(result2.config).length > 0) {
|
|
66789
|
-
|
|
66790
|
-
`Found
|
|
66782
|
+
if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
|
|
66783
|
+
writeSystem(
|
|
66784
|
+
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
66791
66785
|
{
|
|
66792
66786
|
logLevel: "all"
|
|
66793
66787
|
}
|