fix: error if powershell is not installed

This commit is contained in:
Amin Yahyaabadi 2022-01-30 17:24:40 -08:00
parent 1410ebe4ca
commit 970f52c9f9
3 changed files with 5 additions and 2 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -14,6 +14,9 @@ export function execPowershell(command: string) {
powershell = maybePowerShell
}
}
if (powershell === undefined) {
throw new Error("Could not find powershell")
}
execa.sync(`${powershell} -C "${command}"`)
}