Skip to content

Commit 46a9bcb

Browse files
KevinFCormierwraithgar
authored andcommitted
fix(docs): proper postinstall script file name
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. PR-URL: npm#3282 Credit: @KevinFCormier Close: npm#3282 Reviewed-by: @wraithgar
1 parent a3f50fd commit 46a9bcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/using-npm/scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ For example, if your package.json contains this:
304304
{
305305
"scripts" : {
306306
"install" : "scripts/install.js",
307-
"postinstall" : "scripts/postinstall.js",
307+
"postinstall" : "scripts/install.js",
308308
"uninstall" : "scripts/uninstall.js"
309309
}
310310
}

0 commit comments

Comments
 (0)