diff options
author | Gar <gar+gh@danger.computer> | 2021-07-01 00:28:06 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-07-01 19:38:35 +0300 |
commit | a4e095618cda72244a18aaff9d6660b9082a2b84 (patch) | |
tree | a4c3377800ceb98c0fe13c03d47aed657a77cc6f /docs | |
parent | 9dd32d08e09c21c9a4517161abfc7eed6518faf2 (diff) |
fix(docs): remove .hooks scripts
This is not implemented in npm@7
PR-URL: https://github.com/npm/cli/pull/3486
Credit: @wraithgar
Close: #3486
Reviewed-by: @nlf
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/using-npm/scripts.md | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/docs/content/using-npm/scripts.md b/docs/content/using-npm/scripts.md index 2072d36c9..8df9660ca 100644 --- a/docs/content/using-npm/scripts.md +++ b/docs/content/using-npm/scripts.md @@ -307,19 +307,6 @@ Note that these script files don't have to be nodejs or even javascript programs. They just have to be some kind of executable file. -### Hook Scripts - -If you want to run a specific script at a specific lifecycle event for -ALL packages, then you can use a hook script. - -Place an executable file at `node_modules/.hooks/{eventname}`, and -it'll get run for all packages when they are going through that point -in the package lifecycle for any packages installed in that root. - -Hook scripts are run exactly the same way as package.json scripts. -That is, they are in a separate child process, with the env described -above. - ### Best Practices * Don't exit with a non-zero error code unless you *really* mean it. |