Hold TypeScript at 5 in the weekly npm update

This commit is contained in:
Matthijs Iriks committed 2026-12-04 04:44:59 +01:00
1 parent c05950c0e3
commit b23b0c1c53
3 files changed
+13

No files matched your search

+5
View File
@@ -42,6 +42,8 @@ USER = "deploy-bot"
BRANCH_PREFIX = "renovate/deps-"
UI_BRANCH_PREFIX = "renovate/ui-deps-"
MIN_AGE = datetime.timedelta(hours=48)
# npm packages held at a major until what depends on them works with the next one (remove the line then).
HELD = {"typescript": 5} # vue-tsc (the type check of the screens) does not run on TypeScript 7 yet
SECTIONS = ("require", "require-dev")
@@ -125,6 +127,9 @@ def npm_targets(outdated, published, now):
if not candidate or candidate == info["current"] or "-" in candidate:
continue
if name in HELD and int(candidate.split(".")[0]) > HELD[name]:
continue
when = published(name, candidate)
if when is not None and now - when >= MIN_AGE: