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

Commit

Permalink
Accept an environment variable to specify which binary to use
Browse files Browse the repository at this point in the history
This is a way to temporary fix this build issue: #4516

I think it's a nice feature regardless, for advanced users who are experiencing issues
  • Loading branch information
framp committed May 29, 2023
1 parent 5fd5ada commit e6977ec
Showing 1 changed file with 1 addition and 1 deletion.
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 e6977ec

Please sign in to comment.