switchfeat: do not activate pm2-sysmonit by default - restore node 10.x

This commit is contained in:
Unitech 2021-06-10 10:39:19 +02:00
parent 9768a7f254
commit e8651f1dcd
3 changed files with 7 additions and 5 deletions

View File

@ -1,9 +1,9 @@
language: node_js
node_js:
- "16"
- "15"
- "14"
- "12"
- "10"
git:
depth: 2
os:

View File

@ -35,9 +35,11 @@ module.exports = function(CLI) {
* Install pm2-sysmonit
*/
CLI.prototype.launchSysMonitoring = function(cb) {
// if pm2 set pm2:sysmonit to false, skip pm2-sysmonit autostart
if (this.pm2_configuration == 'false' || process.env.NODE_ENV == 'test'
|| process.env.TRAVIS || global.it === 'function' || cst.IS_WINDOWS === true)
if ((this.pm2_configuration && this.pm2_configuration.sysmonit != 'true') ||
process.env.TRAVIS ||
global.it === 'function' ||
cst.IS_WINDOWS === true)
return cb ? cb(null) : null
var filepath

View File

@ -3,7 +3,7 @@
"preferGlobal": true,
"version": "5.0.4",
"engines": {
"node": ">=12.0.0"
"node": ">=10.0.0"
},
"directories": {
"bin": "./bin",