Skip to content

Commit

Permalink
feature: Update for babel 7. (#190)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This updated configuration requires babel-plugin-istanbul 5.0.0.
  • Loading branch information
coreyfarrell authored and bcoe committed Jun 29, 2018
1 parent 71b815d commit 3ef809b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/nyc-config-babel/README.md
Expand Up @@ -14,7 +14,7 @@ Then write a `.babelrc` that looks something like this:

```json
{
"presets": ["env", "..., etc."],
"presets": ["@babel/env", "..., etc."],
"plugins": ["istanbul"]
}
```
Expand Down
2 changes: 1 addition & 1 deletion packages/nyc-config-babel/index.json
Expand Up @@ -2,6 +2,6 @@
"sourceMap": false,
"instrument": false,
"require": [
"babel-register"
"@babel/register"
]
}
7 changes: 5 additions & 2 deletions packages/nyc-config-babel/package.json
Expand Up @@ -26,8 +26,11 @@
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=6"
},
"peerDependencies": {
"babel-plugin-istanbul": "*",
"babel-register": "*"
"babel-plugin-istanbul": ">=5",
"@babel/register": "*"
}
}

0 comments on commit 3ef809b

Please sign in to comment.