@zohodesk/codestandard-validator 0.0.2-exp-3 → 0.0.2-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.
@@ -31,12 +31,12 @@ const {
31
31
  */
32
32
  async function postInstall() {
33
33
  try {
34
- // await executeMethodsThatReturnBooleanValue("Some issue in writing node_modules path to json", writeFsPaths, null);
34
+ await executeMethodsThatReturnBooleanValue("Some issue in writing node_modules path to json", writeFsPaths, null);
35
35
  isGitInitialized() ? await executeMethodsThatReturnBooleanValue("Some issue occurred in setting up husky.", setupHusky, null) : null;
36
- // await executeMethodsThatReturnBooleanValue("Make sure zgit.csez.zohocorpin.com is accessible", cloneViaCdt, null);
37
- // await executeMethodsThatReturnBooleanValue("Some issue occurred in creating eslint config file.", createEslintConfigFile, null);
38
- // Logger.log(Logger.SUCCESS_TYPE, "Pre commit setup successful");
39
- // arePluginsInstalled();
36
+ await executeMethodsThatReturnBooleanValue("Make sure zgit.csez.zohocorpin.com is accessible", cloneViaCdt, null);
37
+ await executeMethodsThatReturnBooleanValue("Some issue occurred in creating eslint config file.", createEslintConfigFile, null);
38
+ Logger.log(Logger.SUCCESS_TYPE, "Pre commit setup successful");
39
+ arePluginsInstalled();
40
40
  } catch (error) {
41
41
  Logger.log(Logger.FAILURE_TYPE, `Kindly retry npm install. & ${error.message}`);
42
42
  }
@@ -4,15 +4,8 @@
4
4
  const {
5
5
  execSync
6
6
  } = require('child_process');
7
- const {
8
- readdirSync
9
- } = require('fs');
10
- const path = require('path');
11
7
  const initializeHusky = require('./initializeHusky');
12
8
  const configurePrecommitHook = require('./configurePrecommitHook');
13
- const {
14
- getNodeModulesPath
15
- } = require('../General/getNodeModulesPath');
16
9
  const {
17
10
  executeSynchronizedCommands
18
11
  } = require('../General/executeSyncCommands');
@@ -69,7 +62,7 @@ function installHuskyPackage() {
69
62
  const huskyVersion = execSync("husky -v", {
70
63
  cwd: getRootDirectory()
71
64
  }).toString();
72
- if (huskyVersion.trim() == husky.version) {
65
+ if (!(huskyVersion.trim() == husky.version)) {
73
66
  throw new Error("error");
74
67
  }
75
68
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/codestandard-validator",
3
- "version": "0.0.2-exp-3",
3
+ "version": "0.0.2-exp-4",
4
4
  "description": "library to enforce code standard using eslint",
5
5
  "main": "index.js",
6
6
  "scripts": {