Merge "Do not run npm shrinkwrap if npm-shrinkwrap.json already exists"

This commit is contained in:
Jenkins 2016-04-11 19:37:08 +00:00 committed by Gerrit Code Review
commit 5c6ee77f47
1 changed files with 5 additions and 3 deletions

View File

@ -269,9 +269,11 @@
npm run {command} --silent
fi
# Execute shrinkwrap, and output the dependencies that were used.
npm prune # https://github.com/npm/npm/issues/6298
npm shrinkwrap
# If no shrinkwrap exists, generate it.
if [ ! -f ./npm-shrinkwrap.json ]; then
npm prune # https://github.com/npm/npm/issues/6298
npm shrinkwrap
fi
- builder:
name: xvfb-start