0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-01-18 18:47:03 +01:00

Merge 021297da2ad14dcb74207a11cc98d273279aef0c into 393c854f7bf2ae91262f8ce111c26c4e08451e17

This commit is contained in:
silverwind 2026-01-16 15:51:08 -08:00 committed by GitHub
commit 55022e99f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,7 +100,7 @@ GITHUB_REF_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
# Enable typescript support in Node.js before 22.18
# TODO: Remove this once we can raise the minimum Node.js version to 22.18 (alpine >= 3.23)
NODE_VERSION := $(shell printf "%03d%03d%03d" $(shell node -v 2>/dev/null | cut -c2- | tr '.' ' '))
NODE_VERSION := $(shell printf "%03d%03d%03d" $(shell node -v 2>/dev/null | cut -c2- | sed 's/-.*//' | tr '.' ' '))
ifeq ($(shell test "$(NODE_VERSION)" -lt "022018000"; echo $$?),0)
NODE_VARS := NODE_OPTIONS="--experimental-strip-types"
else