File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,12 @@ set -x
65
65
cd ..
66
66
root_path=$PWD
67
67
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
68
72
npm install
73
+ mv package.json.bak package.json
69
74
70
75
# If the node version is < 4, the script should just give an error.
71
76
if [[ ` node --version | sed -e ' s/^v//' -e ' s/\..*//g' ` -lt 4 ]]
75
80
[[ $err_output =~ You\ are\ running\ Node ]] && exit 0 || exit 1
76
81
fi
77
82
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
+
78
88
if [ " $USE_YARN " = " yes" ]
79
89
then
80
90
# Install Yarn so that the test can use it to install packages.
You can’t perform that action at this time.
0 commit comments