We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
chrisbbreuer
Learn more about funding links in repositories.
Report abuse
tryLoadConfig
1 parent 87f89de commit 9db46cfCopy full SHA for 9db46cf
src/index.ts
@@ -5,7 +5,7 @@ import { deepMerge } from './utils'
5
/**
6
* Attempts to load a config file from a specific path
7
*/
8
-async function tryLoadConfig<T>(configPath: string, defaultConfig: T): Promise<T | null> {
+export async function tryLoadConfig<T>(configPath: string, defaultConfig: T): Promise<T | null> {
9
try {
10
const importedConfig = await import(configPath)
11
const loadedConfig = importedConfig.default || importedConfig
0 commit comments