Commit 12b6a856 authored by Hunter Loftis's avatar Hunter Loftis Committed by GitHub

Merge pull request #366 from heroku/remove-caches-from-slug

no need to store these things in the slug
parents 493ce9f1 5018f519
...@@ -164,6 +164,7 @@ cache_build() { ...@@ -164,6 +164,7 @@ cache_build() {
save_cache_directories "$BUILD_DIR" "$CACHE_DIR" $cache_directories save_cache_directories "$BUILD_DIR" "$CACHE_DIR" $cache_directories
fi fi
save_signature save_signature
remove_caches_from_slug "$BUILD_DIR"
} }
header "Caching build" header "Caching build"
......
...@@ -56,6 +56,12 @@ restore_cache_directories() { ...@@ -56,6 +56,12 @@ restore_cache_directories() {
done done
} }
remove_caches_from_slug() {
local build_dir=${1:-}
rm -rf "$build_dir/.npm"
rm -rf "$build_dir/.cache/yarn"
}
clear_cache() { clear_cache() {
rm -rf $CACHE_DIR/node rm -rf $CACHE_DIR/node
mkdir -p $CACHE_DIR/node mkdir -p $CACHE_DIR/node
......
...@@ -35,8 +35,8 @@ yarn_node_modules() { ...@@ -35,8 +35,8 @@ yarn_node_modules() {
if $(yarn check 1>/dev/null); then if $(yarn check 1>/dev/null); then
echo "yarn.lock and package.json match" echo "yarn.lock and package.json match"
else else
error "yarn.lock is outdated. run \`yarn install\`, commit the updated \`yarn.lock\`, and redeploy" echo "yarn.lock is outdated"
return 1 warning "yarn.lock is outdated." "run \`yarn install\`, commit the updated \`yarn.lock\`, and redeploy"
fi fi
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment