summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-04-15 13:02:34 +0200
committerGitHub <noreply@github.com>2021-04-15 12:02:34 +0100
commitf7830041f4538633362de6607bbfc8c5f645f0a7 (patch)
tree60b662b129a96395569aa146593f8c06e8cbcd6f /Makefile
parent9d07facdebffdd686108ad3b86641b85289d024b (diff)
downloadgitea-f7830041f4538633362de6607bbfc8c5f645f0a7.tar.gz
gitea-f7830041f4538633362de6607bbfc8c5f645f0a7.zip
Make build scripts compatible with node 12 (#15479)
* Make build scripts compatible with node 12 "fs/promises" is not in node 12, use a more compatible way to import it. Also, lock major down versions of the image build dependencies to prevent future surprises. * add node_modules dependency
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7bd479ff6b..2cd3d383be 100644
--- a/Makefile
+++ b/Makefile
@@ -736,8 +736,8 @@ generate-gitignore:
GO111MODULE=on $(GO) run build/generate-gitignores.go
.PHONY: generate-images
-generate-images:
- npm install --no-save --no-package-lock fabric imagemin-zopfli
+generate-images: | node_modules
+ npm install --no-save --no-package-lock fabric@4 imagemin-zopfli@7
node build/generate-images.js $(TAGS)
.PHONY: generate-manpage