Welcome to mirror list, hosted at ThFree Co, Russian Federation.

npm-version.3 « man3 « man « npm « deps - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bbc5785d8859ec6b3ae2592e848b7950a82ae526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.TH "NPM\-VERSION" "3" "July 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\.