refactor: rewrite src/install with async/await

This commit is contained in:
Barış Soner Uşaklı
2020-07-31 12:49:25 -04:00
parent 6c00ec8435
commit 776e34a80f
3 changed files with 289 additions and 401 deletions

View File

@@ -23,7 +23,9 @@ function setup(initConfig) {
install.values = initConfig;
async.series([
install.setup,
async function () {
return await install.setup();
},
function (next) {
var configFile = paths.config;
if (nconf.get('config')) {