diff --git a/.yarn/patches/husky-npm-3.1.0-5cc13e4e34.patch b/.yarn/patches/husky-npm-3.1.0-5cc13e4e34.patch new file mode 100644 index 000000000..8c5a1e0d6 --- /dev/null +++ b/.yarn/patches/husky-npm-3.1.0-5cc13e4e34.patch @@ -0,0 +1,33 @@ +diff --git a/lib/runner/index.js b/lib/runner/index.js +index 87e3b3957619728e3ed1ca61e2d83df1c49f928f..6d5ab905415da0577341c8f5b67d4806adcf7549 100644 +--- a/lib/runner/index.js ++++ b/lib/runner/index.js +@@ -68,15 +68,19 @@ function run([, scriptPath, hookName = '', HUSKY_GIT_PARAMS], getStdinFn = get_s + return 0; + } + catch (err) { +- const noVerifyMessage = [ +- 'commit-msg', +- 'pre-commit', +- 'pre-rebase', +- 'pre-push' +- ].includes(hookName) +- ? '(add --no-verify to bypass)' +- : '(cannot be bypassed with --no-verify due to Git specs)'; +- console.log(`husky > ${hookName} hook failed ${noVerifyMessage}`); ++ // We do not want to print this "add --no-verify to bypass" message because that's ++ // literally what some developers do instead of trying to fix the errors. ++ ++ // const noVerifyMessage = [ ++ // 'commit-msg', ++ // 'pre-commit', ++ // 'pre-rebase', ++ // 'pre-push' ++ // ].includes(hookName) ++ // ? '(add --no-verify to bypass)' ++ // : '(cannot be bypassed with --no-verify due to Git specs)'; ++ ++ console.log(`husky > ${hookName} hook failed (Please fix the errors listed above and try again)`); + return err.code; + } + }); diff --git a/package.json b/package.json index 2a5539c8e..694d34f0e 100644 --- a/package.json +++ b/package.json @@ -107,6 +107,7 @@ "react-native@0.71.10": "patch:react-native@npm%3A0.71.10#./.yarn/patches/react-native-animation-fix/react-native-npm-0.71.10-f9c32562d8.patch", "nanoid": "patch:nanoid@npm%3A3.3.7#./.yarn/patches/nanoid-npm-3.3.7-98824ba130.patch", "pdfjs-dist": "patch:pdfjs-dist@npm%3A3.11.174#./.yarn/patches/pdfjs-dist-npm-3.11.174-67f2fee6d6.patch", - "@react-native-community/slider": "patch:@react-native-community/slider@npm%3A4.4.4#./.yarn/patches/@react-native-community-slider-npm-4.4.4-d78e472f48.patch" + "@react-native-community/slider": "patch:@react-native-community/slider@npm%3A4.4.4#./.yarn/patches/@react-native-community-slider-npm-4.4.4-d78e472f48.patch", + "husky": "patch:husky@npm%3A3.1.0#./.yarn/patches/husky-npm-3.1.0-5cc13e4e34.patch" } }