Skip to content

Commit

Permalink
Fix(Explore Config): `TypeError: Cannot read properties of undefined …
Browse files Browse the repository at this point in the history
…(reading 'cwd')`
  • Loading branch information
1aron committed Jun 8, 2023
1 parent be0e58c commit d83522a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import upath from 'upath'

export function exploreResolvedConfigPath(sources: Pattern | Pattern[], options?: Options) {
const foundPath = exploreConfigPath(sources, options)
return foundPath ? upath.resolve(options.cwd, foundPath) : ''
return foundPath ? upath.resolve(options?.cwd || '', foundPath) : ''
}

0 comments on commit d83522a

Please sign in to comment.