Skip to content

Commit 652f55a

Browse files
chore: add typecheck script and integrate it into pre-commit hook (#1744)
1 parent be5a1f2 commit 652f55a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

dashboard/.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env sh
2-
cd dashboard && pnpm lint-staged
2+
cd dashboard && pnpm lint-staged && pnpm typecheck
33
pnpm pycommit

dashboard/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "rm -rf ./node_modules/.vite && vite",
88
"build": "tsc -b && vite build",
9+
"typecheck": "tsc -b",
910
"test": "vitest",
1011
"coverage": "vitest run --coverage",
1112
"storybook": "storybook dev -p 6006",

0 commit comments

Comments
 (0)