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