From 9a7f0595e46ec79ee8f22eebab4793a9d09f8bd4 Mon Sep 17 00:00:00 2001 From: Jirat K Date: Tue, 14 Feb 2017 09:42:07 +0700 Subject: [PATCH] Install dependencies if template is preseted --- packages/react-scripts/scripts/init.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-scripts/scripts/init.js b/packages/react-scripts/scripts/init.js index 68768778a67..aa62265ccc5 100644 --- a/packages/react-scripts/scripts/init.js +++ b/packages/react-scripts/scripts/init.js @@ -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();