Skip to content

Commit

Permalink
Fix postinstall script file
Browse files Browse the repository at this point in the history
I think this change was incorrect: npm#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.
  • Loading branch information
KevinFCormier authored May 21, 2021
1 parent a3f50fd commit f0f6d99
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 f0f6d99

Please sign in to comment.