Skip to content

Commit

Permalink
Accept an environment variable to specify which binary to use (#4539)
Browse files Browse the repository at this point in the history
  • Loading branch information
framp authored Jun 13, 2023
1 parent 36311b0 commit 93b8a25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ New configuration

- `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

0 comments on commit 93b8a25

Please sign in to comment.