Skip to content

Commit 5163fb2

Browse files
committed
chore: upgrade to TypeScript 6
1 parent 55807ed commit 5163fb2

7 files changed

Lines changed: 27 additions & 19 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@
2727
"@lerna-lite/cli": "^4.11.5",
2828
"@lerna-lite/publish": "^4.11.5",
2929
"@lerna-lite/run": "^4.11.5",
30+
"@types/node": "^20.19.39",
3031
"@vitest/eslint-plugin": "^1.6.14",
3132
"commitlint": "^20.5.0",
3233
"concurrently": "^9.2.1",
3334
"eslint": "^9.39.4",
3435
"eslint-config-satya164": "^5.1.8",
3536
"globals": "^17.4.0",
3637
"prettier": "^3.8.1",
37-
"typescript": "^5.8.3"
38+
"typescript": "^6.0.3"
3839
},
3940
"resolutions": {
4041
"@rspress/plugin-llms@2.0.0-beta.34": "patch:@rspress/plugin-llms@npm%3A2.0.0-beta.34#./.yarn/patches/@rspress-plugin-llms-npm-2.0.0-beta.34-d374542281.patch"

packages/create-react-native-library/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"kleur": "^4.1.5",
5353
"ora": "^9.3.0",
5454
"pigment": "^0.4.4",
55-
"typescript": "^5.8.3",
55+
"typescript": "^6.0.3",
5656
"validate-npm-package-name": "^7.0.2"
5757
},
5858
"devDependencies": {

packages/create-react-native-library/templates/common/$package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<% if (project.moduleConfig === 'nitro-modules' || project.viewConfig === 'nitro-view') { -%>
8585
"react-native-nitro-modules": "^<%- versions.nitro %>",
8686
<% } -%>
87-
"typescript": "^6.0.2"
87+
"typescript": "^6.0.3"
8888
},
8989
"peerDependencies": {
9090
"react": "*",

packages/create-react-native-library/templates/common/tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
"noEmit": true,
1717
"noFallthroughCasesInSwitch": true,
1818
"noImplicitReturns": true,
19-
"noImplicitUseStrict": false,
20-
"noStrictGenericChecks": false,
2119
"noUncheckedIndexedAccess": true,
2220
"noUnusedLocals": true,
2321
"noUnusedParameters": true,

packages/react-native-builder-bob/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"kleur": "^4.1.5",
6565
"prompts": "^2.4.2",
6666
"react-native-monorepo-config": "^0.3.3",
67-
"typescript": "^5.8.3",
67+
"typescript": "^6.0.3",
6868
"which": "^6.0.1",
6969
"yargs": "^18.0.0"
7070
},

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
"moduleResolution": "nodenext",
1616
"noFallthroughCasesInSwitch": true,
1717
"noImplicitReturns": true,
18-
"noImplicitUseStrict": false,
19-
"noStrictGenericChecks": false,
2018
"noUncheckedIndexedAccess": true,
2119
"noUnusedLocals": true,
2220
"noUnusedParameters": true,
@@ -25,6 +23,7 @@
2523
"skipLibCheck": true,
2624
"strict": true,
2725
"target": "esnext",
26+
"types": ["node"],
2827
"useDefineForClassFields": true,
2928
"verbatimModuleSyntax": true
3029
},

yarn.lock

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3933,6 +3933,15 @@ __metadata:
39333933
languageName: node
39343934
linkType: hard
39353935

3936+
"@types/node@npm:^20.19.39":
3937+
version: 20.19.39
3938+
resolution: "@types/node@npm:20.19.39"
3939+
dependencies:
3940+
undici-types: "npm:~6.21.0"
3941+
checksum: 10c0/1d16da7b5f47a7415b827fcf3b94d279febf4c14671afec74a03e47856b5270023d9beb1b9aeab4d3b622fd97d61a60206cfc2cca588663181331bc592468289
3942+
languageName: node
3943+
linkType: hard
3944+
39363945
"@types/normalize-package-data@npm:^2.4.4":
39373946
version: 2.4.4
39383947
resolution: "@types/normalize-package-data@npm:2.4.4"
@@ -5466,7 +5475,7 @@ __metadata:
54665475
kleur: "npm:^4.1.5"
54675476
ora: "npm:^9.3.0"
54685477
pigment: "npm:^0.4.4"
5469-
typescript: "npm:^5.8.3"
5478+
typescript: "npm:^6.0.3"
54705479
validate-npm-package-name: "npm:^7.0.2"
54715480
bin:
54725481
create-react-native-library: bin/create-react-native-library
@@ -10517,7 +10526,7 @@ __metadata:
1051710526
mock-stdin: "npm:^1.0.0"
1051810527
prompts: "npm:^2.4.2"
1051910528
react-native-monorepo-config: "npm:^0.3.3"
10520-
typescript: "npm:^5.8.3"
10529+
typescript: "npm:^6.0.3"
1052110530
vitest: "npm:^4.1.2"
1052210531
which: "npm:^6.0.1"
1052310532
yargs: "npm:^18.0.0"
@@ -11014,14 +11023,15 @@ __metadata:
1101411023
"@lerna-lite/cli": "npm:^4.11.5"
1101511024
"@lerna-lite/publish": "npm:^4.11.5"
1101611025
"@lerna-lite/run": "npm:^4.11.5"
11026+
"@types/node": "npm:^20.19.39"
1101711027
"@vitest/eslint-plugin": "npm:^1.6.14"
1101811028
commitlint: "npm:^20.5.0"
1101911029
concurrently: "npm:^9.2.1"
1102011030
eslint: "npm:^9.39.4"
1102111031
eslint-config-satya164: "npm:^5.1.8"
1102211032
globals: "npm:^17.4.0"
1102311033
prettier: "npm:^3.8.1"
11024-
typescript: "npm:^5.8.3"
11034+
typescript: "npm:^6.0.3"
1102511035
languageName: unknown
1102611036
linkType: soft
1102711037

@@ -11819,23 +11829,23 @@ __metadata:
1181911829
languageName: node
1182011830
linkType: hard
1182111831

11822-
"typescript@npm:^5.8.3":
11823-
version: 5.9.3
11824-
resolution: "typescript@npm:5.9.3"
11832+
"typescript@npm:^6.0.3":
11833+
version: 6.0.3
11834+
resolution: "typescript@npm:6.0.3"
1182511835
bin:
1182611836
tsc: bin/tsc
1182711837
tsserver: bin/tsserver
11828-
checksum: 10c0/6bd7552ce39f97e711db5aa048f6f9995b53f1c52f7d8667c1abdc1700c68a76a308f579cd309ce6b53646deb4e9a1be7c813a93baaf0a28ccd536a30270e1c5
11838+
checksum: 10c0/4a25ff5045b984370f48f196b3a0120779b1b343d40b9a68d114ea5e5fff099809b2bb777576991a63a5cd59cf7bffd96ff6fe10afcefbcb8bd6fb96ad4b6606
1182911839
languageName: node
1183011840
linkType: hard
1183111841

11832-
"typescript@patch:typescript@npm%3A^5.8.3#optional!builtin<compat/typescript>":
11833-
version: 5.9.3
11834-
resolution: "typescript@patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"
11842+
"typescript@patch:typescript@npm%3A^6.0.3#optional!builtin<compat/typescript>":
11843+
version: 6.0.3
11844+
resolution: "typescript@patch:typescript@npm%3A6.0.3#optional!builtin<compat/typescript>::version=6.0.3&hash=5786d5"
1183511845
bin:
1183611846
tsc: bin/tsc
1183711847
tsserver: bin/tsserver
11838-
checksum: 10c0/ad09fdf7a756814dce65bc60c1657b40d44451346858eea230e10f2e95a289d9183b6e32e5c11e95acc0ccc214b4f36289dcad4bf1886b0adb84d711d336a430
11848+
checksum: 10c0/2f25c74e65663c248fa1ade2b8459d9ce5372ff9dad07067310f132966ebec1d93f6c42f0baf77a6b6a7a91460463f708e6887013aaade22111037457c6b25df
1183911849
languageName: node
1184011850
linkType: hard
1184111851

0 commit comments

Comments
 (0)