Skip to content

Commit dfc81a0

Browse files
committed
update readme
1 parent f40ae12 commit dfc81a0

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,23 @@
22
> jest json5 transformer
33
44
## Installation
5+
6+
for jest >= 28
57
```
68
$ npm i -D json5-jest
79
```
810

11+
for jest <= 27
12+
```
13+
$ npm i -D json5-jest@1
14+
```
15+
916
## Jest integration
1017
Please append to package.json
1118
```json
1219
"jest": {
1320
"transform": {
14-
"^.+\\.json5?$": "json5-jest"
21+
"^.+\\.json5$": "json5-jest"
1522
}
1623
}
1724
```
@@ -20,17 +27,20 @@ or append to jest.config.js
2027
```js
2128
module.exports = {
2229
transform: {
23-
"^.+\\.json5?$": "json5-jest"
30+
"^.+\\.json5$": "json5-jest"
2431
}
2532
};
2633
```
2734

2835
## Requirements
2936
- node >= 6.9.0
3037
- npm >= 2.x
38+
- jest >= 28
3139

3240
## Licence
3341
MIT
3442

3543
## Contributers
3644
- [@MaxMellon](https://github.com/MaxMEllon)
45+
- [@wjbenfold](https://github.com/wjbenfold)
46+
- [@Duke242](https://github.com/Duke242)

0 commit comments

Comments
 (0)