Skip to content

Commit

Permalink
Fix config file search location
Browse files Browse the repository at this point in the history
  • Loading branch information
musjj authored Oct 18, 2024
1 parent 2c49533 commit 01de987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/sql-formatter-cli.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class SqlFormatterCli {
return this.parseFile(localConfig);
}

findConfig(dir = __dirname) {
findConfig(dir = process.cwd()) {
const filePath = path.join(dir, '.sql-formatter.json');
if (!fs.existsSync(filePath)) {
const parentDir = path.resolve(dir, '..');
Expand Down

0 comments on commit 01de987

Please sign in to comment.