chore(build): trigger npm postinstall when npm install is skipped

we temporarily need this because some of our dependencies are being installed via npm postinstall
This commit is contained in:
Igor Minar 2015-04-16 16:35:38 -07:00
parent 88963b438f
commit 8906cdbab8
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,8 @@ SHRINKWRAP_CACHED_FILE=node_modules/npm-shrinkwrap.cached.json
if diff -q $SHRINKWRAP_FILE $SHRINKWRAP_CACHED_FILE; then
echo 'No shrinkwrap changes detected. npm install will be skipped...';
echo 'Running npm postinstall'
npm run postinstall
else
echo 'Blowing away node_modules and reinstalling npm dependencies...'
rm -rf node_modules