Skip to content

Commit 3c6fba9

Browse files
TimerSpaceK33z
authored andcommitted
Fix e2e when used with cold cache (facebook#1667)
Resolves facebook#1666 # Conflicts: # tasks/e2e-simple.sh
1 parent 9f3f97d commit 3c6fba9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tasks/e2e-simple.sh

+10
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ set -x
6565
cd ..
6666
root_path=$PWD
6767

68+
69+
# Prevent lerna bootstrap, we only want top-level dependencies
70+
cp package.json package.json.bak
71+
grep -v "lerna bootstrap" package.json > temp && mv temp package.json
6872
npm install
73+
mv package.json.bak package.json
6974

7075
# If the node version is < 4, the script should just give an error.
7176
if [[ `node --version | sed -e 's/^v//' -e 's/\..*//g'` -lt 4 ]]
@@ -75,6 +80,11 @@ then
7580
[[ $err_output =~ You\ are\ running\ Node ]] && exit 0 || exit 1
7681
fi
7782

83+
# Still use npm install instead of directly calling lerna bootstrap to test
84+
# postinstall script functionality (one npm install should result in a working
85+
# project)
86+
npm install
87+
7888
if [ "$USE_YARN" = "yes" ]
7989
then
8090
# Install Yarn so that the test can use it to install packages.

0 commit comments

Comments
 (0)