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.
This commit is contained in:
Kiho · Cham
2017-08-02 09:04:25 +08:00
committed by Joe Haddad
parent ea9427bdfe
commit a73252f06f

View File

@@ -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) {