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:
authorKat Marchán <kzm@sykosomatic.org>2017-05-26 05:11:21 +0300
committerKat Marchán <kzm@sykosomatic.org>2017-05-26 06:14:32 +0300
commit674004c4c5ef50ed303add582351b32e2293b78e (patch)
treeff03fb23e994b572e87d5feba0922e0fe99f1ef6 /doc
parentdb766320bcb8a1012d1f7b9d005718b83d8163c3 (diff)
lifecycle: added prepack and postpack (#16725)
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/npm-scripts.md16
1 files changed, 11 insertions, 5 deletions
diff --git a/doc/misc/npm-scripts.md b/doc/misc/npm-scripts.md
index 3f048716d..0e9c3bc6e 100644
--- a/doc/misc/npm-scripts.md
+++ b/doc/misc/npm-scripts.md
@@ -7,14 +7,20 @@ npm supports the "scripts" property of the package.json script, for the
following scripts:
* prepublish:
- Run BEFORE the package is published. (Also run on local `npm
- install` without any arguments. See below.)
+ Run BEFORE the package is packed and published, as well as 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
+ Run both BEFORE the package is packed and 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.)
+ Run BEFORE the package is prepared and packed, ONLY on `npm publish`. (See
+ below.)
+* prepack:
+ run BEFORE a tarball is packed (on `npm pack`, `npm publish`, and when
+ installing git dependencies)
+* postpack:
+ Run AFTER the tarball has been generated and moved to its final destination.
* publish, postpublish:
Run AFTER the package is published.
* preinstall: