diff options
author | Kevin Cormier <kcormier@redhat.com> | 2021-05-21 17:13:35 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-05-24 21:33:17 +0300 |
commit | 46a9bcbcb0bb2435dca6f45a61b8631f580c7f06 (patch) | |
tree | 5710a71770958badfba8160ff6a7970ac1028e6b /docs | |
parent | a3f50fde82716088eeea796385563ab5bd3b3222 (diff) |
fix(docs): proper postinstall script file name
I think this change was incorrect: https://github.com/npm/cli/pull/2024
The point of this example is that the same script is being used for two different stages (`install` and `post-install`) so it would be a good idea to look at the `npm_lifecycle_event` environment variable inside this script to determine which stage is being run.
PR-URL: https://github.com/npm/cli/pull/3282
Credit: @KevinFCormier
Close: #3282
Reviewed-by: @wraithgar
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/using-npm/scripts.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/using-npm/scripts.md b/docs/content/using-npm/scripts.md index 82cde7d79..3869334f6 100644 --- a/docs/content/using-npm/scripts.md +++ b/docs/content/using-npm/scripts.md @@ -304,7 +304,7 @@ For example, if your package.json contains this: { "scripts" : { "install" : "scripts/install.js", - "postinstall" : "scripts/postinstall.js", + "postinstall" : "scripts/install.js", "uninstall" : "scripts/uninstall.js" } } |