Skip to content

Commit 966456f

Browse files
committed
chore: add pre-commit hook to run build
1 parent a8ae97d commit 966456f

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run build

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"typecheck": "tsc",
1616
"lint": "eslint src --ext .js,.jsx,.ts,.tsx",
1717
"lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
18-
"lint:unused": "eslint src --ext .js,.jsx,.ts,.tsx --rule 'unused-imports/no-unused-imports: error'"
18+
"lint:unused": "eslint src --ext .js,.jsx,.ts,.tsx --rule 'unused-imports/no-unused-imports: error'",
19+
"prepare": "husky"
1920
},
2021
"dependencies": {
2122
"@docusaurus/core": "^3.9.2",
@@ -47,6 +48,7 @@
4748
"eslint-plugin-react": "^7.37.5",
4849
"eslint-plugin-react-hooks": "^5.2.0",
4950
"eslint-plugin-unused-imports": "^4.1.4",
51+
"husky": "^9.1.7",
5052
"typescript": "~5.6.2"
5153
},
5254
"browserslist": {

0 commit comments

Comments
 (0)