mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 08:01:20 +08:00
Revert CLI changes for RN
This commit is contained in:
parent
ee6472d054
commit
170160ddfe
@ -19,8 +19,8 @@ export default async npmOptions => {
|
||||
'@storybook/addon-actions',
|
||||
'@storybook/addon-links',
|
||||
'@storybook/addons',
|
||||
'@babel/core',
|
||||
'@babel/runtime',
|
||||
'babel-core',
|
||||
'babel-runtime',
|
||||
'prop-types'
|
||||
);
|
||||
|
||||
@ -51,14 +51,11 @@ export default async npmOptions => {
|
||||
packageJson.devDependencies['@storybook/addon-links'] = linksVersion;
|
||||
packageJson.devDependencies['@storybook/addons'] = addonsVersion;
|
||||
|
||||
if (!packageJson.dependencies['@babel/core'] && !packageJson.devDependencies['@babel/core']) {
|
||||
packageJson.devDependencies['@babel/core'] = babelCoreVersion;
|
||||
if (!packageJson.dependencies['babel-core'] && !packageJson.devDependencies['babel-core']) {
|
||||
packageJson.devDependencies['babel-core'] = babelCoreVersion;
|
||||
}
|
||||
if (
|
||||
!packageJson.dependencies['@babel/runtime'] &&
|
||||
!packageJson.devDependencies['babel-runtime']
|
||||
) {
|
||||
packageJson.devDependencies['@babel/runtime'] = babelRuntimeVersion;
|
||||
if (!packageJson.dependencies['babel-runtime'] && !packageJson.devDependencies['babel-runtime']) {
|
||||
packageJson.devDependencies['babel-runtime'] = babelRuntimeVersion;
|
||||
}
|
||||
|
||||
if (!packageJson.dependencies['react-dom'] && !packageJson.devDependencies['react-dom']) {
|
||||
|
@ -17,8 +17,8 @@ export default async npmOptions => {
|
||||
'@storybook/addon-actions',
|
||||
'@storybook/addon-links',
|
||||
'@storybook/addons',
|
||||
'@babel/core',
|
||||
'@babel/runtime',
|
||||
'babel-core',
|
||||
'babel-runtime',
|
||||
'prop-types'
|
||||
);
|
||||
|
||||
@ -35,14 +35,11 @@ export default async npmOptions => {
|
||||
packageJson.devDependencies['@storybook/addon-links'] = linksVersion;
|
||||
packageJson.devDependencies['@storybook/addons'] = addonsVersion;
|
||||
|
||||
if (!packageJson.dependencies['@babel/core'] && !packageJson.devDependencies['@babel/core']) {
|
||||
packageJson.devDependencies['@babel/core'] = babelCoreVersion;
|
||||
if (!packageJson.dependencies['babel-core'] && !packageJson.devDependencies['babel-core']) {
|
||||
packageJson.devDependencies['babel-core'] = babelCoreVersion;
|
||||
}
|
||||
if (
|
||||
!packageJson.dependencies['@babel/runtime'] &&
|
||||
!packageJson.devDependencies['babel-runtime']
|
||||
) {
|
||||
packageJson.devDependencies['@babel/runtime'] = babelRuntimeVersion;
|
||||
if (!packageJson.dependencies['babel-runtime'] && !packageJson.devDependencies['babel-runtime']) {
|
||||
packageJson.devDependencies['babel-runtime'] = babelRuntimeVersion;
|
||||
}
|
||||
|
||||
if (!packageJson.dependencies['react-dom'] && !packageJson.devDependencies['react-dom']) {
|
||||
|
@ -20,8 +20,8 @@
|
||||
"@storybook/addon-actions": "^4.0.0-alpha.12",
|
||||
"@storybook/addon-links": "^4.0.0-alpha.12",
|
||||
"@storybook/addons": "^4.0.0-alpha.12",
|
||||
"@babel/core": "^7.0.0-beta.51",
|
||||
"@babel/runtime": "^7.0.0-beta.51",
|
||||
"babel-core": "^6.26.3",
|
||||
"babel-runtime": "^6.26.0",
|
||||
"react-dom": "16.0.0-alpha.12",
|
||||
"prop-types": "^15.6.2"
|
||||
},
|
||||
|
@ -10,8 +10,8 @@
|
||||
"@storybook/addon-actions": "^4.0.0-alpha.12",
|
||||
"@storybook/addon-links": "^4.0.0-alpha.12",
|
||||
"@storybook/addons": "^4.0.0-alpha.12",
|
||||
"@babel/core": "^7.0.0-beta.51",
|
||||
"@babel/runtime": "^7.0.0-beta.51",
|
||||
"babel-core": "^6.26.3",
|
||||
"babel-runtime": "^6.26.0",
|
||||
"react-dom": "16.0.0-alpha.12",
|
||||
"prop-types": "^15.6.2"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user