Simple CLI to generate package version manifests
npm install package-version-manifestSimple CLI to generate package version manifests
``sh`
yarn add --dev package-version-manifest
`sh`
yarn -s package-version-manifest [version]
By default, the version is printed out in the following format:
``
major=
major=
major=
pre=[
This format is useful for loading as environment variables in Bash.
If no version is specified, the package version defined in package.json is
used.
`sh`
yarn -s package-version-manifest > manifest.ini
`sh`
source <(yarn -s package-version-manifest)
echo "Package version: $major.$minor.$patch (${pre:-final})"
`sh`
yarn -s package-version-manifest -o json
The version is then printed in JSON:
`json`
{"major":
`sh``
yarn -s package-version-manifest -o major
yarn -s package-version-manifest -o minor
yarn -s package-version-manifest -o patch
yarn -s package-version-manifest -o pre