From 80f1bcad202be901715b79272d75f7085e911a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 28 Feb 2020 21:24:51 -0500 Subject: [PATCH] fix: call next --- src/cli/setup.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cli/setup.js b/src/cli/setup.js index 6b08cf73c5..e55a6bb740 100644 --- a/src/cli/setup.js +++ b/src/cli/setup.js @@ -31,13 +31,13 @@ function setup(initConfig) { } prestart.loadConfig(configFile); - next(); - }, - function (next) { + if (!nconf.get('no-build')) { build.buildAll(next); + } else { + setImmediate(next); } - } + }, ], function (err, data) { // Disregard build step data data = data[0];