Skip to content

chore(gate): CREW-14 — bun run check builds to a temp dir, never rewrites the committed bundle - #27

Merged
nikolasd merged 2 commits into
mainfrom
crew-14-check-gate
Aug 29, 2026
Merged

chore(gate): CREW-14 — bun run check builds to a temp dir, never rewrites the committed bundle#27
nikolasd merged 2 commits into
mainfrom
crew-14-check-gate

Conversation

@nikolasd

@nikolasd nikolasd commented Aug 29, 2026

Copy link
Copy Markdown
Owner

What

Running the documented full gate (bun run check) on macOS rewrote the committed packages/extension/dist/index.js with a platform-shimmed bundle that CLAUDE.md then tells you not to commit. This papercut is how a contaminated commit happened during the fix wave.

Change

Two-line total: the check script builds to a fresh mktemp -d output (variable named CHECK_OUT — deliberately not TMPDIR, which is a real env var tools read) and cleans it up; plain bun run build and CI's linux-x64 bundle-check are untouched. One clarifying line added to CLAUDE.md's bundle caveat.

Evidence

Note for the maintainer

⚠️ This changes the documented gate's behavior — per the fix-wave agreement it merges only with your explicit sign-off.

…e untouched

Wrap the build step in check script with mktemp -d to build to a temporary
directory instead of the committed packages/extension/dist/. This prevents
bun run check from dirtying the committed bundle on macOS builds.

The --outdir override is passed directly to bun build, which honors it.
Default behavior (plain bun run build) remains unchanged for release flow.
…caveat

1. Rename CHECK_OUT local variable (was TMPDIR) to avoid confusion with
   the environment variable that tools read — landmine for future editors.

2. Update CLAUDE.md bundle caveat to document that bun run check no longer
   touches the committed dist (builds to temp dir instead).
@nikolasd
nikolasd merged commit ef015ea into main Aug 29, 2026
13 checks passed
@nikolasd
nikolasd deleted the crew-14-check-gate branch August 29, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant