Skip to content

Commit

Permalink
fix for finding config on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Jul 29, 2023
1 parent 053b7c0 commit 31302a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -2064,9 +2064,7 @@ export async function parseCommandLine() {

if (argv.config) {
const config = JSON.parse(
await readFileSync(
new URL(resolve(process.cwd(), argv.config), import.meta.url)
)
await readFileSync(resolve(process.cwd(), argv.config))
);
explicitOptions = merge(explicitOptions, config);
}
Expand Down

0 comments on commit 31302a7

Please sign in to comment.