@storm-software/unbuild 0.57.160 → 0.57.162
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/bin/unbuild.cjs +17 -28
- package/bin/unbuild.js +17 -28
- package/dist/build.cjs +7 -7
- package/dist/build.js +6 -6
- package/dist/{chunk-J6CD6F3B.js → chunk-4JTKPRWK.js} +5 -5
- package/dist/{chunk-SHN2UOJI.js → chunk-7VOV7HN5.js} +1 -1
- package/dist/{chunk-DY4PAY36.js → chunk-AMZHWNG2.js} +17 -28
- package/dist/{chunk-KKRZ77R2.js → chunk-C6VFGQO3.js} +1 -1
- package/dist/{chunk-OZTGPHIK.cjs → chunk-DE2NBA4Y.cjs} +2 -2
- package/dist/{chunk-OHNKWQUW.cjs → chunk-ESAZP6C2.cjs} +17 -28
- package/dist/{chunk-VGWKK3CV.cjs → chunk-J7HLF4KV.cjs} +44 -44
- package/dist/{chunk-TGRJMVW2.js → chunk-KMJW6ID3.js} +1 -1
- package/dist/{chunk-F7DWPJ53.cjs → chunk-MUBIDPRP.cjs} +3 -3
- package/dist/{chunk-OXAFJMZ6.cjs → chunk-OOCUWPTY.cjs} +3 -3
- package/dist/{chunk-TEX4OLXS.cjs → chunk-SOIRA2IJ.cjs} +2 -2
- package/dist/{chunk-7Q2YKORG.js → chunk-Y4DEDRJ4.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/bin/unbuild.cjs
CHANGED
|
@@ -776,8 +776,8 @@ var CONSOLE_ICONS = {
|
|
|
776
776
|
};
|
|
777
777
|
|
|
778
778
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
779
|
-
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
780
|
-
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
779
|
+
var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
|
|
780
|
+
return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
|
|
781
781
|
};
|
|
782
782
|
|
|
783
783
|
// ../config-tools/src/logger/get-log-level.ts
|
|
@@ -841,7 +841,12 @@ var isVerbose = (label = LogLevelLabel.SILENT) => {
|
|
|
841
841
|
};
|
|
842
842
|
|
|
843
843
|
// ../config-tools/src/logger/console.ts
|
|
844
|
-
var getLogFn = (logLevel = LogLevel.INFO, config = {},
|
|
844
|
+
var getLogFn = (logLevel = LogLevel.INFO, config = {}, options = {}) => {
|
|
845
|
+
const {
|
|
846
|
+
chalk: _chalk = getChalk(),
|
|
847
|
+
fullDateTime = false,
|
|
848
|
+
hideDateTime = false
|
|
849
|
+
} = options;
|
|
845
850
|
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;
|
|
846
851
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
847
852
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
@@ -852,9 +857,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
|
852
857
|
return (message) => {
|
|
853
858
|
console.error(
|
|
854
859
|
`
|
|
855
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
856
|
-
colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
|
|
857
|
-
)(
|
|
860
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal)(
|
|
858
861
|
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
859
862
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
860
863
|
`
|
|
@@ -865,9 +868,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
865
868
|
return (message) => {
|
|
866
869
|
console.error(
|
|
867
870
|
`
|
|
868
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
869
|
-
colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
|
|
870
|
-
)(
|
|
871
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger)(
|
|
871
872
|
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
872
873
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
873
874
|
`
|
|
@@ -878,9 +879,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
878
879
|
return (message) => {
|
|
879
880
|
console.warn(
|
|
880
881
|
`
|
|
881
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
882
|
-
colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
|
|
883
|
-
)(
|
|
882
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning)(
|
|
884
883
|
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
885
884
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
886
885
|
`
|
|
@@ -891,9 +890,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
891
890
|
return (message) => {
|
|
892
891
|
console.info(
|
|
893
892
|
`
|
|
894
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
895
|
-
colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
|
|
896
|
-
)(
|
|
893
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.success ?? DEFAULT_COLOR_CONFIG.dark.success)(
|
|
897
894
|
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
898
895
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
899
896
|
`
|
|
@@ -904,9 +901,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
904
901
|
return (message) => {
|
|
905
902
|
console.info(
|
|
906
903
|
`
|
|
907
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
908
|
-
colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
|
|
909
|
-
)(
|
|
904
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(
|
|
910
905
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
911
906
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
912
907
|
`
|
|
@@ -917,9 +912,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
917
912
|
return (message) => {
|
|
918
913
|
console.debug(
|
|
919
914
|
`
|
|
920
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
921
|
-
colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
|
|
922
|
-
)(
|
|
915
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance)(
|
|
923
916
|
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
924
917
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
925
918
|
`
|
|
@@ -930,9 +923,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
930
923
|
return (message) => {
|
|
931
924
|
console.debug(
|
|
932
925
|
`
|
|
933
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
934
|
-
colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
|
|
935
|
-
)(
|
|
926
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(
|
|
936
927
|
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
937
928
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
938
929
|
`
|
|
@@ -943,7 +934,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
943
934
|
return (message) => {
|
|
944
935
|
console.debug(
|
|
945
936
|
`
|
|
946
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
937
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex("#bbbbbb")(
|
|
947
938
|
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
948
939
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
949
940
|
`
|
|
@@ -953,9 +944,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
|
953
944
|
return (message) => {
|
|
954
945
|
console.log(
|
|
955
946
|
`
|
|
956
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
957
|
-
colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
|
|
958
|
-
)(
|
|
947
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand)(
|
|
959
948
|
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
960
949
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
961
950
|
`
|
package/bin/unbuild.js
CHANGED
|
@@ -754,8 +754,8 @@ var CONSOLE_ICONS = {
|
|
|
754
754
|
};
|
|
755
755
|
|
|
756
756
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
757
|
-
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
758
|
-
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
757
|
+
var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
|
|
758
|
+
return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
|
|
759
759
|
};
|
|
760
760
|
|
|
761
761
|
// ../config-tools/src/logger/get-log-level.ts
|
|
@@ -819,7 +819,12 @@ var isVerbose = (label = LogLevelLabel.SILENT) => {
|
|
|
819
819
|
};
|
|
820
820
|
|
|
821
821
|
// ../config-tools/src/logger/console.ts
|
|
822
|
-
var getLogFn = (logLevel = LogLevel.INFO, config = {},
|
|
822
|
+
var getLogFn = (logLevel = LogLevel.INFO, config = {}, options = {}) => {
|
|
823
|
+
const {
|
|
824
|
+
chalk: _chalk = getChalk(),
|
|
825
|
+
fullDateTime = false,
|
|
826
|
+
hideDateTime = false
|
|
827
|
+
} = options;
|
|
823
828
|
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;
|
|
824
829
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
825
830
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
@@ -830,9 +835,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
|
830
835
|
return (message) => {
|
|
831
836
|
console.error(
|
|
832
837
|
`
|
|
833
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
834
|
-
colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
|
|
835
|
-
)(
|
|
838
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal)(
|
|
836
839
|
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
837
840
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
838
841
|
`
|
|
@@ -843,9 +846,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
843
846
|
return (message) => {
|
|
844
847
|
console.error(
|
|
845
848
|
`
|
|
846
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
847
|
-
colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
|
|
848
|
-
)(
|
|
849
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger)(
|
|
849
850
|
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
850
851
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
851
852
|
`
|
|
@@ -856,9 +857,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
856
857
|
return (message) => {
|
|
857
858
|
console.warn(
|
|
858
859
|
`
|
|
859
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
860
|
-
colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
|
|
861
|
-
)(
|
|
860
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning)(
|
|
862
861
|
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
863
862
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
864
863
|
`
|
|
@@ -869,9 +868,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
869
868
|
return (message) => {
|
|
870
869
|
console.info(
|
|
871
870
|
`
|
|
872
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
873
|
-
colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
|
|
874
|
-
)(
|
|
871
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.success ?? DEFAULT_COLOR_CONFIG.dark.success)(
|
|
875
872
|
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
876
873
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
877
874
|
`
|
|
@@ -882,9 +879,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
882
879
|
return (message) => {
|
|
883
880
|
console.info(
|
|
884
881
|
`
|
|
885
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
886
|
-
colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
|
|
887
|
-
)(
|
|
882
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(
|
|
888
883
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
889
884
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
890
885
|
`
|
|
@@ -895,9 +890,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
895
890
|
return (message) => {
|
|
896
891
|
console.debug(
|
|
897
892
|
`
|
|
898
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
899
|
-
colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
|
|
900
|
-
)(
|
|
893
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance)(
|
|
901
894
|
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
902
895
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
903
896
|
`
|
|
@@ -908,9 +901,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
908
901
|
return (message) => {
|
|
909
902
|
console.debug(
|
|
910
903
|
`
|
|
911
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
912
|
-
colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
|
|
913
|
-
)(
|
|
904
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(
|
|
914
905
|
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
915
906
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
916
907
|
`
|
|
@@ -921,7 +912,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
921
912
|
return (message) => {
|
|
922
913
|
console.debug(
|
|
923
914
|
`
|
|
924
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
915
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex("#bbbbbb")(
|
|
925
916
|
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
926
917
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
927
918
|
`
|
|
@@ -931,9 +922,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
|
931
922
|
return (message) => {
|
|
932
923
|
console.log(
|
|
933
924
|
`
|
|
934
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
935
|
-
colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
|
|
936
|
-
)(
|
|
925
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand)(
|
|
937
926
|
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
938
927
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
939
928
|
`
|
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 _chunkJ7HLF4KVcjs = require('./chunk-J7HLF4KV.cjs');
|
|
9
|
+
require('./chunk-OOCUWPTY.cjs');
|
|
10
|
+
require('./chunk-DE2NBA4Y.cjs');
|
|
11
|
+
require('./chunk-MUBIDPRP.cjs');
|
|
12
|
+
require('./chunk-SOIRA2IJ.cjs');
|
|
13
|
+
require('./chunk-ESAZP6C2.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 = _chunkJ7HLF4KVcjs.build; exports.cleanOutputPath = _chunkJ7HLF4KVcjs.cleanOutputPath; exports.copyBuildAssets = _chunkJ7HLF4KVcjs.copyBuildAssets; exports.executeUnbuild = _chunkJ7HLF4KVcjs.executeUnbuild; exports.generatePackageJson = _chunkJ7HLF4KVcjs.generatePackageJson; exports.resolveOptions = _chunkJ7HLF4KVcjs.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-4JTKPRWK.js";
|
|
9
|
+
import "./chunk-Y4DEDRJ4.js";
|
|
10
|
+
import "./chunk-7VOV7HN5.js";
|
|
11
|
+
import "./chunk-C6VFGQO3.js";
|
|
12
|
+
import "./chunk-KMJW6ID3.js";
|
|
13
|
+
import "./chunk-AMZHWNG2.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-Y4DEDRJ4.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7VOV7HN5.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-C6VFGQO3.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfig,
|
|
12
12
|
tscPlugin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KMJW6ID3.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-AMZHWNG2.js";
|
|
29
29
|
|
|
30
30
|
// src/build.ts
|
|
31
31
|
import {
|
|
@@ -215,12 +215,17 @@ var CONSOLE_ICONS = {
|
|
|
215
215
|
};
|
|
216
216
|
|
|
217
217
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
218
|
-
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
219
|
-
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
218
|
+
var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
|
|
219
|
+
return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
|
|
220
220
|
};
|
|
221
221
|
|
|
222
222
|
// ../config-tools/src/logger/console.ts
|
|
223
|
-
var getLogFn = (logLevel = LogLevel.INFO, config = {},
|
|
223
|
+
var getLogFn = (logLevel = LogLevel.INFO, config = {}, options = {}) => {
|
|
224
|
+
const {
|
|
225
|
+
chalk: _chalk = getChalk(),
|
|
226
|
+
fullDateTime = false,
|
|
227
|
+
hideDateTime = false
|
|
228
|
+
} = options;
|
|
224
229
|
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;
|
|
225
230
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
226
231
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
@@ -231,9 +236,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
|
231
236
|
return (message) => {
|
|
232
237
|
console.error(
|
|
233
238
|
`
|
|
234
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
235
|
-
colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
|
|
236
|
-
)(
|
|
239
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal)(
|
|
237
240
|
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
238
241
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
239
242
|
`
|
|
@@ -244,9 +247,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
244
247
|
return (message) => {
|
|
245
248
|
console.error(
|
|
246
249
|
`
|
|
247
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
248
|
-
colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
|
|
249
|
-
)(
|
|
250
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger)(
|
|
250
251
|
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
251
252
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
252
253
|
`
|
|
@@ -257,9 +258,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
257
258
|
return (message) => {
|
|
258
259
|
console.warn(
|
|
259
260
|
`
|
|
260
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
261
|
-
colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
|
|
262
|
-
)(
|
|
261
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning)(
|
|
263
262
|
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
264
263
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
265
264
|
`
|
|
@@ -270,9 +269,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
270
269
|
return (message) => {
|
|
271
270
|
console.info(
|
|
272
271
|
`
|
|
273
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
274
|
-
colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
|
|
275
|
-
)(
|
|
272
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.success ?? DEFAULT_COLOR_CONFIG.dark.success)(
|
|
276
273
|
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
277
274
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
278
275
|
`
|
|
@@ -283,9 +280,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
283
280
|
return (message) => {
|
|
284
281
|
console.info(
|
|
285
282
|
`
|
|
286
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
287
|
-
colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
|
|
288
|
-
)(
|
|
283
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(
|
|
289
284
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
290
285
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
291
286
|
`
|
|
@@ -296,9 +291,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
296
291
|
return (message) => {
|
|
297
292
|
console.debug(
|
|
298
293
|
`
|
|
299
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
300
|
-
colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
|
|
301
|
-
)(
|
|
294
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance)(
|
|
302
295
|
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
303
296
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
304
297
|
`
|
|
@@ -309,9 +302,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
309
302
|
return (message) => {
|
|
310
303
|
console.debug(
|
|
311
304
|
`
|
|
312
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
313
|
-
colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
|
|
314
|
-
)(
|
|
305
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(
|
|
315
306
|
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
316
307
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
317
308
|
`
|
|
@@ -322,7 +313,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
322
313
|
return (message) => {
|
|
323
314
|
console.debug(
|
|
324
315
|
`
|
|
325
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
316
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex("#bbbbbb")(
|
|
326
317
|
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
327
318
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
328
319
|
`
|
|
@@ -332,9 +323,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
|
332
323
|
return (message) => {
|
|
333
324
|
console.log(
|
|
334
325
|
`
|
|
335
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
336
|
-
colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
|
|
337
|
-
)(
|
|
326
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand)(
|
|
338
327
|
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
339
328
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
340
329
|
`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkESAZP6C2cjs = require('./chunk-ESAZP6C2.cjs');
|
|
4
4
|
|
|
5
5
|
// src/plugins/analyze.ts
|
|
6
6
|
var formatBytes = (bytes) => {
|
|
@@ -17,7 +17,7 @@ var analyzePlugin = (options) => {
|
|
|
17
17
|
renderChunk(source, chunk) {
|
|
18
18
|
const sourceBytes = formatBytes(source.length);
|
|
19
19
|
const fileName = chunk.fileName;
|
|
20
|
-
|
|
20
|
+
_chunkESAZP6C2cjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
};
|
|
@@ -215,12 +215,17 @@ var CONSOLE_ICONS = {
|
|
|
215
215
|
};
|
|
216
216
|
|
|
217
217
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
218
|
-
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
219
|
-
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
218
|
+
var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
|
|
219
|
+
return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
|
|
220
220
|
};
|
|
221
221
|
|
|
222
222
|
// ../config-tools/src/logger/console.ts
|
|
223
|
-
var getLogFn = (logLevel = LogLevel.INFO, config = {},
|
|
223
|
+
var getLogFn = (logLevel = LogLevel.INFO, config = {}, options = {}) => {
|
|
224
|
+
const {
|
|
225
|
+
chalk: _chalk = getChalk(),
|
|
226
|
+
fullDateTime = false,
|
|
227
|
+
hideDateTime = false
|
|
228
|
+
} = options;
|
|
224
229
|
const colors = !_optionalChain([config, 'access', _12 => _12.colors, 'optionalAccess', _13 => _13.dark]) && !_optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) && !_optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"], 'optionalAccess', _23 => _23.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _24 => _24.colors, 'optionalAccess', _25 => _25["base"]]) ? _optionalChain([config, 'access', _26 => _26.colors, 'optionalAccess', _27 => _27["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
225
230
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
226
231
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
@@ -231,9 +236,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
|
231
236
|
return (message) => {
|
|
232
237
|
console.error(
|
|
233
238
|
`
|
|
234
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
235
|
-
_nullishCoalesce(colors.fatal, () => ( DEFAULT_COLOR_CONFIG.dark.fatal))
|
|
236
|
-
)(
|
|
239
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( DEFAULT_COLOR_CONFIG.dark.fatal)))(
|
|
237
240
|
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
238
241
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
239
242
|
`
|
|
@@ -244,9 +247,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
244
247
|
return (message) => {
|
|
245
248
|
console.error(
|
|
246
249
|
`
|
|
247
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
248
|
-
_nullishCoalesce(colors.danger, () => ( DEFAULT_COLOR_CONFIG.dark.danger))
|
|
249
|
-
)(
|
|
250
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.danger, () => ( DEFAULT_COLOR_CONFIG.dark.danger)))(
|
|
250
251
|
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
251
252
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
252
253
|
`
|
|
@@ -257,9 +258,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
257
258
|
return (message) => {
|
|
258
259
|
console.warn(
|
|
259
260
|
`
|
|
260
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
261
|
-
_nullishCoalesce(colors.warning, () => ( DEFAULT_COLOR_CONFIG.dark.warning))
|
|
262
|
-
)(
|
|
261
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.warning, () => ( DEFAULT_COLOR_CONFIG.dark.warning)))(
|
|
263
262
|
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
264
263
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
265
264
|
`
|
|
@@ -270,9 +269,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
270
269
|
return (message) => {
|
|
271
270
|
console.info(
|
|
272
271
|
`
|
|
273
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
274
|
-
_nullishCoalesce(colors.success, () => ( DEFAULT_COLOR_CONFIG.dark.success))
|
|
275
|
-
)(
|
|
272
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.success, () => ( DEFAULT_COLOR_CONFIG.dark.success)))(
|
|
276
273
|
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
277
274
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
278
275
|
`
|
|
@@ -283,9 +280,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
283
280
|
return (message) => {
|
|
284
281
|
console.info(
|
|
285
282
|
`
|
|
286
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
287
|
-
_nullishCoalesce(colors.info, () => ( DEFAULT_COLOR_CONFIG.dark.info))
|
|
288
|
-
)(
|
|
283
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.info, () => ( DEFAULT_COLOR_CONFIG.dark.info)))(
|
|
289
284
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
290
285
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
291
286
|
`
|
|
@@ -296,9 +291,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
296
291
|
return (message) => {
|
|
297
292
|
console.debug(
|
|
298
293
|
`
|
|
299
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
300
|
-
_nullishCoalesce(colors.performance, () => ( DEFAULT_COLOR_CONFIG.dark.performance))
|
|
301
|
-
)(
|
|
294
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.performance, () => ( DEFAULT_COLOR_CONFIG.dark.performance)))(
|
|
302
295
|
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
303
296
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
304
297
|
`
|
|
@@ -309,9 +302,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
309
302
|
return (message) => {
|
|
310
303
|
console.debug(
|
|
311
304
|
`
|
|
312
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
313
|
-
_nullishCoalesce(colors.debug, () => ( DEFAULT_COLOR_CONFIG.dark.debug))
|
|
314
|
-
)(
|
|
305
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.debug, () => ( DEFAULT_COLOR_CONFIG.dark.debug)))(
|
|
315
306
|
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
316
307
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
317
308
|
`
|
|
@@ -322,7 +313,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
322
313
|
return (message) => {
|
|
323
314
|
console.debug(
|
|
324
315
|
`
|
|
325
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
316
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex("#bbbbbb")(
|
|
326
317
|
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
327
318
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
328
319
|
`
|
|
@@ -332,9 +323,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
|
332
323
|
return (message) => {
|
|
333
324
|
console.log(
|
|
334
325
|
`
|
|
335
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
336
|
-
_nullishCoalesce(colors.brand, () => ( DEFAULT_COLOR_CONFIG.dark.brand))
|
|
337
|
-
)(
|
|
326
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.brand, () => ( DEFAULT_COLOR_CONFIG.dark.brand)))(
|
|
338
327
|
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
339
328
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
340
329
|
`
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkOOCUWPTYcjs = require('./chunk-OOCUWPTY.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDE2NBA4Ycjs = require('./chunk-DE2NBA4Y.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkMUBIDPRPcjs = require('./chunk-MUBIDPRP.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkSOIRA2IJcjs = require('./chunk-SOIRA2IJ.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -25,7 +25,7 @@ var _chunkTEX4OLXScjs = require('./chunk-TEX4OLXS.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkESAZP6C2cjs = require('./chunk-ESAZP6C2.cjs');
|
|
29
29
|
|
|
30
30
|
// src/build.ts
|
|
31
31
|
|
|
@@ -206,7 +206,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
206
206
|
output: "src/"
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
|
-
|
|
209
|
+
_chunkESAZP6C2cjs.writeTrace.call(void 0,
|
|
210
210
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
211
211
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
212
212
|
config
|
|
@@ -218,9 +218,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
218
218
|
assets: pendingAssets
|
|
219
219
|
});
|
|
220
220
|
await assetHandler.processAllAssetsOnce();
|
|
221
|
-
|
|
221
|
+
_chunkESAZP6C2cjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
222
222
|
if (includeSrc === true) {
|
|
223
|
-
|
|
223
|
+
_chunkESAZP6C2cjs.writeDebug.call(void 0,
|
|
224
224
|
`\u{1F4DD} Adding banner and writing source files: ${joinPaths(
|
|
225
225
|
outputPath,
|
|
226
226
|
"src"
|
|
@@ -399,7 +399,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
if (localPackages.length > 0) {
|
|
402
|
-
|
|
402
|
+
_chunkESAZP6C2cjs.writeTrace.call(void 0,
|
|
403
403
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
404
404
|
);
|
|
405
405
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
@@ -447,7 +447,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
447
447
|
return ret;
|
|
448
448
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
449
449
|
} else {
|
|
450
|
-
|
|
450
|
+
_chunkESAZP6C2cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
451
451
|
}
|
|
452
452
|
return packageJson;
|
|
453
453
|
};
|
|
@@ -1234,7 +1234,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1234
1234
|
let config = result.config;
|
|
1235
1235
|
const configFile = result.configFile;
|
|
1236
1236
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
1237
|
-
|
|
1237
|
+
_chunkESAZP6C2cjs.writeTrace.call(void 0,
|
|
1238
1238
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
1239
1239
|
{
|
|
1240
1240
|
logLevel: "all"
|
|
@@ -1250,7 +1250,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1250
1250
|
for (const result2 of results) {
|
|
1251
1251
|
if (_optionalChain([result2, 'optionalAccess', _34 => _34.config]) && _optionalChain([result2, 'optionalAccess', _35 => _35.configFile]) && Object.keys(result2.config).length > 0) {
|
|
1252
1252
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
1253
|
-
|
|
1253
|
+
_chunkESAZP6C2cjs.writeTrace.call(void 0,
|
|
1254
1254
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
1255
1255
|
{
|
|
1256
1256
|
logLevel: "all"
|
|
@@ -1366,7 +1366,7 @@ var getConfigEnv = () => {
|
|
|
1366
1366
|
},
|
|
1367
1367
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
1368
1368
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1369
|
-
) ?
|
|
1369
|
+
) ? _chunkESAZP6C2cjs.getLogLevelLabel.call(void 0,
|
|
1370
1370
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1371
1371
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
1372
1372
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
@@ -1733,9 +1733,9 @@ var setConfigEnv = (config) => {
|
|
|
1733
1733
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1734
1734
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1735
1735
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1736
|
-
|
|
1736
|
+
_chunkESAZP6C2cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkESAZP6C2cjs.LogLevel.DEBUG ? true : false
|
|
1737
1737
|
);
|
|
1738
|
-
process.env.RUST_BACKTRACE =
|
|
1738
|
+
process.env.RUST_BACKTRACE = _chunkESAZP6C2cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkESAZP6C2cjs.LogLevel.DEBUG ? "full" : "none";
|
|
1739
1739
|
}
|
|
1740
1740
|
if (config.skipConfigLogging !== void 0) {
|
|
1741
1741
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -1883,7 +1883,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1883
1883
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1884
1884
|
if (!configFile) {
|
|
1885
1885
|
if (!skipLogs) {
|
|
1886
|
-
|
|
1886
|
+
_chunkESAZP6C2cjs.writeWarning.call(void 0,
|
|
1887
1887
|
"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",
|
|
1888
1888
|
{ logLevel: "all" }
|
|
1889
1889
|
);
|
|
@@ -1914,7 +1914,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1914
1914
|
throw new Error(
|
|
1915
1915
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _60 => _60.message]) ? `: ${error.message}` : ""}
|
|
1916
1916
|
|
|
1917
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1917
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkESAZP6C2cjs.formatLogMessage.call(void 0,
|
|
1918
1918
|
configInput
|
|
1919
1919
|
)}`,
|
|
1920
1920
|
{
|
|
@@ -1959,9 +1959,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1959
1959
|
);
|
|
1960
1960
|
setConfigEnv(config);
|
|
1961
1961
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1962
|
-
|
|
1962
|
+
_chunkESAZP6C2cjs.writeTrace.call(void 0,
|
|
1963
1963
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1964
|
-
${
|
|
1964
|
+
${_chunkESAZP6C2cjs.formatLogMessage.call(void 0, config)}`,
|
|
1965
1965
|
config
|
|
1966
1966
|
);
|
|
1967
1967
|
}
|
|
@@ -1997,10 +1997,10 @@ var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
|
1997
1997
|
|
|
1998
1998
|
var _unbuild = require('unbuild');
|
|
1999
1999
|
async function resolveOptions(options, config) {
|
|
2000
|
-
|
|
2001
|
-
const stopwatch =
|
|
2000
|
+
_chunkESAZP6C2cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
2001
|
+
const stopwatch = _chunkESAZP6C2cjs.getStopwatch.call(void 0, "Build options resolution");
|
|
2002
2002
|
if (options.configPath) {
|
|
2003
|
-
const configFile = await
|
|
2003
|
+
const configFile = await _chunkSOIRA2IJcjs.loadConfig.call(void 0, options.configPath);
|
|
2004
2004
|
if (configFile) {
|
|
2005
2005
|
options = _defu2.default.call(void 0, options, configFile);
|
|
2006
2006
|
}
|
|
@@ -2181,7 +2181,7 @@ async function resolveOptions(options, config) {
|
|
|
2181
2181
|
treeShaking: options.treeShaking !== false,
|
|
2182
2182
|
platform: options.platform || "neutral",
|
|
2183
2183
|
color: true,
|
|
2184
|
-
logLevel: config.logLevel ===
|
|
2184
|
+
logLevel: config.logLevel === _chunkESAZP6C2cjs.LogLevelLabel.FATAL ? _chunkESAZP6C2cjs.LogLevelLabel.ERROR : _chunkESAZP6C2cjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
2187
2187
|
};
|
|
@@ -2202,7 +2202,7 @@ async function resolveOptions(options, config) {
|
|
|
2202
2202
|
if (options.rollup) {
|
|
2203
2203
|
let rollup = {};
|
|
2204
2204
|
if (typeof options.rollup === "string") {
|
|
2205
|
-
const rollupFile = await
|
|
2205
|
+
const rollupFile = await _chunkSOIRA2IJcjs.loadConfig.call(void 0, options.rollup);
|
|
2206
2206
|
if (rollupFile) {
|
|
2207
2207
|
rollup = rollupFile;
|
|
2208
2208
|
}
|
|
@@ -2214,20 +2214,20 @@ async function resolveOptions(options, config) {
|
|
|
2214
2214
|
resolvedOptions.hooks = {
|
|
2215
2215
|
"rollup:options": async (ctx, opts) => {
|
|
2216
2216
|
if (options.plugins && options.plugins.length > 0) {
|
|
2217
|
-
|
|
2217
|
+
_chunkESAZP6C2cjs.writeDebug.call(void 0,
|
|
2218
2218
|
` \u{1F9E9} Found ${options.plugins.length} plugins in provided build options`,
|
|
2219
2219
|
config
|
|
2220
2220
|
);
|
|
2221
2221
|
opts.plugins = options.plugins;
|
|
2222
2222
|
} else {
|
|
2223
|
-
|
|
2223
|
+
_chunkESAZP6C2cjs.writeDebug.call(void 0,
|
|
2224
2224
|
` \u{1F9E9} No plugins found in provided build options, using default plugins`,
|
|
2225
2225
|
config
|
|
2226
2226
|
);
|
|
2227
2227
|
opts.plugins = await Promise.all([
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2228
|
+
_chunkDE2NBA4Ycjs.analyzePlugin.call(void 0, resolvedOptions),
|
|
2229
|
+
_chunkSOIRA2IJcjs.tscPlugin.call(void 0, resolvedOptions),
|
|
2230
|
+
_chunkMUBIDPRPcjs.onErrorPlugin.call(void 0, resolvedOptions)
|
|
2231
2231
|
]);
|
|
2232
2232
|
}
|
|
2233
2233
|
},
|
|
@@ -2282,8 +2282,8 @@ var addPackageJsonExport = (file, type = "module", sourceRoot, projectRoot) => {
|
|
|
2282
2282
|
};
|
|
2283
2283
|
async function generatePackageJson(options) {
|
|
2284
2284
|
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, joinPaths(options.projectRoot, "package.json"))) {
|
|
2285
|
-
|
|
2286
|
-
const stopwatch =
|
|
2285
|
+
_chunkESAZP6C2cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
2286
|
+
const stopwatch = _chunkESAZP6C2cjs.getStopwatch.call(void 0, "Write package.json file");
|
|
2287
2287
|
const packageJsonPath = joinPaths(options.projectRoot, "project.json");
|
|
2288
2288
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2289
2289
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -2381,11 +2381,11 @@ async function generatePackageJson(options) {
|
|
|
2381
2381
|
return options;
|
|
2382
2382
|
}
|
|
2383
2383
|
async function executeUnbuild(options) {
|
|
2384
|
-
|
|
2384
|
+
_chunkESAZP6C2cjs.writeDebug.call(void 0,
|
|
2385
2385
|
` \u{1F680} Running ${options.name} (${options.projectRoot}) build`,
|
|
2386
2386
|
options.config
|
|
2387
2387
|
);
|
|
2388
|
-
const stopwatch =
|
|
2388
|
+
const stopwatch = _chunkESAZP6C2cjs.getStopwatch.call(void 0,
|
|
2389
2389
|
`${options.name} (${options.projectRoot}) build`
|
|
2390
2390
|
);
|
|
2391
2391
|
try {
|
|
@@ -2394,9 +2394,9 @@ async function executeUnbuild(options) {
|
|
|
2394
2394
|
config: null,
|
|
2395
2395
|
rootDir: joinPaths(options.config.workspaceRoot, options.projectRoot)
|
|
2396
2396
|
};
|
|
2397
|
-
|
|
2397
|
+
_chunkESAZP6C2cjs.writeTrace.call(void 0,
|
|
2398
2398
|
`Running with unbuild configuration:
|
|
2399
|
-
${
|
|
2399
|
+
${_chunkESAZP6C2cjs.formatLogMessage.call(void 0, { ...config, env: "<Hidden>" })}
|
|
2400
2400
|
`,
|
|
2401
2401
|
options.config
|
|
2402
2402
|
);
|
|
@@ -2407,11 +2407,11 @@ ${_chunkOHNKWQUWcjs.formatLogMessage.call(void 0, { ...config, env: "<Hidden>" }
|
|
|
2407
2407
|
return options;
|
|
2408
2408
|
}
|
|
2409
2409
|
async function copyBuildAssets(options) {
|
|
2410
|
-
|
|
2410
|
+
_chunkESAZP6C2cjs.writeDebug.call(void 0,
|
|
2411
2411
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
2412
2412
|
options.config
|
|
2413
2413
|
);
|
|
2414
|
-
const stopwatch =
|
|
2414
|
+
const stopwatch = _chunkESAZP6C2cjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
2415
2415
|
await copyAssets(
|
|
2416
2416
|
options.config,
|
|
2417
2417
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
@@ -2426,12 +2426,12 @@ async function copyBuildAssets(options) {
|
|
|
2426
2426
|
}
|
|
2427
2427
|
async function cleanOutputPath(options) {
|
|
2428
2428
|
if (options.clean !== false && options.outDir) {
|
|
2429
|
-
|
|
2429
|
+
_chunkESAZP6C2cjs.writeDebug.call(void 0,
|
|
2430
2430
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.outDir}`,
|
|
2431
2431
|
options.config
|
|
2432
2432
|
);
|
|
2433
|
-
const stopwatch =
|
|
2434
|
-
await
|
|
2433
|
+
const stopwatch = _chunkESAZP6C2cjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
2434
|
+
await _chunkOOCUWPTYcjs.cleanDirectories.call(void 0, options.name, options.outDir, options.config);
|
|
2435
2435
|
stopwatch();
|
|
2436
2436
|
}
|
|
2437
2437
|
return options;
|
|
@@ -2446,8 +2446,8 @@ async function build(options) {
|
|
|
2446
2446
|
throw new Error("Cannot find workspace root");
|
|
2447
2447
|
}
|
|
2448
2448
|
const config = await getConfig(workspaceRoot.dir);
|
|
2449
|
-
|
|
2450
|
-
const stopwatch =
|
|
2449
|
+
_chunkESAZP6C2cjs.writeDebug.call(void 0, ` ${_chunkESAZP6C2cjs.brandIcon.call(void 0, config)} Executing Storm Unbuild pipeline`, config);
|
|
2450
|
+
const stopwatch = _chunkESAZP6C2cjs.getStopwatch.call(void 0, "Unbuild pipeline");
|
|
2451
2451
|
try {
|
|
2452
2452
|
options.projectRoot = correctPaths(projectRoot);
|
|
2453
2453
|
const resolvedOptions = await resolveOptions(options, config);
|
|
@@ -2459,12 +2459,12 @@ async function build(options) {
|
|
|
2459
2459
|
if (options.buildOnly !== true) {
|
|
2460
2460
|
await copyBuildAssets(resolvedOptions);
|
|
2461
2461
|
}
|
|
2462
|
-
|
|
2462
|
+
_chunkESAZP6C2cjs.writeSuccess.call(void 0,
|
|
2463
2463
|
` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`,
|
|
2464
2464
|
config
|
|
2465
2465
|
);
|
|
2466
2466
|
} catch (error) {
|
|
2467
|
-
|
|
2467
|
+
_chunkESAZP6C2cjs.writeFatal.call(void 0,
|
|
2468
2468
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated.",
|
|
2469
2469
|
config
|
|
2470
2470
|
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkESAZP6C2cjs = require('./chunk-ESAZP6C2.cjs');
|
|
4
4
|
|
|
5
5
|
// src/plugins/on-error.ts
|
|
6
6
|
var onErrorPlugin = (options) => ({
|
|
7
7
|
name: "storm:on-error",
|
|
8
8
|
buildEnd(error) {
|
|
9
9
|
if (error) {
|
|
10
|
-
|
|
10
|
+
_chunkESAZP6C2cjs.writeError.call(void 0,
|
|
11
11
|
`The following errors occurred during the build:
|
|
12
12
|
${error ? error.message : "Unknown build error"}
|
|
13
13
|
|
|
@@ -18,7 +18,7 @@ ${error ? error.message : "Unknown build error"}
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
renderError(error) {
|
|
21
|
-
|
|
21
|
+
_chunkESAZP6C2cjs.writeError.call(void 0,
|
|
22
22
|
`The following errors occurred during the build:
|
|
23
23
|
${error ? error.message : "Unknown build error"}
|
|
24
24
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkESAZP6C2cjs = require('./chunk-ESAZP6C2.cjs');
|
|
5
5
|
|
|
6
6
|
// src/clean.ts
|
|
7
7
|
var _promises = require('fs/promises');
|
|
8
8
|
async function clean(name = "Unbuild", directory, config) {
|
|
9
|
-
|
|
10
|
-
const stopwatch =
|
|
9
|
+
_chunkESAZP6C2cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
10
|
+
const stopwatch = _chunkESAZP6C2cjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
11
11
|
await cleanDirectories(name, directory, config);
|
|
12
12
|
stopwatch();
|
|
13
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkESAZP6C2cjs = require('./chunk-ESAZP6C2.cjs');
|
|
4
4
|
|
|
5
5
|
// src/plugins/tsc.ts
|
|
6
6
|
|
|
@@ -45,7 +45,7 @@ async function createTsCompilerOptions(config, tsConfigPath, projectRoot, depend
|
|
|
45
45
|
declaration: true,
|
|
46
46
|
paths: _buildablelibsutils.computeCompilerOptionsPaths.call(void 0, tsConfig, _nullishCoalesce(dependencies, () => ( [])))
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
_chunkESAZP6C2cjs.writeTrace.call(void 0, compilerOptions, config);
|
|
49
49
|
return compilerOptions;
|
|
50
50
|
}
|
|
51
51
|
|
package/dist/clean.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkOOCUWPTYcjs = require('./chunk-OOCUWPTY.cjs');
|
|
5
|
+
require('./chunk-ESAZP6C2.cjs');
|
|
6
6
|
require('./chunk-OBGZSXTJ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.clean =
|
|
10
|
+
exports.clean = _chunkOOCUWPTYcjs.clean; exports.cleanDirectories = _chunkOOCUWPTYcjs.cleanDirectories;
|
package/dist/clean.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkJ7HLF4KVcjs = require('./chunk-J7HLF4KV.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkOOCUWPTYcjs = require('./chunk-OOCUWPTY.cjs');
|
|
13
13
|
require('./chunk-SFZRYJZ2.cjs');
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-DE2NBA4Y.cjs');
|
|
15
|
+
require('./chunk-MUBIDPRP.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
19
|
+
var _chunkSOIRA2IJcjs = require('./chunk-SOIRA2IJ.cjs');
|
|
20
|
+
require('./chunk-ESAZP6C2.cjs');
|
|
21
21
|
require('./chunk-OBGZSXTJ.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
@@ -30,4 +30,4 @@ require('./chunk-OBGZSXTJ.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.build =
|
|
33
|
+
exports.build = _chunkJ7HLF4KVcjs.build; exports.clean = _chunkOOCUWPTYcjs.clean; exports.cleanDirectories = _chunkOOCUWPTYcjs.cleanDirectories; exports.cleanOutputPath = _chunkJ7HLF4KVcjs.cleanOutputPath; exports.copyBuildAssets = _chunkJ7HLF4KVcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkSOIRA2IJcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkJ7HLF4KVcjs.executeUnbuild; exports.generatePackageJson = _chunkJ7HLF4KVcjs.generatePackageJson; exports.loadConfig = _chunkSOIRA2IJcjs.loadConfig; exports.resolveOptions = _chunkJ7HLF4KVcjs.resolveOptions;
|
package/dist/index.js
CHANGED
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
executeUnbuild,
|
|
6
6
|
generatePackageJson,
|
|
7
7
|
resolveOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4JTKPRWK.js";
|
|
9
9
|
import {
|
|
10
10
|
clean,
|
|
11
11
|
cleanDirectories
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Y4DEDRJ4.js";
|
|
13
13
|
import "./chunk-GGNOJ77I.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-7VOV7HN5.js";
|
|
15
|
+
import "./chunk-C6VFGQO3.js";
|
|
16
16
|
import {
|
|
17
17
|
createTsCompilerOptions,
|
|
18
18
|
loadConfig
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-KMJW6ID3.js";
|
|
20
|
+
import "./chunk-AMZHWNG2.js";
|
|
21
21
|
import "./chunk-3RG5ZIWI.js";
|
|
22
22
|
export {
|
|
23
23
|
build,
|
package/dist/plugins/analyze.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkDE2NBA4Ycjs = require('../chunk-DE2NBA4Y.cjs');
|
|
4
|
+
require('../chunk-ESAZP6C2.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.analyzePlugin =
|
|
8
|
+
exports.analyzePlugin = _chunkDE2NBA4Ycjs.analyzePlugin;
|
package/dist/plugins/analyze.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkMUBIDPRPcjs = require('../chunk-MUBIDPRP.cjs');
|
|
4
|
+
require('../chunk-ESAZP6C2.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.onErrorPlugin =
|
|
8
|
+
exports.onErrorPlugin = _chunkMUBIDPRPcjs.onErrorPlugin;
|
package/dist/plugins/on-error.js
CHANGED
package/dist/plugins/tsc.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkSOIRA2IJcjs = require('../chunk-SOIRA2IJ.cjs');
|
|
4
|
+
require('../chunk-ESAZP6C2.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.tscPlugin =
|
|
8
|
+
exports.tscPlugin = _chunkSOIRA2IJcjs.tscPlugin;
|
package/dist/plugins/tsc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/unbuild",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.162",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -147,9 +147,9 @@
|
|
|
147
147
|
"typescript": { "optional": false }
|
|
148
148
|
},
|
|
149
149
|
"dependencies": {
|
|
150
|
-
"@storm-software/build-tools": "^0.158.
|
|
151
|
-
"@storm-software/config": "^1.137.
|
|
152
|
-
"@storm-software/config-tools": "^1.
|
|
150
|
+
"@storm-software/build-tools": "^0.158.161",
|
|
151
|
+
"@storm-software/config": "^1.137.34",
|
|
152
|
+
"@storm-software/config-tools": "^1.190.1",
|
|
153
153
|
"commander": "^12.1.0",
|
|
154
154
|
"defu": "6.1.4",
|
|
155
155
|
"esbuild": "^0.25.12",
|
|
@@ -171,5 +171,5 @@
|
|
|
171
171
|
},
|
|
172
172
|
"publishConfig": { "access": "public" },
|
|
173
173
|
"sideEffects": false,
|
|
174
|
-
"gitHead": "
|
|
174
|
+
"gitHead": "07683ca13c988d45253edcd947640ab1a7f31e25"
|
|
175
175
|
}
|