@zohodesk/codestandard-validator 0.0.4-exp-13 → 0.0.4-exp-15

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.
@@ -3,9 +3,6 @@
3
3
  const {
4
4
  checkIfPluginsAreInstalled
5
5
  } = require('./checkIfPluginsAreInstalled');
6
- const {
7
- installPlugins
8
- } = require('./installPlugins');
9
6
  const {
10
7
  printUninstalledPlugins
11
8
  } = require('./printUninstalledPlugins');
@@ -15,7 +12,6 @@ function arePluginsInstalled() {
15
12
  noPluginMessage
16
13
  } = checkIfPluginsAreInstalled();
17
14
  printUninstalledPlugins(uninstalledPlugins, noPluginMessage);
18
- installPlugins(uninstalledPlugins);
19
15
  }
20
16
  module.exports = {
21
17
  arePluginsInstalled
@@ -26,7 +26,7 @@ const {
26
26
  function installPlugins(pluginsToBeInstalled) {
27
27
  // let {uninstalledPlugins : pluginsToBeInstalled} = checkIfPluginsAreInstalled()
28
28
  if (pluginsToBeInstalled.length > 0) {
29
- let installCommand = `npm install --no-save ${pluginsToBeInstalled.join(' ')}`;
29
+ let installCommand = `npm install --save ${pluginsToBeInstalled.join(' ')}`;
30
30
  Logger.log(Logger.INFO_TYPE, 'Installing plugins ....');
31
31
  Logger.log(Logger.INFO_TYPE, `Install command being executed: ${installCommand}`);
32
32
  let arePluginsInstalledSuccessfully = executeSynchronizedCommands(execSync, [installCommand, {
@@ -15,7 +15,7 @@ function printUninstalledPlugins(uninstalledPlugins, noPluginMessage) {
15
15
  uninstalledPlugins.map(plugin => {
16
16
  Logger.log(Logger.INFO_TYPE, `"${plugin}"`);
17
17
  });
18
- // Logger.log(Logger.FAILURE_TYPE, `Kindly execute the command \x1b[37m"${commandToInstallPlugins}\x1b[0m" \x1b[31mfrom the location where package.json of the repo is present to install the plugins`)
18
+ Logger.log(Logger.FAILURE_TYPE, `Kindly execute the command \x1b[37m"${commandToInstallPlugins}\x1b[0m" \x1b[31mfrom the location where package.json of the repo is present to install the plugins`);
19
19
  } else if (uninstalledPlugins.length === 0 && noPluginMessage.trim() === '') {
20
20
  Logger.log(Logger.INFO_TYPE, 'Plugins are installed already');
21
21
  } else if (uninstalledPlugins.length === 0 && noPluginMessage.trim() !== '') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/codestandard-validator",
3
- "version": "0.0.4-exp-13",
3
+ "version": "0.0.4-exp-15",
4
4
  "description": "library to enforce code standard using eslint",
5
5
  "main": "index.js",
6
6
  "scripts": {