From a69e3e38cd2e3b09bbfac9bddff04a6d93ae455f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kiho=20=C2=B7=20Cham?= Date: Wed, 2 Aug 2017 09:04:25 +0800 Subject: [PATCH] Use modern syntax feature (#2873) 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-ts-electron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/bin/react-scripts-ts-electron.js b/packages/react-scripts/bin/react-scripts-ts-electron.js index 9738aef28..16aa7bad3 100755 --- a/packages/react-scripts/bin/react-scripts-ts-electron.js +++ b/packages/react-scripts/bin/react-scripts-ts-electron.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) {