Commit 7fcc73b8 authored by Hunter Loftis's avatar Hunter Loftis

Merge pull request #115 from kuba-kubula/patch-1

Prune any past devDependencies, if present in cache
parents 65ae4c12 d3fac2d7
......@@ -69,7 +69,7 @@ elif test -d $cache_dir/node/node_modules; then
cp -r $cache_dir/node/node_modules $build_dir/
status "Pruning cached dependencies not specified in package.json"
npm prune 2>&1 | indent
npm prune --production 2>&1 | indent
if test -f $cache_dir/node/.heroku/node-version && [ $(cat $cache_dir/node/.heroku/node-version) != "$node_version" ]; then
status "Node version changed since last build; rebuilding dependencies"
......
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