diff --git a/lib/cli/generators/REACT_NATIVE/index.js b/lib/cli/generators/REACT_NATIVE/index.js index 6f5e461b82e..0e9ae65ff7a 100644 --- a/lib/cli/generators/REACT_NATIVE/index.js +++ b/lib/cli/generators/REACT_NATIVE/index.js @@ -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']) { diff --git a/lib/cli/generators/REACT_NATIVE_SCRIPTS/index.js b/lib/cli/generators/REACT_NATIVE_SCRIPTS/index.js index 15564568d18..8c57c1aa31d 100644 --- a/lib/cli/generators/REACT_NATIVE_SCRIPTS/index.js +++ b/lib/cli/generators/REACT_NATIVE_SCRIPTS/index.js @@ -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']) { diff --git a/lib/cli/test/snapshots/react_native/package.json b/lib/cli/test/snapshots/react_native/package.json index ebbfd118f09..b3600a058b8 100644 --- a/lib/cli/test/snapshots/react_native/package.json +++ b/lib/cli/test/snapshots/react_native/package.json @@ -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" }, diff --git a/lib/cli/test/snapshots/react_native_scripts/package.json b/lib/cli/test/snapshots/react_native_scripts/package.json index 779b9c96282..317ef90f0fa 100644 --- a/lib/cli/test/snapshots/react_native_scripts/package.json +++ b/lib/cli/test/snapshots/react_native_scripts/package.json @@ -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" },