From c565d893a38efb6006e841450503329c9e58f100 Mon Sep 17 00:00:00 2001 From: Christophe Hurpeau Date: Tue, 12 Jul 2016 15:52:30 +0200 Subject: doc: explain difference between `version` and `preversion` scripts PR-URL: https://github.com/npm/npm/pull/13349 Credit: @christophehurpeau ReviewedBy: @iarna --- doc/misc/npm-scripts.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc') 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: -- cgit v1.2.3