Skip to content

Commit ca5e544

Browse files
author
Max Black
committed
docs(scripts): clarify prepare script runs with --production
1 parent 3f48487 commit ca5e544

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
@@ -42,7 +42,7 @@ These scripts happen in addition to the `pre<event>`, `post<event>`, and
4242
**prepare** (since `npm@4.0.0`)
4343
* Runs BEFORE the package is packed, i.e.
4444
during `npm publish` and `npm pack`
45-
* Runs on local `npm install` without any arguments
45+
* Runs on local `npm install` without package arguments (runs with flags like `--production` or `--omit=dev`, but does not run when installing specific packages like `npm install express`)
4646
* 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

0 commit comments

Comments
 (0)