Skip to content

Commit ff1367f

Browse files
authored
docs: recommend prepare over prepublish (#4641)
1 parent a59fd2c commit ff1367f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/using-npm/scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ file.
339339
* Don't prefix your script commands with "sudo". If root permissions
340340
are required for some reason, then it'll fail with that error, and
341341
the user will sudo the npm command in question.
342-
* Don't use `install`. Use a `.gyp` file for compilation, and `prepublish`
342+
* Don't use `install`. Use a `.gyp` file for compilation, and `prepare`
343343
for anything else. You should almost never have to explicitly set a
344344
preinstall or install script. If you are doing this, please consider if
345345
there is another option. The only valid use of `install` or `preinstall`

0 commit comments

Comments
 (0)