From 68b007a078e0552d24ebf69753a74aadb206dd20 Mon Sep 17 00:00:00 2001 From: cha0s Date: Sun, 4 Feb 2024 14:01:34 -0600 Subject: [PATCH] ci: fix task runner --- build/tasks.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/tasks.js b/build/tasks.js index d1a899a..e670362 100644 --- a/build/tasks.js +++ b/build/tasks.js @@ -20,9 +20,9 @@ const {workspaces} = require(join(FLECKS_CORE_ROOT, 'package.json')); .then( ((cwd) => ( (code) => { - if (0 === code) { - return processCode(spawnWith(['npm', 'run', ...process.argv.slice(2)], {cwd})); - } + return 0 === code + ? processCode(spawnWith(['npm', 'run', ...process.argv.slice(2)], {cwd})) + : code; } ))(paths[i]), );