Skip to content

Commit 9858bd7

Browse files
bdehamerCopilot
andauthored
Upgrade TypeScript to 6.x (#1655)
TypeScript 6.0 no longer automatically includes all @types/* packages found in node_modules. Add explicit "types" entries so @types/node and @types/jest continue to resolve. - tsconfig.base.json: include node types by default - packages/cli/tsconfig.json: also include jest (tests compiled here) - packages/mock/tsconfig.json: also include jest (*.test.ts outside __tests__/) Signed-off-by: Brian DeHamer <bdehamer@github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8cef20d commit 9858bd7

5 files changed

Lines changed: 11 additions & 8 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929
"nock": "^13.5.5",
3030
"prettier": "^3.8.3",
3131
"shx": "^0.4.0",
32-
"typescript": "^5.9.3",
32+
"typescript": "^6.0.3",
3333
"typescript-eslint": "^8.59.4"
3434
},
3535
"optionalDependencies": {
3636
"@swc/core-darwin-arm64": "1.5.0",
3737
"@swc/core-darwin-x64": "1.5.0",
38+
"@swc/core-linux-arm-gnueabihf": "1.5.0 ",
3839
"@swc/core-linux-arm64-gnu": "1.5.0",
3940
"@swc/core-linux-arm64-musl": "1.5.0",
40-
"@swc/core-linux-arm-gnueabihf": "1.5.0 ",
4141
"@swc/core-linux-x64-gnu": "1.5.0",
4242
"@swc/core-linux-x64-musl": "1.5.0",
4343
"@swc/core-win32-arm64-msvc": "1.5.0",

packages/cli/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"compilerOptions": {
44
"importHelpers": true,
55
"rootDir": "src",
6-
"outDir": "dist"
6+
"outDir": "dist",
7+
"types": ["node", "jest"]
78
},
89
"exclude": ["./dist"],
910
"references": [

packages/mock/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"compilerOptions": {
44
"rootDir": "src",
55
"outDir": "dist",
6-
"composite": true
6+
"composite": true,
7+
"types": ["node", "jest"]
78
},
89
"exclude": [
910
"./dist",

tsconfig.base.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "@tsconfig/node20/tsconfig.json",
33
"compilerOptions": {
44
"declaration": true,
5+
"types": ["node"],
56
"noFallthroughCasesInSwitch": true,
67
"noImplicitOverride": true,
78
"allowUnreachableCode": false,

0 commit comments

Comments
 (0)