Skip to content

The changesets format nothing, so changeset version survives @changesets/cli 3.1.0 - #143

Merged
davidjalbers merged 1 commit into
mainfrom
fix/changeset-format
Nov 30, 2026
Merged

davidjalbers merged 1 commit into
mainfrom
fix/changeset-format

Conversation

@davidjalbers

Copy link
Copy Markdown
Contributor

Why

The weekly update of Monday 2026-12-07 before 4am can bring @changesets/cli 3.1.0 with @changesets/apply-release-plan 8.2.0 and @changesets/write 1.1.0, and it would merge on green, since this repo's check never runs changeset version.
Those versions format each changelog and changeset with pnpm exec @biomejs/biome format, which pnpm cannot run, because Biome's binary is biome (changesets/format#56).
The first release after that would fail in the version step and leave it half written: the package bumped, the changelog written, the changeset not consumed.
changeset add fails the same way.
The repo is locked today at 3.0.3, 8.1.1 and 1.0.1, so it works now, and the lockfile is unchanged here.

The change

One line in .changeset/config.json, after "baseBranch": "format": false.
It is the line the repo-turbo template carries from the next Plexus version on.
Every @changesets/cli 3.0.x accepts the key.
No formatter ran on changelogs here before: the lockfile holds no Prettier, oxfmt or dprint, and the shared Biome configuration formats no Markdown.

Proof

In a scratch copy, moved to @changesets/cli 3.1.0, apply-release-plan 8.2.0 and write 1.1.0, with a changeset for @plexus-ms/std, changeset version exits 1 with the pnpm exec @biomejs/biome format error, leaving the half-written state.
With the line it exits 0 and writes ## 0.2.4 with the entry, and changeset add --empty works too.
The transcript is in the scratch directory of this change, proof.log.
TURBO_FORCE=true mise run verify exits 0 here.

Changeset guard

The guard is changeset status --since=origin/main in on_pr.yml.
It exits 0 for this change, since no package changes, so the pull request carries no changeset, empty or otherwise.

🤖 Generated with Claude Code

@changesets/cli 3.1.0 (apply-release-plan 8.2.0, write 1.1.0) formats each
changelog and changeset with pnpm exec @biomejs/biome, which pnpm cannot run,
so changeset version exits 1 (changesets/format#56). Biome formats no Markdown
here, so format: false says what the repo already does.

Refs PLX-196

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@davidjalbers davidjalbers self-assigned this Nov 30, 2026
@davidjalbers
davidjalbers merged commit 24fa3e3 into main Nov 30, 2026
3 checks passed
@davidjalbers
davidjalbers deleted the fix/changeset-format branch November 30, 2026 21:38
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