()
| 78 | } |
| 79 | |
| 80 | async function getInstalledSystemCoreToolsVersion(): Promise<number | undefined> { |
| 81 | if (installedSystemCoreToolsVersionIsCached) { |
| 82 | return cachedSystemCoreToolsVersion; |
| 83 | } |
| 84 | |
| 85 | try { |
| 86 | const { stdout: version } = await promisify(exec)(`${DEFAULT_FUNC_BINARY} --version`); |
| 87 | return getMajorVersion(version); |
| 88 | } catch { |
| 89 | return undefined; |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | function getDownloadedCoreToolsVersion(targetVersion: number): string | undefined { |
| 94 | const folder = getCoreToolsFolder(targetVersion); |
no test coverage detected
searching dependent graphs…