Skip to content

Commit 3df2810

Browse files
committed
fix: pre-commits
1 parent ab29701 commit 3df2810

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

.husky/pre-commit

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
1+
pnpm run check-all
32

4-
echo '- Checking your Typescript code ...'
5-
pnpm run check-types ||
6-
(
7-
echo '❌ Typescript Check Failed.';
8-
false;
9-
)
3+
pnpm test
104

11-
echo '- Running your tests ...'
12-
pnpm test ||
13-
(
14-
echo '❌ Your Tests Failed.';
15-
false;
16-
)
17-
18-
echo '- Checking your code ...'
195
pnpm lint-staged

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raminrezaei",
3-
"version": "5.1.2",
3+
"version": "5.2.0",
44
"private": true,
55
"scripts": {
66
"lighthouse": "lighthouse http://localhost:3000 --output html --output-path ./lighthouse-report.html --chrome-flags=\"--headless\"",
@@ -16,6 +16,7 @@
1616
"lint": "eslint . --fix",
1717
"build": "next build",
1818
"start": "next start",
19+
"prepare": "husky",
1920
"test": "jest"
2021
},
2122
"dependencies": {

0 commit comments

Comments
 (0)