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

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristophe Hurpeau <christophe@hurpeau.com>2016-07-12 16:52:30 +0300
committerRebecca Turner <me@re-becca.org>2016-08-12 00:28:01 +0300
commitc565d893a38efb6006e841450503329c9e58f100 (patch)
tree1adc386ce75a68d8b8f3c667c3e461bc5ec8453d /doc
parent1619871ac0cc8839dc9962c78e736095976c1eb4 (diff)
doc: explain difference between `version` and `preversion` scripts
PR-URL: https://github.com/npm/npm/pull/13349 Credit: @christophehurpeau ReviewedBy: @iarna
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/npm-scripts.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/misc/npm-scripts.md b/doc/misc/npm-scripts.md
index 9ec75cc5d..9ca92539b 100644
--- a/doc/misc/npm-scripts.md
+++ b/doc/misc/npm-scripts.md
@@ -19,10 +19,12 @@ following scripts:
Run BEFORE the package is uninstalled.
* postuninstall:
Run AFTER the package is uninstalled.
-* preversion, version:
+* preversion:
Run BEFORE bump the package version.
+* version:
+ Run AFTER bump the package version, but BEFORE commit.
* postversion:
- Run AFTER bump the package version.
+ Run AFTER bump the package version, and AFTER commit.
* pretest, test, posttest:
Run by the `npm test` command.
* prestop, stop, poststop: