diff options
author | Christophe Hurpeau <christophe@hurpeau.com> | 2016-07-12 16:52:30 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2016-08-12 00:28:01 +0300 |
commit | c565d893a38efb6006e841450503329c9e58f100 (patch) | |
tree | 1adc386ce75a68d8b8f3c667c3e461bc5ec8453d /doc/misc/npm-scripts.md | |
parent | 1619871ac0cc8839dc9962c78e736095976c1eb4 (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/misc/npm-scripts.md')
-rw-r--r-- | doc/misc/npm-scripts.md | 6 |
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: |