Skip to content

Commit

Permalink
Use current working directory when no path is provided (closes #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
knutkirkhorn committed Mar 26, 2023
1 parent d68c408 commit 23d3551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function checkDirectoryFiles(directoryPath) {
}
}

export async function checkRepoFiles(directoryPath = path.dirname(fileURLToPath(import.meta.url))) {
export async function checkRepoFiles(directoryPath = process.cwd()) {
const parsedDirectoryPath = path.resolve(directoryPath);
console.log(`Checking \`${parsedDirectoryPath}\`...`);

Expand Down

0 comments on commit 23d3551

Please sign in to comment.