Skip to content

report-install-size.mjs dirties a tracked file #1321

Description

@l2ysho

scripts/report-install-size.mjs:91 runs pnpm pack, which triggers prepackinsert-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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request.t-buildersIssues owned by the Builders team.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions