2012-08-07 04:07:31 +08:00
|
|
|
.\" Generated with Ronnjs 0.3.8
|
2011-11-27 01:21:03 +08:00
|
|
|
.\" http://github.com/kapouer/ronnjs/
|
|
|
|
.
|
2012-08-02 10:10:42 +08:00
|
|
|
.TH "NPM\-VERSION" "3" "August 2012" "" ""
|
2011-11-27 01:21:03 +08:00
|
|
|
.
|
|
|
|
.SH "NAME"
|
|
|
|
\fBnpm-version\fR \-\- Bump a package version
|
|
|
|
.
|
|
|
|
.SH "SYNOPSIS"
|
|
|
|
.
|
|
|
|
.nf
|
|
|
|
npm\.commands\.version(newversion, callback)
|
|
|
|
.
|
|
|
|
.fi
|
|
|
|
.
|
|
|
|
.SH "DESCRIPTION"
|
|
|
|
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\.
|