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 kasperpeulen committed Sep 24, 2017
1 parent cefd04b commit 58131e3
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 58131e3

Please sign in to comment.