]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
workflow: update renovate config to use haoqunjiang's personal preset
authorHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 29 Oct 2024 08:18:11 +0000 (16:18 +0800)
committerCédric Exbrayat <cexbrayat@users.noreply.github.com>
Tue, 29 Oct 2024 08:58:47 +0000 (09:58 +0100)
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 [new file with mode: 0644]
renovate.json [deleted file]

diff --git a/.github/renovate.json b/.github/renovate.json
new file mode 100644 (file)
index 0000000..36e5fe0
--- /dev/null
@@ -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 (file)
index 8b56087..0000000
+++ /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"
-    }
-  ]
-}