Skip to content

Commit 59a12b1

Browse files
committed
ci: Add type-checking step
1 parent 28f75a9 commit 59a12b1

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ jobs:
1919
cache-dependency-path: "**/package-lock.json"
2020
- run: npm ci
2121
- run: npm test
22+
- run: npm run test:types

jsconfig.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
"target": "ES2019",
44
"strict": true,
55
"strictNullChecks": true,
6+
"noImplicitAny": true,
67
"esModuleInterop": true,
78
"module": "node20",
89
"moduleResolution": "node16",
910
"noEmit": true,
1011
"allowJs": true,
1112
"checkJs": true,
12-
"skipLibCheck": false
13-
}
13+
"skipLibCheck": false,
14+
"maxNodeModuleJsDepth": 0
15+
},
16+
"include": ["src/**/*"],
1417
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"dev": "vite demo",
1515
"dev:build": "vite build demo",
1616
"dev:preview": "vite preview demo",
17-
"test": "premove demo/node_modules && node --test test"
17+
"test": "premove demo/node_modules && node --test test",
18+
"test:types": "tsc -p jsconfig.json"
1819
},
1920
"keywords": [
2021
"preact",

0 commit comments

Comments
 (0)