Commit f40e46fd authored by Zeke Sikelianos's avatar Zeke Sikelianos

Merge pull request #88 from heroku/multi-friendly-caching

Blow away the cached node_modules directory instead of the entire cache.
parents 866f4a4f da02c952
...@@ -72,7 +72,7 @@ status "Installing dependencies" ...@@ -72,7 +72,7 @@ status "Installing dependencies"
npm install --userconfig $build_dir/.npmrc --production 2>&1 | indent npm install --userconfig $build_dir/.npmrc --production 2>&1 | indent
status "Caching node_modules directory for future builds" status "Caching node_modules directory for future builds"
rm -rf $cache_dir rm -rf $cache_dir/node_modules
mkdir -p $cache_dir mkdir -p $cache_dir
test -d $build_dir/node_modules && cp -r $build_dir/node_modules $cache_dir/ test -d $build_dir/node_modules && cp -r $build_dir/node_modules $cache_dir/
......
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