Skip to content

Commit ebc80a4

Browse files
committed
chore: add typecheck to ci
can't use 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 7a7f92d commit ebc80a4

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-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
@@ -20,7 +20,8 @@
2020
"update:try": "npm run update -- --no-dry-run --no-commit --no-push --no-test",
2121
"release:try": "npm run release -- --no-dry-run --no-publish --no-push --no-tag --no-commit",
2222
"bin:link": "cd ./packages/cli && npm link",
23-
"bin:unlink": "cd ./packages/cli && npm unlink -g"
23+
"bin:unlink": "cd ./packages/cli && npm unlink -g",
24+
"typecheck": "tsc --noEmit --skipLibCheck"
2425
},
2526
"scripts-info": {
2627
"init": "首次安装",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-nocheck
12
import App from './app.vue';
23

34
export { App };

0 commit comments

Comments
 (0)