Skip to content
  • Sponsor facebook/create-react-app

  • Notifications You must be signed in to change notification settings
  • Fork 27k
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9a7f059

Browse files
committedFeb 14, 2017
Install dependencies if template is preseted
1 parent 423dd1a commit 9a7f059

File tree

1 file changed

+2
-1
lines changed
  • packages/react-scripts/scripts

1 file changed

+2
-1
lines changed
 

‎packages/react-scripts/scripts/init.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ module.exports = function(appPath, appName, verbose, originalDirectory, template
9292

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

0 commit comments

Comments
 (0)
Please sign in to comment.