ci: Parse pnpm ls with jq to prevent buffer overload (#27770)

This commit is contained in:
Matsu 2026-03-30 17:40:36 +03:00 committed by GitHub
parent d9f8f04772
commit fdf9857344
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = [];