chore(deps): upgrade to TypeScript 6, Vite 8, and @vitejs/plugin-react 6

- TypeScript 5.9 → 6.0: add types: ["node"] to base tsconfig, remove
  deprecated baseUrl where unused, add ignoreDeprecations for docs app,
  fix node_modules/ prefix imports with proper package exports
- Vite 7 → 8 + @vitejs/plugin-react 5 → 6: add vite as direct dep
- Add CSS module type declarations for TS6 compatibility
- Update renovate test for pnpm v11 allowBuilds migration
This commit is contained in:
Thomas Camlong committed 2026-06-11 22:28:21 +02:00
1 parent f1fb760c69
commit 38ce6edd17
14 files changed
+801 -803

No files matched your search

+8 -5
View File
@@ -1,22 +1,25 @@
import fs from "fs/promises";
import { join } from "path";
import json5 from "json5";
import { parse } from "yaml";
import { describe, test } from "vitest";
describe("Renovate configuration tests", () => {
test("automerge should be disabled for onlyBuiltDependencies", async () => {
const packageJson = await import("../package.json");
test("automerge should be disabled for allowBuilds dependencies", async () => {
const workspaceYaml = await fs.readFile(join(__dirname, "../pnpm-workspace.yaml"), "utf-8").then(parse);
const renovateConfig = await fs.readFile(join(__dirname, "../.github/renovate.json5"), "utf-8").then(json5.parse);
const onlyBuiltDependencies = packageJson.pnpm.onlyBuiltDependencies;
const allowedBuilds = Object.entries(workspaceYaml.allowBuilds ?? {})
.filter(([, allowed]) => allowed === true)
.map(([name]) => name);
const automergeDisabledDeps = renovateConfig.packageRules
.filter((rule: any) => rule.automerge === false)
.flatMap((rule: any) => rule.matchPackageNames || []);
const missingDeps = onlyBuiltDependencies.filter((dep: string) => !automergeDisabledDeps.includes(dep));
const missingDeps = allowedBuilds.filter((dep: string) => !automergeDisabledDeps.includes(dep));
if (missingDeps.length > 0) {
throw new Error(
`The following onlyBuiltDependencies are missing automerge disable rules in renovate.json5: ${missingDeps.join(", ")}`,
`The following allowBuilds dependencies are missing automerge disable rules in renovate.json5: ${missingDeps.join(", ")}`,
);
}
});