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
a85ae1d9
Unverified
Commit
a85ae1d9
authored
8 years ago
by
Joe Haddad
Browse files
Options
Download
Email Patches
Plain Diff
False expression should not be in dependencies
parent
ee3b788f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/create-react-app/index.js
+5
-2
packages/create-react-app/index.js
with
5 additions
and
2 deletions
+5
-2
packages/create-react-app/index.js
+
5
-
2
View file @
a85ae1d9
...
...
@@ -164,8 +164,11 @@ function install(useYarn, dependencies, verbose, isOnline) {
args
=
[
'
add
'
,
'
--exact
'
,
isOnline
===
false
&&
'
--offline
'
].
concat
(
dependencies
);
];
if
(
!
isOnline
)
{
args
.
push
(
'
--offline
'
);
}
[].
push
.
apply
(
args
,
dependencies
);
if
(
!
isOnline
)
{
console
.
log
(
chalk
.
yellow
(
'
You appear to be offline.
'
));
...
...
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