mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 22:41:12 +08:00
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:
parent
bf6faea25e
commit
928ea5e1c1
@ -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 || {};
|
||||
|
@ -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 || {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user