Skip to content

Commit

Permalink
Fix e2e when used with cold cache (facebook#1667)
Browse files Browse the repository at this point in the history
Resolves facebook#1666
# Conflicts:
#   tasks/e2e-simple.sh
  • Loading branch information
Timer authored and SpaceK33z committed Mar 7, 2017
1 parent 9f3f97d commit 3c6fba9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/e2e-simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +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 ]]
Expand All @@ -75,6 +80,11 @@ 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" ]
then
# Install Yarn so that the test can use it to install packages.
Expand Down

0 comments on commit 3c6fba9

Please sign in to comment.