Skip to content

Commit 9db46cf

Browse files
committedFeb 12, 2025·
feat: export tryLoadConfig
1 parent 87f89de commit 9db46cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { deepMerge } from './utils'
55
/**
66
* Attempts to load a config file from a specific path
77
*/
8-
async function tryLoadConfig<T>(configPath: string, defaultConfig: T): Promise<T | null> {
8+
export async function tryLoadConfig<T>(configPath: string, defaultConfig: T): Promise<T | null> {
99
try {
1010
const importedConfig = await import(configPath)
1111
const loadedConfig = importedConfig.default || importedConfig

0 commit comments

Comments
 (0)
Please sign in to comment.