From 0c122f24ff1d4d400975edda2b7262aaaf6f7d69 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Mon, 24 Oct 2016 23:36:06 +0200 Subject: doc: Add note on when `prepare` script is run Credit: @SimenB PR-URL: https://github.com/npm/npm/pull/14380 Reviewed-By: @zkat --- doc/misc/npm-scripts.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/misc/npm-scripts.md b/doc/misc/npm-scripts.md index 05cb542ce..3f048716d 100644 --- a/doc/misc/npm-scripts.md +++ b/doc/misc/npm-scripts.md @@ -6,12 +6,13 @@ npm-scripts(7) -- How npm handles the "scripts" field npm supports the "scripts" property of the package.json script, for the following scripts: -* prepare: - Run both before the package is published, and on local `npm - install` without any arguments. (See below.) * prepublish: Run BEFORE the package is published. (Also run on local `npm install` without any arguments. See below.) +* prepare: + Run both BEFORE the package is published, and on local `npm + install` without any arguments. (See below.) This is run + AFTER `prepublish`, but BEFORE `prepublishOnly`. * prepublishOnly: Run BEFORE the package is published. (See below.) * publish, postpublish: -- cgit v1.2.3