mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 10:33:22 +01:00
chore(frontend): upgrade vue-tsc to 3.x and raise the TypeScript floor
vue-tsc 2.2.x runs on the old Volar core; 3.x cuts a full typecheck of the 196k-LOC frontend from 47.2s to 36.1s with no new diagnostics. The declared TypeScript floor of ^5.7.3 already resolved to 5.9.3, so raising it to ^5.9.3 only makes the constraint honest and satisfies @vue/tsconfig 0.9's `typescript >= 5.8` peer. erasableSyntaxOnly makes the existing style a compiler rule: Vite strips types with esbuild, so enums, namespaces and parameter properties would not survive the transform. The codebase already has none, and the flag reports 0 errors. TypeScript 6 and 7 are deliberately not taken. 7.0 is the native port and drops the JS compiler API, which both vue-tsc and typescript-eslint still require, so each fails to start under it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvDZhPHsNguuX5zqFjDfSD
This commit is contained in:
@@ -9,7 +9,7 @@ RomM is a self-hosted ROM manager and player: scan a game library off disk, enri
|
||||
| | Backend | Frontend |
|
||||
| --------- | ------------------------------------------- | ----------------------------------------- |
|
||||
| Path | `backend/` | `frontend/` |
|
||||
| Language | Python 3.14+ | TypeScript 5.7 (Vue 3) |
|
||||
| Language | Python 3.14+ | TypeScript 5.9 (Vue 3) |
|
||||
| Framework | FastAPI, SQLAlchemy 2.0, Alembic | Vue 3 + Vite, Vuetify, Pinia, Vue Router |
|
||||
| Infra | Redis + RQ (jobs/cache/sessions), Socket.IO | vue-i18n, Socket.IO client |
|
||||
| DB | MariaDB (default), MySQL, PostgreSQL | - |
|
||||
|
||||
@@ -35,7 +35,7 @@ Comprehensive documentation of the RomM frontend: a Vue 3 single-page applicatio
|
||||
| -------------------- | ---------------------------------------------- |
|
||||
| **Framework** | Vue 3.4.27 (Composition API, `<script setup>`) |
|
||||
| **Build Tool** | Vite 6.4.2 |
|
||||
| **Language** | TypeScript 5.7.3 (`noImplicitAny: true`) |
|
||||
| **Language** | TypeScript 5.9.3 (`noImplicitAny: true`) |
|
||||
| **UI Library** | Vuetify 3.9.2 (Material Design), v1 only |
|
||||
| **CSS** | Tailwind CSS 4.3.1 + Vuetify themes, v1 only |
|
||||
| **State Management** | Pinia 3.0.1 (18 stores) |
|
||||
|
||||
76
frontend/package-lock.json
generated
76
frontend/package-lock.json
generated
@@ -50,7 +50,7 @@
|
||||
"@vitejs/plugin-vue": "^6.0.7",
|
||||
"@vitest/ui": "^4.1.5",
|
||||
"@vue/test-utils": "^2.4.9",
|
||||
"@vue/tsconfig": "^0.7.0",
|
||||
"@vue/tsconfig": "^0.9.1",
|
||||
"axe-core": "^4.12.1",
|
||||
"browserslist": "^4.28.8",
|
||||
"eslint": "^10.0.3",
|
||||
@@ -62,14 +62,14 @@
|
||||
"openapi-typescript-codegen": "^0.29.0",
|
||||
"storybook": "^10.2.19",
|
||||
"tsx": "^4.21.0",
|
||||
"typescript": "^5.7.3",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript-eslint": "^8.56.1",
|
||||
"vite": "^8.0.16",
|
||||
"vite-plugin-mkcert": "^1.17.8",
|
||||
"vite-plugin-pwa": "^1.3.0",
|
||||
"vite-plugin-vuetify": "^2.0.4",
|
||||
"vitest": "^4.1.11",
|
||||
"vue-tsc": "^2.2.8"
|
||||
"vue-tsc": "^3.3.11"
|
||||
},
|
||||
"engines": {
|
||||
"node": "24",
|
||||
@@ -5854,13 +5854,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@vue/tsconfig": {
|
||||
"version": "0.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@vue/tsconfig/-/tsconfig-0.7.0.tgz",
|
||||
"integrity": "sha512-ku2uNz5MaZ9IerPPUyOHzyjhXoX2kVJaVf7hL315DC17vS6IiZRmmCPfggNbU16QTvM80+uYYy3eYJB59WCtvg==",
|
||||
"version": "0.9.1",
|
||||
"resolved": "https://registry.npmjs.org/@vue/tsconfig/-/tsconfig-0.9.1.tgz",
|
||||
"integrity": "sha512-buvjm+9NzLCJL29KY1j1991YYJ5e6275OiK+G4jtmfIb+z4POywbdm0wXusT9adVWqe0xqg70TbI7+mRx4uU9w==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"typescript": "5.x",
|
||||
"typescript": ">= 5.8",
|
||||
"vue": "^3.4.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
@@ -12906,14 +12906,14 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/vue-tsc": {
|
||||
"version": "2.2.12",
|
||||
"resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-2.2.12.tgz",
|
||||
"integrity": "sha512-P7OP77b2h/Pmk+lZdJ0YWs+5tJ6J2+uOQPo7tlBnY44QqQSPYvS0qVT4wqDJgwrZaLe47etJLLQRFia71GYITw==",
|
||||
"version": "3.3.11",
|
||||
"resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-3.3.11.tgz",
|
||||
"integrity": "sha512-gOb0B9rtU2+f1dszwPqSH5kAieIF9ReeLhD3kSRNHv5WZZUQz/JdVXW0RTdqhNTMlQkqKzrTTviqKr/4FYZraQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@volar/typescript": "2.4.15",
|
||||
"@vue/language-core": "2.2.12"
|
||||
"@volar/typescript": "2.4.28",
|
||||
"@vue/language-core": "3.3.11"
|
||||
},
|
||||
"bin": {
|
||||
"vue-tsc": "bin/vue-tsc.js"
|
||||
@@ -12922,6 +12922,58 @@
|
||||
"typescript": ">=5.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/vue-tsc/node_modules/@volar/language-core": {
|
||||
"version": "2.4.28",
|
||||
"resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.28.tgz",
|
||||
"integrity": "sha512-w4qhIJ8ZSitgLAkVay6AbcnC7gP3glYM3fYwKV3srj8m494E3xtrCv6E+bWviiK/8hs6e6t1ij1s2Endql7vzQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@volar/source-map": "2.4.28"
|
||||
}
|
||||
},
|
||||
"node_modules/vue-tsc/node_modules/@volar/source-map": {
|
||||
"version": "2.4.28",
|
||||
"resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.28.tgz",
|
||||
"integrity": "sha512-yX2BDBqJkRXfKw8my8VarTyjv48QwxdJtvRgUpNE5erCsgEUdI2DsLbpa+rOQVAJYshY99szEcRDmyHbF10ggQ==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/vue-tsc/node_modules/@volar/typescript": {
|
||||
"version": "2.4.28",
|
||||
"resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.28.tgz",
|
||||
"integrity": "sha512-Ja6yvWrbis2QtN4ClAKreeUZPVYMARDYZl9LMEv1iQ1QdepB6wn0jTRxA9MftYmYa4DQ4k/DaSZpFPUfxl8giw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@volar/language-core": "2.4.28",
|
||||
"path-browserify": "^1.0.1",
|
||||
"vscode-uri": "^3.0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/vue-tsc/node_modules/@vue/language-core": {
|
||||
"version": "3.3.11",
|
||||
"resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-3.3.11.tgz",
|
||||
"integrity": "sha512-QJmpliwAVpC/OxubIByPAhNzsQPRc8/gxlN2qnVzVfIMjMDz/9RnXRFoetjz5yEgXVXyp4LqhXq3V53PjmNzFw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@volar/language-core": "2.4.28",
|
||||
"@vue/compiler-dom": "^3.5.0",
|
||||
"@vue/shared": "^3.5.0",
|
||||
"alien-signals": "^3.2.1",
|
||||
"muggle-string": "^0.4.1",
|
||||
"path-browserify": "^1.0.1",
|
||||
"picomatch": "^4.0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/vue-tsc/node_modules/alien-signals": {
|
||||
"version": "3.2.1",
|
||||
"resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-3.2.1.tgz",
|
||||
"integrity": "sha512-I8FjmltrfnDFoZedi5CG8DghVYNhzb/Ijluz7tCSJH0xpd0484Kowhbb1XDYOxfJpU1p5wnM2X54dA+IfGyD1g==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/vue3-pdf-app": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/vue3-pdf-app/-/vue3-pdf-app-1.0.3.tgz",
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
"@vitejs/plugin-vue": "^6.0.7",
|
||||
"@vitest/ui": "^4.1.5",
|
||||
"@vue/test-utils": "^2.4.9",
|
||||
"@vue/tsconfig": "^0.7.0",
|
||||
"@vue/tsconfig": "^0.9.1",
|
||||
"axe-core": "^4.12.1",
|
||||
"browserslist": "^4.28.8",
|
||||
"eslint": "^10.0.3",
|
||||
@@ -91,14 +91,14 @@
|
||||
"openapi-typescript-codegen": "^0.29.0",
|
||||
"storybook": "^10.2.19",
|
||||
"tsx": "^4.21.0",
|
||||
"typescript": "^5.7.3",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript-eslint": "^8.56.1",
|
||||
"vite": "^8.0.16",
|
||||
"vite-plugin-mkcert": "^1.17.8",
|
||||
"vite-plugin-pwa": "^1.3.0",
|
||||
"vite-plugin-vuetify": "^2.0.4",
|
||||
"vitest": "^4.1.11",
|
||||
"vue-tsc": "^2.2.8"
|
||||
"vue-tsc": "^3.3.11"
|
||||
},
|
||||
"overrides": {
|
||||
"rolldown": "1.0.1",
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
"composite": true,
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||
"lib": ["dom", "esnext"],
|
||||
"erasableSyntaxOnly": true,
|
||||
"noImplicitAny": true,
|
||||
"paths": {
|
||||
"@/*": ["./src/*"],
|
||||
|
||||
Reference in New Issue
Block a user