Skip to content

Commit d8af974

Browse files
committed
Run TypeScript on the types
1 parent a12dba9 commit d8af974

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"node": ">=18"
2121
},
2222
"scripts": {
23-
"test": "xo && c8 ava && tsd"
23+
"test": "xo && c8 ava && tsd && tsc"
2424
},
2525
"files": [
2626
"index.js",
@@ -72,6 +72,7 @@
7272
"path-key": "^4.0.0",
7373
"tempfile": "^5.0.0",
7474
"tsd": "^0.31.0",
75+
"typescript": "^5.4.5",
7576
"which": "^4.0.0",
7677
"xo": "^0.58.0"
7778
},

tsconfig.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compilerOptions": {
3+
"module": "nodenext",
4+
"moduleResolution": "nodenext",
5+
"moduleDetection": "force",
6+
"target": "ES2022",
7+
"strict": true
8+
},
9+
"files": [
10+
"index.d.ts"
11+
]
12+
}

0 commit comments

Comments
 (0)