Skip to content

Commit 5504521

Browse files
build(js-legacy): upgrade TypeScript to 6.0 (#88)
Bump typescript to ^6.0.3 and adjust tsconfig for TS6 compatibility: - set moduleResolution to node10 (Node alias removed in TS6) - add ignoreDeprecations "6.0" for the renamed option - pin lib/types explicitly so the default lib set is unaffected - add rootDir to the cjs/esm build configs Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent f822b07 commit 5504521

5 files changed

Lines changed: 9 additions & 3 deletions

File tree

clients/js-legacy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"ts-node": "^10.9.2",
7373
"tslib": "^2.8.1",
7474
"typedoc": "^0.28.19",
75-
"typescript": "^5.7.2"
75+
"typescript": "^6.0.3"
7676
},
7777
"prettier": "@solana/prettier-config-solana"
7878
}

clients/js-legacy/tsconfig.base.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"compilerOptions": {
44
"target": "ESNext",
55
"module": "ESNext",
6-
"moduleResolution": "Node",
6+
"moduleResolution": "node10",
7+
"ignoreDeprecations": "6.0",
8+
"lib": ["ES2020", "DOM"],
9+
"types": ["node"],
710
"esModuleInterop": true,
811
"isolatedModules": true,
912
"noEmitOnError": true,

clients/js-legacy/tsconfig.cjs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "./tsconfig.base.json",
33
"include": ["src"],
44
"compilerOptions": {
5+
"rootDir": "./src",
56
"outDir": "lib/cjs",
67
"target": "ES2016",
78
"module": "CommonJS",

clients/js-legacy/tsconfig.esm.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "./tsconfig.base.json",
33
"include": ["src"],
44
"compilerOptions": {
5+
"rootDir": "./src",
56
"outDir": "lib/esm",
67
"declarationDir": "lib/types",
78
"target": "ES2020",

clients/js-legacy/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"include": ["src", "test"],
44
"compilerOptions": {
55
"noEmit": true,
6-
"skipLibCheck": true
6+
"skipLibCheck": true,
7+
"types": ["node", "mocha"]
78
}
89
}

0 commit comments

Comments
 (0)