Skip to content

Commit

Permalink
binary yarn/pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
alshdavid committed Apr 5, 2024
1 parent ae8a49f commit c5ee348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions npm/mach/postinstall.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ if (JSON.parse(fs.readFileSync(path.join(__dirname, 'package.json'), 'utf8')).ve
}

// If you BYO Mach binary, this install script will use that
if (process.env.MACH_EXEC_PATH_OVERRIDE) {
if (process.env.MACH_BIN_OVERRIDE) {
fs.rmSync(path.join(__dirname, 'bin.exe'))
fs.linkSync(
process.env.MACH_EXEC_PATH_OVERRIDE,
process.env.MACH_BIN_OVERRIDE,
path.join(__dirname, 'bin.exe'),
)
process.exit(0)
Expand Down

0 comments on commit c5ee348

Please sign in to comment.