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'); }); } 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": [],