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

This commit is contained in:
Matsu
2026-03-30 14:40:36 +00:00
committed by GitHub
parent d9f8f04772
commit fdf9857344
+7 -1
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 = [];