File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,12 @@ set -x
6565cd ..
6666root_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.
6975if [[ ` node --version | sed -e ' s/^v//' -e ' s/\..*//g' ` -lt 4 ]]
7076then
7379 [[ $err_output =~ You\ are\ running\ Node ]] && exit 0 || exit 1
7480fi
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)
7685npm install
7786
7887if [ " $USE_YARN " = " yes" ]
You can’t perform that action at this time.
0 commit comments