Skip to content

Commit b4276d8

Browse files
ci: add type checking (#1053)
1 parent a21a706 commit b4276d8

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,8 @@ jobs:
3737
- name: Lint
3838
run: nr lint
3939

40+
- name: Type check
41+
run: nr type-check
42+
4043
- name: Test
4144
run: nr test

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"lint": "NODE_OPTIONS=--import=tsx eslint --config=eslint.config.ts .",
5454
"lint:fix": "pnpm lint --fix",
5555
"lint:packages": "pnpm -r --filter='./packages/{core,devtools,devtools-api,devtools-kit,electron,shared,applet}' exec publint && pnpm -r --filter='./packages/{core,devtools,devtools-api,devtools-kit,electron,shared,applet}' exec attw --pack",
56+
"type-check": "tsc --project ./tsconfig.ci.json",
5657
"prepublishOnly": "npm run build",
5758
"release": "bumpp -r",
5859
"dep:up": "taze -I major -r",

tsconfig.ci.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "./tsconfig.json",
4+
"compilerOptions": {
5+
"noEmit": true,
6+
"skipLibCheck": true
7+
},
8+
"include": [
9+
"packages/shared",
10+
"packages/devtools-kit",
11+
"packages/devtools-api",
12+
"packages/core"
13+
],
14+
"exclude": [
15+
"packages/devtools-kit/__tests__",
16+
"**/vite/src/overlay/**",
17+
"**/dist/**",
18+
"**/node_modules/**",
19+
"**/**/*.js"
20+
]
21+
}

0 commit comments

Comments
 (0)