From ad0dd226fb97a33dcf41787ae7ff282803fb66f2 Mon Sep 17 00:00:00 2001 From: Daniel W Date: Mon, 23 Jul 2018 11:43:18 -0700 Subject: version: allow prerelease identifier (#26) PR-URL: https://github.com/npm/cli/pull/26 Credit: @dwilches Reviewed-By: @zkat --- doc/cli/npm-version.md | 2 +- doc/misc/npm-config.md | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'doc') 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 [ | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git] + npm version [ | major | minor | patch | premajor | preminor | prepatch | prerelease [--preid=] | from-git] 'npm [-v | --version]' to print npm version 'npm view 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 -- cgit v1.2.3