Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2030250

Browse files
Max Blackowlstronaut
authored andcommitted
docs(scripts): clarify prepare script runs with --production
1 parent 33a50d7 commit 2030250

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 `[email protected]`)
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)