Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(ci): Pass --silent to yarn so size-limit JSON is parseable
yarn v1 prepends 'yarn run v…' and appends 'Done in …' to stdout,
which broke JSON.parse in the auto-bumper. Caught when running the
script locally end-to-end.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
  • Loading branch information
chargome and claude committed Apr 28, 2026
commit 2d027a5a1791e493a54fbe99a1aeaa3427e03803
4 changes: 3 additions & 1 deletion scripts/bump-size-limits.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ async function main() {
// 1. Run size-limit. Capture JSON. execFile (no shell).
let raw;
try {
const { stdout } = await execFileAsync('yarn', ['size-limit', '--json'], {
// `--silent` suppresses yarn's `yarn run v…` header and `Done in …` footer,
// which would otherwise break JSON.parse on the captured stdout.
const { stdout } = await execFileAsync('yarn', ['--silent', 'size-limit', '--json'], {
cwd: REPO_ROOT,
maxBuffer: 16 * 1024 * 1024,
});
Expand Down