Skip to content

Commit c0e0326

Browse files
authored
chore: upgrade TypeScript to 6.0.2 (#26)
1 parent 0a4fdbd commit c0e0326

File tree

3 files changed

+22
-30
lines changed

3 files changed

+22
-30
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
"test": "rstest",
2525
"bump": "npx bumpp"
2626
},
27-
"files": ["dist"],
27+
"files": [
28+
"dist"
29+
],
2830
"simple-git-hooks": {
2931
"pre-commit": "npx nano-staged"
3032
},
@@ -41,7 +43,7 @@
4143
"@types/node": "^24.10.1",
4244
"nano-staged": "^0.9.0",
4345
"simple-git-hooks": "^2.13.1",
44-
"typescript": "5.9.3"
46+
"typescript": "^6.0.2"
4547
},
4648
"packageManager": "pnpm@10.24.0",
4749
"publishConfig": {

pnpm-lock.yaml

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

tsconfig.json

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
{
22
"compilerOptions": {
3-
"module": "NodeNext",
4-
"moduleResolution": "NodeNext",
5-
"target": "ES2021",
6-
"esModuleInterop": true,
3+
"rootDir": "./src",
4+
"outDir": "./dist",
5+
"target": "ES2023",
6+
"types": ["node"],
7+
"lib": ["DOM", "ESNext"],
78
"declaration": true,
89
"isolatedModules": true,
9-
"sourceMap": true,
10-
"declarationMap": true,
11-
"composite": true,
12-
"forceConsistentCasingInFileNames": true,
13-
"allowJs": true,
14-
"checkJs": true,
15-
"strict": true,
1610
"skipLibCheck": true,
17-
"noUnusedLocals": true,
18-
"outDir": "dist",
19-
"rootDir": "src"
20-
},
21-
"ts-node": {
22-
"transpileOnly": true
11+
"module": "nodenext",
12+
"moduleResolution": "nodenext"
2313
},
2414
"include": ["src"]
2515
}

0 commit comments

Comments
 (0)