From 6e0638f3bec0bbe35bd0f132f263be99b44009e1 Mon Sep 17 00:00:00 2001 From: Paulo Castro Date: Thu, 21 Jan 2021 21:16:15 +0000 Subject: [PATCH] Improve build-time checks (automation/test-lock-deduplicated.sh) Change-type: patch --- automation/test-lock-deduplicated.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/automation/test-lock-deduplicated.sh b/automation/test-lock-deduplicated.sh index 6c343924..b0353976 100755 --- a/automation/test-lock-deduplicated.sh +++ b/automation/test-lock-deduplicated.sh @@ -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