0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-01-24 23:51:04 +01:00

Strip prerelease tag from NODE_VERSION

This commit is contained in:
silverwind 2026-01-15 18:29:56 +01:00
parent 4a9ac53862
commit 021297da2a
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443

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