From fdf98573445f7c5ffd4602726f189db107cd676d Mon Sep 17 00:00:00 2001 From: Matsu Date: Mon, 30 Mar 2026 17:40:36 +0300 Subject: [PATCH] ci: Parse pnpm ls with jq to prevent buffer overload (#27770) --- .github/scripts/detect-new-packages.mjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/scripts/detect-new-packages.mjs b/.github/scripts/detect-new-packages.mjs index ac56ea61c69..6cb551e2fc0 100644 --- a/.github/scripts/detect-new-packages.mjs +++ b/.github/scripts/detect-new-packages.mjs @@ -20,7 +20,13 @@ import { writeGithubOutput } from './github-helpers.mjs'; const exec = promisify(child_process.exec); -const packages = JSON.parse((await exec('pnpm ls -r --only-projects --json')).stdout); +const packages = JSON.parse( + ( + await exec( + `pnpm ls -r --only-projects --json | jq -r '[.[] | { name:.name, private: .private}]'`, + ) + ).stdout, +); const newPackages = [];