mirror of
https://github.com/zebrajr/node.git
synced 2025-12-07 12:20:50 +01:00
PR-URL: https://github.com/nodejs/node/pull/2696 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
23 lines
643 B
Groff
23 lines
643 B
Groff
.TH "NPM\-VERSION" "3" "September 2015" "" ""
|
|
.SH "NAME"
|
|
\fBnpm-version\fR \- Bump a package version
|
|
.SH SYNOPSIS
|
|
.P
|
|
.RS 2
|
|
.nf
|
|
npm\.commands\.version(newversion, callback)
|
|
.fi
|
|
.RE
|
|
.SH DESCRIPTION
|
|
.P
|
|
Run this in a package directory to bump the version and write the new
|
|
data back to the package\.json file\.
|
|
.P
|
|
If run in a git repo, it will also create a version commit and tag, and
|
|
fail if the repo is not clean\.
|
|
.P
|
|
Like all other commands, this function takes a string array as its first
|
|
parameter\. The difference, however, is this function will fail if it does
|
|
not have exactly one element\. The only element should be a version number\.
|
|
|