@zohodesk/codestandard-validator 0.0.4-exp-10 → 0.0.4-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.
|
@@ -10,15 +10,15 @@ const {
|
|
|
10
10
|
*/
|
|
11
11
|
function printUninstalledPlugins(uninstalledPlugins) {
|
|
12
12
|
// let commandToInstallPlugins = 'npx ZDPrecommit setupPlugins'
|
|
13
|
-
if (uninstalledPlugins.
|
|
13
|
+
if (uninstalledPlugins.length !== 0) {
|
|
14
14
|
Logger.log(Logger.INFO_TYPE, 'The following plugins are not installed:');
|
|
15
|
-
uninstalledPlugins.
|
|
15
|
+
uninstalledPlugins.map(plugin => {
|
|
16
16
|
Logger.log(Logger.INFO_TYPE, `"${plugin.packageName}@${plugin.version}"`);
|
|
17
17
|
});
|
|
18
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
|
-
} else if (uninstalledPlugins.
|
|
19
|
+
} else if (uninstalledPlugins.length === 0 && noPluginMessage.trim() === '') {
|
|
20
20
|
Logger.log(Logger.INFO_TYPE, 'Plugins are installed already');
|
|
21
|
-
} else if (uninstalledPlugins.
|
|
21
|
+
} else if (uninstalledPlugins.length === 0 && noPluginMessage.trim() !== '') {
|
|
22
22
|
Logger.log(Logger.INFO_TYPE, 'No plugins present for the repository');
|
|
23
23
|
}
|
|
24
24
|
}
|