diff options
author | Daniel W <dwilches@gmail.com> | 2018-07-23 21:43:18 +0300 |
---|---|---|
committer | Kat Marchán <kzm@zkat.tech> | 2018-07-23 21:43:18 +0300 |
commit | ad0dd226fb97a33dcf41787ae7ff282803fb66f2 (patch) | |
tree | d67bffc2883a01b94c9f4966792b03168aa22d53 /doc | |
parent | 9db15408c60be788667cafc787116555507dc433 (diff) |
version: allow prerelease identifier (#26)
PR-URL: https://github.com/npm/cli/pull/26
Credit: @dwilches
Reviewed-By: @zkat
Diffstat (limited to 'doc')
-rw-r--r-- | doc/cli/npm-version.md | 2 | ||||
-rw-r--r-- | doc/misc/npm-config.md | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/cli/npm-version.md b/doc/cli/npm-version.md index 49f842fbb..a20f4a982 100644 --- a/doc/cli/npm-version.md +++ b/doc/cli/npm-version.md @@ -3,7 +3,7 @@ npm-version(1) -- Bump a package version ## SYNOPSIS - npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git] + npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease [--preid=<prerelease-id>] | from-git] 'npm [-v | --version]' to print npm version 'npm view <pkg> version' to view a package's published version diff --git a/doc/misc/npm-config.md b/doc/misc/npm-config.md index 45aaf9be9..b7f27d3ad 100644 --- a/doc/misc/npm-config.md +++ b/doc/misc/npm-config.md @@ -798,6 +798,14 @@ for updates immediately even for fresh package data. The location to install global items. If set on the command line, then it forces non-global commands to run in the specified folder. +### preid + +* Default: "" +* Type: String + +The "prerelease identifier" to use as a prefix for the "prerelease" part of a +semver. Like the `rc` in `1.2.0-rc.8`. + ### production * Default: false |