Update dependency typescript to v6 (#32927)

* Update dependency typescript to v6

* Switch to unplugin-vts

Workaround for https://github.com/qmhc/unplugin-dts/issues/467

And tweak tsconfigs

* tweak tsconfig

* Make tsc happy

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
renovate[bot]
2026-04-22 12:28:54 +00:00
committed by GitHub
co-authored by renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Michael Telatynski
parent 021e222719
commit 2d16498fe6
32 changed files with 403 additions and 357 deletions
+4 -5
View File
@@ -40,9 +40,9 @@
"matrix-widget-api": "^1.17.0",
"rollup-plugin-external-globals": "^0.13.0",
"semver": "^7.6.3",
"typescript": "^5.7.3",
"typescript": "^6.0.0",
"unplugin-dts": "1.0.0-beta.6",
"vite": "^8.0.0",
"vite-plugin-dts": "^4.5.0",
"vitest": "^4.0.0",
"vitest-sonar-reporter": "^3.0.0"
},
@@ -50,8 +50,8 @@
"@matrix-org/react-sdk-module-api": "*",
"@types/react": "*",
"@types/react-dom": "*",
"matrix-widget-api": "*",
"matrix-web-i18n": "*",
"matrix-widget-api": "*",
"react": "^19"
},
"peerDependenciesMeta": {
@@ -64,6 +64,5 @@
"matrix-web-i18n": {
"optional": true
}
},
"dependencies": {}
}
}
+1
View File
@@ -1,6 +1,7 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"compilerOptions": {
"rootDir": "./src",
"target": "esnext",
"lib": ["dom", "es2022", "esnext"],
"esModuleInterop": true,
+1 -1
View File
@@ -8,7 +8,7 @@ Please see LICENSE files in the repository root for full details.
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
import { defineConfig } from "vite";
import dts from "vite-plugin-dts";
import dts from "unplugin-dts/vite";
import externalGlobals from "rollup-plugin-external-globals";
import packageJson from "./package.json" with { type: "json" };