Skip to content

Commit 1e51a25

Browse files
Max Blackowlstronaut
authored andcommitted
docs: fix lifecycle event order for prepare script
1 parent 8d72bc9 commit 1e51a25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/lib/content/using-npm/scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ These scripts happen in addition to the `pre<event>`, `post<event>`, and
4343
* Runs BEFORE the package is packed, i.e.
4444
during `npm publish` and `npm pack`
4545
* Runs on local `npm install` without any arguments
46-
* Runs AFTER `prepublish`, but BEFORE `prepublishOnly`
46+
* Runs AFTER `prepublishOnly` and `prepack`, but BEFORE `postpack`
4747
* Runs for a package if it's being installed as a link through `npm install <folder>`
4848

4949
* NOTE: If a package being installed through git contains a `prepare` script, its `dependencies` and `devDependencies` will be installed, and the prepare script will be run, before the package is packaged and installed.

0 commit comments

Comments
 (0)