summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ca273fd507..cb4304b812 100644
--- a/Makefile
+++ b/Makefile
@@ -292,7 +292,7 @@ fmt-check:
checks: checks-frontend checks-backend
.PHONY: checks-frontend
-checks-frontend: svg-check
+checks-frontend: lockfile-check svg-check
.PHONY: checks-backend
checks-backend: swagger-check swagger-validate
@@ -700,6 +700,17 @@ svg-check: svg
exit 1; \
fi
+.PHONY: lockfile-check
+lockfile-check:
+ npm install --package-lock-only
+ @diff=$$(git diff package-lock.json); \
+ if [ -n "$$diff" ]; then \
+ echo "package-lock.json is inconsistent with package.json"; \
+ echo "Please run 'npm install --package-lock-only' and commit the result:"; \
+ echo "$${diff}"; \
+ exit 1; \
+ fi
+
.PHONY: update-translations
update-translations:
mkdir -p ./translations