Skip to content

Commit ef7ad67

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

10 files changed

Lines changed: 33 additions & 22 deletions

File tree

docs/rspress.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { transformerNotationHighlight } from '@shikijs/transformers';
44

55
export default withCallstackPreset(
66
{
7-
context: __dirname,
7+
context: import.meta.dirname,
88
docs: {
99
title: 'Bob - Create and build React Native libraries',
1010
description:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"eslint-config-satya164": "^5.1.8",
3535
"globals": "^17.4.0",
3636
"prettier": "^3.8.1",
37-
"typescript": "^5.8.3"
37+
"typescript": "^6.0.3"
3838
},
3939
"resolutions": {
4040
"@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: 2 additions & 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": {
@@ -61,6 +61,7 @@
6161
"@types/dedent": "^0.7.2",
6262
"@types/ejs": "^3.1.5",
6363
"@types/fs-extra": "^11.0.4",
64+
"@types/node": "^20.19.39",
6465
"@types/validate-npm-package-name": "^4.0.2",
6566
"del-cli": "^7.0.0"
6667
}

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/create-react-native-library/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"outDir": "./lib",
88
"tsBuildInfoFile": ".tsbuildinfo",
99
"declaration": true,
10-
"sourceMap": true
10+
"sourceMap": true,
11+
"types": ["node"]
1112
},
1213
"include": ["src/**/*", "package.json"],
1314
"exclude": ["lib", "templates"]

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

Lines changed: 2 additions & 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
},
@@ -77,6 +77,7 @@
7777
"@types/fs-extra": "^11.0.4",
7878
"@types/json5": "^2.2.0",
7979
"@types/mock-fs": "^4.13.4",
80+
"@types/node": "^20.19.39",
8081
"@types/prompts": "^2.4.9",
8182
"@types/which": "^3.0.4",
8283
"@types/yargs": "^17.0.35",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"outDir": "./lib",
88
"tsBuildInfoFile": ".tsbuildinfo",
99
"declaration": true,
10-
"sourceMap": true
10+
"sourceMap": true,
11+
"types": ["node"]
1112
},
1213
"include": ["src/**/*", "package.json"],
1314
"exclude": ["lib", "**/__fixtures__"]

tsconfig.json

Lines changed: 0 additions & 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,

yarn.lock

Lines changed: 22 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"
@@ -5455,6 +5464,7 @@ __metadata:
54555464
"@types/dedent": "npm:^0.7.2"
54565465
"@types/ejs": "npm:^3.1.5"
54575466
"@types/fs-extra": "npm:^11.0.4"
5467+
"@types/node": "npm:^20.19.39"
54585468
"@types/validate-npm-package-name": "npm:^4.0.2"
54595469
cross-spawn: "npm:^7.0.6"
54605470
dedent: "npm:^1.7.2"
@@ -5466,7 +5476,7 @@ __metadata:
54665476
kleur: "npm:^4.1.5"
54675477
ora: "npm:^9.3.0"
54685478
pigment: "npm:^0.4.4"
5469-
typescript: "npm:^5.8.3"
5479+
typescript: "npm:^6.0.3"
54705480
validate-npm-package-name: "npm:^7.0.2"
54715481
bin:
54725482
create-react-native-library: bin/create-react-native-library
@@ -10496,6 +10506,7 @@ __metadata:
1049610506
"@types/fs-extra": "npm:^11.0.4"
1049710507
"@types/json5": "npm:^2.2.0"
1049810508
"@types/mock-fs": "npm:^4.13.4"
10509+
"@types/node": "npm:^20.19.39"
1049910510
"@types/prompts": "npm:^2.4.9"
1050010511
"@types/which": "npm:^3.0.4"
1050110512
"@types/yargs": "npm:^17.0.35"
@@ -10517,7 +10528,7 @@ __metadata:
1051710528
mock-stdin: "npm:^1.0.0"
1051810529
prompts: "npm:^2.4.2"
1051910530
react-native-monorepo-config: "npm:^0.3.3"
10520-
typescript: "npm:^5.8.3"
10531+
typescript: "npm:^6.0.3"
1052110532
vitest: "npm:^4.1.2"
1052210533
which: "npm:^6.0.1"
1052310534
yargs: "npm:^18.0.0"
@@ -11021,7 +11032,7 @@ __metadata:
1102111032
eslint-config-satya164: "npm:^5.1.8"
1102211033
globals: "npm:^17.4.0"
1102311034
prettier: "npm:^3.8.1"
11024-
typescript: "npm:^5.8.3"
11035+
typescript: "npm:^6.0.3"
1102511036
languageName: unknown
1102611037
linkType: soft
1102711038

@@ -11819,23 +11830,23 @@ __metadata:
1181911830
languageName: node
1182011831
linkType: hard
1182111832

11822-
"typescript@npm:^5.8.3":
11823-
version: 5.9.3
11824-
resolution: "typescript@npm:5.9.3"
11833+
"typescript@npm:^6.0.3":
11834+
version: 6.0.3
11835+
resolution: "typescript@npm:6.0.3"
1182511836
bin:
1182611837
tsc: bin/tsc
1182711838
tsserver: bin/tsserver
11828-
checksum: 10c0/6bd7552ce39f97e711db5aa048f6f9995b53f1c52f7d8667c1abdc1700c68a76a308f579cd309ce6b53646deb4e9a1be7c813a93baaf0a28ccd536a30270e1c5
11839+
checksum: 10c0/4a25ff5045b984370f48f196b3a0120779b1b343d40b9a68d114ea5e5fff099809b2bb777576991a63a5cd59cf7bffd96ff6fe10afcefbcb8bd6fb96ad4b6606
1182911840
languageName: node
1183011841
linkType: hard
1183111842

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"
11843+
"typescript@patch:typescript@npm%3A^6.0.3#optional!builtin<compat/typescript>":
11844+
version: 6.0.3
11845+
resolution: "typescript@patch:typescript@npm%3A6.0.3#optional!builtin<compat/typescript>::version=6.0.3&hash=5786d5"
1183511846
bin:
1183611847
tsc: bin/tsc
1183711848
tsserver: bin/tsserver
11838-
checksum: 10c0/ad09fdf7a756814dce65bc60c1657b40d44451346858eea230e10f2e95a289d9183b6e32e5c11e95acc0ccc214b4f36289dcad4bf1886b0adb84d711d336a430
11849+
checksum: 10c0/2f25c74e65663c248fa1ade2b8459d9ce5372ff9dad07067310f132966ebec1d93f6c42f0baf77a6b6a7a91460463f708e6887013aaade22111037457c6b25df
1183911850
languageName: node
1184011851
linkType: hard
1184111852

0 commit comments

Comments
 (0)