Skip to content

Commit

Permalink
Install dependencies if template is preseted
Browse files Browse the repository at this point in the history
  • Loading branch information
n3tr committed Feb 14, 2017
1 parent 423dd1a commit 9a7f059
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-scripts/scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ module.exports = function(appPath, appName, verbose, originalDirectory, template

// Install react and react-dom for backward compatibility with old CRA cli
// which doesn't install react and react-dom along with react-scripts
if (!isReactInstalled(appPackage)) {
// or template is presetend (via --internal-testing-template)
if (!isReactInstalled(appPackage) || template) {
console.log('Installing react and react-dom using ' + command + '...');
console.log();

Expand Down

0 comments on commit 9a7f059

Please sign in to comment.