diff --git a/generators/METEOR/index.js b/generators/METEOR/index.js index 27e21e8ebfa5..00fdf6f82ae4 100644 --- a/generators/METEOR/index.js +++ b/generators/METEOR/index.js @@ -18,7 +18,7 @@ if(fs.existsSync('.babelrc')) { var babelrcContent = fs.readFileSync('.babelrc', 'utf8'); babelrc = JSON5.parse(babelrcContent); babelrc.plugins = babelrc.plugins || []; - + if (babelrc.plugins.indexOf('babel-root-slash-import') < 0) { babelrc.plugins.push('babel-root-slash-import'); packageJson.devDependencies['babel-root-slash-import'] = '^1.1.0'; @@ -39,7 +39,7 @@ if(fs.existsSync('.babelrc')) { fs.writeFileSync('.babelrc', JSON.stringify(babelrc, null, 2), 'utf8'); // write the new package.json. -packageJson.devDependencies['@kadira/storybook'] = '^2.0.0'; +packageJson.devDependencies['@kadira/storybook'] = '^2.5.2'; packageJson.scripts['storybook'] = 'start-storybook -p 6006'; packageJson.scripts['build-storybook'] = 'build-storybook'; diff --git a/generators/REACT/index.js b/generators/REACT/index.js index 7ff4306749fb..dadd432a14db 100644 --- a/generators/REACT/index.js +++ b/generators/REACT/index.js @@ -8,7 +8,7 @@ var packageJson = helpers.getPackageJson(); // TODO: Get the latest version of storybook here. packageJson.devDependencies = packageJson.devDependencies || {}; -packageJson.devDependencies['@kadira/storybook'] = '^2.0.0'; +packageJson.devDependencies['@kadira/storybook'] = '^2.5.2'; packageJson.scripts = packageJson.scripts || {}; packageJson.scripts['storybook'] = 'start-storybook -p 6006'; diff --git a/generators/REACT_SCRIPTS/index.js b/generators/REACT_SCRIPTS/index.js index 7261cf940efc..347a59d28fbb 100644 --- a/generators/REACT_SCRIPTS/index.js +++ b/generators/REACT_SCRIPTS/index.js @@ -7,7 +7,7 @@ mergeDirs(path.resolve(__dirname, 'template/'), '.', 'overwrite'); var packageJson = helpers.getPackageJson(); // TODO: Get the latest version of storybook here. -packageJson.devDependencies['@kadira/storybook'] = '^2.0.0'; +packageJson.devDependencies['@kadira/storybook'] = '^2.5.2'; packageJson.scripts['storybook'] = 'start-storybook -p 9009'; packageJson.scripts['build-storybook'] = 'build-storybook'; diff --git a/generators/WEBPACK_REACT/index.js b/generators/WEBPACK_REACT/index.js index 7ff4306749fb..dadd432a14db 100644 --- a/generators/WEBPACK_REACT/index.js +++ b/generators/WEBPACK_REACT/index.js @@ -8,7 +8,7 @@ var packageJson = helpers.getPackageJson(); // TODO: Get the latest version of storybook here. packageJson.devDependencies = packageJson.devDependencies || {}; -packageJson.devDependencies['@kadira/storybook'] = '^2.0.0'; +packageJson.devDependencies['@kadira/storybook'] = '^2.5.2'; packageJson.scripts = packageJson.scripts || {}; packageJson.scripts['storybook'] = 'start-storybook -p 6006';