From 6bf9bd77760d430c6ca3c12f1b4e1de44bef6f8c Mon Sep 17 00:00:00 2001 From: erseco Date: Tue, 23 Jun 2026 07:58:49 +0100 Subject: [PATCH] build(deps-dev): bump typescript from 5.9.3 to 6.0.3 Supersedes the failing Dependabot PR #45, which broke for two reasons that a plain version bump can't resolve: * @nextcloud/eslint-config@8 still pins its TypeScript peer to ^5.0.2, so `npm install` fails with ERESOLVE. TypeScript 6 works fine with ESLint 8 and the bundled @typescript-eslint here, so add a minimal `overrides` entry pinning typescript across the tree. Drop it once the Nextcloud preset (v9) officially lists TS 6 in its peer range. * TypeScript 6 deprecates the `baseUrl` compiler option (error TS5101), which fails `vue-tsc --noEmit`. Remove `baseUrl` and rewrite the path alias to "@/*": ["./src/*"]; `paths` resolves relative to the config dir without `baseUrl` (supported since TS 4.1). webpack and vitest resolve `@/` via their own alias config, so they are unaffected. All CI checks pass: Biome, ESLint, vue-tsc, Vitest (54 tests), webpack build. --- package-lock.json | 8 ++++---- package.json | 5 ++++- tsconfig.json | 3 +-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index c9149ab..5b49c81 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,7 +36,7 @@ "sass-loader": "^16.0.2", "style-loader": "^4.0.0", "ts-loader": "^9.6.0", - "typescript": "^5.4.5", + "typescript": "^6.0.3", "vitest": "^4.1.9", "vue-loader": "^17.4.0", "vue-tsc": "^3.3.5", @@ -14534,9 +14534,9 @@ } }, "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "devOptional": true, "license": "Apache-2.0", "bin": { diff --git a/package.json b/package.json index 2964c87..f8ceeb2 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "sass-loader": "^16.0.2", "style-loader": "^4.0.0", "ts-loader": "^9.6.0", - "typescript": "^5.4.5", + "typescript": "^6.0.3", "vitest": "^4.1.9", "vue-loader": "^17.4.0", "vue-tsc": "^3.3.5", @@ -53,6 +53,9 @@ "browserslist": [ "extends @nextcloud/browserslist-config" ], + "overrides": { + "typescript": "$typescript" + }, "engines": { "node": "^20.0.0 || ^22.0.0 || ^24.0.0", "npm": "^10.0.0 || ^11.0.0" diff --git a/tsconfig.json b/tsconfig.json index 1dde7e4..78402ef 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,9 +17,8 @@ "resolveJsonModule": true, "skipLibCheck": true, "useDefineForClassFields": true, - "baseUrl": ".", "paths": { - "@/*": ["src/*"] + "@/*": ["./src/*"] }, "types": ["node", "vitest/globals"] },