Skip to content

Commit

Permalink
feat: allow pm2 to install gc-stats
Browse files Browse the repository at this point in the history
  • Loading branch information
wallet77 committed Jan 31, 2018
1 parent f65e879 commit 1563416
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/API/Modules/Modularizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ Modularizer.install = function(CLI, module_name, opts, cb) {
return false;
}

if (module_name === 'gc-stats') {
installLangModule('gc-stats', function(err) {
if (err) {
Common.printError(cst.PREFIX_MSG_MOD_ERR + chalk.bold.green('gc-stats installation has FAILED (checkout previous logs)'));
return cb(err);
}

Common.printOut(cst.PREFIX_MSG + chalk.bold.green('gc-stats ENABLED'));
return cb();
});
return false;
}

if (module_name.indexOf('typescript') > -1) {
// Special dependency install
return installLangModule(module_name, function(e) {
Expand Down

0 comments on commit 1563416

Please sign in to comment.