scripts/report-install-size.mjs:91 runs pnpm pack, which triggers prepack → insert-cli-metadata → rewrites the tracked src/lib/hooks/useCLIMetadata.ts. The change is not reverted, so the command documented in CLAUDE.md leaves the working tree dirty.
Fix: snapshot git status --porcelain for that file before packing and git checkout -- it after (only if it was clean before). Note the behavior in CLAUDE.md.
From the review of #1304. Part of #1305.
Generated by Claude Code
scripts/report-install-size.mjs:91runspnpm pack, which triggersprepack→insert-cli-metadata→ rewrites the trackedsrc/lib/hooks/useCLIMetadata.ts. The change is not reverted, so the command documented in CLAUDE.md leaves the working tree dirty.Fix: snapshot
git status --porcelainfor that file before packing andgit checkout --it after (only if it was clean before). Note the behavior in CLAUDE.md.From the review of #1304. Part of #1305.
Generated by Claude Code