( cwd: string )
| 88 | |
| 89 | // the native checker installed, tsrs where its binary is |
| 90 | export const installedNativeChecker = ( |
| 91 | cwd: string |
| 92 | ): NativeChecker | undefined => { |
| 93 | for (const require of requiresFor(cwd)) { |
| 94 | if (hasTsrsBinary(require)) return "tsrs" |
| 95 | for (const entry of entriesByChecker.tsgo) { |
| 96 | const version = nativeVersionOf(require, entry) |
| 97 | if (version && isNativeVersion(version)) return "tsgo" |
| 98 | } |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | const loadNative = (cwd: string, checker: NativeChecker): Native => { |
| 103 | for (const require of requiresFor(cwd)) { |
no test coverage detected