Skip to content

Commit 6570506

Browse files
authoredOct 6, 2021
Fix regression in v6 (#15)
1 parent a1006db commit 6570506

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import path from 'node:path';
22
import {findUp, findUpSync} from 'find-up';
33

4-
export async function packageDirectory({cwd}) {
4+
export async function packageDirectory({cwd} = {}) {
55
const filePath = await findUp('package.json', {cwd});
66
return filePath && path.dirname(filePath);
77
}
88

9-
export function packageDirectorySync({cwd}) {
9+
export function packageDirectorySync({cwd} = {}) {
1010
const filePath = findUpSync('package.json', {cwd});
1111
return filePath && path.dirname(filePath);
1212
}

0 commit comments

Comments
 (0)
Please sign in to comment.