fix(medusa-core-utils): getConfigFile typings (#2783)
* fix: getConfigFile typeings * Create brave-apes-carry.md Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
1 parent
7d28eaf8c6
commit
7cced6006a
3 files changed
+13
-11
No files matched your search
@@ -20,13 +20,10 @@ export const handleConfigError = (error: Error): void => {
|
||||
}
|
||||
|
||||
export default (rootDirectory: string): ConfigModule => {
|
||||
const { configModule, error } = getConfigFile(
|
||||
const { configModule, error } = getConfigFile<ConfigModule>(
|
||||
rootDirectory,
|
||||
`medusa-config`
|
||||
) as {
|
||||
configModule: ConfigModule
|
||||
error: Error | null
|
||||
}
|
||||
)
|
||||
|
||||
if (error) {
|
||||
handleConfigError(error)
|
||||
|
||||
Reference in new issue
Block a user