Types/OpenPackage/get_Package.json.ps1
|
<# .SYNOPSIS Gets a package's `package.json` .DESCRIPTION Gets the content of any `package.json` files in the package #> [OutputType([PSObject])] param() # Get every part foreach ($part in $this.GetParts()) { # and ignore any part not named CHANGELOG if ($part.Uri -notmatch '/package\.json$') { continue } if ($part.Reader) { $part.Read() } else { $part } } # We are done. |