Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
d0695f7d
Commit
d0695f7d
authored
8 years ago
by
Joe Haddad
Committed by
GitHub
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix e2e when used with cold cache (#1667)
Resolves
#1666
parent
432ba82a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/e2e-simple.sh
+9
-0
tasks/e2e-simple.sh
with
9 additions
and
0 deletions
+9
-0
tasks/e2e-simple.sh
+
9
-
0
View file @
d0695f7d
...
...
@@ -65,6 +65,12 @@ set -x
cd
..
root_path
=
$PWD
# Prevent lerna bootstrap, we only want top-level dependencies
cp
package.json package.json.bak
grep
-v
"lerna bootstrap"
package.json
>
temp
&&
mv
temp package.json
npm
install
mv
package.json.bak package.json
# If the node version is < 4, the script should just give an error.
if
[[
`
node
--version
|
sed
-e
's/^v//'
-e
's/\..*//g'
`
-lt
4
]]
then
...
...
@@ -73,6 +79,9 @@ then
[[
$err_output
=
~ You
\
are
\
running
\
Node
]]
&&
exit
0
||
exit
1
fi
# Still use npm install instead of directly calling lerna bootstrap to test
# postinstall script functionality (one npm install should result in a working
# project)
npm
install
if
[
"
$USE_YARN
"
=
"yes"
]
...
...
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
Menu
Explore
Projects
Groups
Snippets