From 472f2298e2a158f5235a162347c7da85261d4bdc Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Tue, 29 Oct 2024 16:18:11 +0800 Subject: [PATCH] workflow: update renovate config to use haoqunjiang's personal preset Also moved to `.github/renovate.json` to keep the root directory clean. Compared with the current config, the new preset: - Extends `config:recommended` instead of `config:base` ([it's just a name change, though](https://github.com/renovatebot/renovate/pull/21136)) - Extends `:widenPeerDependencies` - A more nuanced update strategy for `typescript` in case we are several minor versions behind - Groups all Vite packages together for easier management, esp. when Vite 6 is released - Separates 0.x versions of packages from the rest so we can deal with the breaking changes in a more controlled manner. This mainly affects `esbuild`. --- .github/renovate.json | 4 ++++ renovate.json | 19 ------------------- 2 files changed, 4 insertions(+), 19 deletions(-) create mode 100644 .github/renovate.json delete mode 100644 renovate.json diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 00000000..36e5fe00 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["github>haoqunjiang/renovate-presets:npm.json5"] +} diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 8b560879..00000000 --- a/renovate.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:base", - "schedule:weekly", - "group:allNonMajor", - ":semanticCommitTypeAll(chore)" - ], - "rangeStrategy": "bump", - "labels": ["dependencies"], - "ignoreDeps": ["node"], - "packageRules": [ - { - "matchDepNames": ["typescript"], - "rangeStrategy": "replace", - "groupName": "typescript" - } - ] -} -- 2.39.5