Skip to content

Commit

Permalink
patch semver range due to bug in semver.intersects
Browse files Browse the repository at this point in the history
  • Loading branch information
brucewpaul committed Nov 29, 2017
1 parent 6aef355 commit 389edf4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ try {
}

console.log(`Installing React@${reactVersion} and related packages...`);
if (semver.intersects(reactVersion, '^16.0.0-0')) {
if (semver.intersects(reactVersion, '^16.0.0')) {
try {
npmRun.execSync('install-peerdeps -S enzyme-adapter-react-16', { stdio: 'inherit' });
} catch (e) {
Expand All @@ -55,7 +55,7 @@ if (semver.intersects(reactVersion, '^16.0.0-0')) {
console.log(e);
process.exit(155);
}
} else if (semver.intersects(reactVersion, '15.0.0-0 - 15.4.x')) {
} else if (semver.intersects(reactVersion, '15.0.0 - 15.4.x')) {
try {
npmRun.execSync('install-peerdeps -S enzyme-adapter-react-15.4', { stdio: 'inherit' });
} catch (e) {
Expand Down

0 comments on commit 389edf4

Please sign in to comment.