@storm-software/unbuild 0.57.122 → 0.57.124
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 -1
- package/bin/unbuild.cjs +45 -7
- package/bin/unbuild.js +45 -7
- package/dist/build.cjs +7 -7
- package/dist/build.js +6 -6
- package/dist/{chunk-OAAS4DBV.js → chunk-3PJKF6ZP.js} +22 -5
- package/dist/{chunk-4JLDXNBJ.cjs → chunk-6PKNRTLM.cjs} +28 -7
- package/dist/{chunk-MP7F35XB.js → chunk-6VMZE64H.js} +1 -1
- package/dist/{chunk-DMPZZURO.cjs → chunk-DP7FKNIK.cjs} +61 -44
- package/dist/{chunk-QBYN6PPG.cjs → chunk-HNSD65O7.cjs} +2 -2
- package/dist/{chunk-TG5I2FBM.cjs → chunk-JEBUPO36.cjs} +3 -3
- package/dist/{chunk-SPLRBIEF.js → chunk-KY6IV76L.js} +1 -1
- package/dist/{chunk-VLD5OGAM.cjs → chunk-MESRFRXL.cjs} +3 -3
- package/dist/{chunk-EBOFHDEY.js → chunk-NO2X3EYN.js} +1 -1
- package/dist/{chunk-2XFE5FGC.cjs → chunk-O4BT7W6M.cjs} +2 -2
- package/dist/{chunk-5GMXZVPB.js → chunk-UWBAXJIB.js} +28 -7
- package/dist/{chunk-MEKNH4KG.js → chunk-XX3JA7ON.js} +1 -1
- package/dist/clean.cjs +3 -3
- package/dist/clean.js +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.js +6 -6
- package/dist/plugins/analyze.cjs +3 -3
- package/dist/plugins/analyze.js +2 -2
- package/dist/plugins/on-error.cjs +3 -3
- package/dist/plugins/on-error.js +2 -2
- package/dist/plugins/tsc.cjs +3 -3
- package/dist/plugins/tsc.js +2 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
package/bin/unbuild.cjs
CHANGED
|
@@ -106,6 +106,10 @@ var fatalColorSchema = z.optional(colorSchema);
|
|
|
106
106
|
schemaRegistry.add(fatalColorSchema, {
|
|
107
107
|
description: "The fatal color of the workspace"
|
|
108
108
|
});
|
|
109
|
+
var performanceColorSchema = z._default(colorSchema, "#00ff00");
|
|
110
|
+
schemaRegistry.add(performanceColorSchema, {
|
|
111
|
+
description: "The performance color of the workspace"
|
|
112
|
+
});
|
|
109
113
|
var positiveColorSchema = z._default(colorSchema, "#4ade80");
|
|
110
114
|
schemaRegistry.add(positiveColorSchema, {
|
|
111
115
|
description: "The positive number color of the workspace"
|
|
@@ -132,6 +136,7 @@ var darkColorsSchema = z.object({
|
|
|
132
136
|
warning: warningColorSchema,
|
|
133
137
|
danger: dangerColorSchema,
|
|
134
138
|
fatal: fatalColorSchema,
|
|
139
|
+
performance: performanceColorSchema,
|
|
135
140
|
positive: positiveColorSchema,
|
|
136
141
|
negative: negativeColorSchema,
|
|
137
142
|
gradient: gradientStopsSchema
|
|
@@ -150,6 +155,7 @@ var lightColorsSchema = z.object({
|
|
|
150
155
|
warning: warningColorSchema,
|
|
151
156
|
danger: dangerColorSchema,
|
|
152
157
|
fatal: fatalColorSchema,
|
|
158
|
+
performance: performanceColorSchema,
|
|
153
159
|
positive: positiveColorSchema,
|
|
154
160
|
negative: negativeColorSchema,
|
|
155
161
|
gradient: gradientStopsSchema
|
|
@@ -172,6 +178,7 @@ var singleColorsSchema = z.object({
|
|
|
172
178
|
warning: warningColorSchema,
|
|
173
179
|
danger: dangerColorSchema,
|
|
174
180
|
fatal: fatalColorSchema,
|
|
181
|
+
performance: performanceColorSchema,
|
|
175
182
|
positive: positiveColorSchema,
|
|
176
183
|
negative: negativeColorSchema,
|
|
177
184
|
gradient: gradientStopsSchema
|
|
@@ -539,6 +546,7 @@ var logLevelSchema = z._default(
|
|
|
539
546
|
"warn",
|
|
540
547
|
"success",
|
|
541
548
|
"info",
|
|
549
|
+
"performance",
|
|
542
550
|
"debug",
|
|
543
551
|
"trace",
|
|
544
552
|
"all"
|
|
@@ -622,6 +630,7 @@ var LogLevel = {
|
|
|
622
630
|
WARN: 30,
|
|
623
631
|
SUCCESS: 35,
|
|
624
632
|
INFO: 40,
|
|
633
|
+
PERFORMANCE: 50,
|
|
625
634
|
DEBUG: 60,
|
|
626
635
|
TRACE: 70,
|
|
627
636
|
ALL: 100
|
|
@@ -633,6 +642,7 @@ var LogLevelLabel = {
|
|
|
633
642
|
WARN: "warn",
|
|
634
643
|
SUCCESS: "success",
|
|
635
644
|
INFO: "info",
|
|
645
|
+
PERFORMANCE: "performance",
|
|
636
646
|
DEBUG: "debug",
|
|
637
647
|
TRACE: "trace",
|
|
638
648
|
ALL: "all"
|
|
@@ -652,6 +662,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
652
662
|
warning: "#e3b341",
|
|
653
663
|
danger: "#D8314A",
|
|
654
664
|
fatal: "#51070f",
|
|
665
|
+
performance: "#83ff83",
|
|
655
666
|
link: "#3fa6ff",
|
|
656
667
|
positive: "#22c55e",
|
|
657
668
|
negative: "#dc2626",
|
|
@@ -669,6 +680,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
669
680
|
warning: "#f3d371",
|
|
670
681
|
danger: "#D8314A",
|
|
671
682
|
fatal: "#a40e26",
|
|
683
|
+
performance: "#00ff00",
|
|
672
684
|
link: "#3fa6ff",
|
|
673
685
|
positive: "#22c55e",
|
|
674
686
|
negative: "#dc2626",
|
|
@@ -756,6 +768,7 @@ var CONSOLE_ICONS = {
|
|
|
756
768
|
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
757
769
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
758
770
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
771
|
+
[LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
|
|
759
772
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
760
773
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
761
774
|
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
@@ -776,6 +789,8 @@ var getLogLevel = (label) => {
|
|
|
776
789
|
return LogLevel.TRACE;
|
|
777
790
|
case "debug":
|
|
778
791
|
return LogLevel.DEBUG;
|
|
792
|
+
case "performance":
|
|
793
|
+
return LogLevel.PERFORMANCE;
|
|
779
794
|
case "info":
|
|
780
795
|
return LogLevel.INFO;
|
|
781
796
|
case "warn":
|
|
@@ -800,6 +815,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
800
815
|
if (logLevel >= LogLevel.DEBUG) {
|
|
801
816
|
return LogLevelLabel.DEBUG;
|
|
802
817
|
}
|
|
818
|
+
if (logLevel >= LogLevel.PERFORMANCE) {
|
|
819
|
+
return LogLevelLabel.PERFORMANCE;
|
|
820
|
+
}
|
|
803
821
|
if (logLevel >= LogLevel.INFO) {
|
|
804
822
|
return LogLevelLabel.INFO;
|
|
805
823
|
}
|
|
@@ -891,6 +909,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
891
909
|
)(
|
|
892
910
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
893
911
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
912
|
+
`
|
|
913
|
+
);
|
|
914
|
+
};
|
|
915
|
+
}
|
|
916
|
+
if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
|
|
917
|
+
return (message) => {
|
|
918
|
+
console.debug(
|
|
919
|
+
`
|
|
920
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
921
|
+
colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
|
|
922
|
+
)(
|
|
923
|
+
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
924
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
894
925
|
`
|
|
895
926
|
);
|
|
896
927
|
};
|
|
@@ -936,18 +967,16 @@ var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
|
|
|
936
967
|
var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
937
968
|
var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
938
969
|
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
970
|
+
var writePerformance = (message, config) => getLogFn(LogLevel.PERFORMANCE, config)(message);
|
|
939
971
|
var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
|
|
940
972
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
941
973
|
var getStopwatch = (name) => {
|
|
942
974
|
const start = /* @__PURE__ */ new Date();
|
|
943
975
|
return () => {
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
includeSeconds: true
|
|
949
|
-
}
|
|
950
|
-
)} to complete`
|
|
976
|
+
writePerformance(
|
|
977
|
+
`The${name ? ` ${name}` : ""} process took ${(0, import_formatDistanceToNow.formatDistanceToNow)(start, {
|
|
978
|
+
includeSeconds: true
|
|
979
|
+
})} to complete`
|
|
951
980
|
);
|
|
952
981
|
};
|
|
953
982
|
};
|
|
@@ -1210,6 +1239,7 @@ var COLOR_KEYS = [
|
|
|
1210
1239
|
"warning",
|
|
1211
1240
|
"danger",
|
|
1212
1241
|
"fatal",
|
|
1242
|
+
"performance",
|
|
1213
1243
|
"positive",
|
|
1214
1244
|
"negative"
|
|
1215
1245
|
];
|
|
@@ -1589,6 +1619,7 @@ var getSingleThemeColorsEnv = (prefix) => {
|
|
|
1589
1619
|
warning: process.env[`${prefix}WARNING`],
|
|
1590
1620
|
danger: process.env[`${prefix}DANGER`],
|
|
1591
1621
|
fatal: process.env[`${prefix}FATAL`],
|
|
1622
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
1592
1623
|
positive: process.env[`${prefix}POSITIVE`],
|
|
1593
1624
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
1594
1625
|
gradient
|
|
@@ -1628,6 +1659,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1628
1659
|
warning: process.env[`${prefix}WARNING`],
|
|
1629
1660
|
danger: process.env[`${prefix}DANGER`],
|
|
1630
1661
|
fatal: process.env[`${prefix}FATAL`],
|
|
1662
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
1631
1663
|
positive: process.env[`${prefix}POSITIVE`],
|
|
1632
1664
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
1633
1665
|
gradient
|
|
@@ -1938,6 +1970,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
|
|
|
1938
1970
|
if (config.fatal) {
|
|
1939
1971
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
1940
1972
|
}
|
|
1973
|
+
if (config.performance) {
|
|
1974
|
+
process.env[`${prefix}PERFORMANCE`] = config.performance;
|
|
1975
|
+
}
|
|
1941
1976
|
if (config.positive) {
|
|
1942
1977
|
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
1943
1978
|
}
|
|
@@ -1996,6 +2031,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
1996
2031
|
if (config.fatal) {
|
|
1997
2032
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
1998
2033
|
}
|
|
2034
|
+
if (config.performance) {
|
|
2035
|
+
process.env[`${prefix}PERFORMANCE`] = config.performance;
|
|
2036
|
+
}
|
|
1999
2037
|
if (config.positive) {
|
|
2000
2038
|
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
2001
2039
|
}
|
package/bin/unbuild.js
CHANGED
|
@@ -84,6 +84,10 @@ var fatalColorSchema = z.optional(colorSchema);
|
|
|
84
84
|
schemaRegistry.add(fatalColorSchema, {
|
|
85
85
|
description: "The fatal color of the workspace"
|
|
86
86
|
});
|
|
87
|
+
var performanceColorSchema = z._default(colorSchema, "#00ff00");
|
|
88
|
+
schemaRegistry.add(performanceColorSchema, {
|
|
89
|
+
description: "The performance color of the workspace"
|
|
90
|
+
});
|
|
87
91
|
var positiveColorSchema = z._default(colorSchema, "#4ade80");
|
|
88
92
|
schemaRegistry.add(positiveColorSchema, {
|
|
89
93
|
description: "The positive number color of the workspace"
|
|
@@ -110,6 +114,7 @@ var darkColorsSchema = z.object({
|
|
|
110
114
|
warning: warningColorSchema,
|
|
111
115
|
danger: dangerColorSchema,
|
|
112
116
|
fatal: fatalColorSchema,
|
|
117
|
+
performance: performanceColorSchema,
|
|
113
118
|
positive: positiveColorSchema,
|
|
114
119
|
negative: negativeColorSchema,
|
|
115
120
|
gradient: gradientStopsSchema
|
|
@@ -128,6 +133,7 @@ var lightColorsSchema = z.object({
|
|
|
128
133
|
warning: warningColorSchema,
|
|
129
134
|
danger: dangerColorSchema,
|
|
130
135
|
fatal: fatalColorSchema,
|
|
136
|
+
performance: performanceColorSchema,
|
|
131
137
|
positive: positiveColorSchema,
|
|
132
138
|
negative: negativeColorSchema,
|
|
133
139
|
gradient: gradientStopsSchema
|
|
@@ -150,6 +156,7 @@ var singleColorsSchema = z.object({
|
|
|
150
156
|
warning: warningColorSchema,
|
|
151
157
|
danger: dangerColorSchema,
|
|
152
158
|
fatal: fatalColorSchema,
|
|
159
|
+
performance: performanceColorSchema,
|
|
153
160
|
positive: positiveColorSchema,
|
|
154
161
|
negative: negativeColorSchema,
|
|
155
162
|
gradient: gradientStopsSchema
|
|
@@ -517,6 +524,7 @@ var logLevelSchema = z._default(
|
|
|
517
524
|
"warn",
|
|
518
525
|
"success",
|
|
519
526
|
"info",
|
|
527
|
+
"performance",
|
|
520
528
|
"debug",
|
|
521
529
|
"trace",
|
|
522
530
|
"all"
|
|
@@ -600,6 +608,7 @@ var LogLevel = {
|
|
|
600
608
|
WARN: 30,
|
|
601
609
|
SUCCESS: 35,
|
|
602
610
|
INFO: 40,
|
|
611
|
+
PERFORMANCE: 50,
|
|
603
612
|
DEBUG: 60,
|
|
604
613
|
TRACE: 70,
|
|
605
614
|
ALL: 100
|
|
@@ -611,6 +620,7 @@ var LogLevelLabel = {
|
|
|
611
620
|
WARN: "warn",
|
|
612
621
|
SUCCESS: "success",
|
|
613
622
|
INFO: "info",
|
|
623
|
+
PERFORMANCE: "performance",
|
|
614
624
|
DEBUG: "debug",
|
|
615
625
|
TRACE: "trace",
|
|
616
626
|
ALL: "all"
|
|
@@ -630,6 +640,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
630
640
|
warning: "#e3b341",
|
|
631
641
|
danger: "#D8314A",
|
|
632
642
|
fatal: "#51070f",
|
|
643
|
+
performance: "#83ff83",
|
|
633
644
|
link: "#3fa6ff",
|
|
634
645
|
positive: "#22c55e",
|
|
635
646
|
negative: "#dc2626",
|
|
@@ -647,6 +658,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
647
658
|
warning: "#f3d371",
|
|
648
659
|
danger: "#D8314A",
|
|
649
660
|
fatal: "#a40e26",
|
|
661
|
+
performance: "#00ff00",
|
|
650
662
|
link: "#3fa6ff",
|
|
651
663
|
positive: "#22c55e",
|
|
652
664
|
negative: "#dc2626",
|
|
@@ -734,6 +746,7 @@ var CONSOLE_ICONS = {
|
|
|
734
746
|
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
735
747
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
736
748
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
749
|
+
[LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
|
|
737
750
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
738
751
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
739
752
|
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
@@ -754,6 +767,8 @@ var getLogLevel = (label) => {
|
|
|
754
767
|
return LogLevel.TRACE;
|
|
755
768
|
case "debug":
|
|
756
769
|
return LogLevel.DEBUG;
|
|
770
|
+
case "performance":
|
|
771
|
+
return LogLevel.PERFORMANCE;
|
|
757
772
|
case "info":
|
|
758
773
|
return LogLevel.INFO;
|
|
759
774
|
case "warn":
|
|
@@ -778,6 +793,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
778
793
|
if (logLevel >= LogLevel.DEBUG) {
|
|
779
794
|
return LogLevelLabel.DEBUG;
|
|
780
795
|
}
|
|
796
|
+
if (logLevel >= LogLevel.PERFORMANCE) {
|
|
797
|
+
return LogLevelLabel.PERFORMANCE;
|
|
798
|
+
}
|
|
781
799
|
if (logLevel >= LogLevel.INFO) {
|
|
782
800
|
return LogLevelLabel.INFO;
|
|
783
801
|
}
|
|
@@ -869,6 +887,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
869
887
|
)(
|
|
870
888
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
871
889
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
890
|
+
`
|
|
891
|
+
);
|
|
892
|
+
};
|
|
893
|
+
}
|
|
894
|
+
if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
|
|
895
|
+
return (message) => {
|
|
896
|
+
console.debug(
|
|
897
|
+
`
|
|
898
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
899
|
+
colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
|
|
900
|
+
)(
|
|
901
|
+
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
902
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
872
903
|
`
|
|
873
904
|
);
|
|
874
905
|
};
|
|
@@ -914,18 +945,16 @@ var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
|
|
|
914
945
|
var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
915
946
|
var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
916
947
|
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
948
|
+
var writePerformance = (message, config) => getLogFn(LogLevel.PERFORMANCE, config)(message);
|
|
917
949
|
var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
|
|
918
950
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
919
951
|
var getStopwatch = (name) => {
|
|
920
952
|
const start = /* @__PURE__ */ new Date();
|
|
921
953
|
return () => {
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
includeSeconds: true
|
|
927
|
-
}
|
|
928
|
-
)} to complete`
|
|
954
|
+
writePerformance(
|
|
955
|
+
`The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(start, {
|
|
956
|
+
includeSeconds: true
|
|
957
|
+
})} to complete`
|
|
929
958
|
);
|
|
930
959
|
};
|
|
931
960
|
};
|
|
@@ -1188,6 +1217,7 @@ var COLOR_KEYS = [
|
|
|
1188
1217
|
"warning",
|
|
1189
1218
|
"danger",
|
|
1190
1219
|
"fatal",
|
|
1220
|
+
"performance",
|
|
1191
1221
|
"positive",
|
|
1192
1222
|
"negative"
|
|
1193
1223
|
];
|
|
@@ -1567,6 +1597,7 @@ var getSingleThemeColorsEnv = (prefix) => {
|
|
|
1567
1597
|
warning: process.env[`${prefix}WARNING`],
|
|
1568
1598
|
danger: process.env[`${prefix}DANGER`],
|
|
1569
1599
|
fatal: process.env[`${prefix}FATAL`],
|
|
1600
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
1570
1601
|
positive: process.env[`${prefix}POSITIVE`],
|
|
1571
1602
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
1572
1603
|
gradient
|
|
@@ -1606,6 +1637,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1606
1637
|
warning: process.env[`${prefix}WARNING`],
|
|
1607
1638
|
danger: process.env[`${prefix}DANGER`],
|
|
1608
1639
|
fatal: process.env[`${prefix}FATAL`],
|
|
1640
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
1609
1641
|
positive: process.env[`${prefix}POSITIVE`],
|
|
1610
1642
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
1611
1643
|
gradient
|
|
@@ -1916,6 +1948,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
|
|
|
1916
1948
|
if (config.fatal) {
|
|
1917
1949
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
1918
1950
|
}
|
|
1951
|
+
if (config.performance) {
|
|
1952
|
+
process.env[`${prefix}PERFORMANCE`] = config.performance;
|
|
1953
|
+
}
|
|
1919
1954
|
if (config.positive) {
|
|
1920
1955
|
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
1921
1956
|
}
|
|
@@ -1974,6 +2009,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
1974
2009
|
if (config.fatal) {
|
|
1975
2010
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
1976
2011
|
}
|
|
2012
|
+
if (config.performance) {
|
|
2013
|
+
process.env[`${prefix}PERFORMANCE`] = config.performance;
|
|
2014
|
+
}
|
|
1977
2015
|
if (config.positive) {
|
|
1978
2016
|
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
1979
2017
|
}
|
package/dist/build.cjs
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
8
|
+
var _chunkDP7FKNIKcjs = require('./chunk-DP7FKNIK.cjs');
|
|
9
|
+
require('./chunk-JEBUPO36.cjs');
|
|
10
|
+
require('./chunk-O4BT7W6M.cjs');
|
|
11
|
+
require('./chunk-MESRFRXL.cjs');
|
|
12
|
+
require('./chunk-HNSD65O7.cjs');
|
|
13
|
+
require('./chunk-6PKNRTLM.cjs');
|
|
14
14
|
require('./chunk-OBGZSXTJ.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
@@ -19,4 +19,4 @@ require('./chunk-OBGZSXTJ.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.build =
|
|
22
|
+
exports.build = _chunkDP7FKNIKcjs.build; exports.cleanOutputPath = _chunkDP7FKNIKcjs.cleanOutputPath; exports.copyBuildAssets = _chunkDP7FKNIKcjs.copyBuildAssets; exports.executeUnbuild = _chunkDP7FKNIKcjs.executeUnbuild; exports.generatePackageJson = _chunkDP7FKNIKcjs.generatePackageJson; exports.resolveOptions = _chunkDP7FKNIKcjs.resolveOptions;
|
package/dist/build.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
executeUnbuild,
|
|
6
6
|
generatePackageJson,
|
|
7
7
|
resolveOptions
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-3PJKF6ZP.js";
|
|
9
|
+
import "./chunk-6VMZE64H.js";
|
|
10
|
+
import "./chunk-XX3JA7ON.js";
|
|
11
|
+
import "./chunk-KY6IV76L.js";
|
|
12
|
+
import "./chunk-NO2X3EYN.js";
|
|
13
|
+
import "./chunk-UWBAXJIB.js";
|
|
14
14
|
import "./chunk-3RG5ZIWI.js";
|
|
15
15
|
export {
|
|
16
16
|
build,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanDirectories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6VMZE64H.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XX3JA7ON.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KY6IV76L.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfig,
|
|
12
12
|
tscPlugin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NO2X3EYN.js";
|
|
14
14
|
import {
|
|
15
15
|
LogLevel,
|
|
16
16
|
LogLevelLabel,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
writeSuccess,
|
|
26
26
|
writeTrace,
|
|
27
27
|
writeWarning
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-UWBAXJIB.js";
|
|
29
29
|
|
|
30
30
|
// src/build.ts
|
|
31
31
|
import {
|
|
@@ -580,6 +580,10 @@ var fatalColorSchema = z.optional(colorSchema);
|
|
|
580
580
|
schemaRegistry.add(fatalColorSchema, {
|
|
581
581
|
description: "The fatal color of the workspace"
|
|
582
582
|
});
|
|
583
|
+
var performanceColorSchema = z._default(colorSchema, "#00ff00");
|
|
584
|
+
schemaRegistry.add(performanceColorSchema, {
|
|
585
|
+
description: "The performance color of the workspace"
|
|
586
|
+
});
|
|
583
587
|
var positiveColorSchema = z._default(colorSchema, "#4ade80");
|
|
584
588
|
schemaRegistry.add(positiveColorSchema, {
|
|
585
589
|
description: "The positive number color of the workspace"
|
|
@@ -606,6 +610,7 @@ var darkColorsSchema = z.object({
|
|
|
606
610
|
warning: warningColorSchema,
|
|
607
611
|
danger: dangerColorSchema,
|
|
608
612
|
fatal: fatalColorSchema,
|
|
613
|
+
performance: performanceColorSchema,
|
|
609
614
|
positive: positiveColorSchema,
|
|
610
615
|
negative: negativeColorSchema,
|
|
611
616
|
gradient: gradientStopsSchema
|
|
@@ -624,6 +629,7 @@ var lightColorsSchema = z.object({
|
|
|
624
629
|
warning: warningColorSchema,
|
|
625
630
|
danger: dangerColorSchema,
|
|
626
631
|
fatal: fatalColorSchema,
|
|
632
|
+
performance: performanceColorSchema,
|
|
627
633
|
positive: positiveColorSchema,
|
|
628
634
|
negative: negativeColorSchema,
|
|
629
635
|
gradient: gradientStopsSchema
|
|
@@ -646,6 +652,7 @@ var singleColorsSchema = z.object({
|
|
|
646
652
|
warning: warningColorSchema,
|
|
647
653
|
danger: dangerColorSchema,
|
|
648
654
|
fatal: fatalColorSchema,
|
|
655
|
+
performance: performanceColorSchema,
|
|
649
656
|
positive: positiveColorSchema,
|
|
650
657
|
negative: negativeColorSchema,
|
|
651
658
|
gradient: gradientStopsSchema
|
|
@@ -1013,6 +1020,7 @@ var logLevelSchema = z._default(
|
|
|
1013
1020
|
"warn",
|
|
1014
1021
|
"success",
|
|
1015
1022
|
"info",
|
|
1023
|
+
"performance",
|
|
1016
1024
|
"debug",
|
|
1017
1025
|
"trace",
|
|
1018
1026
|
"all"
|
|
@@ -1092,6 +1100,7 @@ var COLOR_KEYS = [
|
|
|
1092
1100
|
"warning",
|
|
1093
1101
|
"danger",
|
|
1094
1102
|
"fatal",
|
|
1103
|
+
"performance",
|
|
1095
1104
|
"positive",
|
|
1096
1105
|
"negative"
|
|
1097
1106
|
];
|
|
@@ -1432,6 +1441,7 @@ var getSingleThemeColorsEnv = (prefix) => {
|
|
|
1432
1441
|
warning: process.env[`${prefix}WARNING`],
|
|
1433
1442
|
danger: process.env[`${prefix}DANGER`],
|
|
1434
1443
|
fatal: process.env[`${prefix}FATAL`],
|
|
1444
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
1435
1445
|
positive: process.env[`${prefix}POSITIVE`],
|
|
1436
1446
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
1437
1447
|
gradient
|
|
@@ -1471,6 +1481,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1471
1481
|
warning: process.env[`${prefix}WARNING`],
|
|
1472
1482
|
danger: process.env[`${prefix}DANGER`],
|
|
1473
1483
|
fatal: process.env[`${prefix}FATAL`],
|
|
1484
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
1474
1485
|
positive: process.env[`${prefix}POSITIVE`],
|
|
1475
1486
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
1476
1487
|
gradient
|
|
@@ -1781,6 +1792,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
|
|
|
1781
1792
|
if (config.fatal) {
|
|
1782
1793
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
1783
1794
|
}
|
|
1795
|
+
if (config.performance) {
|
|
1796
|
+
process.env[`${prefix}PERFORMANCE`] = config.performance;
|
|
1797
|
+
}
|
|
1784
1798
|
if (config.positive) {
|
|
1785
1799
|
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
1786
1800
|
}
|
|
@@ -1839,6 +1853,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
1839
1853
|
if (config.fatal) {
|
|
1840
1854
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
1841
1855
|
}
|
|
1856
|
+
if (config.performance) {
|
|
1857
|
+
process.env[`${prefix}PERFORMANCE`] = config.performance;
|
|
1858
|
+
}
|
|
1842
1859
|
if (config.positive) {
|
|
1843
1860
|
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
1844
1861
|
}
|
|
@@ -6,6 +6,7 @@ var LogLevel = {
|
|
|
6
6
|
WARN: 30,
|
|
7
7
|
SUCCESS: 35,
|
|
8
8
|
INFO: 40,
|
|
9
|
+
PERFORMANCE: 50,
|
|
9
10
|
DEBUG: 60,
|
|
10
11
|
TRACE: 70,
|
|
11
12
|
ALL: 100
|
|
@@ -17,6 +18,7 @@ var LogLevelLabel = {
|
|
|
17
18
|
WARN: "warn",
|
|
18
19
|
SUCCESS: "success",
|
|
19
20
|
INFO: "info",
|
|
21
|
+
PERFORMANCE: "performance",
|
|
20
22
|
DEBUG: "debug",
|
|
21
23
|
TRACE: "trace",
|
|
22
24
|
ALL: "all"
|
|
@@ -31,6 +33,8 @@ var getLogLevel = (label) => {
|
|
|
31
33
|
return LogLevel.TRACE;
|
|
32
34
|
case "debug":
|
|
33
35
|
return LogLevel.DEBUG;
|
|
36
|
+
case "performance":
|
|
37
|
+
return LogLevel.PERFORMANCE;
|
|
34
38
|
case "info":
|
|
35
39
|
return LogLevel.INFO;
|
|
36
40
|
case "warn":
|
|
@@ -55,6 +59,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
55
59
|
if (logLevel >= LogLevel.DEBUG) {
|
|
56
60
|
return LogLevelLabel.DEBUG;
|
|
57
61
|
}
|
|
62
|
+
if (logLevel >= LogLevel.PERFORMANCE) {
|
|
63
|
+
return LogLevelLabel.PERFORMANCE;
|
|
64
|
+
}
|
|
58
65
|
if (logLevel >= LogLevel.INFO) {
|
|
59
66
|
return LogLevelLabel.INFO;
|
|
60
67
|
}
|
|
@@ -94,6 +101,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
94
101
|
warning: "#e3b341",
|
|
95
102
|
danger: "#D8314A",
|
|
96
103
|
fatal: "#51070f",
|
|
104
|
+
performance: "#83ff83",
|
|
97
105
|
link: "#3fa6ff",
|
|
98
106
|
positive: "#22c55e",
|
|
99
107
|
negative: "#dc2626",
|
|
@@ -111,6 +119,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
111
119
|
warning: "#f3d371",
|
|
112
120
|
danger: "#D8314A",
|
|
113
121
|
fatal: "#a40e26",
|
|
122
|
+
performance: "#00ff00",
|
|
114
123
|
link: "#3fa6ff",
|
|
115
124
|
positive: "#22c55e",
|
|
116
125
|
negative: "#dc2626",
|
|
@@ -198,6 +207,7 @@ var CONSOLE_ICONS = {
|
|
|
198
207
|
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
199
208
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
200
209
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
210
|
+
[LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
|
|
201
211
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
202
212
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
203
213
|
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
@@ -278,6 +288,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
278
288
|
)(
|
|
279
289
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
280
290
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
291
|
+
`
|
|
292
|
+
);
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
|
|
296
|
+
return (message) => {
|
|
297
|
+
console.debug(
|
|
298
|
+
`
|
|
299
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
300
|
+
_nullishCoalesce(colors.performance, () => ( DEFAULT_COLOR_CONFIG.dark.performance))
|
|
301
|
+
)(
|
|
302
|
+
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
303
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
281
304
|
`
|
|
282
305
|
);
|
|
283
306
|
};
|
|
@@ -323,18 +346,16 @@ var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
|
|
|
323
346
|
var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
324
347
|
var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
325
348
|
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
349
|
+
var writePerformance = (message, config) => getLogFn(LogLevel.PERFORMANCE, config)(message);
|
|
326
350
|
var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
|
|
327
351
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
328
352
|
var getStopwatch = (name) => {
|
|
329
353
|
const start = /* @__PURE__ */ new Date();
|
|
330
354
|
return () => {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
includeSeconds: true
|
|
336
|
-
}
|
|
337
|
-
)} to complete`
|
|
355
|
+
writePerformance(
|
|
356
|
+
`The${name ? ` ${name}` : ""} process took ${_formatDistanceToNow.formatDistanceToNow.call(void 0, start, {
|
|
357
|
+
includeSeconds: true
|
|
358
|
+
})} to complete`
|
|
338
359
|
);
|
|
339
360
|
};
|
|
340
361
|
};
|