12 lines
279 B
PowerShell
12 lines
279 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
|
|
$root = Split-Path -Parent $PSScriptRoot
|
|
|
|
try {
|
|
Get-Content -Raw -Encoding UTF8 (Join-Path $root 'manifest.json') | ConvertFrom-Json | Out-Null
|
|
} catch {
|
|
throw 'manifest.json must be valid JSON.'
|
|
}
|
|
|
|
Write-Output 'PASS manifest JSON contract'
|