node/deps/npm/man/man3/npm-version.3

23 lines
642 B
Groff
Raw Normal View History

.TH "NPM\-VERSION" "3" "February 2015" "" ""
.SH "NAME"
2014-09-25 05:41:07 +08:00
\fBnpm-version\fR \- Bump a package version
.SH SYNOPSIS
.P
.RS 2
2014-11-05 07:08:12 +08:00
.nf
npm\.commands\.version(newversion, callback)
2014-11-05 07:08:12 +08:00
.fi
2014-09-25 05:41:07 +08:00
.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\.
2014-09-25 05:41:07 +08:00