Skip to content

Commit e75c3e0

Browse files
authored
chore: upgrade TypeScript to ^6.0.2 (#42)
1 parent a6b711a commit e75c3e0

8 files changed

Lines changed: 28 additions & 31 deletions

File tree

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
"main": "./dist/index.js",
1616
"module": "./dist/index.mjs",
1717
"types": "./dist/index.d.ts",
18-
"files": ["dist"],
18+
"files": [
19+
"dist"
20+
],
1921
"scripts": {
20-
"build": "rslib",
21-
"dev": "rslib -w",
22+
"build": "rslib",
23+
"dev": "rslib -w",
2224
"lint": "biome check .",
2325
"lint:write": "biome check . --write",
2426
"prepare": "simple-git-hooks && npm run build",
@@ -53,7 +55,7 @@
5355
"react": "^19.2.4",
5456
"react-dom": "^19.2.4",
5557
"simple-git-hooks": "^2.13.1",
56-
"typescript": "^5.9.3"
58+
"typescript": "6.0.2"
5759
},
5860
"peerDependencies": {
5961
"@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.

test/app/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"useDefineForClassFields": true,
1515
"declaration": false,
1616
"jsx": "react-jsx",
17-
"baseUrl": "./",
1817
// make type checker faster by not including types
1918
"types": [],
2019
"paths": {

test/components/src/style.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module '*.css';

test/components/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"declaration": true,
1717
"declarationDir": "./dist/types",
1818
"jsx": "react-jsx",
19-
"baseUrl": "./",
2019
// make type checker faster by not including types
2120
"types": [],
2221
"paths": {

test/utils/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"declarationDir": "./dist/types",
1818
"declarationMap": true,
1919
"jsx": "react-jsx",
20-
"baseUrl": "./",
2120
// make type checker faster by not including types
2221
"types": [],
2322
"paths": {

test/utils2/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"declarationDir": "./dist/types",
1818
"declarationMap": true,
1919
"jsx": "react-jsx",
20-
"baseUrl": "./",
2120
// make type checker faster by not including types
2221
"types": [],
2322
"paths": {

tsconfig.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
22
"compilerOptions": {
3+
"rootDir": "./src",
34
"outDir": "./dist",
4-
"baseUrl": "./",
5-
"target": "ES2020",
5+
"target": "ES2023",
6+
"types": ["node"],
67
"lib": ["DOM", "ESNext"],
7-
"module": "Node16",
8-
"strict": true,
98
"declaration": true,
109
"isolatedModules": true,
11-
"esModuleInterop": true,
1210
"skipLibCheck": true,
13-
"resolveJsonModule": true,
14-
"moduleResolution": "Node16"
11+
"module": "nodenext",
12+
"moduleResolution": "nodenext"
1513
},
1614
"include": ["src"]
1715
}

0 commit comments

Comments
 (0)