@storm-software/linting-tools 1.89.0 → 1.90.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/lint.js +21 -27
- package/package.json +1 -1
- package/src/cli/index.js +21 -27
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.90.1 (2024-11-10)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **config-tools:** Ensure trace logging is not marked as system logging ([e8dca171](https://github.com/storm-software/storm-ops/commit/e8dca171))
|
|
6
|
+
|
|
7
|
+
## 1.90.0 (2024-11-08)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **build-tools:** Added back cjs build and local package.json dependencies ([d86d3c2a](https://github.com/storm-software/storm-ops/commit/d86d3c2a))
|
|
12
|
+
|
|
1
13
|
## 1.89.0 (2024-11-07)
|
|
2
14
|
|
|
3
15
|
### Features
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/bin/lint.js
CHANGED
|
@@ -356956,7 +356956,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
356956
356956
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
356957
356957
|
const _chalk = getChalk();
|
|
356958
356958
|
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;
|
|
356959
|
-
const configLogLevel = config.logLevel
|
|
356959
|
+
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
356960
356960
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
356961
356961
|
return (_6) => {
|
|
356962
356962
|
};
|
|
@@ -356964,10 +356964,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
356964
356964
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
356965
356965
|
return (message) => {
|
|
356966
356966
|
console.error(
|
|
356967
|
-
|
|
356968
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
356967
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
356969
356968
|
" \u{1F480} Fatal "
|
|
356970
|
-
)} ${_chalk.hex(colors.
|
|
356969
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
356971
356970
|
`
|
|
356972
356971
|
);
|
|
356973
356972
|
};
|
|
@@ -356975,8 +356974,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
|
|
|
356975
356974
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
356976
356975
|
return (message) => {
|
|
356977
356976
|
console.error(
|
|
356978
|
-
|
|
356979
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
356977
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
356980
356978
|
" \u2718 Error "
|
|
356981
356979
|
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
356982
356980
|
`
|
|
@@ -356986,8 +356984,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
|
|
|
356986
356984
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
356987
356985
|
return (message) => {
|
|
356988
356986
|
console.warn(
|
|
356989
|
-
|
|
356990
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
356987
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
356991
356988
|
" \u26A0 Warn "
|
|
356992
356989
|
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
356993
356990
|
`
|
|
@@ -356997,8 +356994,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
356997
356994
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
356998
356995
|
return (message) => {
|
|
356999
356996
|
console.info(
|
|
357000
|
-
|
|
357001
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
356997
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
357002
356998
|
" \u2713 Success "
|
|
357003
356999
|
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
357004
357000
|
`
|
|
@@ -357008,19 +357004,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
357008
357004
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
357009
357005
|
return (message) => {
|
|
357010
357006
|
console.info(
|
|
357011
|
-
|
|
357012
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
357007
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
357013
357008
|
" \u2139 Info "
|
|
357014
357009
|
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
357015
357010
|
`
|
|
357016
357011
|
);
|
|
357017
357012
|
};
|
|
357018
357013
|
}
|
|
357019
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
357014
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
357020
357015
|
return (message) => {
|
|
357021
357016
|
console.debug(
|
|
357022
|
-
|
|
357023
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
357017
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
357024
357018
|
" \u{1F6E0} Debug "
|
|
357025
357019
|
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
357026
357020
|
`
|
|
@@ -357029,8 +357023,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
|
|
|
357029
357023
|
}
|
|
357030
357024
|
return (message) => {
|
|
357031
357025
|
console.log(
|
|
357032
|
-
|
|
357033
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
357026
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
357034
357027
|
" \u2709 System "
|
|
357035
357028
|
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
357036
357029
|
`
|
|
@@ -357044,6 +357037,7 @@ var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
|
357044
357037
|
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
357045
357038
|
var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
|
|
357046
357039
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
357040
|
+
var writeSystem = (message, config) => getLogFn(LogLevel.ALL, config)(message);
|
|
357047
357041
|
var MAX_DEPTH = 4;
|
|
357048
357042
|
var formatLogMessage = (message, options = {}, depth2 = 0) => {
|
|
357049
357043
|
if (depth2 > MAX_DEPTH) {
|
|
@@ -357124,8 +357118,8 @@ var getConfigFileByName = async (fileName, filePath2, options = {}) => {
|
|
|
357124
357118
|
name: fileName,
|
|
357125
357119
|
envName: fileName?.toUpperCase(),
|
|
357126
357120
|
jitiOptions: {
|
|
357127
|
-
debug:
|
|
357128
|
-
cache: process.env.
|
|
357121
|
+
debug: false,
|
|
357122
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
357129
357123
|
},
|
|
357130
357124
|
...options
|
|
357131
357125
|
});
|
|
@@ -357136,8 +357130,8 @@ var getConfigFileByName = async (fileName, filePath2, options = {}) => {
|
|
|
357136
357130
|
name: fileName,
|
|
357137
357131
|
envName: fileName?.toUpperCase(),
|
|
357138
357132
|
jitiOptions: {
|
|
357139
|
-
debug:
|
|
357140
|
-
cache: process.env.
|
|
357133
|
+
debug: false,
|
|
357134
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
357141
357135
|
},
|
|
357142
357136
|
configFile: fileName,
|
|
357143
357137
|
...options
|
|
@@ -357150,9 +357144,9 @@ var getConfigFile = async (filePath2, additionalFileNames = []) => {
|
|
|
357150
357144
|
const result = await getConfigFileByName("storm", workspacePath);
|
|
357151
357145
|
let config = result.config;
|
|
357152
357146
|
const configFile = result.configFile;
|
|
357153
|
-
if (config && Object.keys(config).length > 0) {
|
|
357154
|
-
|
|
357155
|
-
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
357147
|
+
if (config && configFile && Object.keys(config).length > 0) {
|
|
357148
|
+
writeSystem(
|
|
357149
|
+
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
357156
357150
|
{
|
|
357157
357151
|
logLevel: "all"
|
|
357158
357152
|
}
|
|
@@ -357165,9 +357159,9 @@ var getConfigFile = async (filePath2, additionalFileNames = []) => {
|
|
|
357165
357159
|
)
|
|
357166
357160
|
);
|
|
357167
357161
|
for (const result2 of results) {
|
|
357168
|
-
if (result2?.config && Object.keys(result2.config).length > 0) {
|
|
357169
|
-
|
|
357170
|
-
`Found
|
|
357162
|
+
if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
|
|
357163
|
+
writeSystem(
|
|
357164
|
+
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
357171
357165
|
{
|
|
357172
357166
|
logLevel: "all"
|
|
357173
357167
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.90.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
|
|
6
6
|
"repository": {
|
package/src/cli/index.js
CHANGED
|
@@ -355146,7 +355146,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
355146
355146
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
355147
355147
|
const _chalk = getChalk();
|
|
355148
355148
|
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;
|
|
355149
|
-
const configLogLevel = config.logLevel
|
|
355149
|
+
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
355150
355150
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
355151
355151
|
return (_6) => {
|
|
355152
355152
|
};
|
|
@@ -355154,10 +355154,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
355154
355154
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
355155
355155
|
return (message) => {
|
|
355156
355156
|
console.error(
|
|
355157
|
-
|
|
355158
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
355157
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
355159
355158
|
" \u{1F480} Fatal "
|
|
355160
|
-
)} ${_chalk.hex(colors.
|
|
355159
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
355161
355160
|
`
|
|
355162
355161
|
);
|
|
355163
355162
|
};
|
|
@@ -355165,8 +355164,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
|
|
|
355165
355164
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
355166
355165
|
return (message) => {
|
|
355167
355166
|
console.error(
|
|
355168
|
-
|
|
355169
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
355167
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
355170
355168
|
" \u2718 Error "
|
|
355171
355169
|
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
355172
355170
|
`
|
|
@@ -355176,8 +355174,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
|
|
|
355176
355174
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
355177
355175
|
return (message) => {
|
|
355178
355176
|
console.warn(
|
|
355179
|
-
|
|
355180
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
355177
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
355181
355178
|
" \u26A0 Warn "
|
|
355182
355179
|
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
355183
355180
|
`
|
|
@@ -355187,8 +355184,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
355187
355184
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
355188
355185
|
return (message) => {
|
|
355189
355186
|
console.info(
|
|
355190
|
-
|
|
355191
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
355187
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
355192
355188
|
" \u2713 Success "
|
|
355193
355189
|
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
355194
355190
|
`
|
|
@@ -355198,19 +355194,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
355198
355194
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
355199
355195
|
return (message) => {
|
|
355200
355196
|
console.info(
|
|
355201
|
-
|
|
355202
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
355197
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
355203
355198
|
" \u2139 Info "
|
|
355204
355199
|
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
355205
355200
|
`
|
|
355206
355201
|
);
|
|
355207
355202
|
};
|
|
355208
355203
|
}
|
|
355209
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
355204
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
355210
355205
|
return (message) => {
|
|
355211
355206
|
console.debug(
|
|
355212
|
-
|
|
355213
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
355207
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
355214
355208
|
" \u{1F6E0} Debug "
|
|
355215
355209
|
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
355216
355210
|
`
|
|
@@ -355219,8 +355213,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
|
|
|
355219
355213
|
}
|
|
355220
355214
|
return (message) => {
|
|
355221
355215
|
console.log(
|
|
355222
|
-
|
|
355223
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
355216
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
355224
355217
|
" \u2709 System "
|
|
355225
355218
|
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
355226
355219
|
`
|
|
@@ -355234,6 +355227,7 @@ var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
|
355234
355227
|
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
355235
355228
|
var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
|
|
355236
355229
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
355230
|
+
var writeSystem = (message, config) => getLogFn(LogLevel.ALL, config)(message);
|
|
355237
355231
|
var MAX_DEPTH = 4;
|
|
355238
355232
|
var formatLogMessage = (message, options = {}, depth2 = 0) => {
|
|
355239
355233
|
if (depth2 > MAX_DEPTH) {
|
|
@@ -355271,8 +355265,8 @@ var getConfigFileByName = async (fileName, filePath2, options = {}) => {
|
|
|
355271
355265
|
name: fileName,
|
|
355272
355266
|
envName: fileName?.toUpperCase(),
|
|
355273
355267
|
jitiOptions: {
|
|
355274
|
-
debug:
|
|
355275
|
-
cache: process.env.
|
|
355268
|
+
debug: false,
|
|
355269
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
355276
355270
|
},
|
|
355277
355271
|
...options
|
|
355278
355272
|
});
|
|
@@ -355283,8 +355277,8 @@ var getConfigFileByName = async (fileName, filePath2, options = {}) => {
|
|
|
355283
355277
|
name: fileName,
|
|
355284
355278
|
envName: fileName?.toUpperCase(),
|
|
355285
355279
|
jitiOptions: {
|
|
355286
|
-
debug:
|
|
355287
|
-
cache: process.env.
|
|
355280
|
+
debug: false,
|
|
355281
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
355288
355282
|
},
|
|
355289
355283
|
configFile: fileName,
|
|
355290
355284
|
...options
|
|
@@ -355297,9 +355291,9 @@ var getConfigFile = async (filePath2, additionalFileNames = []) => {
|
|
|
355297
355291
|
const result = await getConfigFileByName("storm", workspacePath);
|
|
355298
355292
|
let config = result.config;
|
|
355299
355293
|
const configFile = result.configFile;
|
|
355300
|
-
if (config && Object.keys(config).length > 0) {
|
|
355301
|
-
|
|
355302
|
-
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
355294
|
+
if (config && configFile && Object.keys(config).length > 0) {
|
|
355295
|
+
writeSystem(
|
|
355296
|
+
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
355303
355297
|
{
|
|
355304
355298
|
logLevel: "all"
|
|
355305
355299
|
}
|
|
@@ -355312,9 +355306,9 @@ var getConfigFile = async (filePath2, additionalFileNames = []) => {
|
|
|
355312
355306
|
)
|
|
355313
355307
|
);
|
|
355314
355308
|
for (const result2 of results) {
|
|
355315
|
-
if (result2?.config && Object.keys(result2.config).length > 0) {
|
|
355316
|
-
|
|
355317
|
-
`Found
|
|
355309
|
+
if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
|
|
355310
|
+
writeSystem(
|
|
355311
|
+
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
355318
355312
|
{
|
|
355319
355313
|
logLevel: "all"
|
|
355320
355314
|
}
|