feature(cloudcmd) drop support of node < 14

This commit is contained in:
coderaiser 2020-04-07 23:46:26 +03:00
parent 30173e2a5c
commit 00a7575c99
3 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,7 @@
'use strict';
module.exports = {
parser: 'babel-eslint',
extends: [
'plugin:putout/recommended',
],

View file

@ -209,7 +209,7 @@ async function main() {
if (args['show-config'])
showConfig();
const distribute = require('../server/distribute');
const {default: distribute} = await import('../server/distribute/index.js');
const importConfig = promisify(distribute.import);
await importConfig(config)

View file

@ -171,6 +171,7 @@
"@cloudcmd/olark": "^3.0.0",
"@cloudcmd/stub": "^2.0.0",
"auto-globals": "^1.7.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.0.0",
"babel-plugin-macros": "^2.2.1",
"clean-css-loader": "^2.0.0",
@ -223,7 +224,7 @@
"yaspeller": "^6.0.0"
},
"engines": {
"node": ">=10"
"node": ">=14"
},
"license": "MIT",
"main": "server/cloudcmd.js",