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:
committed by
Michael Krotscheck
parent
73f591ba4b
commit
65590703b0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user