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:
mutoe 2023-09-11 19:24:17 +08:00
parent 0daf02393b
commit ab11d70dc7
No known key found for this signature in database
GPG Key ID: FEE78A0836900C9C
1 changed files with 1 additions and 1 deletions

View File

@ -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"
}
}