@zohodesk/codestandard-validator 0.0.6-exp-10 → 0.0.6-exp-11

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.
Files changed (2) hide show
  1. package/build/lib/cli.js +3 -1
  2. package/package.json +1 -2
package/build/lib/cli.js CHANGED
@@ -19,11 +19,13 @@ const {
19
19
  Logger
20
20
  } = require("../utils/Logger/Logger");
21
21
  const [,, action, ...options] = process.argv;
22
+ const path = require("path");
22
23
  async function run() {
23
24
  switch (action) {
24
25
  case "setup":
25
26
  {
26
- await executeMethodsThatReturnBooleanValue("Some issue occurred in setting up husky.", setupHusky, null);
27
+ process.chdir(path.resolve(__dirname, '..', '..'));
28
+ require("./postinstall");
27
29
  break;
28
30
  }
29
31
  case "init":
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@zohodesk/codestandard-validator",
3
- "version": "0.0.6-exp-10",
3
+ "version": "0.0.6-exp-11",
4
4
  "description": "library to enforce code standard using eslint",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
8
- "postinstall": "node bin/postinstall.js",
9
8
  "build": "babel -d ./build ./src --copy-files"
10
9
  },
11
10
  "author": "",