From 5b118df814071b7883b6478098e0318477069609 Mon Sep 17 00:00:00 2001 From: David Julian Albers Date: Mon, 30 Nov 2026 19:43:26 +0100 Subject: [PATCH 1/2] test(newborns): a package repo's changeset version writes a changelog 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 --- newborns/repo-turbo.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/newborns/repo-turbo.test.ts b/newborns/repo-turbo.test.ts index d9deafbb..4c58b8e2 100644 --- a/newborns/repo-turbo.test.ts +++ b/newborns/repo-turbo.test.ts @@ -11,8 +11,9 @@ // the commit, and refuses it without `depends = "lint"`. `mise e2e` works first // in a fresh clone. A package repo also has what a release needs: a workspace // package with a pending changeset passes `test`, scoped to it by name, and -// `changeset version` takes the changeset in. Created by `plx new`; it needs -// the network (`mise install`, `pnpm add`). +// `changeset version` takes the changeset in, with a changelog that `check` +// then accepts. Created by `plx new`; it needs the network (`mise install`, +// `pnpm add`). // // mise run newborn # every template // KEEP=1 mise run newborn # leave the newborns in place and say where @@ -285,5 +286,7 @@ for (const [name, answers] of [ assert.ok(scoped.ok, scoped.output); await sh('mise', ['exec', '--', 'pnpm', 'exec', 'changeset', 'version'], dir); assert.match(read(dir, 'packages/demo/package.json'), /"version": "0\.2\.0"/); + assert.match(read(dir, 'packages/demo/CHANGELOG.md'), /^## 0\.2\.0\n\n### Minor Changes\n\n- A first change\.$/m); + await pass(dir, name, 'check'); }); } From b2d1c3b184b4da18d80ea2f635aa778764fe9980 Mon Sep 17 00:00:00 2001 From: David Julian Albers Date: Mon, 30 Nov 2026 19:45:08 +0100 Subject: [PATCH 2/2] fix(repo-turbo): a package repo's changesets format nothing @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 --- .../config.json.jinja | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/repo-turbo/files/{% if publishes_packages %}.changeset{% endif %}/config.json.jinja b/templates/repo-turbo/files/{% if publishes_packages %}.changeset{% endif %}/config.json.jinja index e86af74a..cdd5d63c 100644 --- a/templates/repo-turbo/files/{% if publishes_packages %}.changeset{% endif %}/config.json.jinja +++ b/templates/repo-turbo/files/{% if publishes_packages %}.changeset{% endif %}/config.json.jinja @@ -4,6 +4,8 @@ "commit": false, "access": "{{ 'restricted' if package_registry == 'github' else 'public' }}", "baseBranch": "main", + {#- No formatter for changelogs and changesets: Biome formats no Markdown here (@plexus-ms/config), and changesets would start it as `pnpm exec @biomejs/biome`, which pnpm cannot run. #} + "format": false, "updateInternalDependencies": "patch", "fixed": [], "linked": [],