Upgrade to TypeScript 7 (#34208)
* Upgrade to TypeScript 7 for massive tsc speed gains Those on WebStorm will want to upgrade to EAP to reap the benefits of the new TSGo compiler Some things (module-api & shared-components) which utilise unplugin-dts (and api-extractor) need to hold a copy of ts6 for its conventional lib format and API. TS7 ships with no API until TS7.1. Other things which use eslint also need ts6 for typescript-eslint. Some type changes were necessary as TS7 caught some issues. * Add knip exception * Fix bad merge
This commit is contained in:
@@ -39,15 +39,16 @@
|
||||
"devDependencies": {
|
||||
"@matrix-org/react-sdk-module-api": "^2.5.0",
|
||||
"@microsoft/api-extractor": "^7.49.1",
|
||||
"@types/node": "catalog:",
|
||||
"@types/node": "catalog:ts6",
|
||||
"@types/react": "catalog:",
|
||||
"@types/react-dom": "catalog:",
|
||||
"@types/semver": "^7.5.8",
|
||||
"@typescript/native": "catalog:",
|
||||
"matrix-widget-api": "^1.17.0",
|
||||
"rollup-plugin-external-globals": "^0.13.0",
|
||||
"semver": "^7.6.3",
|
||||
"shared-types": "workspace:*",
|
||||
"typescript": "catalog:",
|
||||
"typescript": "catalog:ts6",
|
||||
"unplugin-dts": "catalog:",
|
||||
"vite": "catalog:",
|
||||
"vitest": "catalog:"
|
||||
|
||||
@@ -30,6 +30,10 @@ export default defineConfig({
|
||||
dts({
|
||||
bundleTypes: {
|
||||
configPath: "./api-extractor.json",
|
||||
invokeOptions: {
|
||||
localBuild: !!process.env.CI,
|
||||
typescriptCompilerFolder: resolve(require.resolve("@typescript/old"), "../.."),
|
||||
},
|
||||
},
|
||||
}),
|
||||
externalGlobals({
|
||||
|
||||
Reference in New Issue
Block a user