Commit 9dc23a34 authored by Forbes Lindesay's avatar Forbes Lindesay Committed by Dan Abramov
Browse files

Simplify path resolving for react-scripts (#168)

parent 06df2ecb
Showing with 1 addition and 2 deletions
+1 -2
#!/usr/bin/env node #!/usr/bin/env node
var path = require('path');
var spawn = require('cross-spawn'); var spawn = require('cross-spawn');
var script = process.argv[2]; var script = process.argv[2];
var args = process.argv.slice(3); var args = process.argv.slice(3);
...@@ -10,7 +9,7 @@ case 'start': ...@@ -10,7 +9,7 @@ case 'start':
case 'eject': case 'eject':
spawn( spawn(
'node', 'node',
[path.resolve(__dirname, '..', 'scripts', script)].concat(args), [require.resolve('../scripts/' + script)].concat(args),
{stdio: 'inherit'} {stdio: 'inherit'}
); );
break; break;
......
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