Skip to content

Commit a69e3e3

Browse files
monkindeyswengorschewski
authored andcommitted
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.
1 parent 2e7bb2d commit a69e3e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/bin/react-scripts-ts-electron.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ switch (script) {
2121
case 'test': {
2222
const result = spawn.sync(
2323
'node',
24-
[require.resolve('../scripts/' + script)].concat(args),
24+
[require.resolve(`../scripts/${script}`)].concat(args),
2525
{ stdio: 'inherit' }
2626
);
2727
if (result.signal) {

0 commit comments

Comments
 (0)