@zohodesk/codestandard-validator 0.0.6-exp-3 → 0.0.6-exp-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36,11 +36,12 @@ function configurePrecommitHook() {
|
|
|
36
36
|
"${customPrePushHookPath}"
|
|
37
37
|
`;
|
|
38
38
|
let isCustomPrecommitConfigurationSuccessful = executeSynchronizedCommands(writeFileSync, [huskyPrecommitPath, huskyPrecommitHookContent, 'utf-8'], '', 'Could not create and write pre-commit.sh inisde husky directory', false, true);
|
|
39
|
-
let isCustomPrePushConfigurationSuccessful = executeSynchronizedCommands(writeFileSync, [huskyPrePushPath, huskyPrePushHookContent, 'utf-8'], '', 'Could not create and write pre-
|
|
39
|
+
let isCustomPrePushConfigurationSuccessful = executeSynchronizedCommands(writeFileSync, [huskyPrePushPath, huskyPrePushHookContent, 'utf-8'], '', 'Could not create and write pre-push.sh inisde husky directory', false, true);
|
|
40
40
|
if (isCustomPrecommitConfigurationSuccessful) {
|
|
41
41
|
let isExecutionPermissionGivenSuccessfully = grantExecutionPermission([huskyPrecommitPath, customPrecomitHookPath]);
|
|
42
42
|
return isExecutionPermissionGivenSuccessfully;
|
|
43
|
-
}
|
|
43
|
+
}
|
|
44
|
+
if (isCustomPrePushConfigurationSuccessful) {
|
|
44
45
|
let isExecutionPermissionGivenSuccessfully = grantExecutionPermission([huskyPrePushPath, customPrePushHookPath]);
|
|
45
46
|
return isExecutionPermissionGivenSuccessfully;
|
|
46
47
|
} else {
|