Skip to content

Commit f0f6d99

Browse files
Fix postinstall script file
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.
1 parent a3f50fd commit f0f6d99

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)