Skip to content

Commit

Permalink
Merge pull request #1741 from storybooks/1738-react-native-getstorybo…
Browse files Browse the repository at this point in the history
…ok-bug

Install `@storybook/react-native` in RN getstorybook
  • Loading branch information
shilman authored Aug 26, 2017
2 parents ed35cf3 + 82a40af commit da2621d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/cli/generators/REACT_NATIVE/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const chalk = require('chalk');
const helpers = require('../../lib/helpers');

module.exports = Promise.all([
latestVersion('@storybook/react'),
latestVersion('@storybook/react-native'),
latestVersion('@storybook/addon-actions'),
latestVersion('@storybook/addon-links'),
latestVersion('prop-types'),
Expand All @@ -33,7 +33,7 @@ module.exports = Promise.all([
packageJson.dependencies = packageJson.dependencies || {};
packageJson.devDependencies = packageJson.devDependencies || {};

packageJson.devDependencies['@storybook/react'] = `^${storybookVersion}`;
packageJson.devDependencies['@storybook/react-native'] = `^${storybookVersion}`;
packageJson.devDependencies['@storybook/addon-actions'] = `^${actionsVersion}`;
packageJson.devDependencies['@storybook/addon-links'] = `^${linksVersion}`;

Expand Down
4 changes: 2 additions & 2 deletions lib/cli/generators/REACT_NATIVE_SCRIPTS/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');
const latestVersion = require('latest-version');

module.exports = Promise.all([
latestVersion('@storybook/react'),
latestVersion('@storybook/react-native'),
latestVersion('@storybook/addon-actions'),
latestVersion('@storybook/addon-links'),
latestVersion('prop-types'),
Expand All @@ -17,7 +17,7 @@ module.exports = Promise.all([
packageJson.dependencies = packageJson.dependencies || {};
packageJson.devDependencies = packageJson.devDependencies || {};

packageJson.devDependencies['@storybook/react'] = `^${storybookVersion}`;
packageJson.devDependencies['@storybook/react-native'] = `^${storybookVersion}`;
packageJson.devDependencies['@storybook/addon-actions'] = `^${actionsVersion}`;
packageJson.devDependencies['@storybook/addon-links'] = `^${linksVersion}`;

Expand Down

0 comments on commit da2621d

Please sign in to comment.