Repository navigation
Keep changesets from formatting in package repos, which breaks changeset version with @changesets/cli 3.1 - #50
Merged
Conversation
… its check accepts The newborn package repo asserts the CHANGELOG.md that changeset version writes and runs its own check on the result, so that a changelog the repo's Biome would refuse, or a formatter changesets cannot start, fails here. Refs PLX-196 Co-Authored-By: Claude Fable 5.2 <[email protected]>
@changesets/cli 3.1.0 (apply-release-plan 8.2.0, write 1.1.0) adds Biome to the formatters its default "format": "auto" detects, finds biome.json, and formats each changelog and changeset it writes with `pnpm exec @biomejs/biome format`. pnpm exec runs a binary, and Biome's is `biome`, so changeset version exits 1 in every package repo of the template (changesets/format#56, open). Biome would have nothing to do anyway: the shared configuration turns its formatter off for Markdown. "format": false, which @changesets/config 4.0 already accepts, says so and holds for 3.0 and 3.1 alike. Refs PLX-196 Co-Authored-By: Claude Fable 5.2 <[email protected]>
This was referenced Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What broke
Since 2026-11-30 18:23 UTC both newborn package repos fail at
pnpm exec changeset versionwith "The commandpnpm exec @biomejs/biome format --write --no-errors-on-unmatched …/CHANGELOG.mdexited with a non-zero status (1)", on every branch.@changesets/cli3.1.0,@changesets/apply-release-plan8.2.0 and@changesets/write1.1.0 were published on 2026-11-27 at 18:23 UTC; the template'sminimumReleaseAge: 4320kept a newborn, which has no lockfile, on 3.0.3, 8.1.1 and 1.0.1 for exactly three days.Read in the tarballs from npm: 8.1.1 and 1.0.1 detected a formatter with
defaultDetectOrder.filter((f) => f !== "biome"), and 8.2.0 and 1.1.0 calldetect({ cwd })with Biome included ("Added support for formatting with Biome (version 2.6+)", changesets/changesets#2346).With the default
"format": "auto"they findbiome.jsonand hand each changelog and each new changeset to@changesets/format0.1.3, which runsresolveCommand(pm, "execute-local", ["@biomejs/biome", "format", …]), that ispnpm exec @biomejs/biome.Run by hand in a newborn, pnpm answers
ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL … Command "@biomejs/biome" not found:pnpm execruns a binary, and Biome's isbiome.pnpm exec biome format --write --no-errors-on-unmatched …/CHANGELOG.mdexits 0 with "Formatted 0 files", since Biome 2.6.9 is a root devDependency of every repo the template creates (birth commandpnpm add --workspace-root --save-dev --save-exact @biomejs/biome) and@plexus-ms/configturns Biome's formatter off for**/*.md.So the defect is upstream in
@changesets/format, filed there as changesets/format#56 with a fix open as changesets/format#57;"format": "biome"runs the same command and does not help.The fix
.changeset/config.jsonof a package repo sets"format": false, with a template comment saying why.Biome formats no Markdown here anyway, so the setting says what a package repo already does, and it stays right once upstream is fixed.
@changesets/config4.0.1, which 3.0.3 uses, already acceptsformat: false, so the file works before and after the update.A test commit before the fix asserts the
CHANGELOG.mdthatchangeset versionwrites and runs the newborn's owncheckon the result.Weighed against it:
@biomejs/biomebinary to make reachable, and a shim of our own named after a package is the mechanism the methodology warns against.@changesets/clibelow 3.1.0: this does not dodge the defect. In a fresh install~3.0.3still resolvesapply-release-plan8.2.0 andwrite1.1.0 through^8.1.1and^1.0.1, andchangeset versionfails the same way (shown in the proof). It would also leave every repo to meet the same failure later.What an existing package repo must do
A repo locked at 3.0.3 with
apply-release-plan8.1.1 works until its lockfile moves: the weekly group or lockfile maintenance, Monday before 4am, is enough. Both merge on green CI, andverifynever runschangeset version.After that,
changeset versionfails in the release workflow's "version packages" step, andchangeset addfails too.The repo takes the Plexus version that carries this change (
plx updatemerges.changeset/config.json), or before that adds"format": falseto.changeset/config.jsonby hand.plexus-ms/librariesis locked at@changesets/cli3.0.3,apply-release-plan8.1.1 andwrite1.0.1 onmain. Its weekly update and lockfile maintenance on 2026-12-07 would bring 3.1.0, so it needs the line before then.Proof
Using the
plxbuilt from this branch, with its packages served the way the newborn tests serve them, the proof created a newborn in each shape (packages,private-packages) and ran everything from a fresh clone. The installedplxis byte-for-byte the build.mise checkandmise testpass,changeset add --emptywrites a changeset, andchangeset versionwrites## 0.2.0 / ### Minor Changes / - A first change.and bumps the package to 0.2.0.mise checkpasses on the result. The installed versions are@changesets/cli3.1.0 (apply-release-plan8.2.0,write1.1.0,format0.1.3) and@biomejs/biome2.6.9.A repo born with yesterday's template and resolution (3.0.3, 8.1.1, 1.0.1) versions fine.
After
pnpm update @changesets/cli(3.1.0, 8.2.0, 1.1.0), bothchangeset versionandchangeset addfail with the command above.With
"format": falseadded by hand, both pass, and so doesmise check.The newborn tests pass with
CI=true(35 of 35) and without it.Verify
TURBO_FORCE=true mise run verifyexits 0. Nothing was cached in build, check-js or test, and the newborns pass 35 of 35.mainmainhas the same defect, because its template has the same.changeset/config.json.jinjaand its newborn test runschangeset version.The fix commit cherry-picks cleanly onto
origin/main(checked withgit merge-tree).The test commit conflicts there, because
main's newborn test still saysverifywhereone-loopsayscheck.On
mainit is the same two lines afterchangeset version, withawait verify(dir, name)in place ofawait pass(dir, name, 'check').🤖 Generated with Claude Code