Skip to content

chore(ui-scripts): add transpile-diff tooling script#2577

Merged
balzss merged 1 commit into
masterfrom
bin-diff
Jun 10, 2026
Merged

chore(ui-scripts): add transpile-diff tooling script#2577
balzss merged 1 commit into
masterfrom
bin-diff

Conversation

@balzss

@balzss balzss commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a transpile-diff command (packages/ui-scripts/lib/commands/transpile-diff.ts) for verifying that build-tooling changes — Babel→SWC, tsctsgo, preset/TypeScript bumps — don't unintentionally alter emitted code.
  • For each of two git refs it builds the repo in an isolated worktree, normalizes the es//lib//types/ output (strips banner, sourcemaps, whitespace), diffs the snapshots, and writes an HTML report. Snapshots are cached by commit SHA so unchanged refs skip rebuild.
  • --semantic reprints through dprint so formatting-only diffs are ignored (recommended for cross-compiler comparisons); exits non-zero on any real change. Meant for occasional local use, not CI.
  • Includes contributor docs at docs/contributor-docs/transpile-diff.md.

Test Plan

  • pnpm run transpile-diff runs the current branch vs master and produces an HTML report
  • pnpm run transpile-diff master <branch> and pnpm run transpile-diff v9.0.0 HEAD work with branches, tags, and SHAs
  • --semantic collapses formatting-only differences to zero
  • Re-running against an unchanged ref skips the rebuild (cache hit)
  • A build failure on a ref aborts with a clear message rather than a misleading diff

Jira Reference

INSTUI-5054

AI Disclosure

This PR was created with AI assistance (Claude Code).

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-10 08:53 UTC

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

Visual regression report

No changes.

Status Count
Unchanged 32
Changed 0
New 0
Removed 0

📊 View full report

Baselines come from the visual-baselines branch. They refresh on every merge to master.

github-actions Bot pushed a commit that referenced this pull request Jun 2, 2026
@balzss balzss requested a review from matyasf June 9, 2026 14:20
@balzss balzss marked this pull request as ready for review June 9, 2026 14:20
@balzss balzss changed the title chore(ui-scripts): add bin diffing script for occasional tooling change monitoring and testing chore(ui-scripts): add transpile-diff tooling script Jun 9, 2026
@balzss balzss requested a review from joyenjoyer June 10, 2026 08:51
@ToMESSKa ToMESSKa self-requested a review June 10, 2026 08:51
@balzss balzss merged commit 33e3bab into master Jun 10, 2026
10 checks passed
@balzss balzss deleted the bin-diff branch June 10, 2026 08:52
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.

3 participants