Skip to content

Commit

Permalink
Fix build script to handle react-is (no peer deps) (#12471)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn committed Mar 28, 2018
1 parent b3d8836 commit c2c3c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release/build-commands/update-package-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const update = async ({cwd, dry, packages, version}) => {
json.version = version;
}

if (project !== 'react') {
if (project !== 'react' && json.peerDependencies) {
let peerVersion = json.peerDependencies.react.replace('^', '');

// If the previous release was a pre-release version,
Expand Down

0 comments on commit c2c3c0c

Please sign in to comment.