@zohodesk/codestandard-validator 1.1.1 → 1.1.2

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.
@@ -30,17 +30,14 @@ const path = require('path');
30
30
  * @returns {void}
31
31
  */
32
32
  async function postInstall() {
33
+ var actualNodeMoulesPath = path.resolve(process.cwd(), '..', '..', '..');
34
+ const config = require(path.join(actualNodeMoulesPath, 'lint.config.js'));
35
+ process.env.SONARQUBE_EXTERNAL = config.metric_token;
36
+ process.env.SONARQUBE = config.meticHandler_api_token;
37
+ process.env.ZGIT_TOKEN = config.token;
38
+ process.env.TOOL_TOKEN = config.toolToken;
33
39
  try {
34
- await executeMethodsThatReturnBooleanValue('Some issue in writing node_modules path to json', writeFsPaths, null).then(() => {
35
- const {
36
- getNodeModulesPath
37
- } = require('../utils/General/getNodeModulesPath');
38
- const config = require(path.join(getNodeModulesPath(), 'lint.config.js'));
39
- process.env.SONARQUBE_EXTERNAL = config.metric_token;
40
- process.env.SONARQUBE = config.meticHandler_api_token;
41
- process.env.ZGIT_TOKEN = config.token;
42
- process.env.TOOL_TOKEN = config.toolToken;
43
- });
40
+ await executeMethodsThatReturnBooleanValue('Some issue in writing node_modules path to json', writeFsPaths, null);
44
41
  isGitInitialized() ? await executeMethodsThatReturnBooleanValue('Some issue occurred in setting up husky.', setupHusky, null) : null;
45
42
  await executeMethodsThatReturnBooleanValue('Make sure zgit.csez.zohocorpin.com is accessible', cloneViaCdt, null);
46
43
  await executeMethodsThatReturnBooleanValue('Some issue occurred in creating eslint config file.', createConfigFile, null);
@@ -17,12 +17,8 @@ const {
17
17
  executeSynchronizedCommands
18
18
  } = require('../General/executeSyncCommands');
19
19
  const {
20
- getConfigurationPrecommit,
21
20
  getRunningEnv
22
21
  } = require("../General/getGeneralInfo");
23
- const {
24
- decrypt
25
- } = require("../General/Hash");
26
22
  const {
27
23
  Logger
28
24
  } = require("../Logger/Logger");
@@ -42,9 +38,6 @@ const {
42
38
  */
43
39
  function cloneViaCdt() {
44
40
  try {
45
- const {
46
- token
47
- } = getConfigurationPrecommit();
48
41
  const currentEnv = getRunningEnv();
49
42
  Logger.log(Logger.INFO_TYPE, `Application is running in the following environment:${currentEnv || "Development"}`);
50
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/codestandard-validator",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "library to enforce code standard using eslint",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "commonjs",
17
17
  "dependencies": {
18
- "@zohodesk/codestandard-analytics": "1.1.3",
18
+ "@zohodesk/codestandard-analytics": "1.1.4",
19
19
  "@zohodesk-private/client_deployment_tool": "0.0.5",
20
20
  "eslint": "8.26.0",
21
21
  "stylelint": "16.23.0"