Types/OpenPackage/get_TypeScriptConfig.json.ps1

<#
.SYNOPSIS
    Gets a package's `tsconfig.json`
.DESCRIPTION
    Gets the content of any TypeScript configuration `tsconfig.json` files in the package
#>

[OutputType([psobject])]
param()

# Get every part
foreach ($part in $this.GetParts()) {
    # and ignore any part not named manifest.json
    if ($part.Uri -notmatch '/tsconfig\.json$') { continue }

    if ($part.Reader) {
        $part.Read()
    } else {
        $part
    }
}

# We are done.