Skip to content

Commit

Permalink
Change babel-core to peerDependency for compatibility with Babel 7 (#…
Browse files Browse the repository at this point in the history
…4162)

* Change babel-core to peerDependency for compatibility with Babel 7

This makes babel-jest compatible with whichever version of Babel is
used in a given project, since babel-core@6 is not necessarily
compatible with plugins made for Babel 7.

Note that this is a breaking change (albeit low impact).

* Revert babel-core upgrade to 7.x
  • Loading branch information
bradchristensen authored and cpojer committed Aug 5, 2017
1 parent e2c2604 commit 98c1d6a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/babel-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@
"license": "BSD-3-Clause",
"main": "build/index.js",
"dependencies": {
"babel-core": "^6.0.0",
"babel-plugin-istanbul": "^4.0.0",
"babel-preset-jest": "^20.0.3"
},
"devDependencies": {
"babel-core": "^6.0.0"
},
"peerDependencies": {
"babel-core": "^6.0.0 || ^7.0.0-alpha || ^7.0.0"
}
}

0 comments on commit 98c1d6a

Please sign in to comment.