Skip to content

Commit 7a21871

Browse files
committed
chore: add typecheck from ci
cann't use with lint-staged lint-staged/lint-staged#468 check all files try fixed microsoft/TypeScript#27379 microsoft/TypeScript#49817 as an alternative https://github.com/gustavopch/tsc-files
1 parent c46f1b5 commit 7a21871

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242

4343
- run: pnpm install
4444

45+
- name: Run typecheck
46+
run: npm run typecheck
47+
4548
- name: Run unit tests
4649
run: npm run test -- --package-name '*'
4750

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"update": "ddc update",
1616
"test": "ddc test",
1717
"add": "ddc add",
18-
"release": "ddc release"
18+
"release": "ddc release",
19+
"typecheck": "tsc --noEmit --skipLibCheck"
1920
},
2021
"scripts-info": {
2122
"init": "首次安装",

0 commit comments

Comments
 (0)