From bcdf04a77f604d073e4de7d5ce1304e6a1ff7b2d Mon Sep 17 00:00:00 2001 From: Jan-Marlon Leibl Date: Thu, 21 May 2026 12:49:05 +0200 Subject: [PATCH] chore(deps): support TypeScript 6 (widen peer to ^5 || ^6) - Add typescript ^6.0.0 as devDependency for verified builds - Widen peerDependency to ^5 || ^6 to keep TS 5 consumers supported - tsconfig.build.json: set explicit rootDir (required by TS 6 when outDir is set) - tsconfig.build.json: replace deprecated moduleResolution "node" with "bundler" --- bun.lock | 5 +++-- package.json | 5 +++-- tsconfig.build.json | 3 ++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/bun.lock b/bun.lock index e6544da..4651b39 100644 --- a/bun.lock +++ b/bun.lock @@ -11,9 +11,10 @@ "devDependencies": { "@types/bun": "^1.3.14", "@types/node": "^25.0.0", + "typescript": "^6.0.0", }, "peerDependencies": { - "typescript": "^5", + "typescript": "^5 || ^6", }, }, }, @@ -42,7 +43,7 @@ "ts-algebra": ["ts-algebra@2.0.0", "", {}, "sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw=="], - "typescript": ["typescript@5.8.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ=="], + "typescript": ["typescript@6.0.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw=="], "undici-types": ["undici-types@7.24.6", "", {}, "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg=="], diff --git a/package.json b/package.json index c3ede3a..6fa6c1d 100644 --- a/package.json +++ b/package.json @@ -58,10 +58,11 @@ }, "devDependencies": { "@types/bun": "^1.3.14", - "@types/node": "^25.0.0" + "@types/node": "^25.0.0", + "typescript": "^6.0.0" }, "peerDependencies": { - "typescript": "^5" + "typescript": "^5 || ^6" }, "engines": { "node": ">=18.0.0" diff --git a/tsconfig.build.json b/tsconfig.build.json index 31319c3..6bf917f 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -5,7 +5,8 @@ "emitDeclarationOnly": true, "declaration": true, "outDir": "./dist", - "moduleResolution": "node", + "rootDir": "./src", + "moduleResolution": "bundler", "verbatimModuleSyntax": false }, "include": [