fix(docs): proper postinstall script file name · npm/cli@46a9bcb (original) (raw)

Commit 46a9bcb

KevinFCormierwraithgar

authored and

committed

fix(docs): proper postinstall script file name

I think this change was incorrect: #2024The 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: #3282Credit: @KevinFCormier Close: #3282Reviewed-by: @wraithgar

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 1 addition & 1 deletion

Original file line number Diff line number Diff line change
@@ -304,7 +304,7 @@ For example, if your package.json contains this:
304 304 {
305 305 "scripts" : {
306 306 "install" : "scripts/install.js",
307 -"postinstall" : "scripts/postinstall.js",
307 +"postinstall" : "scripts/install.js",
308 308 "uninstall" : "scripts/uninstall.js"
309 309 }
310 310 }

0 commit comments