Skip to content

Commit 1ff1cfd

Browse files
authored
Fix e2e when used with cold cache (facebook#1667)
Resolves facebook#1666
1 parent bfbf835 commit 1ff1cfd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tasks/e2e-simple.sh

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

68+
# Prevent lerna bootstrap, we only want top-level dependencies
69+
cp package.json package.json.bak
70+
grep -v "lerna bootstrap" package.json > temp && mv temp package.json
71+
npm install
72+
mv package.json.bak package.json
73+
6874
# If the node version is < 4, the script should just give an error.
6975
if [[ `node --version | sed -e 's/^v//' -e 's/\..*//g'` -lt 4 ]]
7076
then
@@ -73,6 +79,9 @@ then
7379
[[ $err_output =~ You\ are\ running\ Node ]] && exit 0 || exit 1
7480
fi
7581

82+
# Still use npm install instead of directly calling lerna bootstrap to test
83+
# postinstall script functionality (one npm install should result in a working
84+
# project)
7685
npm install
7786

7887
if [ "$USE_YARN" = "yes" ]

0 commit comments

Comments
 (0)