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
|
npm run {command} --silent
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Execute shrinkwrap, and output the dependencies that were used.
|
# If no shrinkwrap exists, generate it.
|
||||||
npm prune # https://github.com/npm/npm/issues/6298
|
if [ ! -f ./npm-shrinkwrap.json ]; then
|
||||||
npm shrinkwrap
|
npm prune # https://github.com/npm/npm/issues/6298
|
||||||
|
npm shrinkwrap
|
||||||
|
fi
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: xvfb-start
|
name: xvfb-start
|
||||||
|
|||||||
Reference in New Issue
Block a user