Skip to content

Commit

Permalink
chore: add typecheck to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
deot committed Dec 16, 2023
1 parent c46f1b5 commit e39bc9f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:

- run: pnpm install

- name: Run typecheck
run: npm run typecheck

- name: Run unit tests
run: npm run test -- --package-name '*'

Expand Down
5 changes: 4 additions & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"**/*.{js,ts,jsx,tsx,md}": [
"eslint --fix"
]
],
"**/*.{ts,tsx}": [
"tsc --noEmit --skipLibCheck"
]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"update": "ddc update",
"test": "ddc test",
"add": "ddc add",
"release": "ddc release"
"release": "ddc release",
"typecheck": "tsc --noEmit --skipLibCheck"
},
"scripts-info": {
"init": "首次安装",
Expand Down

0 comments on commit e39bc9f

Please sign in to comment.