Skip to content

Commit

Permalink
refactor: remove ROME_BINARY (#4853)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev authored Jan 8, 2025
1 parent 2ae40a7 commit dac3882
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .changeset/remove_rome_binary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
cli: major
---

# Remove `ROME_BINARY`

The environment variable `ROME_BINARY` isn't supported anymore.

Use `BIOME_BINARY` instead.
5 changes: 1 addition & 4 deletions packages/@biomejs/biome/bin/biome
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@ const PLATFORMS = {
arm64: "@biomejs/cli-linux-arm64-musl/biome",
},
};
if (env.ROME_BINARY) {
console.warn(`[WARN] The environment variable "ROME_BINARY" is deprecated. Use "BIOME_BINARY" instead.`)
}

const binPath = env.BIOME_BINARY || env.ROME_BINARY ||
const binPath = env.BIOME_BINARY ||
(platform === "linux" && isMusl()
? PLATFORMS?.["linux-musl"]?.[arch]
: PLATFORMS?.[platform]?.[arch]
Expand Down

0 comments on commit dac3882

Please sign in to comment.