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

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