Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
9dc23a34
Commit
9dc23a34
authored
8 years ago
by
Forbes Lindesay
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Simplify path resolving for react-scripts (#168)
parent
06df2ecb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/react-scripts.js
+1
-2
bin/react-scripts.js
with
1 addition
and
2 deletions
+1
-2
bin/react-scripts.js
+
1
-
2
View file @
9dc23a34
#!/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
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment