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 swengorschewski committed Oct 12, 2017
1 parent 2e7bb2d commit a69e3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-scripts/bin/react-scripts-ts-electron.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 a69e3e3

Please sign in to comment.