Skip to content

Commit ec86d02

Browse files
authored
chore: upgrade TypeScript to 6.0.2 (#46)
1 parent dc78900 commit ec86d02

File tree

3 files changed

+25
-24
lines changed

3 files changed

+25
-24
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
"main": "./dist/index.js",
1515
"module": "./dist/index.mjs",
1616
"types": "./dist/index.d.ts",
17-
"files": ["dist"],
17+
"files": [
18+
"dist"
19+
],
1820
"scripts": {
1921
"build": "rslib",
2022
"dev": "rslib -w",
@@ -46,7 +48,7 @@
4648
"nano-staged": "^0.9.0",
4749
"playwright": "^1.58.2",
4850
"simple-git-hooks": "^2.13.1",
49-
"typescript": "^5.9.3"
51+
"typescript": "^6.0.2"
5052
},
5153
"peerDependencies": {
5254
"@rsbuild/core": "^1.0.0 || ^2.0.0-0"

pnpm-lock.yaml

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

tsconfig.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
{
22
"compilerOptions": {
3+
"rootDir": "./src",
34
"outDir": "./dist",
4-
"target": "ES2020",
5+
"target": "ES2023",
6+
"types": ["node"],
57
"lib": ["DOM", "ESNext"],
6-
"module": "Node16",
7-
"strict": true,
88
"declaration": true,
99
"isolatedModules": true,
10-
"esModuleInterop": true,
1110
"skipLibCheck": true,
12-
"resolveJsonModule": true,
13-
"moduleResolution": "Node16"
11+
"module": "nodenext",
12+
"moduleResolution": "nodenext"
1413
},
1514
"include": ["src"]
1615
}

0 commit comments

Comments
 (0)