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

If npm-shrinkwrap.json already exists, it makes no sense to
recreate it.

Change-Id: Ia243d0ae783cf034c43a7dcf773459aa857a51ca
This commit is contained in:
Vitaly Kramskikh
2016-04-07 18:35:13 +03:00
committed by Michael Krotscheck
parent 73f591ba4b
commit 65590703b0

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