@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 CHANGED
@@ -1,3 +1,30 @@
1
+ ## [1.46.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.46.0...workspace-tools-v1.46.1) (2024-01-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **config-tools:** Added the `defineConfig` function to type-check config options ([0676271](https://github.com/storm-software/storm-ops/commit/0676271161ec4a04715fb495f55042328a9f116f))
7
+
8
+ # [1.46.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.45.3...workspace-tools-v1.46.0) (2024-01-19)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **config-tools:** Rerun ci pipeline ([d855670](https://github.com/storm-software/storm-ops/commit/d855670faf558969a592b8b6666754280c0dc829))
14
+ * **config-tools:** Resolved the issue with the tsconfig properties ([5bc729e](https://github.com/storm-software/storm-ops/commit/5bc729e4680f2bb8ce67a2f6a85dff875bef9997))
15
+ * **config-tools:** Skip type checks ([c7da786](https://github.com/storm-software/storm-ops/commit/c7da78609234d5eb0998465c9d38fe10eb02d205))
16
+ * **config-tools:** Update lefthook config to call install prior to push ([6a81b6a](https://github.com/storm-software/storm-ops/commit/6a81b6a27359ab41549cb93227d28c5fc1b2ee01))
17
+ * **git-tools:** Resolved issue preventing git-tools publish ([1bf9727](https://github.com/storm-software/storm-ops/commit/1bf97271e3421b5c485708ed2c59da815cde6c4b))
18
+ * **git-tools:** Resolved the issue with the missing release plugin ([15cc054](https://github.com/storm-software/storm-ops/commit/15cc054a1e538f55fe246db79622281f48972193))
19
+ * **git-tools:** Resovled issues with lock file versions ([3740dc2](https://github.com/storm-software/storm-ops/commit/3740dc2392a8c4fcb0beae0816afeaea1573f6ae))
20
+ * **git-tools:** Upgrade Nx version and resolved import issues ([53432f2](https://github.com/storm-software/storm-ops/commit/53432f2b318c24bc0d65cf2509d01861c0c6f91b))
21
+ * **git-tools:** Upgrade pnpm lock file ([daa3d32](https://github.com/storm-software/storm-ops/commit/daa3d32fd692799b036556ccf04279507410e4eb))
22
+
23
+
24
+ ### Features
25
+
26
+ * **git-tools:** Redesigned the executable script structure ([a4c097b](https://github.com/storm-software/storm-ops/commit/a4c097bd38a68ca0c206686b592d994fb643a5d2))
27
+
1
28
  ## [1.45.3](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.45.2...workspace-tools-v1.45.3) (2024-01-19)
2
29
 
3
30
 
package/index.js CHANGED
@@ -127045,216 +127045,23 @@ module.exports = __toCommonJS(workspace_tools_exports);
127045
127045
 
127046
127046
  // packages/config-tools/src/config-file/get-config-file.ts
127047
127047
  var import_cosmiconfig = __toESM(require_dist(), 1);
127048
-
127049
- // packages/config-tools/src/utilities/logger.ts
127050
- var chalk = __toESM(require_source(), 1);
127051
-
127052
- // packages/config-tools/src/types.ts
127053
- var LogLevel = {
127054
- SILENT: 0,
127055
- FATAL: 10,
127056
- ERROR: 20,
127057
- WARN: 30,
127058
- INFO: 40,
127059
- SUCCESS: 45,
127060
- DEBUG: 60,
127061
- TRACE: 70,
127062
- ALL: 100
127063
- };
127064
- var LogLevelLabel = {
127065
- SILENT: "silent",
127066
- FATAL: "fatal",
127067
- ERROR: "error",
127068
- WARN: "warn",
127069
- INFO: "info",
127070
- DEBUG: "debug",
127071
- TRACE: "trace",
127072
- ALL: "all"
127073
- };
127074
-
127075
- // packages/config-tools/src/utilities/get-log-level.ts
127076
- var getLogLevel = (label) => {
127077
- switch (label) {
127078
- case "all":
127079
- return LogLevel.ALL;
127080
- case "trace":
127081
- return LogLevel.TRACE;
127082
- case "debug":
127083
- return LogLevel.DEBUG;
127084
- case "info":
127085
- return LogLevel.INFO;
127086
- case "warn":
127087
- return LogLevel.WARN;
127088
- case "error":
127089
- return LogLevel.ERROR;
127090
- case "fatal":
127091
- return LogLevel.FATAL;
127092
- case "silent":
127093
- return LogLevel.SILENT;
127094
- default:
127095
- return LogLevel.INFO;
127096
- }
127097
- };
127098
- var getLogLevelLabel = (logLevel) => {
127099
- if (logLevel >= LogLevel.ALL) {
127100
- return LogLevelLabel.ALL;
127101
- }
127102
- if (logLevel >= LogLevel.TRACE) {
127103
- return LogLevelLabel.TRACE;
127104
- }
127105
- if (logLevel >= LogLevel.DEBUG) {
127106
- return LogLevelLabel.DEBUG;
127107
- }
127108
- if (logLevel >= LogLevel.INFO) {
127109
- return LogLevelLabel.INFO;
127110
- }
127111
- if (logLevel >= LogLevel.WARN) {
127112
- return LogLevelLabel.WARN;
127113
- }
127114
- if (logLevel >= LogLevel.ERROR) {
127115
- return LogLevelLabel.ERROR;
127116
- }
127117
- if (logLevel >= LogLevel.FATAL) {
127118
- return LogLevelLabel.FATAL;
127119
- }
127120
- if (logLevel <= LogLevel.SILENT) {
127121
- return LogLevelLabel.SILENT;
127122
- }
127123
- return LogLevelLabel.INFO;
127124
- };
127125
-
127126
- // packages/config-tools/src/utilities/logger.ts
127127
- var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
127128
- 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)) {
127129
- return (_) => {
127130
- };
127131
- }
127132
- if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
127133
- return (message) => {
127134
- console.error(
127135
- `
127136
- ${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(
127137
- config?.colors?.fatal ? config.colors.fatal : "#1fb2a6"
127138
- )(message)}
127139
-
127140
- `
127141
- );
127142
- };
127143
- }
127144
- if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
127145
- return (message) => {
127146
- console.error(
127147
- `
127148
- ${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(
127149
- config?.colors?.error ? config.colors.error : "#7d1a1a"
127150
- )(message)}
127151
- `
127152
- );
127153
- };
127154
- }
127155
- if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
127156
- return (message) => {
127157
- console.warn(
127158
- `
127159
- ${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(">")} ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white(" ! Warn ")} ${chalk.hex(
127160
- config?.colors?.warning ? config.colors.warning : "#fcc419"
127161
- )(message)}
127162
- `
127163
- );
127164
- };
127165
- }
127166
- if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
127167
- return (message) => {
127168
- console.info(
127169
- `
127170
- ${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")(
127171
- message
127172
- )}
127173
- `
127174
- );
127175
- };
127176
- }
127177
- if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
127178
- return (message) => {
127179
- console.info(
127180
- `
127181
- ${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(
127182
- config?.colors?.success ? config.colors.success : "#087f5b"
127183
- )(message)}
127184
- `
127185
- );
127186
- };
127187
- }
127188
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
127189
- return (message) => {
127190
- console.debug(
127191
- `
127192
- ${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(
127193
- config?.colors?.primary ? config.colors.primary : "#1fb2a6"
127194
- )(message)}
127195
- `
127196
- );
127197
- };
127198
- }
127199
- return (message) => {
127200
- console.log(
127201
- `
127202
- ${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(
127203
- config?.colors?.primary ? config.colors.primary : "#1fb2a6"
127204
- )(message)}
127205
- `
127206
- );
127207
- };
127208
- };
127209
- var writeFatal = (config, message) => getLogFn(config, LogLevel.FATAL)(message);
127210
- var writeError = (config, message) => getLogFn(config, LogLevel.ERROR)(message);
127211
- var writeWarning = (config, message) => getLogFn(config, LogLevel.WARN)(message);
127212
- var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
127213
- var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
127214
- var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
127215
- var writeTrace = (config, message) => getLogFn(config, LogLevel.TRACE)(message);
127216
- var getStopwatch = (name) => {
127217
- const start = process.hrtime();
127218
- return () => {
127219
- const end = process.hrtime(start);
127220
- console.info(
127221
- chalk.dim(
127222
- `\u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
127223
- end[0] * 1e3 + end[1] / 1e6
127224
- )}ms to complete`
127225
- )
127226
- );
127227
- };
127228
- };
127229
-
127230
- // packages/config-tools/src/config-file/get-config-file.ts
127231
127048
  var _static_cache = void 0;
127232
- var getConfigFileName = async (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
127049
+ var getConfigFileByName = async (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
127233
127050
  var getConfigFile = async (filePath) => {
127234
127051
  if (_static_cache) {
127235
127052
  return _static_cache;
127236
127053
  }
127237
- let cosmiconfigResult = await getConfigFileName("storm", filePath);
127054
+ let cosmiconfigResult = await getConfigFileByName("storm", filePath);
127238
127055
  if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
127239
- cosmiconfigResult = await getConfigFileName("storm-software", filePath);
127056
+ cosmiconfigResult = await getConfigFileByName("storm-software", filePath);
127240
127057
  if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
127241
- cosmiconfigResult = await getConfigFileName("storm-stack", filePath);
127058
+ cosmiconfigResult = await getConfigFileByName("storm-stack", filePath);
127242
127059
  if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
127243
- cosmiconfigResult = await getConfigFileName("storm-cloud", filePath);
127244
- if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
127245
- cosmiconfigResult = await getConfigFileName("acidic", filePath);
127246
- if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
127247
- cosmiconfigResult = await getConfigFileName("acid", filePath);
127248
- }
127249
- }
127060
+ cosmiconfigResult = await getConfigFileByName("storm-cloud", filePath);
127250
127061
  }
127251
127062
  }
127252
127063
  }
127253
127064
  if (!cosmiconfigResult || Object.keys(cosmiconfigResult).length === 0 || cosmiconfigResult.isEmpty || !cosmiconfigResult.filepath) {
127254
- writeWarning(
127255
- { logLevel: "all" },
127256
- "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"
127257
- );
127258
127065
  return void 0;
127259
127066
  }
127260
127067
  const config = cosmiconfigResult.config ?? {};
@@ -131045,6 +130852,185 @@ var getDefaultConfig = (config = {}, root) => {
131045
130852
  });
131046
130853
  };
131047
130854
 
130855
+ // packages/config-tools/src/types.ts
130856
+ var LogLevel = {
130857
+ SILENT: 0,
130858
+ FATAL: 10,
130859
+ ERROR: 20,
130860
+ WARN: 30,
130861
+ INFO: 40,
130862
+ SUCCESS: 45,
130863
+ DEBUG: 60,
130864
+ TRACE: 70,
130865
+ ALL: 100
130866
+ };
130867
+ var LogLevelLabel = {
130868
+ SILENT: "silent",
130869
+ FATAL: "fatal",
130870
+ ERROR: "error",
130871
+ WARN: "warn",
130872
+ INFO: "info",
130873
+ DEBUG: "debug",
130874
+ TRACE: "trace",
130875
+ ALL: "all"
130876
+ };
130877
+
130878
+ // packages/config-tools/src/utilities/get-log-level.ts
130879
+ var getLogLevel = (label) => {
130880
+ switch (label) {
130881
+ case "all":
130882
+ return LogLevel.ALL;
130883
+ case "trace":
130884
+ return LogLevel.TRACE;
130885
+ case "debug":
130886
+ return LogLevel.DEBUG;
130887
+ case "info":
130888
+ return LogLevel.INFO;
130889
+ case "warn":
130890
+ return LogLevel.WARN;
130891
+ case "error":
130892
+ return LogLevel.ERROR;
130893
+ case "fatal":
130894
+ return LogLevel.FATAL;
130895
+ case "silent":
130896
+ return LogLevel.SILENT;
130897
+ default:
130898
+ return LogLevel.INFO;
130899
+ }
130900
+ };
130901
+ var getLogLevelLabel = (logLevel) => {
130902
+ if (logLevel >= LogLevel.ALL) {
130903
+ return LogLevelLabel.ALL;
130904
+ }
130905
+ if (logLevel >= LogLevel.TRACE) {
130906
+ return LogLevelLabel.TRACE;
130907
+ }
130908
+ if (logLevel >= LogLevel.DEBUG) {
130909
+ return LogLevelLabel.DEBUG;
130910
+ }
130911
+ if (logLevel >= LogLevel.INFO) {
130912
+ return LogLevelLabel.INFO;
130913
+ }
130914
+ if (logLevel >= LogLevel.WARN) {
130915
+ return LogLevelLabel.WARN;
130916
+ }
130917
+ if (logLevel >= LogLevel.ERROR) {
130918
+ return LogLevelLabel.ERROR;
130919
+ }
130920
+ if (logLevel >= LogLevel.FATAL) {
130921
+ return LogLevelLabel.FATAL;
130922
+ }
130923
+ if (logLevel <= LogLevel.SILENT) {
130924
+ return LogLevelLabel.SILENT;
130925
+ }
130926
+ return LogLevelLabel.INFO;
130927
+ };
130928
+
130929
+ // packages/config-tools/src/utilities/logger.ts
130930
+ var chalk = __toESM(require_source(), 1);
130931
+ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
130932
+ 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)) {
130933
+ return (_) => {
130934
+ };
130935
+ }
130936
+ if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
130937
+ return (message) => {
130938
+ console.error(
130939
+ `
130940
+ ${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(
130941
+ config?.colors?.fatal ? config.colors.fatal : "#1fb2a6"
130942
+ )(message)}
130943
+
130944
+ `
130945
+ );
130946
+ };
130947
+ }
130948
+ if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
130949
+ return (message) => {
130950
+ console.error(
130951
+ `
130952
+ ${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(
130953
+ config?.colors?.error ? config.colors.error : "#7d1a1a"
130954
+ )(message)}
130955
+ `
130956
+ );
130957
+ };
130958
+ }
130959
+ if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
130960
+ return (message) => {
130961
+ console.warn(
130962
+ `
130963
+ ${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(">")} ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white(" ! Warn ")} ${chalk.hex(
130964
+ config?.colors?.warning ? config.colors.warning : "#fcc419"
130965
+ )(message)}
130966
+ `
130967
+ );
130968
+ };
130969
+ }
130970
+ if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
130971
+ return (message) => {
130972
+ console.info(
130973
+ `
130974
+ ${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")(
130975
+ message
130976
+ )}
130977
+ `
130978
+ );
130979
+ };
130980
+ }
130981
+ if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
130982
+ return (message) => {
130983
+ console.info(
130984
+ `
130985
+ ${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(
130986
+ config?.colors?.success ? config.colors.success : "#087f5b"
130987
+ )(message)}
130988
+ `
130989
+ );
130990
+ };
130991
+ }
130992
+ if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
130993
+ return (message) => {
130994
+ console.debug(
130995
+ `
130996
+ ${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(
130997
+ config?.colors?.primary ? config.colors.primary : "#1fb2a6"
130998
+ )(message)}
130999
+ `
131000
+ );
131001
+ };
131002
+ }
131003
+ return (message) => {
131004
+ console.log(
131005
+ `
131006
+ ${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(
131007
+ config?.colors?.primary ? config.colors.primary : "#1fb2a6"
131008
+ )(message)}
131009
+ `
131010
+ );
131011
+ };
131012
+ };
131013
+ var writeFatal = (config, message) => getLogFn(config, LogLevel.FATAL)(message);
131014
+ var writeError = (config, message) => getLogFn(config, LogLevel.ERROR)(message);
131015
+ var writeWarning = (config, message) => getLogFn(config, LogLevel.WARN)(message);
131016
+ var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
131017
+ var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
131018
+ var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
131019
+ var writeTrace = (config, message) => getLogFn(config, LogLevel.TRACE)(message);
131020
+ var getStopwatch = (name) => {
131021
+ const start = process.hrtime();
131022
+ return () => {
131023
+ const end = process.hrtime(start);
131024
+ console.info(
131025
+ chalk.dim(
131026
+ `\u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
131027
+ end[0] * 1e3 + end[1] / 1e6
131028
+ )}ms to complete`
131029
+ )
131030
+ );
131031
+ };
131032
+ };
131033
+
131048
131034
  // node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
131049
131035
  var import_node_buffer2 = require("node:buffer");
131050
131036
  var import_node_path4 = __toESM(require("node:path"), 1);
@@ -132813,10 +132799,17 @@ var loadStormConfig = async (workspaceRoot) => {
132813
132799
  if (!_workspaceRoot) {
132814
132800
  _workspaceRoot = findWorkspaceRoot();
132815
132801
  }
132802
+ const configFile = await getConfigFile(_workspaceRoot);
132803
+ if (!configFile) {
132804
+ writeWarning(
132805
+ { logLevel: "all" },
132806
+ "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"
132807
+ );
132808
+ }
132816
132809
  config = StormConfigSchema.parse(
132817
132810
  await getDefaultConfig(
132818
132811
  {
132819
- ...await getConfigFile(_workspaceRoot),
132812
+ ...configFile,
132820
132813
  ...getConfigEnv()
132821
132814
  },
132822
132815
  _workspaceRoot