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
65
65
cd ..
66
66
root_path=$PWD
67
67
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
+
68
74
# If the node version is < 4, the script should just give an error.
69
75
if [[ ` node --version | sed -e ' s/^v//' -e ' s/\..*//g' ` -lt 4 ]]
70
76
then
73
79
[[ $err_output =~ You\ are\ running\ Node ]] && exit 0 || exit 1
74
80
fi
75
81
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)
76
85
npm install
77
86
78
87
if [ " $USE_YARN " = " yes" ]
You can’t perform that action at this time.
0 commit comments