Skip to content

Commit

Permalink
feat: export tryLoadConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Feb 12, 2025
1 parent 87f89de commit 9db46cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { deepMerge } from './utils'
/**
* Attempts to load a config file from a specific path
*/
async function tryLoadConfig<T>(configPath: string, defaultConfig: T): Promise<T | null> {
export async function tryLoadConfig<T>(configPath: string, defaultConfig: T): Promise<T | null> {
try {
const importedConfig = await import(configPath)
const loadedConfig = importedConfig.default || importedConfig
Expand Down

0 comments on commit 9db46cf

Please sign in to comment.