2020-01-10 14:07:59 +01:00

10 lines
330 B
PowerShell

$ErrorActionPreference = 'Stop'; # stop on all errors
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$fileLocation = Join-Path $toolsDir 'serverless.exe'
Install-BinFile -Name serverless -Path $fileLocation
Install-BinFile -Name sls -Path $fileLocation
& 'serverless' 'binary-postinstall'