Skip to content

Commit

Permalink
Use modern syntax feature (#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 Timer committed Aug 2, 2017
1 parent ea9427b commit a73252f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-scripts/bin/react-scripts.js
Original file line number Diff line number Diff line change
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 a73252f

Please sign in to comment.