diff options
Diffstat (limited to 'deps/npm/html/doc/cli/npm-version.html')
-rw-r--r-- | deps/npm/html/doc/cli/npm-version.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/deps/npm/html/doc/cli/npm-version.html b/deps/npm/html/doc/cli/npm-version.html index 941df17200..2582f880ba 100644 --- a/deps/npm/html/doc/cli/npm-version.html +++ b/deps/npm/html/doc/cli/npm-version.html @@ -16,8 +16,8 @@ <p>Run this in a package directory to bump the version and write the new data back to <code>package.json</code> and, if present, <code>npm-shrinkwrap.json</code>.</p> <p>The <code>newversion</code> argument should be a valid semver string, <em>or</em> a -valid second argument to semver.inc (one of "patch", "minor", "major", -"prepatch", "preminor", "premajor", "prerelease"). In the second case, +valid second argument to semver.inc (one of <code>patch</code>, <code>minor</code>, <code>major</code>, +<code>prepatch</code>, <code>preminor</code>, <code>premajor</code>, <code>prerelease</code>). In the second case, the existing version will be incremented by 1 in the specified field.</p> <p>If run in a git repo, it will also create a version commit and tag, and fail if the repo is not clean. This behavior is controlled by <code>git-tag-version</code> (see @@ -39,11 +39,11 @@ user: "isaacs (http://blog.izs.me/) <i@izs.me>" 2048-bit RSA key, ID 6C481CF6, created 2010-08-31 Enter passphrase: -</code></pre><p>If "preversion", "version", "postversion" in the "scripts" property of -the package.json, it will execute by running <code>npm version</code>. preversion -and version ware executed before bump the package version, postversion -was executed after bump the package version. For example to run <code>npm version</code> -after passed all test:</p> +</code></pre><p>If <code>preversion</code>, <code>version</code>, or <code>postversion</code> are in the <code>scripts</code> property of +the package.json, they will be executed as part of running <code>npm version</code>. +<code>preversion</code> and <code>version</code> are executed before bumping the package version, and +<code>postversion</code> is executed afterwards. For example, to run <code>npm version</code> only if +all tests pass:</p> <pre><code>"scripts": { "preversion": "npm test" } </code></pre><h2 id="configuration">CONFIGURATION</h2> <h3 id="git-tag-version">git-tag-version</h3> @@ -73,5 +73,5 @@ after passed all test:</p> <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6> </td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)"> </td></tr> <tr><td colspan=5 style="width:50px;height:10px;background:#fff"> </td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4> </td><td style="width:90px;height:10px;background:#fff" colspan=9> </td></tr> </table> -<p id="footer">npm-version — npm@2.11.3</p> +<p id="footer">npm-version — npm@2.12.1</p> |