From 05a09b464c8f7c1690df89a71d513efb532e3efc Mon Sep 17 00:00:00 2001 From: Vincent Koc <25068+vincentkoc@users.noreply.github.com> Date: Fri, 10 Jul 2026 17:29:07 -0700 Subject: [PATCH] fix(release): satisfy task graph lint --- scripts/release-preflight.mjs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/scripts/release-preflight.mjs b/scripts/release-preflight.mjs index 914daf5d2d0f..7096306cd5bb 100644 --- a/scripts/release-preflight.mjs +++ b/scripts/release-preflight.mjs @@ -222,12 +222,16 @@ function formatError(error) { async function runTaskGraph({ commandKey, jobs, tasks }) { const runnableTasks = tasks .filter((task) => task[commandKey]) - .map((task) => ({ - id: task.id, - name: task.name, - ...task[commandKey], - after: commandKey === "fix" ? (task.fixAfter ?? []) : [], - })); + .map((task) => { + const command = task[commandKey]; + return { + id: task.id, + name: task.name, + args: command.args, + bin: command.bin, + after: commandKey === "fix" ? (task.fixAfter ?? []) : [], + }; + }); const selectedIds = new Set(runnableTasks.map((task) => task.id)); const pending = new Map(runnableTasks.map((task) => [task.id, task])); const completed = new Set();