From ef2494abfe5bb559bb515df5f4df13d440487d2c Mon Sep 17 00:00:00 2001 From: Gar Date: Wed, 30 Jun 2021 14:28:06 -0700 Subject: [PATCH] fix(docs): remove .hooks scripts This is not implemented in npm@7 --- docs/content/using-npm/scripts.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/docs/content/using-npm/scripts.md b/docs/content/using-npm/scripts.md index 3869334f6cc5a..ebbd1b214d5be 100644 --- a/docs/content/using-npm/scripts.md +++ b/docs/content/using-npm/scripts.md @@ -341,19 +341,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.