Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Accept an environment variable to specify which binary to use #4539

Merged
merged 2 commits into from
Jun 13, 2023
Merged
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

- `rome lsp-proxy` should accept the global CLI options [#4505](https://github.com/rome/tools/issues/4505)
- Enhance help descriptions
- Accept the environment variable 'ROME_BINARY' to override the Rome binary

### Configuration

Expand Down
2 changes: 1 addition & 1 deletion npm/rome/bin/rome
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const PLATFORMS = {
},
};

const binPath = PLATFORMS?.[platform]?.[arch];
const binPath = env.ROME_BINARY || PLATFORMS?.[platform]?.[arch];
if (binPath) {
const result = require("child_process").spawnSync(
require.resolve(binPath),
Expand Down