@storm-software/config-tools 1.179.1 → 1.180.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/README.md +1 -2
- package/bin/config.cjs +48 -26
- package/bin/config.js +49 -27
- package/dist/{chunk-2LK4ZGLW.cjs → chunk-363CTBPH.cjs} +2 -2
- package/dist/{chunk-XA4G3MSV.cjs → chunk-72EOBSKW.cjs} +10 -10
- package/dist/{chunk-PQATN7O6.cjs → chunk-7AZCYZH3.cjs} +17 -17
- package/dist/{chunk-EK7IXIHA.js → chunk-7L77OWOV.js} +1 -1
- package/dist/{chunk-ZTCEXE7T.cjs → chunk-ADFY75XS.cjs} +3 -3
- package/dist/{chunk-2FH55GER.js → chunk-ATECARIE.js} +13 -12
- package/dist/{chunk-TTT5G3NU.js → chunk-BCAYP4JB.js} +1 -1
- package/dist/{chunk-UMSUK27E.js → chunk-C3ZWMMO4.js} +19 -10
- package/dist/{chunk-GJ7QM6FN.cjs → chunk-CRQ64CT5.cjs} +9 -9
- package/dist/{chunk-CO4ZADWX.cjs → chunk-D5MVYNCS.cjs} +19 -10
- package/dist/{chunk-3235YC2J.cjs → chunk-ESUPAI3Y.cjs} +9 -9
- package/dist/{chunk-X56PD6LB.js → chunk-FVKBGSDE.js} +1 -1
- package/dist/{chunk-TFYMXKIT.js → chunk-HMDBPXJC.js} +1 -1
- package/dist/{chunk-BTZVY4J2.js → chunk-L72FV3TP.js} +1 -1
- package/dist/{chunk-3TO7MEJT.js → chunk-LA3S35UI.js} +4 -4
- package/dist/{chunk-FBMPJNMM.js → chunk-LCK7XQJ3.js} +6 -6
- package/dist/{chunk-CLT4IIBS.cjs → chunk-LRSCRZFN.cjs} +13 -12
- package/dist/{chunk-YGJGYNZL.cjs → chunk-MKPH762O.cjs} +4 -4
- package/dist/{chunk-NYDB5GIZ.js → chunk-VDG3JG4I.js} +1 -1
- package/dist/{chunk-EDQ2BMIV.cjs → chunk-VWNMWYHQ.cjs} +3 -3
- package/dist/config-file/get-config-file.cjs +7 -7
- package/dist/config-file/get-config-file.js +6 -6
- package/dist/config-file/index.cjs +7 -7
- package/dist/config-file/index.js +6 -6
- package/dist/create-storm-config.cjs +10 -10
- package/dist/create-storm-config.js +9 -9
- package/dist/env/get-env.cjs +2 -2
- package/dist/env/get-env.js +1 -1
- package/dist/env/index.cjs +3 -3
- package/dist/env/index.js +2 -2
- package/dist/env/set-env.cjs +2 -2
- package/dist/env/set-env.js +1 -1
- package/dist/get-config.cjs +11 -11
- package/dist/get-config.js +10 -10
- package/dist/index.cjs +11 -11
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -12
- package/dist/logger/console.cjs +3 -3
- package/dist/logger/console.js +2 -2
- package/dist/logger/create-logger.cjs +4 -4
- package/dist/logger/create-logger.js +3 -3
- package/dist/logger/index.cjs +4 -4
- package/dist/logger/index.js +3 -3
- package/dist/utilities/colors.cjs +2 -2
- package/dist/utilities/colors.d.cts +4 -44
- package/dist/utilities/colors.d.ts +4 -44
- package/dist/utilities/colors.js +3 -3
- package/dist/utilities/get-default-config.d.cts +1 -1
- package/dist/utilities/get-default-config.d.ts +1 -1
- package/dist/utilities/index.cjs +6 -6
- package/dist/utilities/index.d.cts +1 -2
- package/dist/utilities/index.d.ts +1 -2
- package/dist/utilities/index.js +7 -7
- package/dist/utilities/process-handler.cjs +4 -4
- package/dist/utilities/process-handler.js +3 -3
- package/dist/utilities/toml.cjs +5 -5
- package/dist/utilities/toml.js +4 -4
- package/package.json +3 -3
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 -->
|
|
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
-
|
|
44
43
|
## Table of Contents
|
|
45
44
|
|
|
46
45
|
- [Storm Configuration Tools](#storm-configuration-tools)
|
package/bin/config.cjs
CHANGED
|
@@ -780,7 +780,10 @@ var getConfigEnv = () => {
|
|
|
780
780
|
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
781
781
|
},
|
|
782
782
|
release: {
|
|
783
|
-
banner:
|
|
783
|
+
banner: {
|
|
784
|
+
url: process.env[`${prefix}RELEASE_BANNER_URL`] || void 0,
|
|
785
|
+
alt: process.env[`${prefix}RELEASE_BANNER_ALT`] || void 0
|
|
786
|
+
},
|
|
784
787
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
785
788
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
786
789
|
},
|
|
@@ -857,11 +860,11 @@ var getConfigEnv = () => {
|
|
|
857
860
|
);
|
|
858
861
|
config.colors = themeNames.length > 0 ? themeNames.reduce(
|
|
859
862
|
(ret, themeName) => {
|
|
860
|
-
ret[themeName] =
|
|
863
|
+
ret[themeName] = getThemeColorsEnv(prefix, themeName);
|
|
861
864
|
return ret;
|
|
862
865
|
},
|
|
863
866
|
{}
|
|
864
|
-
) :
|
|
867
|
+
) : getThemeColorsEnv(prefix);
|
|
865
868
|
if (config.docs === import_config2.STORM_DEFAULT_DOCS) {
|
|
866
869
|
if (config.homepage === import_config2.STORM_DEFAULT_HOMEPAGE) {
|
|
867
870
|
config.docs = `${import_config2.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
@@ -888,11 +891,11 @@ var getConfigEnv = () => {
|
|
|
888
891
|
}
|
|
889
892
|
return config;
|
|
890
893
|
};
|
|
891
|
-
var
|
|
894
|
+
var getThemeColorsEnv = (prefix, theme) => {
|
|
892
895
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
893
|
-
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ?
|
|
896
|
+
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorsEnv(prefix + themeName) : getSingleThemeColorsEnv(prefix + themeName);
|
|
894
897
|
};
|
|
895
|
-
var
|
|
898
|
+
var getSingleThemeColorsEnv = (prefix) => {
|
|
896
899
|
const gradient = [];
|
|
897
900
|
if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
|
|
898
901
|
gradient.push(
|
|
@@ -924,15 +927,13 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
924
927
|
gradient
|
|
925
928
|
};
|
|
926
929
|
};
|
|
927
|
-
var
|
|
930
|
+
var getMultiThemeColorsEnv = (prefix) => {
|
|
928
931
|
return {
|
|
929
|
-
light:
|
|
930
|
-
|
|
931
|
-
),
|
|
932
|
-
dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
|
|
932
|
+
light: getBaseThemeColorsEnv(`${prefix}_LIGHT_`),
|
|
933
|
+
dark: getBaseThemeColorsEnv(`${prefix}_DARK_`)
|
|
933
934
|
};
|
|
934
935
|
};
|
|
935
|
-
var
|
|
936
|
+
var getBaseThemeColorsEnv = (prefix) => {
|
|
936
937
|
const gradient = [];
|
|
937
938
|
if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
|
|
938
939
|
gradient.push(
|
|
@@ -1011,7 +1012,16 @@ var setConfigEnv = (config) => {
|
|
|
1011
1012
|
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
1012
1013
|
}
|
|
1013
1014
|
if (config.release) {
|
|
1014
|
-
|
|
1015
|
+
if (config.release.banner) {
|
|
1016
|
+
if (typeof config.release.banner === "string") {
|
|
1017
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
1018
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner;
|
|
1019
|
+
} else {
|
|
1020
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner.url;
|
|
1021
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner.url;
|
|
1022
|
+
process.env[`${prefix}RELEASE_BANNER_ALT`] = config.release.banner.alt;
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1015
1025
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
1016
1026
|
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
1017
1027
|
}
|
|
@@ -1154,10 +1164,10 @@ var setConfigEnv = (config) => {
|
|
|
1154
1164
|
}
|
|
1155
1165
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
1156
1166
|
for (const key of Object.keys(config.colors)) {
|
|
1157
|
-
|
|
1167
|
+
setThemeColorsEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
1158
1168
|
}
|
|
1159
1169
|
} else {
|
|
1160
|
-
|
|
1170
|
+
setThemeColorsEnv(
|
|
1161
1171
|
`${prefix}COLOR_`,
|
|
1162
1172
|
config.colors
|
|
1163
1173
|
);
|
|
@@ -1212,10 +1222,10 @@ var setConfigEnv = (config) => {
|
|
|
1212
1222
|
}
|
|
1213
1223
|
}
|
|
1214
1224
|
};
|
|
1215
|
-
var
|
|
1216
|
-
return config?.light?.brand || config?.dark?.brand ?
|
|
1225
|
+
var setThemeColorsEnv = (prefix, config) => {
|
|
1226
|
+
return config?.light?.brand || config?.dark?.brand ? setMultiThemeColorsEnv(prefix, config) : setSingleThemeColorsEnv(prefix, config);
|
|
1217
1227
|
};
|
|
1218
|
-
var
|
|
1228
|
+
var setSingleThemeColorsEnv = (prefix, config) => {
|
|
1219
1229
|
if (config.dark) {
|
|
1220
1230
|
process.env[`${prefix}DARK`] = config.dark;
|
|
1221
1231
|
}
|
|
@@ -1264,13 +1274,13 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
1264
1274
|
}
|
|
1265
1275
|
}
|
|
1266
1276
|
};
|
|
1267
|
-
var
|
|
1277
|
+
var setMultiThemeColorsEnv = (prefix, config) => {
|
|
1268
1278
|
return {
|
|
1269
|
-
light:
|
|
1270
|
-
dark:
|
|
1279
|
+
light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config.light),
|
|
1280
|
+
dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config.dark)
|
|
1271
1281
|
};
|
|
1272
1282
|
};
|
|
1273
|
-
var
|
|
1283
|
+
var setBaseThemeColorsEnv = (prefix, config) => {
|
|
1274
1284
|
if (config.foreground) {
|
|
1275
1285
|
process.env[`${prefix}FOREGROUND`] = config.foreground;
|
|
1276
1286
|
}
|
|
@@ -1351,7 +1361,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1351
1361
|
);
|
|
1352
1362
|
try {
|
|
1353
1363
|
result = applyDefaultConfig(
|
|
1354
|
-
await import_schema.
|
|
1364
|
+
await import_schema.workspaceConfigSchema.parseAsync(configInput)
|
|
1355
1365
|
);
|
|
1356
1366
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1357
1367
|
} catch (error) {
|
|
@@ -1479,15 +1489,27 @@ Stack Trace: ${error.stack}` : ""}`,
|
|
|
1479
1489
|
})();
|
|
1480
1490
|
var formatSingleThemeColors = (config) => {
|
|
1481
1491
|
return `---- Theme Colors ----
|
|
1482
|
-
${Object.entries(config).filter(
|
|
1492
|
+
${Object.entries(config).filter(
|
|
1493
|
+
([key, value]) => key !== "gradient" && typeof value === "string" && value.length > 0
|
|
1494
|
+
).map(
|
|
1495
|
+
([key, value]) => import_chalk3.default.hex(String(value))(`${key}: ${import_chalk3.default.bold(value)}`)
|
|
1496
|
+
).join(" \n")}
|
|
1483
1497
|
`;
|
|
1484
1498
|
};
|
|
1485
1499
|
var formatMultiThemeColors = (config) => {
|
|
1486
1500
|
return ` ---- Light Theme Colors ----
|
|
1487
|
-
${Object.entries(config.light).filter(
|
|
1501
|
+
${Object.entries(config.light).filter(
|
|
1502
|
+
([key, value]) => key !== "gradient" && typeof value === "string" && value.length > 0
|
|
1503
|
+
).map(
|
|
1504
|
+
([key, value]) => import_chalk3.default.hex(String(value))(`${key}: ${import_chalk3.default.bold(value)}`)
|
|
1505
|
+
).join(" \n")}
|
|
1488
1506
|
|
|
1489
1507
|
---- Dark Theme Colors ----
|
|
1490
|
-
${Object.entries(config.dark).filter(
|
|
1508
|
+
${Object.entries(config.dark).filter(
|
|
1509
|
+
([key, value]) => key !== "gradient" && typeof value === "string" && value.length > 0
|
|
1510
|
+
).map(
|
|
1511
|
+
([key, value]) => import_chalk3.default.hex(String(value))(`${key}: ${import_chalk3.default.bold(value)}`)
|
|
1512
|
+
).join(" \n")}
|
|
1491
1513
|
`;
|
|
1492
1514
|
};
|
|
1493
1515
|
// Annotate the CommonJS export names for ESM import in node:
|
package/bin/config.js
CHANGED
|
@@ -5,7 +5,7 @@ import chalk2 from "chalk";
|
|
|
5
5
|
import { Command, Option } from "commander";
|
|
6
6
|
|
|
7
7
|
// src/create-storm-config.ts
|
|
8
|
-
import {
|
|
8
|
+
import { workspaceConfigSchema } from "@storm-software/config/schema";
|
|
9
9
|
import defu2 from "defu";
|
|
10
10
|
|
|
11
11
|
// src/config-file/get-config-file.ts
|
|
@@ -755,7 +755,10 @@ var getConfigEnv = () => {
|
|
|
755
755
|
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
756
756
|
},
|
|
757
757
|
release: {
|
|
758
|
-
banner:
|
|
758
|
+
banner: {
|
|
759
|
+
url: process.env[`${prefix}RELEASE_BANNER_URL`] || void 0,
|
|
760
|
+
alt: process.env[`${prefix}RELEASE_BANNER_ALT`] || void 0
|
|
761
|
+
},
|
|
759
762
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
760
763
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
761
764
|
},
|
|
@@ -832,11 +835,11 @@ var getConfigEnv = () => {
|
|
|
832
835
|
);
|
|
833
836
|
config.colors = themeNames.length > 0 ? themeNames.reduce(
|
|
834
837
|
(ret, themeName) => {
|
|
835
|
-
ret[themeName] =
|
|
838
|
+
ret[themeName] = getThemeColorsEnv(prefix, themeName);
|
|
836
839
|
return ret;
|
|
837
840
|
},
|
|
838
841
|
{}
|
|
839
|
-
) :
|
|
842
|
+
) : getThemeColorsEnv(prefix);
|
|
840
843
|
if (config.docs === STORM_DEFAULT_DOCS) {
|
|
841
844
|
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
842
845
|
config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
@@ -863,11 +866,11 @@ var getConfigEnv = () => {
|
|
|
863
866
|
}
|
|
864
867
|
return config;
|
|
865
868
|
};
|
|
866
|
-
var
|
|
869
|
+
var getThemeColorsEnv = (prefix, theme) => {
|
|
867
870
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
868
|
-
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ?
|
|
871
|
+
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorsEnv(prefix + themeName) : getSingleThemeColorsEnv(prefix + themeName);
|
|
869
872
|
};
|
|
870
|
-
var
|
|
873
|
+
var getSingleThemeColorsEnv = (prefix) => {
|
|
871
874
|
const gradient = [];
|
|
872
875
|
if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
|
|
873
876
|
gradient.push(
|
|
@@ -899,15 +902,13 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
899
902
|
gradient
|
|
900
903
|
};
|
|
901
904
|
};
|
|
902
|
-
var
|
|
905
|
+
var getMultiThemeColorsEnv = (prefix) => {
|
|
903
906
|
return {
|
|
904
|
-
light:
|
|
905
|
-
|
|
906
|
-
),
|
|
907
|
-
dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
|
|
907
|
+
light: getBaseThemeColorsEnv(`${prefix}_LIGHT_`),
|
|
908
|
+
dark: getBaseThemeColorsEnv(`${prefix}_DARK_`)
|
|
908
909
|
};
|
|
909
910
|
};
|
|
910
|
-
var
|
|
911
|
+
var getBaseThemeColorsEnv = (prefix) => {
|
|
911
912
|
const gradient = [];
|
|
912
913
|
if (process.env[`${prefix}GRADIENT_START`] && process.env[`${prefix}GRADIENT_END`]) {
|
|
913
914
|
gradient.push(
|
|
@@ -986,7 +987,16 @@ var setConfigEnv = (config) => {
|
|
|
986
987
|
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
987
988
|
}
|
|
988
989
|
if (config.release) {
|
|
989
|
-
|
|
990
|
+
if (config.release.banner) {
|
|
991
|
+
if (typeof config.release.banner === "string") {
|
|
992
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
993
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner;
|
|
994
|
+
} else {
|
|
995
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner.url;
|
|
996
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config.release.banner.url;
|
|
997
|
+
process.env[`${prefix}RELEASE_BANNER_ALT`] = config.release.banner.alt;
|
|
998
|
+
}
|
|
999
|
+
}
|
|
990
1000
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
991
1001
|
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
992
1002
|
}
|
|
@@ -1129,10 +1139,10 @@ var setConfigEnv = (config) => {
|
|
|
1129
1139
|
}
|
|
1130
1140
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
1131
1141
|
for (const key of Object.keys(config.colors)) {
|
|
1132
|
-
|
|
1142
|
+
setThemeColorsEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
1133
1143
|
}
|
|
1134
1144
|
} else {
|
|
1135
|
-
|
|
1145
|
+
setThemeColorsEnv(
|
|
1136
1146
|
`${prefix}COLOR_`,
|
|
1137
1147
|
config.colors
|
|
1138
1148
|
);
|
|
@@ -1187,10 +1197,10 @@ var setConfigEnv = (config) => {
|
|
|
1187
1197
|
}
|
|
1188
1198
|
}
|
|
1189
1199
|
};
|
|
1190
|
-
var
|
|
1191
|
-
return config?.light?.brand || config?.dark?.brand ?
|
|
1200
|
+
var setThemeColorsEnv = (prefix, config) => {
|
|
1201
|
+
return config?.light?.brand || config?.dark?.brand ? setMultiThemeColorsEnv(prefix, config) : setSingleThemeColorsEnv(prefix, config);
|
|
1192
1202
|
};
|
|
1193
|
-
var
|
|
1203
|
+
var setSingleThemeColorsEnv = (prefix, config) => {
|
|
1194
1204
|
if (config.dark) {
|
|
1195
1205
|
process.env[`${prefix}DARK`] = config.dark;
|
|
1196
1206
|
}
|
|
@@ -1239,13 +1249,13 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
1239
1249
|
}
|
|
1240
1250
|
}
|
|
1241
1251
|
};
|
|
1242
|
-
var
|
|
1252
|
+
var setMultiThemeColorsEnv = (prefix, config) => {
|
|
1243
1253
|
return {
|
|
1244
|
-
light:
|
|
1245
|
-
dark:
|
|
1254
|
+
light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config.light),
|
|
1255
|
+
dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config.dark)
|
|
1246
1256
|
};
|
|
1247
1257
|
};
|
|
1248
|
-
var
|
|
1258
|
+
var setBaseThemeColorsEnv = (prefix, config) => {
|
|
1249
1259
|
if (config.foreground) {
|
|
1250
1260
|
process.env[`${prefix}FOREGROUND`] = config.foreground;
|
|
1251
1261
|
}
|
|
@@ -1326,7 +1336,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1326
1336
|
);
|
|
1327
1337
|
try {
|
|
1328
1338
|
result = applyDefaultConfig(
|
|
1329
|
-
await
|
|
1339
|
+
await workspaceConfigSchema.parseAsync(configInput)
|
|
1330
1340
|
);
|
|
1331
1341
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1332
1342
|
} catch (error) {
|
|
@@ -1454,15 +1464,27 @@ Stack Trace: ${error.stack}` : ""}`,
|
|
|
1454
1464
|
})();
|
|
1455
1465
|
var formatSingleThemeColors = (config) => {
|
|
1456
1466
|
return `---- Theme Colors ----
|
|
1457
|
-
${Object.entries(config).filter(
|
|
1467
|
+
${Object.entries(config).filter(
|
|
1468
|
+
([key, value]) => key !== "gradient" && typeof value === "string" && value.length > 0
|
|
1469
|
+
).map(
|
|
1470
|
+
([key, value]) => chalk2.hex(String(value))(`${key}: ${chalk2.bold(value)}`)
|
|
1471
|
+
).join(" \n")}
|
|
1458
1472
|
`;
|
|
1459
1473
|
};
|
|
1460
1474
|
var formatMultiThemeColors = (config) => {
|
|
1461
1475
|
return ` ---- Light Theme Colors ----
|
|
1462
|
-
${Object.entries(config.light).filter(
|
|
1476
|
+
${Object.entries(config.light).filter(
|
|
1477
|
+
([key, value]) => key !== "gradient" && typeof value === "string" && value.length > 0
|
|
1478
|
+
).map(
|
|
1479
|
+
([key, value]) => chalk2.hex(String(value))(`${key}: ${chalk2.bold(value)}`)
|
|
1480
|
+
).join(" \n")}
|
|
1463
1481
|
|
|
1464
1482
|
---- Dark Theme Colors ----
|
|
1465
|
-
${Object.entries(config.dark).filter(
|
|
1483
|
+
${Object.entries(config.dark).filter(
|
|
1484
|
+
([key, value]) => key !== "gradient" && typeof value === "string" && value.length > 0
|
|
1485
|
+
).map(
|
|
1486
|
+
([key, value]) => chalk2.hex(String(value))(`${key}: ${chalk2.bold(value)}`)
|
|
1487
|
+
).join(" \n")}
|
|
1466
1488
|
`;
|
|
1467
1489
|
};
|
|
1468
1490
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk72EOBSKWcjs = require('./chunk-72EOBSKW.cjs');
|
|
4
4
|
|
|
5
5
|
// src/utilities/toml.ts
|
|
6
6
|
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
7
7
|
function parseCargoTomlWithTree(tree, projectRoot, projectName) {
|
|
8
8
|
const cargoTomlString = _optionalChain([tree, 'access', _ => _.read, 'call', _2 => _2(`${projectRoot}/Cargo.toml`), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
9
9
|
if (!cargoTomlString) {
|
|
10
|
-
|
|
10
|
+
_chunk72EOBSKWcjs.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
|
|
11
11
|
throw new Error();
|
|
12
12
|
}
|
|
13
13
|
return parseCargoToml(cargoTomlString);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkMKPH762Ocjs = require('./chunk-MKPH762O.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkLOY6ICHZcjs = require('./chunk-LOY6ICHZ.cjs');
|
|
@@ -20,7 +20,7 @@ var _chunkIRCFHYKZcjs = require('./chunk-IRCFHYKZ.cjs');
|
|
|
20
20
|
|
|
21
21
|
// src/logger/console.ts
|
|
22
22
|
var getLogFn = (logLevel = _chunkIRCFHYKZcjs.LogLevel.INFO, config = {}, _chalk = _chunkLOY6ICHZcjs.getChalk.call(void 0, )) => {
|
|
23
|
-
const colors = !_optionalChain([config, 'access', _2 => _2.colors, 'optionalAccess', _3 => _3.dark]) && !_optionalChain([config, 'access', _4 => _4.colors, 'optionalAccess', _5 => _5["base"]]) && !_optionalChain([config, 'access', _6 => _6.colors, 'optionalAccess', _7 => _7["base"], 'optionalAccess', _8 => _8.dark]) ?
|
|
23
|
+
const colors = !_optionalChain([config, 'access', _2 => _2.colors, 'optionalAccess', _3 => _3.dark]) && !_optionalChain([config, 'access', _4 => _4.colors, 'optionalAccess', _5 => _5["base"]]) && !_optionalChain([config, 'access', _6 => _6.colors, 'optionalAccess', _7 => _7["base"], 'optionalAccess', _8 => _8.dark]) ? _chunkMKPH762Ocjs.DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) ? _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"]]) : _chunkMKPH762Ocjs.DEFAULT_COLOR_CONFIG;
|
|
24
24
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || _chunkIRCFHYKZcjs.LogLevelLabel.INFO;
|
|
25
25
|
if (logLevel > _chunk4PX5UVANcjs.getLogLevel.call(void 0, configLogLevel) || logLevel <= _chunkIRCFHYKZcjs.LogLevel.SILENT || _chunk4PX5UVANcjs.getLogLevel.call(void 0, configLogLevel) <= _chunkIRCFHYKZcjs.LogLevel.SILENT) {
|
|
26
26
|
return (_) => {
|
|
@@ -30,7 +30,7 @@ var getLogFn = (logLevel = _chunkIRCFHYKZcjs.LogLevel.INFO, config = {}, _chalk
|
|
|
30
30
|
return (message) => {
|
|
31
31
|
console.error(
|
|
32
32
|
`
|
|
33
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => (
|
|
33
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( _chunkMKPH762Ocjs.DEFAULT_COLOR_CONFIG.dark.fatal)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
34
34
|
`
|
|
35
35
|
);
|
|
36
36
|
};
|
|
@@ -39,7 +39,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
39
39
|
return (message) => {
|
|
40
40
|
console.error(
|
|
41
41
|
`
|
|
42
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.danger, () => (
|
|
42
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( _chunkMKPH762Ocjs.DEFAULT_COLOR_CONFIG.dark.danger)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
43
43
|
`
|
|
44
44
|
);
|
|
45
45
|
};
|
|
@@ -48,7 +48,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
48
48
|
return (message) => {
|
|
49
49
|
console.warn(
|
|
50
50
|
`
|
|
51
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.warning, () => (
|
|
51
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( _chunkMKPH762Ocjs.DEFAULT_COLOR_CONFIG.dark.warning)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
52
52
|
`
|
|
53
53
|
);
|
|
54
54
|
};
|
|
@@ -57,7 +57,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
57
57
|
return (message) => {
|
|
58
58
|
console.info(
|
|
59
59
|
`
|
|
60
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.success, () => (
|
|
60
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( _chunkMKPH762Ocjs.DEFAULT_COLOR_CONFIG.dark.success)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
61
61
|
`
|
|
62
62
|
);
|
|
63
63
|
};
|
|
@@ -66,7 +66,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
66
66
|
return (message) => {
|
|
67
67
|
console.info(
|
|
68
68
|
`
|
|
69
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.info, () => (
|
|
69
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( _chunkMKPH762Ocjs.DEFAULT_COLOR_CONFIG.dark.info)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
70
70
|
`
|
|
71
71
|
);
|
|
72
72
|
};
|
|
@@ -75,7 +75,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
75
75
|
return (message) => {
|
|
76
76
|
console.debug(
|
|
77
77
|
`
|
|
78
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.info, () => (
|
|
78
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( _chunkMKPH762Ocjs.DEFAULT_COLOR_CONFIG.dark.info)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
79
79
|
`
|
|
80
80
|
);
|
|
81
81
|
};
|
|
@@ -84,7 +84,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
84
84
|
return (message) => {
|
|
85
85
|
console.debug(
|
|
86
86
|
`
|
|
87
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.info, () => (
|
|
87
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( _chunkMKPH762Ocjs.DEFAULT_COLOR_CONFIG.dark.info)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
88
88
|
`
|
|
89
89
|
);
|
|
90
90
|
};
|
|
@@ -92,7 +92,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
92
92
|
return (message) => {
|
|
93
93
|
console.log(
|
|
94
94
|
`
|
|
95
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.brand, () => (
|
|
95
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( _chunkMKPH762Ocjs.DEFAULT_COLOR_CONFIG.dark.brand)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
96
96
|
`
|
|
97
97
|
);
|
|
98
98
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkADFY75XScjs = require('./chunk-ADFY75XS.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -12,14 +12,14 @@ var _chunkNOTWBXXMcjs = require('./chunk-NOTWBXXM.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk72EOBSKWcjs = require('./chunk-72EOBSKW.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkD5MVYNCScjs = require('./chunk-D5MVYNCS.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkLRSCRZFNcjs = require('./chunk-LRSCRZFN.cjs');
|
|
23
23
|
|
|
24
24
|
// src/create-storm-config.ts
|
|
25
25
|
var _schema = require('@storm-software/config/schema');
|
|
@@ -33,11 +33,11 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
33
33
|
if (!_workspaceRoot) {
|
|
34
34
|
_workspaceRoot = _chunkNOTWBXXMcjs.findWorkspaceRoot.call(void 0, );
|
|
35
35
|
}
|
|
36
|
-
const configEnv =
|
|
37
|
-
const configFile = await
|
|
36
|
+
const configEnv = _chunkLRSCRZFNcjs.getConfigEnv.call(void 0, );
|
|
37
|
+
const configFile = await _chunkADFY75XScjs.getConfigFile.call(void 0, _workspaceRoot);
|
|
38
38
|
if (!configFile) {
|
|
39
39
|
if (!skipLogs) {
|
|
40
|
-
|
|
40
|
+
_chunk72EOBSKWcjs.writeWarning.call(void 0,
|
|
41
41
|
"No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
|
|
42
42
|
{ logLevel: "all" }
|
|
43
43
|
);
|
|
@@ -54,14 +54,14 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
54
54
|
);
|
|
55
55
|
try {
|
|
56
56
|
result = _chunkMBEJXPRQcjs.applyDefaultConfig.call(void 0,
|
|
57
|
-
await _schema.
|
|
57
|
+
await _schema.workspaceConfigSchema.parseAsync(configInput)
|
|
58
58
|
);
|
|
59
59
|
result.workspaceRoot ??= _workspaceRoot;
|
|
60
60
|
} catch (error) {
|
|
61
61
|
throw new Error(
|
|
62
62
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _3 => _3.message]) ? `: ${error.message}` : ""}
|
|
63
63
|
|
|
64
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
64
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunk72EOBSKWcjs.formatLogMessage.call(void 0,
|
|
65
65
|
configInput
|
|
66
66
|
)}`,
|
|
67
67
|
{
|
|
@@ -89,7 +89,7 @@ var createConfigExtension = (extensionName, schema) => {
|
|
|
89
89
|
if (_extension_cache.has(extension_cache_key)) {
|
|
90
90
|
return _extension_cache.get(extension_cache_key);
|
|
91
91
|
}
|
|
92
|
-
let extension =
|
|
92
|
+
let extension = _chunkLRSCRZFNcjs.getExtensionEnv.call(void 0, extensionName);
|
|
93
93
|
if (schema) {
|
|
94
94
|
extension = schema.parse(extension);
|
|
95
95
|
}
|
|
@@ -104,11 +104,11 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
104
104
|
skipLogs,
|
|
105
105
|
true
|
|
106
106
|
);
|
|
107
|
-
|
|
107
|
+
_chunkD5MVYNCScjs.setConfigEnv.call(void 0, config);
|
|
108
108
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
109
|
-
|
|
109
|
+
_chunk72EOBSKWcjs.writeTrace.call(void 0,
|
|
110
110
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
111
|
-
${
|
|
111
|
+
${_chunk72EOBSKWcjs.formatLogMessage.call(void 0, config)}`,
|
|
112
112
|
config
|
|
113
113
|
);
|
|
114
114
|
}
|
|
@@ -126,18 +126,18 @@ var tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDefa
|
|
|
126
126
|
if (!config) {
|
|
127
127
|
return void 0;
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
_chunkD5MVYNCScjs.setConfigEnv.call(void 0, config);
|
|
130
130
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
131
|
-
|
|
131
|
+
_chunk72EOBSKWcjs.writeTrace.call(void 0,
|
|
132
132
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
133
|
-
${
|
|
133
|
+
${_chunk72EOBSKWcjs.formatLogMessage.call(void 0, config)}`,
|
|
134
134
|
config
|
|
135
135
|
);
|
|
136
136
|
}
|
|
137
137
|
return config;
|
|
138
138
|
} catch (error) {
|
|
139
139
|
if (!skipLogs) {
|
|
140
|
-
|
|
140
|
+
_chunk72EOBSKWcjs.writeWarning.call(void 0,
|
|
141
141
|
`\u26A0\uFE0F Failed to load Storm Workspace configuration: ${error}`,
|
|
142
142
|
{ logLevel: "all" }
|
|
143
143
|
);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkNOTWBXXMcjs = require('./chunk-NOTWBXXM.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk72EOBSKWcjs = require('./chunk-72EOBSKW.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkM3REM2FUcjs = require('./chunk-M3REM2FU.cjs');
|
|
@@ -52,7 +52,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
52
52
|
let config = result.config;
|
|
53
53
|
const configFile = result.configFile;
|
|
54
54
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
55
|
-
|
|
55
|
+
_chunk72EOBSKWcjs.writeTrace.call(void 0,
|
|
56
56
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
57
57
|
{
|
|
58
58
|
logLevel: "all"
|
|
@@ -68,7 +68,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
68
68
|
for (const result2 of results) {
|
|
69
69
|
if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
|
|
70
70
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
71
|
-
|
|
71
|
+
_chunk72EOBSKWcjs.writeTrace.call(void 0,
|
|
72
72
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
73
73
|
{
|
|
74
74
|
logLevel: "all"
|