()
| 39 | } |
| 40 | |
| 41 | function getPrebuildPath() { |
| 42 | if (PREBUILD_PLATFORMS.includes(process.platform) && PREBUILD_ARCHS.includes(process.arch)) { |
| 43 | const target = `${isLinuxMusl() ? 'linuxmusl' : process.platform}-${process.arch}`; |
| 44 | const filename = path.join(__dirname, '..', 'prebuilds', `${target}.node`); |
| 45 | if (fs.existsSync(filename)) { |
| 46 | return filename; |
| 47 | } |
| 48 | } |
| 49 | return null; |
| 50 | } |
| 51 | |
| 52 | function isLinuxMusl() { |
| 53 | return process.platform === 'linux' && !process.report.getReport().header.glibcVersionRuntime; |
no test coverage detected