()
| 2 | import {existsSync} from 'fs'; |
| 3 | |
| 4 | async function install(): Promise<void> { |
| 5 | if (existsSync('../../build/build_native.py')) { |
| 6 | const buildNativeExtraArgs = process.argv.slice(5) |
| 7 | await buildNative(buildNativeExtraArgs); |
| 8 | return; |
| 9 | } |
| 10 | |
| 11 | await buildLocal(process.platform, process.arch); |
| 12 | } |
| 13 | |
| 14 | install().catch(err => { |
| 15 | console.error(err); |
no test coverage detected