Save space by removing more npm install artifacts.

This commit is contained in:
Pagan Gazzard 2015-02-20 13:36:45 +00:00 committed by Pablo Carranza Vélez
parent 701467ee46
commit c82cec018d

View File

@ -2,6 +2,10 @@ set -o errexit
set -o pipefail
if [[ $NODE_ENV == 'production' ]]; then
# Remove node-gyp cache
rm -rf ~/.node-gyp/
# Remove cached git deps
rm -rf /tmp/*
# Remove the c files we no longer need (the sqlite3 node module has a massive ~5M c file)
find . -name '*.c' -delete
# And the tar files (sqlite3 module again)