Forked from ediblecode/package-json-build-number.ps1
Last active
August 7, 2020 05:43
-
-
Save KevinTCoughlin/73a2cb00c0d0d81f64a3fadaac23cacd to your computer and use it in GitHub Desktop.
PowerShell Parse & Print version value from package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$version = (Get-Content package.json) -join "`n" | ConvertFrom-Json | Select -ExpandProperty "version" | |
Write-Host "Version: '$version']" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment