fixed husky

This commit is contained in:
Christopher committed 2021-03-02 20:33:09 +01:00
1 parent 91cbb8356f
commit 9584d2864e
3 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
husky
npm test
+3 -2
View File
@@ -7,11 +7,12 @@
"pretty-quick": "^3.1.0"
},
"scripts": {
"build": "lerna run build --concurrency 1"
"build": "lerna run build --concurrency 1",
"prepare": "husky install"
},
"husky": {
"hooks": {
"husky": "pretty-quick --staged"
"pre-commit": "pretty-quick --staged"
}
}
}
+1 -1
View File
@@ -110,7 +110,7 @@ onNet(events.TWITTER_DELETE_TWEET_FAILURE, () => {
* Twitter likes
*/
RegisterNuiCallbackType(events.TWITTER_TOGGLE_LIKE);
on(`__cfx_nui:${events.TWITTER_TOGGLE_LIKE}`, (tweetId: any) => {
on(`__cfx_nui:${events.TWITTER_TOGGLE_LIKE}`, (tweetId: number) => {
emitNet(events.TWITTER_TOGGLE_LIKE, tweetId);
});