Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: do not require opts to read
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 19, 2018
1 parent d9a229b commit dcf4907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export function isIConfig(o: any): o is IConfig {
return !!o._base
}

export async function read({name, root = __dirname, baseConfig}: ConfigOptions): Promise<IConfig> {
export async function read({name, root = __dirname, baseConfig}: ConfigOptions = {}): Promise<IConfig> {
const pkgPath = await findPkg(name, root)
if (!pkgPath) throw new Error(`could not find package.json with ${inspect({name, root})}`)
debug('found package.json at %s from %s', pkgPath, root)
Expand Down

0 comments on commit dcf4907

Please sign in to comment.