Throws an error if the provided git tag is already defined.
Tag to check
Void promise if the tag is unused, otherwise rejected promise.
Commit and tag the current changes as a version release.
Semver version for the release.
Root of the project, must be inside a git repo. Default: process.cwd()
.
Promise resolved once the commit is done.
Get the commit or tag message corresponding to the release of the provided version.
Semver version used to create the tag.
Corresponding message.
Get the Git tag corresponding to the provided semver version.
It prefixes the version with v
.
Semver version used to create the tag.
Corresponding tag.
Reads a JSON file and returns its parsed content.
Path of the file to read.
Promise for the content of the file.
Reads the package.json
file of the project.
Project locations.
Promise for the package.json
data.
Updates the version in package.json
and creates a release commit.
Ensures that the master
Git branch is active without uncommited changes.
The new version (semver string)
Project locations object.
Promise resolved once the release commit is created.
Writes an object to a JSON file.
The JSON file is pretty printed using 2-spaces indentation, new lines at separators and a trailing new line.
Path of the file to write the object in.
Data to write.
Promise resolved once the data is written.
Generated using TypeDoc
Various helpers around
package.json
, versions and tags.