Skip to content

Commit

Permalink
feat: optional detect argument (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jan 20, 2023
1 parent 87452f6 commit 6d544f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface DetectOptions {
cwd?: string
}

export async function detect({ autoInstall, cwd }: DetectOptions) {
export async function detect({ autoInstall, cwd }: DetectOptions = {}) {
let agent: Agent | null = null

const lockPath = await findUp(Object.keys(LOCKS), { cwd })
Expand Down

0 comments on commit 6d544f9

Please sign in to comment.