Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKevin Cormier <kcormier@redhat.com>2021-05-21 17:13:35 +0300
committerGar <gar+gh@danger.computer>2021-05-24 21:33:17 +0300
commit46a9bcbcb0bb2435dca6f45a61b8631f580c7f06 (patch)
tree5710a71770958badfba8160ff6a7970ac1028e6b /docs
parenta3f50fde82716088eeea796385563ab5bd3b3222 (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.md2
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"
}
}