chore: Updated pre-commit script in simple-git-hooks.
The command "lint-staged" in the pre-commit hook was failing due to an authorization issue. The reason was because the execution was failing to find the executable. Hence, replaced "lint-staged" with "npm exec lint-staged" to ensure proper path resolution.
This commit is contained in:
parent
0daf02393b
commit
ab11d70dc7
|
|
@ -54,7 +54,7 @@
|
|||
"cypress/**/*.{ts,js}": "eslint --fix"
|
||||
},
|
||||
"simple-git-hooks": {
|
||||
"pre-commit": "lint-staged",
|
||||
"pre-commit": "npm exec lint-staged",
|
||||
"pre-push": "npm run lint && npm run build"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue