From 2146f1e230ff4025e5df8ab519f2e7e98195ba43 Mon Sep 17 00:00:00 2001 From: Massimiliano D'Elia Date: Mon, 25 May 2026 11:42:54 +0200 Subject: [PATCH] ci(renovate): pin vite-plugin-dts to <5 pending moduleResolution migration --- .github/renovate.json5 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index d50bdd4b..e68500d3 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -72,6 +72,17 @@ matchManagers: [ 'npm' ], matchPackageNames: [ '@types/react', '@types/react-dom' ], enabled: false, + }, + // vite-plugin-dts v5 splits its implementation into a separate `unplugin-dts` package + // and exposes its types exclusively via package.json `exports` subpaths, which require + // TypeScript's `moduleResolution: "node16" | "nodenext" | "bundler"`. Our tsconfig still + // uses classic `node` resolution (see the @ts-expect-error comments in vite.config.ts), + // so v5 fails to type-check with "has no default export". Keep pinned at 4.x until we + // migrate moduleResolution. + { + matchManagers: [ 'npm' ], + matchPackageNames: [ 'vite-plugin-dts' ], + allowedVersions: '<5.0.0', } ], semanticCommits: 'enabled',