diff --git a/postinstall.sh b/postinstall.sh index 38b1da93..bd45e5cd 100755 --- a/postinstall.sh +++ b/postinstall.sh @@ -15,4 +15,8 @@ if [ $NODE_ENV == 'production' ]; then find . -name '*.c' -delete # And the tar files (sqlite3 module again) find . -name '*.tar.*' -delete + # Who needs tests and docs? Pffft! - Ignoring errors because find isn't a fan of us deleting directories whilst it's trying to search within them. + find . -type d -name 'test' -exec rm -rf '{}' \; 2> /dev/null || true + find . -type d -name 'doc' -exec rm -rf '{}' \; 2> /dev/null || true + find . -type d -name 'man' -exec rm -rf '{}' \; 2> /dev/null || true fi