@storm-software/workspace-tools 1.46.1 → 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 +7 -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
|
@@ -26773,216 +26773,23 @@ var import_devkit = __toESM(require_devkit());
|
|
|
26773
26773
|
|
|
26774
26774
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
26775
26775
|
var import_cosmiconfig = __toESM(require_dist(), 1);
|
|
26776
|
-
|
|
26777
|
-
// packages/config-tools/src/utilities/logger.ts
|
|
26778
|
-
var chalk = __toESM(require_source(), 1);
|
|
26779
|
-
|
|
26780
|
-
// packages/config-tools/src/types.ts
|
|
26781
|
-
var LogLevel = {
|
|
26782
|
-
SILENT: 0,
|
|
26783
|
-
FATAL: 10,
|
|
26784
|
-
ERROR: 20,
|
|
26785
|
-
WARN: 30,
|
|
26786
|
-
INFO: 40,
|
|
26787
|
-
SUCCESS: 45,
|
|
26788
|
-
DEBUG: 60,
|
|
26789
|
-
TRACE: 70,
|
|
26790
|
-
ALL: 100
|
|
26791
|
-
};
|
|
26792
|
-
var LogLevelLabel = {
|
|
26793
|
-
SILENT: "silent",
|
|
26794
|
-
FATAL: "fatal",
|
|
26795
|
-
ERROR: "error",
|
|
26796
|
-
WARN: "warn",
|
|
26797
|
-
INFO: "info",
|
|
26798
|
-
DEBUG: "debug",
|
|
26799
|
-
TRACE: "trace",
|
|
26800
|
-
ALL: "all"
|
|
26801
|
-
};
|
|
26802
|
-
|
|
26803
|
-
// packages/config-tools/src/utilities/get-log-level.ts
|
|
26804
|
-
var getLogLevel = (label) => {
|
|
26805
|
-
switch (label) {
|
|
26806
|
-
case "all":
|
|
26807
|
-
return LogLevel.ALL;
|
|
26808
|
-
case "trace":
|
|
26809
|
-
return LogLevel.TRACE;
|
|
26810
|
-
case "debug":
|
|
26811
|
-
return LogLevel.DEBUG;
|
|
26812
|
-
case "info":
|
|
26813
|
-
return LogLevel.INFO;
|
|
26814
|
-
case "warn":
|
|
26815
|
-
return LogLevel.WARN;
|
|
26816
|
-
case "error":
|
|
26817
|
-
return LogLevel.ERROR;
|
|
26818
|
-
case "fatal":
|
|
26819
|
-
return LogLevel.FATAL;
|
|
26820
|
-
case "silent":
|
|
26821
|
-
return LogLevel.SILENT;
|
|
26822
|
-
default:
|
|
26823
|
-
return LogLevel.INFO;
|
|
26824
|
-
}
|
|
26825
|
-
};
|
|
26826
|
-
var getLogLevelLabel = (logLevel) => {
|
|
26827
|
-
if (logLevel >= LogLevel.ALL) {
|
|
26828
|
-
return LogLevelLabel.ALL;
|
|
26829
|
-
}
|
|
26830
|
-
if (logLevel >= LogLevel.TRACE) {
|
|
26831
|
-
return LogLevelLabel.TRACE;
|
|
26832
|
-
}
|
|
26833
|
-
if (logLevel >= LogLevel.DEBUG) {
|
|
26834
|
-
return LogLevelLabel.DEBUG;
|
|
26835
|
-
}
|
|
26836
|
-
if (logLevel >= LogLevel.INFO) {
|
|
26837
|
-
return LogLevelLabel.INFO;
|
|
26838
|
-
}
|
|
26839
|
-
if (logLevel >= LogLevel.WARN) {
|
|
26840
|
-
return LogLevelLabel.WARN;
|
|
26841
|
-
}
|
|
26842
|
-
if (logLevel >= LogLevel.ERROR) {
|
|
26843
|
-
return LogLevelLabel.ERROR;
|
|
26844
|
-
}
|
|
26845
|
-
if (logLevel >= LogLevel.FATAL) {
|
|
26846
|
-
return LogLevelLabel.FATAL;
|
|
26847
|
-
}
|
|
26848
|
-
if (logLevel <= LogLevel.SILENT) {
|
|
26849
|
-
return LogLevelLabel.SILENT;
|
|
26850
|
-
}
|
|
26851
|
-
return LogLevelLabel.INFO;
|
|
26852
|
-
};
|
|
26853
|
-
|
|
26854
|
-
// packages/config-tools/src/utilities/logger.ts
|
|
26855
|
-
var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
26856
|
-
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)) {
|
|
26857
|
-
return (_) => {
|
|
26858
|
-
};
|
|
26859
|
-
}
|
|
26860
|
-
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
26861
|
-
return (message) => {
|
|
26862
|
-
console.error(
|
|
26863
|
-
`
|
|
26864
|
-
${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(
|
|
26865
|
-
config?.colors?.fatal ? config.colors.fatal : "#1fb2a6"
|
|
26866
|
-
)(message)}
|
|
26867
|
-
|
|
26868
|
-
`
|
|
26869
|
-
);
|
|
26870
|
-
};
|
|
26871
|
-
}
|
|
26872
|
-
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
26873
|
-
return (message) => {
|
|
26874
|
-
console.error(
|
|
26875
|
-
`
|
|
26876
|
-
${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(
|
|
26877
|
-
config?.colors?.error ? config.colors.error : "#7d1a1a"
|
|
26878
|
-
)(message)}
|
|
26879
|
-
`
|
|
26880
|
-
);
|
|
26881
|
-
};
|
|
26882
|
-
}
|
|
26883
|
-
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
26884
|
-
return (message) => {
|
|
26885
|
-
console.warn(
|
|
26886
|
-
`
|
|
26887
|
-
${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(">")} ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white(" ! Warn ")} ${chalk.hex(
|
|
26888
|
-
config?.colors?.warning ? config.colors.warning : "#fcc419"
|
|
26889
|
-
)(message)}
|
|
26890
|
-
`
|
|
26891
|
-
);
|
|
26892
|
-
};
|
|
26893
|
-
}
|
|
26894
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
26895
|
-
return (message) => {
|
|
26896
|
-
console.info(
|
|
26897
|
-
`
|
|
26898
|
-
${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")(
|
|
26899
|
-
message
|
|
26900
|
-
)}
|
|
26901
|
-
`
|
|
26902
|
-
);
|
|
26903
|
-
};
|
|
26904
|
-
}
|
|
26905
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
26906
|
-
return (message) => {
|
|
26907
|
-
console.info(
|
|
26908
|
-
`
|
|
26909
|
-
${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(
|
|
26910
|
-
config?.colors?.success ? config.colors.success : "#087f5b"
|
|
26911
|
-
)(message)}
|
|
26912
|
-
`
|
|
26913
|
-
);
|
|
26914
|
-
};
|
|
26915
|
-
}
|
|
26916
|
-
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
26917
|
-
return (message) => {
|
|
26918
|
-
console.debug(
|
|
26919
|
-
`
|
|
26920
|
-
${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(
|
|
26921
|
-
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
26922
|
-
)(message)}
|
|
26923
|
-
`
|
|
26924
|
-
);
|
|
26925
|
-
};
|
|
26926
|
-
}
|
|
26927
|
-
return (message) => {
|
|
26928
|
-
console.log(
|
|
26929
|
-
`
|
|
26930
|
-
${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(
|
|
26931
|
-
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
26932
|
-
)(message)}
|
|
26933
|
-
`
|
|
26934
|
-
);
|
|
26935
|
-
};
|
|
26936
|
-
};
|
|
26937
|
-
var writeFatal = (config, message) => getLogFn(config, LogLevel.FATAL)(message);
|
|
26938
|
-
var writeError = (config, message) => getLogFn(config, LogLevel.ERROR)(message);
|
|
26939
|
-
var writeWarning = (config, message) => getLogFn(config, LogLevel.WARN)(message);
|
|
26940
|
-
var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
|
|
26941
|
-
var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
|
|
26942
|
-
var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
|
|
26943
|
-
var writeTrace = (config, message) => getLogFn(config, LogLevel.TRACE)(message);
|
|
26944
|
-
var getStopwatch = (name) => {
|
|
26945
|
-
const start = process.hrtime();
|
|
26946
|
-
return () => {
|
|
26947
|
-
const end = process.hrtime(start);
|
|
26948
|
-
console.info(
|
|
26949
|
-
chalk.dim(
|
|
26950
|
-
`\u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
|
|
26951
|
-
end[0] * 1e3 + end[1] / 1e6
|
|
26952
|
-
)}ms to complete`
|
|
26953
|
-
)
|
|
26954
|
-
);
|
|
26955
|
-
};
|
|
26956
|
-
};
|
|
26957
|
-
|
|
26958
|
-
// packages/config-tools/src/config-file/get-config-file.ts
|
|
26959
26776
|
var _static_cache = void 0;
|
|
26960
|
-
var
|
|
26777
|
+
var getConfigFileByName = async (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
26961
26778
|
var getConfigFile = async (filePath) => {
|
|
26962
26779
|
if (_static_cache) {
|
|
26963
26780
|
return _static_cache;
|
|
26964
26781
|
}
|
|
26965
|
-
let cosmiconfigResult = await
|
|
26782
|
+
let cosmiconfigResult = await getConfigFileByName("storm", filePath);
|
|
26966
26783
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
26967
|
-
cosmiconfigResult = await
|
|
26784
|
+
cosmiconfigResult = await getConfigFileByName("storm-software", filePath);
|
|
26968
26785
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
26969
|
-
cosmiconfigResult = await
|
|
26786
|
+
cosmiconfigResult = await getConfigFileByName("storm-stack", filePath);
|
|
26970
26787
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
26971
|
-
cosmiconfigResult = await
|
|
26972
|
-
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
26973
|
-
cosmiconfigResult = await getConfigFileName("acidic", filePath);
|
|
26974
|
-
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
26975
|
-
cosmiconfigResult = await getConfigFileName("acid", filePath);
|
|
26976
|
-
}
|
|
26977
|
-
}
|
|
26788
|
+
cosmiconfigResult = await getConfigFileByName("storm-cloud", filePath);
|
|
26978
26789
|
}
|
|
26979
26790
|
}
|
|
26980
26791
|
}
|
|
26981
26792
|
if (!cosmiconfigResult || Object.keys(cosmiconfigResult).length === 0 || cosmiconfigResult.isEmpty || !cosmiconfigResult.filepath) {
|
|
26982
|
-
writeWarning(
|
|
26983
|
-
{ logLevel: "all" },
|
|
26984
|
-
"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"
|
|
26985
|
-
);
|
|
26986
26793
|
return void 0;
|
|
26987
26794
|
}
|
|
26988
26795
|
const config = cosmiconfigResult.config ?? {};
|
|
@@ -30773,6 +30580,185 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
30773
30580
|
});
|
|
30774
30581
|
};
|
|
30775
30582
|
|
|
30583
|
+
// packages/config-tools/src/types.ts
|
|
30584
|
+
var LogLevel = {
|
|
30585
|
+
SILENT: 0,
|
|
30586
|
+
FATAL: 10,
|
|
30587
|
+
ERROR: 20,
|
|
30588
|
+
WARN: 30,
|
|
30589
|
+
INFO: 40,
|
|
30590
|
+
SUCCESS: 45,
|
|
30591
|
+
DEBUG: 60,
|
|
30592
|
+
TRACE: 70,
|
|
30593
|
+
ALL: 100
|
|
30594
|
+
};
|
|
30595
|
+
var LogLevelLabel = {
|
|
30596
|
+
SILENT: "silent",
|
|
30597
|
+
FATAL: "fatal",
|
|
30598
|
+
ERROR: "error",
|
|
30599
|
+
WARN: "warn",
|
|
30600
|
+
INFO: "info",
|
|
30601
|
+
DEBUG: "debug",
|
|
30602
|
+
TRACE: "trace",
|
|
30603
|
+
ALL: "all"
|
|
30604
|
+
};
|
|
30605
|
+
|
|
30606
|
+
// packages/config-tools/src/utilities/get-log-level.ts
|
|
30607
|
+
var getLogLevel = (label) => {
|
|
30608
|
+
switch (label) {
|
|
30609
|
+
case "all":
|
|
30610
|
+
return LogLevel.ALL;
|
|
30611
|
+
case "trace":
|
|
30612
|
+
return LogLevel.TRACE;
|
|
30613
|
+
case "debug":
|
|
30614
|
+
return LogLevel.DEBUG;
|
|
30615
|
+
case "info":
|
|
30616
|
+
return LogLevel.INFO;
|
|
30617
|
+
case "warn":
|
|
30618
|
+
return LogLevel.WARN;
|
|
30619
|
+
case "error":
|
|
30620
|
+
return LogLevel.ERROR;
|
|
30621
|
+
case "fatal":
|
|
30622
|
+
return LogLevel.FATAL;
|
|
30623
|
+
case "silent":
|
|
30624
|
+
return LogLevel.SILENT;
|
|
30625
|
+
default:
|
|
30626
|
+
return LogLevel.INFO;
|
|
30627
|
+
}
|
|
30628
|
+
};
|
|
30629
|
+
var getLogLevelLabel = (logLevel) => {
|
|
30630
|
+
if (logLevel >= LogLevel.ALL) {
|
|
30631
|
+
return LogLevelLabel.ALL;
|
|
30632
|
+
}
|
|
30633
|
+
if (logLevel >= LogLevel.TRACE) {
|
|
30634
|
+
return LogLevelLabel.TRACE;
|
|
30635
|
+
}
|
|
30636
|
+
if (logLevel >= LogLevel.DEBUG) {
|
|
30637
|
+
return LogLevelLabel.DEBUG;
|
|
30638
|
+
}
|
|
30639
|
+
if (logLevel >= LogLevel.INFO) {
|
|
30640
|
+
return LogLevelLabel.INFO;
|
|
30641
|
+
}
|
|
30642
|
+
if (logLevel >= LogLevel.WARN) {
|
|
30643
|
+
return LogLevelLabel.WARN;
|
|
30644
|
+
}
|
|
30645
|
+
if (logLevel >= LogLevel.ERROR) {
|
|
30646
|
+
return LogLevelLabel.ERROR;
|
|
30647
|
+
}
|
|
30648
|
+
if (logLevel >= LogLevel.FATAL) {
|
|
30649
|
+
return LogLevelLabel.FATAL;
|
|
30650
|
+
}
|
|
30651
|
+
if (logLevel <= LogLevel.SILENT) {
|
|
30652
|
+
return LogLevelLabel.SILENT;
|
|
30653
|
+
}
|
|
30654
|
+
return LogLevelLabel.INFO;
|
|
30655
|
+
};
|
|
30656
|
+
|
|
30657
|
+
// packages/config-tools/src/utilities/logger.ts
|
|
30658
|
+
var chalk = __toESM(require_source(), 1);
|
|
30659
|
+
var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
30660
|
+
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)) {
|
|
30661
|
+
return (_) => {
|
|
30662
|
+
};
|
|
30663
|
+
}
|
|
30664
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
30665
|
+
return (message) => {
|
|
30666
|
+
console.error(
|
|
30667
|
+
`
|
|
30668
|
+
${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(
|
|
30669
|
+
config?.colors?.fatal ? config.colors.fatal : "#1fb2a6"
|
|
30670
|
+
)(message)}
|
|
30671
|
+
|
|
30672
|
+
`
|
|
30673
|
+
);
|
|
30674
|
+
};
|
|
30675
|
+
}
|
|
30676
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
30677
|
+
return (message) => {
|
|
30678
|
+
console.error(
|
|
30679
|
+
`
|
|
30680
|
+
${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(
|
|
30681
|
+
config?.colors?.error ? config.colors.error : "#7d1a1a"
|
|
30682
|
+
)(message)}
|
|
30683
|
+
`
|
|
30684
|
+
);
|
|
30685
|
+
};
|
|
30686
|
+
}
|
|
30687
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
30688
|
+
return (message) => {
|
|
30689
|
+
console.warn(
|
|
30690
|
+
`
|
|
30691
|
+
${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(">")} ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white(" ! Warn ")} ${chalk.hex(
|
|
30692
|
+
config?.colors?.warning ? config.colors.warning : "#fcc419"
|
|
30693
|
+
)(message)}
|
|
30694
|
+
`
|
|
30695
|
+
);
|
|
30696
|
+
};
|
|
30697
|
+
}
|
|
30698
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
30699
|
+
return (message) => {
|
|
30700
|
+
console.info(
|
|
30701
|
+
`
|
|
30702
|
+
${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")(
|
|
30703
|
+
message
|
|
30704
|
+
)}
|
|
30705
|
+
`
|
|
30706
|
+
);
|
|
30707
|
+
};
|
|
30708
|
+
}
|
|
30709
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
30710
|
+
return (message) => {
|
|
30711
|
+
console.info(
|
|
30712
|
+
`
|
|
30713
|
+
${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(
|
|
30714
|
+
config?.colors?.success ? config.colors.success : "#087f5b"
|
|
30715
|
+
)(message)}
|
|
30716
|
+
`
|
|
30717
|
+
);
|
|
30718
|
+
};
|
|
30719
|
+
}
|
|
30720
|
+
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
30721
|
+
return (message) => {
|
|
30722
|
+
console.debug(
|
|
30723
|
+
`
|
|
30724
|
+
${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(
|
|
30725
|
+
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
30726
|
+
)(message)}
|
|
30727
|
+
`
|
|
30728
|
+
);
|
|
30729
|
+
};
|
|
30730
|
+
}
|
|
30731
|
+
return (message) => {
|
|
30732
|
+
console.log(
|
|
30733
|
+
`
|
|
30734
|
+
${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(
|
|
30735
|
+
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
30736
|
+
)(message)}
|
|
30737
|
+
`
|
|
30738
|
+
);
|
|
30739
|
+
};
|
|
30740
|
+
};
|
|
30741
|
+
var writeFatal = (config, message) => getLogFn(config, LogLevel.FATAL)(message);
|
|
30742
|
+
var writeError = (config, message) => getLogFn(config, LogLevel.ERROR)(message);
|
|
30743
|
+
var writeWarning = (config, message) => getLogFn(config, LogLevel.WARN)(message);
|
|
30744
|
+
var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
|
|
30745
|
+
var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
|
|
30746
|
+
var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
|
|
30747
|
+
var writeTrace = (config, message) => getLogFn(config, LogLevel.TRACE)(message);
|
|
30748
|
+
var getStopwatch = (name) => {
|
|
30749
|
+
const start = process.hrtime();
|
|
30750
|
+
return () => {
|
|
30751
|
+
const end = process.hrtime(start);
|
|
30752
|
+
console.info(
|
|
30753
|
+
chalk.dim(
|
|
30754
|
+
`\u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
|
|
30755
|
+
end[0] * 1e3 + end[1] / 1e6
|
|
30756
|
+
)}ms to complete`
|
|
30757
|
+
)
|
|
30758
|
+
);
|
|
30759
|
+
};
|
|
30760
|
+
};
|
|
30761
|
+
|
|
30776
30762
|
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
|
|
30777
30763
|
var import_node_buffer2 = require("node:buffer");
|
|
30778
30764
|
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
@@ -32541,10 +32527,17 @@ var loadStormConfig = async (workspaceRoot) => {
|
|
|
32541
32527
|
if (!_workspaceRoot) {
|
|
32542
32528
|
_workspaceRoot = findWorkspaceRoot();
|
|
32543
32529
|
}
|
|
32530
|
+
const configFile = await getConfigFile(_workspaceRoot);
|
|
32531
|
+
if (!configFile) {
|
|
32532
|
+
writeWarning(
|
|
32533
|
+
{ logLevel: "all" },
|
|
32534
|
+
"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"
|
|
32535
|
+
);
|
|
32536
|
+
}
|
|
32544
32537
|
config = StormConfigSchema.parse(
|
|
32545
32538
|
await getDefaultConfig(
|
|
32546
32539
|
{
|
|
32547
|
-
...
|
|
32540
|
+
...configFile,
|
|
32548
32541
|
...getConfigEnv()
|
|
32549
32542
|
},
|
|
32550
32543
|
_workspaceRoot
|