Skip to content

Commit

Permalink
Convert to an ES module
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Oct 29, 2021
1 parent 306107c commit 0884826
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@

```js
// jest.config.js
module.exports = require('@snout/jest-config')
export {default} from '@snout/jest-config'
```
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
preset: 'ts-jest',
collectCoverageFrom: [
'src/**/*.ts',
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "jest.config.js",
"exports": {
".": "./jest.config.js"
},
"files": [
"jest.config.js"
],
Expand Down

0 comments on commit 0884826

Please sign in to comment.