From 1c7222ecaf794a8f5e92050882f1ac42c37b7d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kiho=20=C2=B7=20Cham?= Date: Sat, 29 Jul 2017 15:41:38 +0800 Subject: [PATCH] use the template string The create-react-app need node >= 6, and node version 6 support a lot of ES6, and let's switch using '+' to concat string with template string. --- packages/react-scripts/bin/react-scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/bin/react-scripts.js b/packages/react-scripts/bin/react-scripts.js index cb52fe71b09..abb2741f854 100755 --- a/packages/react-scripts/bin/react-scripts.js +++ b/packages/react-scripts/bin/react-scripts.js @@ -21,7 +21,7 @@ switch (script) { case 'test': { const result = spawn.sync( 'node', - [require.resolve('../scripts/' + script)].concat(args), + [require.resolve(`../scripts/${script}`)].concat(args), { stdio: 'inherit' } ); if (result.signal) {