Skip to content

Commit a4e0956

Browse files
committed
fix(docs): remove .hooks scripts
This is not implemented in npm@7 PR-URL: #3486 Credit: @wraithgar Close: #3486 Reviewed-by: @nlf
1 parent 9dd32d0 commit a4e0956

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

docs/content/using-npm/scripts.md

-13
Original file line numberDiff line numberDiff line change
@@ -307,19 +307,6 @@ Note that these script files don't have to be nodejs or even
307307
javascript programs. They just have to be some kind of executable
308308
file.
309309

310-
### Hook Scripts
311-
312-
If you want to run a specific script at a specific lifecycle event for
313-
ALL packages, then you can use a hook script.
314-
315-
Place an executable file at `node_modules/.hooks/{eventname}`, and
316-
it'll get run for all packages when they are going through that point
317-
in the package lifecycle for any packages installed in that root.
318-
319-
Hook scripts are run exactly the same way as package.json scripts.
320-
That is, they are in a separate child process, with the env described
321-
above.
322-
323310
### Best Practices
324311

325312
* Don't exit with a non-zero error code unless you *really* mean it.

0 commit comments

Comments
 (0)