@zohodesk/codestandard-validator 0.0.7-exp-2 → 0.0.7-exp-3
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.
|
@@ -42,18 +42,18 @@ function installPlugins(pluginsToBeInstalled) {
|
|
|
42
42
|
let isPackageJsonRestored = restorePackageJsonContent(packageJsonBeforePluginsInstallation);
|
|
43
43
|
if (isPackageJsonRestored) {
|
|
44
44
|
createVersionControlFile(pluginsToBeInstalled);
|
|
45
|
-
|
|
45
|
+
return true;
|
|
46
46
|
} else {
|
|
47
47
|
Logger.log(Logger.FAILURE_TYPE, 'Unable to restore package.json content');
|
|
48
48
|
// return false
|
|
49
49
|
}
|
|
50
50
|
} else {
|
|
51
|
-
Logger.log(Logger.FAILURE_TYPE, "Unable to install plugins.Kindly retry the command");
|
|
52
|
-
|
|
51
|
+
Logger.log(Logger.FAILURE_TYPE, "Unable to install plugins. Kindly retry the command");
|
|
52
|
+
return false;
|
|
53
53
|
}
|
|
54
54
|
} else {
|
|
55
55
|
Logger.log(Logger.INFO_TYPE, 'Plugins are already installed');
|
|
56
|
-
|
|
56
|
+
return true;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/codestandard-validator",
|
|
3
|
-
"version": "0.0.7-exp-
|
|
3
|
+
"version": "0.0.7-exp-3",
|
|
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": "",
|