Skip to content

Commit a53f22b

Browse files
authored
Fix AppVeyor CI (facebook#2010)
1 parent d6173fd commit a53f22b

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

tasks/e2e-installs.sh

+7
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ set -x
8383
cd ..
8484
root_path=$PWD
8585

86+
# Prevent lerna bootstrap, we only want top-level dependencies
87+
cp package.json package.json.bak
88+
grep -v "lerna bootstrap" package.json > temp && mv temp package.json
8689
npm install
90+
mv package.json.bak package.json
8791

8892
if [ "$USE_YARN" = "yes" ]
8993
then
@@ -92,6 +96,9 @@ then
9296
yarn cache clean
9397
fi
9498

99+
# We removed the postinstall, so do it manually
100+
./node_modules/.bin/lerna bootstrap --concurrency=1
101+
95102
# ******************************************************************************
96103
# First, pack and install create-react-app.
97104
# ******************************************************************************

tasks/e2e-kitchensink.sh

+7
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ set -x
6666
cd ..
6767
root_path=$PWD
6868

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
6972
npm install
73+
mv package.json.bak package.json
7074

7175
if [ "$USE_YARN" = "yes" ]
7276
then
@@ -75,6 +79,9 @@ then
7579
yarn cache clean
7680
fi
7781

82+
# We removed the postinstall, so do it manually
83+
./node_modules/.bin/lerna bootstrap --concurrency=1
84+
7885
# ******************************************************************************
7986
# First, pack react-scripts and create-react-app so we can use them.
8087
# ******************************************************************************

tasks/e2e-simple.sh

+2-4
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,8 @@ then
8484
[[ $err_output =~ You\ are\ running\ Node ]] && exit 0 || exit 1
8585
fi
8686

87-
# Still use npm install instead of directly calling lerna bootstrap to test
88-
# postinstall script functionality (one npm install should result in a working
89-
# project)
90-
npm install
87+
# We removed the postinstall, so do it manually here
88+
./node_modules/.bin/lerna bootstrap --concurrency=1
9189

9290
if [ "$USE_YARN" = "yes" ]
9391
then

0 commit comments

Comments
 (0)