Skip to content

Commit

Permalink
Use modern syntax feature (facebook#2873)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
monkindey authored and JohnNilsson committed Sep 9, 2017
1 parent 8dad81d commit 3cd4747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-scripts/bin/react-scripts-ts.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 3cd4747

Please sign in to comment.