Improve build-time checks (automation/test-lock-deduplicated.sh)

Change-type: patch
This commit is contained in:
Paulo Castro 2021-01-21 21:16:15 +00:00
parent 3d1f16c0ab
commit 6e0638f3be

View File

@ -10,7 +10,10 @@ npm i
if ! diff -q npm-shrinkwrap.json npm-shrinkwrap.json.old > /dev/null; then
rm npm-shrinkwrap.json.old
echo "** npm-shrinkwrap.json was not deduplicated or not fully committed - FAIL **";
echo "** Please run 'npm ci', followed by 'npm dedupe' **";
echo "** This can usually be fixed with: **";
echo "** git checkout master -- npm-shrinkwrap.json **";
echo "** rm -rf node_modules **";
echo "** npm install && npm dedupe && npm install **";
exit 1;
fi