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() {
save_cache_directories "$BUILD_DIR" "$CACHE_DIR" $cache_directories
fi
save_signature
remove_caches_from_slug "$BUILD_DIR"
}
header "Caching build"
......
......@@ -56,6 +56,12 @@ restore_cache_directories() {
done
}
remove_caches_from_slug() {
local build_dir=${1:-}
rm -rf "$build_dir/.npm"
rm -rf "$build_dir/.cache/yarn"
}
clear_cache() {
rm -rf $CACHE_DIR/node
mkdir -p $CACHE_DIR/node
......
......@@ -35,8 +35,8 @@ yarn_node_modules() {
if $(yarn check 1>/dev/null); then
echo "yarn.lock and package.json match"
else
error "yarn.lock is outdated. run \`yarn install\`, commit the updated \`yarn.lock\`, and redeploy"
return 1
echo "yarn.lock is outdated"
warning "yarn.lock is outdated." "run \`yarn install\`, commit the updated \`yarn.lock\`, and redeploy"
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