mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fixed husky
This commit is contained in:
1 parent
91cbb8356f
commit
9584d2864e
3 files changed
+5
-4
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
husky
|
npm test
|
||||||
+3
-2
@@ -7,11 +7,12 @@
|
|||||||
"pretty-quick": "^3.1.0"
|
"pretty-quick": "^3.1.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "lerna run build --concurrency 1"
|
"build": "lerna run build --concurrency 1",
|
||||||
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"husky": "pretty-quick --staged"
|
"pre-commit": "pretty-quick --staged"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -110,7 +110,7 @@ onNet(events.TWITTER_DELETE_TWEET_FAILURE, () => {
|
|||||||
* Twitter likes
|
* Twitter likes
|
||||||
*/
|
*/
|
||||||
RegisterNuiCallbackType(events.TWITTER_TOGGLE_LIKE);
|
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);
|
emitNet(events.TWITTER_TOGGLE_LIKE, tweetId);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user