diff options
author | Simen Bekkhus <sbekkhus91@gmail.com> | 2016-10-25 00:36:06 +0300 |
---|---|---|
committer | Kat Marchán <kzm@sykosomatic.org> | 2016-10-25 02:18:29 +0300 |
commit | 0c122f24ff1d4d400975edda2b7262aaaf6f7d69 (patch) | |
tree | ebd530e51b96d80f04c6faf5a3aa58bf91849ecf /doc | |
parent | c5907b2fc1a82ec919afe3b370ecd34d8895c7a2 (diff) |
doc: Add note on when `prepare` script is run
Credit: @SimenB
PR-URL: https://github.com/npm/npm/pull/14380
Reviewed-By: @zkat
Diffstat (limited to 'doc')
-rw-r--r-- | doc/misc/npm-scripts.md | 7 |
1 files changed, 4 insertions, 3 deletions
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: |