From a6f1558136e5bedd979bff3f86d293411a699bb9 Mon Sep 17 00:00:00 2001 From: Emmanuel Lampe Date: Wed, 16 Feb 2022 04:13:15 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20check=20for=20preset=20in?= =?UTF-8?q?=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The check if a preset in defined in the config was inverted and lead to error --- src/taskrunner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/taskrunner.js b/src/taskrunner.js index 1ac8d7a..e6eaedd 100644 --- a/src/taskrunner.js +++ b/src/taskrunner.js @@ -7,9 +7,10 @@ const runningTasks = []; export async function run(argv, config) { const preset = argv.preset ? loadPreset(argv.preset) - : config.preset || config.preset == '' + : config.preset && config.preset != '' ? loadPreset(config.preset) : config; + if (!preset) { return; }