@zohodesk/codestandard-validator 0.0.6-exp-14 → 0.0.6-exp-16

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.
@@ -145,6 +145,7 @@ async function calculateGitDiffForFile(branch_name, file) {
145
145
 
146
146
  function areAllPluginsInstalled() {
147
147
  let unInstalledPlugins = checkIfPluginsAreInstalled().uninstalledPlugins;
148
+ console.log("unInstalledPlugins", unInstalledPlugins);
148
149
  return unInstalledPlugins.length === 0 ? true : false;
149
150
  }
150
151
 
@@ -28,8 +28,9 @@ function installPlugins(pluginsToBeInstalled) {
28
28
  Logger.log(Logger.INFO_TYPE, 'Plugins are already installed');
29
29
  return true;
30
30
  }
31
- const packageJsonBackup = getPackageJsonContentBeforeInstallingPlugins();
32
- const installCommand = `npm install --save-dev ${pluginsToBeInstalled.join(' ')}`;
31
+
32
+ // const packageJsonBackup = getPackageJsonContentBeforeInstallingPlugins();
33
+ const installCommand = `npm install --no-save ${pluginsToBeInstalled.join(' ')}`;
33
34
  Logger.log(Logger.INFO_TYPE, 'Installing plugins...');
34
35
  Logger.log(Logger.INFO_TYPE, `Install command being executed: ${installCommand}`);
35
36
  const installed = executeSynchronizedCommands(execSync, [installCommand, {
@@ -41,11 +42,13 @@ function installPlugins(pluginsToBeInstalled) {
41
42
  return false;
42
43
  }
43
44
  Logger.log(Logger.SUCCESS_TYPE, 'Plugins installation successful');
44
- const restored = restorePackageJsonContent(packageJsonBackup);
45
- if (!restored) {
46
- Logger.log(Logger.FAILURE_TYPE, 'Unable to restore package.json content');
47
- return false;
48
- }
45
+
46
+ // const restored = restorePackageJsonContent(packageJsonBackup);
47
+ // if (!restored) {
48
+ // Logger.log(Logger.FAILURE_TYPE, 'Unable to restore package.json content');
49
+ // return false;
50
+ // }
51
+
49
52
  createVersionControlFile(pluginsToBeInstalled);
50
53
  return true;
51
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/codestandard-validator",
3
- "version": "0.0.6-exp-14",
3
+ "version": "0.0.6-exp-16",
4
4
  "description": "library to enforce code standard using eslint",
5
5
  "main": "index.js",
6
6
  "scripts": {