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

Commit

Permalink
fix: add config to hook opts
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 7, 2018
1 parent cadfbc2 commit 1eb0417
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 @@ -209,7 +209,7 @@ export class Config implements IConfig {
return Object.values(m).find((m: any) => typeof m === 'function') as Hook<K>
}

await search(require(p)).call(context, opts)
await search(require(p)).call(context, {...opts as any, config: this})
} catch (err) {
if (err && err.anycli && err.anycli.exit !== undefined) throw err
this.warn(err, `runHook ${event}`)
Expand Down

0 comments on commit 1eb0417

Please sign in to comment.