Commit a73252f0 authored by Kiho · Cham's avatar Kiho · Cham Committed by Joe Haddad
Browse files

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.
parent ea9427bd
Showing with 1 addition and 1 deletion
+1 -1
...@@ -21,7 +21,7 @@ switch (script) { ...@@ -21,7 +21,7 @@ switch (script) {
case 'test': { case 'test': {
const result = spawn.sync( const result = spawn.sync(
'node', 'node',
[require.resolve('../scripts/' + script)].concat(args), [require.resolve(`../scripts/${script}`)].concat(args),
{ stdio: 'inherit' } { stdio: 'inherit' }
); );
if (result.signal) { if (result.signal) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment