@storm-software/workspace-tools 1.46.0 → 1.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/index.js +192 -199
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +192 -199
- package/src/executors/design-tokens/executor.js +192 -199
- package/src/executors/tsup/executor.js +192 -199
- package/src/executors/tsup-browser/executor.js +192 -199
- package/src/executors/tsup-neutral/executor.js +192 -199
- package/src/executors/tsup-node/executor.js +192 -199
- package/src/executors/typia/executor.js +192 -199
- package/src/generators/browser-library/generator.js +192 -199
- package/src/generators/config-schema/generator.js +192 -199
- package/src/generators/neutral-library/generator.js +192 -199
- package/src/generators/node-library/generator.js +192 -199
- package/src/generators/preset/generator.js +192 -199
|
@@ -103939,216 +103939,23 @@ module.exports = __toCommonJS(executor_exports);
|
|
|
103939
103939
|
|
|
103940
103940
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
103941
103941
|
var import_cosmiconfig = __toESM(require_dist(), 1);
|
|
103942
|
-
|
|
103943
|
-
// packages/config-tools/src/utilities/logger.ts
|
|
103944
|
-
var chalk = __toESM(require_source(), 1);
|
|
103945
|
-
|
|
103946
|
-
// packages/config-tools/src/types.ts
|
|
103947
|
-
var LogLevel = {
|
|
103948
|
-
SILENT: 0,
|
|
103949
|
-
FATAL: 10,
|
|
103950
|
-
ERROR: 20,
|
|
103951
|
-
WARN: 30,
|
|
103952
|
-
INFO: 40,
|
|
103953
|
-
SUCCESS: 45,
|
|
103954
|
-
DEBUG: 60,
|
|
103955
|
-
TRACE: 70,
|
|
103956
|
-
ALL: 100
|
|
103957
|
-
};
|
|
103958
|
-
var LogLevelLabel = {
|
|
103959
|
-
SILENT: "silent",
|
|
103960
|
-
FATAL: "fatal",
|
|
103961
|
-
ERROR: "error",
|
|
103962
|
-
WARN: "warn",
|
|
103963
|
-
INFO: "info",
|
|
103964
|
-
DEBUG: "debug",
|
|
103965
|
-
TRACE: "trace",
|
|
103966
|
-
ALL: "all"
|
|
103967
|
-
};
|
|
103968
|
-
|
|
103969
|
-
// packages/config-tools/src/utilities/get-log-level.ts
|
|
103970
|
-
var getLogLevel = (label) => {
|
|
103971
|
-
switch (label) {
|
|
103972
|
-
case "all":
|
|
103973
|
-
return LogLevel.ALL;
|
|
103974
|
-
case "trace":
|
|
103975
|
-
return LogLevel.TRACE;
|
|
103976
|
-
case "debug":
|
|
103977
|
-
return LogLevel.DEBUG;
|
|
103978
|
-
case "info":
|
|
103979
|
-
return LogLevel.INFO;
|
|
103980
|
-
case "warn":
|
|
103981
|
-
return LogLevel.WARN;
|
|
103982
|
-
case "error":
|
|
103983
|
-
return LogLevel.ERROR;
|
|
103984
|
-
case "fatal":
|
|
103985
|
-
return LogLevel.FATAL;
|
|
103986
|
-
case "silent":
|
|
103987
|
-
return LogLevel.SILENT;
|
|
103988
|
-
default:
|
|
103989
|
-
return LogLevel.INFO;
|
|
103990
|
-
}
|
|
103991
|
-
};
|
|
103992
|
-
var getLogLevelLabel = (logLevel) => {
|
|
103993
|
-
if (logLevel >= LogLevel.ALL) {
|
|
103994
|
-
return LogLevelLabel.ALL;
|
|
103995
|
-
}
|
|
103996
|
-
if (logLevel >= LogLevel.TRACE) {
|
|
103997
|
-
return LogLevelLabel.TRACE;
|
|
103998
|
-
}
|
|
103999
|
-
if (logLevel >= LogLevel.DEBUG) {
|
|
104000
|
-
return LogLevelLabel.DEBUG;
|
|
104001
|
-
}
|
|
104002
|
-
if (logLevel >= LogLevel.INFO) {
|
|
104003
|
-
return LogLevelLabel.INFO;
|
|
104004
|
-
}
|
|
104005
|
-
if (logLevel >= LogLevel.WARN) {
|
|
104006
|
-
return LogLevelLabel.WARN;
|
|
104007
|
-
}
|
|
104008
|
-
if (logLevel >= LogLevel.ERROR) {
|
|
104009
|
-
return LogLevelLabel.ERROR;
|
|
104010
|
-
}
|
|
104011
|
-
if (logLevel >= LogLevel.FATAL) {
|
|
104012
|
-
return LogLevelLabel.FATAL;
|
|
104013
|
-
}
|
|
104014
|
-
if (logLevel <= LogLevel.SILENT) {
|
|
104015
|
-
return LogLevelLabel.SILENT;
|
|
104016
|
-
}
|
|
104017
|
-
return LogLevelLabel.INFO;
|
|
104018
|
-
};
|
|
104019
|
-
|
|
104020
|
-
// packages/config-tools/src/utilities/logger.ts
|
|
104021
|
-
var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
104022
|
-
if (typeof logLevel === "number" && (logLevel >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL)) {
|
|
104023
|
-
return (_) => {
|
|
104024
|
-
};
|
|
104025
|
-
}
|
|
104026
|
-
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
104027
|
-
return (message) => {
|
|
104028
|
-
console.error(
|
|
104029
|
-
`
|
|
104030
|
-
${chalk.bold.hex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6").white(" \u{1F480} Fatal ")} ${chalk.hex(
|
|
104031
|
-
config?.colors?.fatal ? config.colors.fatal : "#1fb2a6"
|
|
104032
|
-
)(message)}
|
|
104033
|
-
|
|
104034
|
-
`
|
|
104035
|
-
);
|
|
104036
|
-
};
|
|
104037
|
-
}
|
|
104038
|
-
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
104039
|
-
return (message) => {
|
|
104040
|
-
console.error(
|
|
104041
|
-
`
|
|
104042
|
-
${chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")} ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").white(" \u2718 Error ")} ${chalk.hex(
|
|
104043
|
-
config?.colors?.error ? config.colors.error : "#7d1a1a"
|
|
104044
|
-
)(message)}
|
|
104045
|
-
`
|
|
104046
|
-
);
|
|
104047
|
-
};
|
|
104048
|
-
}
|
|
104049
|
-
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
104050
|
-
return (message) => {
|
|
104051
|
-
console.warn(
|
|
104052
|
-
`
|
|
104053
|
-
${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(">")} ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white(" ! Warn ")} ${chalk.hex(
|
|
104054
|
-
config?.colors?.warning ? config.colors.warning : "#fcc419"
|
|
104055
|
-
)(message)}
|
|
104056
|
-
`
|
|
104057
|
-
);
|
|
104058
|
-
};
|
|
104059
|
-
}
|
|
104060
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
104061
|
-
return (message) => {
|
|
104062
|
-
console.info(
|
|
104063
|
-
`
|
|
104064
|
-
${chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").white(" \u2139 Info ")} ${chalk.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(
|
|
104065
|
-
message
|
|
104066
|
-
)}
|
|
104067
|
-
`
|
|
104068
|
-
);
|
|
104069
|
-
};
|
|
104070
|
-
}
|
|
104071
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
104072
|
-
return (message) => {
|
|
104073
|
-
console.info(
|
|
104074
|
-
`
|
|
104075
|
-
${chalk.bold.hex(config?.colors?.success ? config.colors.success : "#087f5b")(">")} ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").white(" \u221A Success ")} ${chalk.hex(
|
|
104076
|
-
config?.colors?.success ? config.colors.success : "#087f5b"
|
|
104077
|
-
)(message)}
|
|
104078
|
-
`
|
|
104079
|
-
);
|
|
104080
|
-
};
|
|
104081
|
-
}
|
|
104082
|
-
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
104083
|
-
return (message) => {
|
|
104084
|
-
console.debug(
|
|
104085
|
-
`
|
|
104086
|
-
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F9EA} Debug ")} ${chalk.hex(
|
|
104087
|
-
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
104088
|
-
)(message)}
|
|
104089
|
-
`
|
|
104090
|
-
);
|
|
104091
|
-
};
|
|
104092
|
-
}
|
|
104093
|
-
return (message) => {
|
|
104094
|
-
console.log(
|
|
104095
|
-
`
|
|
104096
|
-
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F4E2} System ")} ${chalk.hex(
|
|
104097
|
-
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
104098
|
-
)(message)}
|
|
104099
|
-
`
|
|
104100
|
-
);
|
|
104101
|
-
};
|
|
104102
|
-
};
|
|
104103
|
-
var writeFatal = (config, message) => getLogFn(config, LogLevel.FATAL)(message);
|
|
104104
|
-
var writeError = (config, message) => getLogFn(config, LogLevel.ERROR)(message);
|
|
104105
|
-
var writeWarning = (config, message) => getLogFn(config, LogLevel.WARN)(message);
|
|
104106
|
-
var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
|
|
104107
|
-
var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
|
|
104108
|
-
var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
|
|
104109
|
-
var writeTrace = (config, message) => getLogFn(config, LogLevel.TRACE)(message);
|
|
104110
|
-
var getStopwatch = (name) => {
|
|
104111
|
-
const start = process.hrtime();
|
|
104112
|
-
return () => {
|
|
104113
|
-
const end = process.hrtime(start);
|
|
104114
|
-
console.info(
|
|
104115
|
-
chalk.dim(
|
|
104116
|
-
`\u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
|
|
104117
|
-
end[0] * 1e3 + end[1] / 1e6
|
|
104118
|
-
)}ms to complete`
|
|
104119
|
-
)
|
|
104120
|
-
);
|
|
104121
|
-
};
|
|
104122
|
-
};
|
|
104123
|
-
|
|
104124
|
-
// packages/config-tools/src/config-file/get-config-file.ts
|
|
104125
103942
|
var _static_cache = void 0;
|
|
104126
|
-
var
|
|
103943
|
+
var getConfigFileByName = async (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
104127
103944
|
var getConfigFile = async (filePath) => {
|
|
104128
103945
|
if (_static_cache) {
|
|
104129
103946
|
return _static_cache;
|
|
104130
103947
|
}
|
|
104131
|
-
let cosmiconfigResult = await
|
|
103948
|
+
let cosmiconfigResult = await getConfigFileByName("storm", filePath);
|
|
104132
103949
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
104133
|
-
cosmiconfigResult = await
|
|
103950
|
+
cosmiconfigResult = await getConfigFileByName("storm-software", filePath);
|
|
104134
103951
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
104135
|
-
cosmiconfigResult = await
|
|
103952
|
+
cosmiconfigResult = await getConfigFileByName("storm-stack", filePath);
|
|
104136
103953
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
104137
|
-
cosmiconfigResult = await
|
|
104138
|
-
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
104139
|
-
cosmiconfigResult = await getConfigFileName("acidic", filePath);
|
|
104140
|
-
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
104141
|
-
cosmiconfigResult = await getConfigFileName("acid", filePath);
|
|
104142
|
-
}
|
|
104143
|
-
}
|
|
103954
|
+
cosmiconfigResult = await getConfigFileByName("storm-cloud", filePath);
|
|
104144
103955
|
}
|
|
104145
103956
|
}
|
|
104146
103957
|
}
|
|
104147
103958
|
if (!cosmiconfigResult || Object.keys(cosmiconfigResult).length === 0 || cosmiconfigResult.isEmpty || !cosmiconfigResult.filepath) {
|
|
104148
|
-
writeWarning(
|
|
104149
|
-
{ logLevel: "all" },
|
|
104150
|
-
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.config.js` file to the root of your workspace if it is not.\n"
|
|
104151
|
-
);
|
|
104152
103959
|
return void 0;
|
|
104153
103960
|
}
|
|
104154
103961
|
const config = cosmiconfigResult.config ?? {};
|
|
@@ -107939,6 +107746,185 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
107939
107746
|
});
|
|
107940
107747
|
};
|
|
107941
107748
|
|
|
107749
|
+
// packages/config-tools/src/types.ts
|
|
107750
|
+
var LogLevel = {
|
|
107751
|
+
SILENT: 0,
|
|
107752
|
+
FATAL: 10,
|
|
107753
|
+
ERROR: 20,
|
|
107754
|
+
WARN: 30,
|
|
107755
|
+
INFO: 40,
|
|
107756
|
+
SUCCESS: 45,
|
|
107757
|
+
DEBUG: 60,
|
|
107758
|
+
TRACE: 70,
|
|
107759
|
+
ALL: 100
|
|
107760
|
+
};
|
|
107761
|
+
var LogLevelLabel = {
|
|
107762
|
+
SILENT: "silent",
|
|
107763
|
+
FATAL: "fatal",
|
|
107764
|
+
ERROR: "error",
|
|
107765
|
+
WARN: "warn",
|
|
107766
|
+
INFO: "info",
|
|
107767
|
+
DEBUG: "debug",
|
|
107768
|
+
TRACE: "trace",
|
|
107769
|
+
ALL: "all"
|
|
107770
|
+
};
|
|
107771
|
+
|
|
107772
|
+
// packages/config-tools/src/utilities/get-log-level.ts
|
|
107773
|
+
var getLogLevel = (label) => {
|
|
107774
|
+
switch (label) {
|
|
107775
|
+
case "all":
|
|
107776
|
+
return LogLevel.ALL;
|
|
107777
|
+
case "trace":
|
|
107778
|
+
return LogLevel.TRACE;
|
|
107779
|
+
case "debug":
|
|
107780
|
+
return LogLevel.DEBUG;
|
|
107781
|
+
case "info":
|
|
107782
|
+
return LogLevel.INFO;
|
|
107783
|
+
case "warn":
|
|
107784
|
+
return LogLevel.WARN;
|
|
107785
|
+
case "error":
|
|
107786
|
+
return LogLevel.ERROR;
|
|
107787
|
+
case "fatal":
|
|
107788
|
+
return LogLevel.FATAL;
|
|
107789
|
+
case "silent":
|
|
107790
|
+
return LogLevel.SILENT;
|
|
107791
|
+
default:
|
|
107792
|
+
return LogLevel.INFO;
|
|
107793
|
+
}
|
|
107794
|
+
};
|
|
107795
|
+
var getLogLevelLabel = (logLevel) => {
|
|
107796
|
+
if (logLevel >= LogLevel.ALL) {
|
|
107797
|
+
return LogLevelLabel.ALL;
|
|
107798
|
+
}
|
|
107799
|
+
if (logLevel >= LogLevel.TRACE) {
|
|
107800
|
+
return LogLevelLabel.TRACE;
|
|
107801
|
+
}
|
|
107802
|
+
if (logLevel >= LogLevel.DEBUG) {
|
|
107803
|
+
return LogLevelLabel.DEBUG;
|
|
107804
|
+
}
|
|
107805
|
+
if (logLevel >= LogLevel.INFO) {
|
|
107806
|
+
return LogLevelLabel.INFO;
|
|
107807
|
+
}
|
|
107808
|
+
if (logLevel >= LogLevel.WARN) {
|
|
107809
|
+
return LogLevelLabel.WARN;
|
|
107810
|
+
}
|
|
107811
|
+
if (logLevel >= LogLevel.ERROR) {
|
|
107812
|
+
return LogLevelLabel.ERROR;
|
|
107813
|
+
}
|
|
107814
|
+
if (logLevel >= LogLevel.FATAL) {
|
|
107815
|
+
return LogLevelLabel.FATAL;
|
|
107816
|
+
}
|
|
107817
|
+
if (logLevel <= LogLevel.SILENT) {
|
|
107818
|
+
return LogLevelLabel.SILENT;
|
|
107819
|
+
}
|
|
107820
|
+
return LogLevelLabel.INFO;
|
|
107821
|
+
};
|
|
107822
|
+
|
|
107823
|
+
// packages/config-tools/src/utilities/logger.ts
|
|
107824
|
+
var chalk = __toESM(require_source(), 1);
|
|
107825
|
+
var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
107826
|
+
if (typeof logLevel === "number" && (logLevel >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL)) {
|
|
107827
|
+
return (_) => {
|
|
107828
|
+
};
|
|
107829
|
+
}
|
|
107830
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
107831
|
+
return (message) => {
|
|
107832
|
+
console.error(
|
|
107833
|
+
`
|
|
107834
|
+
${chalk.bold.hex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6").white(" \u{1F480} Fatal ")} ${chalk.hex(
|
|
107835
|
+
config?.colors?.fatal ? config.colors.fatal : "#1fb2a6"
|
|
107836
|
+
)(message)}
|
|
107837
|
+
|
|
107838
|
+
`
|
|
107839
|
+
);
|
|
107840
|
+
};
|
|
107841
|
+
}
|
|
107842
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
107843
|
+
return (message) => {
|
|
107844
|
+
console.error(
|
|
107845
|
+
`
|
|
107846
|
+
${chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")} ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").white(" \u2718 Error ")} ${chalk.hex(
|
|
107847
|
+
config?.colors?.error ? config.colors.error : "#7d1a1a"
|
|
107848
|
+
)(message)}
|
|
107849
|
+
`
|
|
107850
|
+
);
|
|
107851
|
+
};
|
|
107852
|
+
}
|
|
107853
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
107854
|
+
return (message) => {
|
|
107855
|
+
console.warn(
|
|
107856
|
+
`
|
|
107857
|
+
${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(">")} ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white(" ! Warn ")} ${chalk.hex(
|
|
107858
|
+
config?.colors?.warning ? config.colors.warning : "#fcc419"
|
|
107859
|
+
)(message)}
|
|
107860
|
+
`
|
|
107861
|
+
);
|
|
107862
|
+
};
|
|
107863
|
+
}
|
|
107864
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
107865
|
+
return (message) => {
|
|
107866
|
+
console.info(
|
|
107867
|
+
`
|
|
107868
|
+
${chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").white(" \u2139 Info ")} ${chalk.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(
|
|
107869
|
+
message
|
|
107870
|
+
)}
|
|
107871
|
+
`
|
|
107872
|
+
);
|
|
107873
|
+
};
|
|
107874
|
+
}
|
|
107875
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
107876
|
+
return (message) => {
|
|
107877
|
+
console.info(
|
|
107878
|
+
`
|
|
107879
|
+
${chalk.bold.hex(config?.colors?.success ? config.colors.success : "#087f5b")(">")} ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").white(" \u221A Success ")} ${chalk.hex(
|
|
107880
|
+
config?.colors?.success ? config.colors.success : "#087f5b"
|
|
107881
|
+
)(message)}
|
|
107882
|
+
`
|
|
107883
|
+
);
|
|
107884
|
+
};
|
|
107885
|
+
}
|
|
107886
|
+
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
107887
|
+
return (message) => {
|
|
107888
|
+
console.debug(
|
|
107889
|
+
`
|
|
107890
|
+
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F9EA} Debug ")} ${chalk.hex(
|
|
107891
|
+
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
107892
|
+
)(message)}
|
|
107893
|
+
`
|
|
107894
|
+
);
|
|
107895
|
+
};
|
|
107896
|
+
}
|
|
107897
|
+
return (message) => {
|
|
107898
|
+
console.log(
|
|
107899
|
+
`
|
|
107900
|
+
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F4E2} System ")} ${chalk.hex(
|
|
107901
|
+
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
107902
|
+
)(message)}
|
|
107903
|
+
`
|
|
107904
|
+
);
|
|
107905
|
+
};
|
|
107906
|
+
};
|
|
107907
|
+
var writeFatal = (config, message) => getLogFn(config, LogLevel.FATAL)(message);
|
|
107908
|
+
var writeError = (config, message) => getLogFn(config, LogLevel.ERROR)(message);
|
|
107909
|
+
var writeWarning = (config, message) => getLogFn(config, LogLevel.WARN)(message);
|
|
107910
|
+
var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
|
|
107911
|
+
var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
|
|
107912
|
+
var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
|
|
107913
|
+
var writeTrace = (config, message) => getLogFn(config, LogLevel.TRACE)(message);
|
|
107914
|
+
var getStopwatch = (name) => {
|
|
107915
|
+
const start = process.hrtime();
|
|
107916
|
+
return () => {
|
|
107917
|
+
const end = process.hrtime(start);
|
|
107918
|
+
console.info(
|
|
107919
|
+
chalk.dim(
|
|
107920
|
+
`\u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
|
|
107921
|
+
end[0] * 1e3 + end[1] / 1e6
|
|
107922
|
+
)}ms to complete`
|
|
107923
|
+
)
|
|
107924
|
+
);
|
|
107925
|
+
};
|
|
107926
|
+
};
|
|
107927
|
+
|
|
107942
107928
|
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
|
|
107943
107929
|
var import_node_buffer2 = require("node:buffer");
|
|
107944
107930
|
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
@@ -109707,10 +109693,17 @@ var loadStormConfig = async (workspaceRoot) => {
|
|
|
109707
109693
|
if (!_workspaceRoot) {
|
|
109708
109694
|
_workspaceRoot = findWorkspaceRoot();
|
|
109709
109695
|
}
|
|
109696
|
+
const configFile = await getConfigFile(_workspaceRoot);
|
|
109697
|
+
if (!configFile) {
|
|
109698
|
+
writeWarning(
|
|
109699
|
+
{ logLevel: "all" },
|
|
109700
|
+
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.config.js` file to the root of your workspace if it is not.\n"
|
|
109701
|
+
);
|
|
109702
|
+
}
|
|
109710
109703
|
config = StormConfigSchema.parse(
|
|
109711
109704
|
await getDefaultConfig(
|
|
109712
109705
|
{
|
|
109713
|
-
...
|
|
109706
|
+
...configFile,
|
|
109714
109707
|
...getConfigEnv()
|
|
109715
109708
|
},
|
|
109716
109709
|
_workspaceRoot
|