(unpackedPath: string)
| 51 | } |
| 52 | |
| 53 | function areToolsUnpacked(unpackedPath: string): boolean { |
| 54 | if (!existsSync(unpackedPath)) { |
| 55 | return false; |
| 56 | } |
| 57 | |
| 58 | const isWin = platform() === 'win32'; |
| 59 | const difftBinary = isWin ? 'difft.exe' : 'difft'; |
| 60 | const rgBinary = isWin ? 'rg.exe' : 'rg'; |
| 61 | |
| 62 | const expectedFiles = [ |
| 63 | join(unpackedPath, difftBinary), |
| 64 | join(unpackedPath, rgBinary) |
| 65 | ]; |
| 66 | |
| 67 | return expectedFiles.every((file) => existsSync(file)); |
| 68 | } |
| 69 | |
| 70 | function isTunwgReady(runtimeRoot: string): boolean { |
| 71 | const isWin = platform() === 'win32'; |
no outgoing calls
no test coverage detected