Skip to content

Commit

Permalink
fix(docs): proper postinstall script file name
Browse files Browse the repository at this point in the history
I think this change was incorrect: #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: #3282
Credit: @KevinFCormier
Close: #3282
Reviewed-by: @wraithgar
  • Loading branch information
KevinFCormier authored and wraithgar committed May 24, 2021
1 parent a3f50fd commit 46a9bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/using-npm/scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down

0 comments on commit 46a9bcb

Please sign in to comment.