Skip to content

Commit

Permalink
fix: Fix 'is not a function' regression when using require() and a di…
Browse files Browse the repository at this point in the history
…rectly exported factory function. Fixes pact-foundation#426
  • Loading branch information
TimothyJones committed Dec 28, 2022
1 parent cf42118 commit 2941552
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
{ "allow": ["constructors"] }
],
"import/prefer-default-export": "off",
"import/no-import-module-exports": "off",
"no-underscore-dangle": "off",
"class-methods-use-this": "off"
},
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import pact from './pact';

// eslint-disable-next-line no-multi-assign
module.exports = exports = pact;

export default pact;

export * from './verifier';
Expand Down

0 comments on commit 2941552

Please sign in to comment.