Ensure we add the correct version of react-dom

We need to use an equal version to the `react` version the app is using.

#1284
This commit is contained in:
Tom Coleman 2017-06-23 14:07:16 +10:00
parent bf6faea25e
commit 928ea5e1c1
2 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,8 @@ module.exports = latestVersion('@storybook/react-native').then(version => {
packageJson.devDependencies['@storybook/react-native'] = `^${version}`;
if (!packageJson.dependencies['react-dom'] && !packageJson.devDependencies['react-dom']) {
packageJson.devDependencies['react-dom'] = '^15.5.4';
const reactVersion = packageJson.dependencies.react;
packageJson.devDependencies['react-dom'] = reactVersion;
}
packageJson.scripts = packageJson.scripts || {};

View File

@ -15,7 +15,8 @@ module.exports = latestVersion('@storybook/react-native').then(version => {
packageJson.devDependencies['@storybook/react-native'] = `^${version}`;
if (!packageJson.dependencies['react-dom'] && !packageJson.devDependencies['react-dom']) {
packageJson.devDependencies['react-dom'] = '^15.5.4';
const reactVersion = packageJson.dependencies.react;
packageJson.devDependencies['react-dom'] = reactVersion;
}
packageJson.scripts = packageJson.scripts || {};