()
| 53 | } |
| 54 | |
| 55 | function getBinaryPath() { |
| 56 | const subdir = `${process.arch}-${process.platform}` |
| 57 | const binary = process.platform === 'win32' ? 'rg.exe' : 'rg' |
| 58 | return path.join(binaryDir, subdir, binary) |
| 59 | } |
| 60 | |
| 61 | function proxyEnvSet() { |
| 62 | const v = (s) => (s ?? '').trim() |