Skip to content

Commit

Permalink
fix(updateConfig): properly resolve config relative to cwd (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Sep 3, 2024
1 parent f72f30b commit 08e7265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export async function updateConfig(

function _tryResolve(path: string, cwd: string, exts: readonly string[]) {
return _resolvePath(path, {
url: cwd,
url: join(cwd, '_index.js'),
extensions: exts as string[],
}).catch(() => undefined);
}
Expand Down

0 comments on commit 08e7265

Please sign in to comment.