Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tough-bottles-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@changesets/format": patch
---

Fix Biome formatting by invoking the `biome` executable instead of the `@biomejs/biome` package name
2 changes: 1 addition & 1 deletion src/formatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const biome: Formatter = {
const pm = await ctx.getPackageManager();
await packageManagerExecute(
pm,
["@biomejs/biome", "format", "--write", "--no-errors-on-unmatched", ...files],
["biome", "format", "--write", "--no-errors-on-unmatched", ...files],
ctx.cwd,
);
},
Expand Down
9 changes: 1 addition & 8 deletions tests/format.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ const cases: { formatter: FormatterName; expectedCommand: string[] }[] = [
},
{
formatter: "biome",
expectedCommand: [
"npx",
"@biomejs/biome",
"format",
"--write",
"--no-errors-on-unmatched",
"file.ts",
],
expectedCommand: ["npx", "biome", "format", "--write", "--no-errors-on-unmatched", "file.ts"],
},
{
formatter: "oxfmt",
Expand Down