Skip to content

Commit

Permalink
doc: update version doc to include pre-* increment args
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs authored and othiym23 committed Aug 15, 2014
1 parent b6bb746 commit f23f1d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/cli/npm-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ npm-version(1) -- Bump a package version

## SYNOPSIS

npm version [<newversion> | major | minor | patch]
npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease]

## DESCRIPTION

Run this in a package directory to bump the version and write the new
data back to the package.json file.

The `newversion` argument should be a valid semver string, *or* a valid
second argument to semver.inc (one of "patch", "minor", or
"major"). In the second case, the existing version will be incremented
by 1 in the specified field.
The `newversion` argument should be a valid semver string, *or* a
valid second argument to semver.inc (one of "patch", "minor", "major",
"prepatch", "preminor", "premajor", "prerelease"). In the second case,
the existing version will be incremented by 1 in the specified field.

If run in a git repo, it will also create a version commit and tag, and
fail if the repo is not clean.
Expand Down

0 comments on commit f23f1d8

Please sign in to comment.