-
-
Notifications
You must be signed in to change notification settings - Fork 332
fix: remove postinstall
script
#306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove postinstall
script
#306
Conversation
Vulnerable Libraries (1)
More info on how to fix Vulnerable Libraries in Javascript. 👉 Go to the dashboard for detailed results. 📥 Happy? Share your feedback with us. |
@G-Rath methods you suggest are for only funding request. And the post install message I set is about my profile page link (as I remember correctly) which is not the right fit to "npm fund". From the build perspective, I believe it is just a single line in your logs. You can understand that I have already spent a lot of time to this project. And there is a lot in line to be released in future which requires significant effort to complete. And there is no major contribution or maintainer who can save my time. So, either I can remove the post install script and limit my contribution to my spare time only which is not good for this project. Or I keep post-install script to let the users know about other opensource projects (not for funding but credit and advertisement). But I understand your concern and I'm happy to find alternatives. The one idea is to maintain the parallel commercial project without any funding message and post-install script so that the users can use this library as per their need. I would be happy to know if there is any idea in your mind. |
neither is Because of this, packages with My point is between the two, (in fact, it's technically a violation of the terms of service of the
That entirely depends on the package manager, verbosity settings, etc. In my original comment on the issue, I gave an example:
That's 5 lines, which you can't stop - even if you had an env-based check that said "don't log message" like OpenCollective and co do, it'll still trigger the other 4 lines. This is also assuming that it doesn't error, and you're also including color characters in the message, which most CI systems won't render, meaning my logs are being filled with broken hard to parse text. You could add a package like I support you giving people a way to find out about other projects, but |
Hmm. Let's remove it for the time being until I'm with some no solution situation. |
@G-Rath thank you for creating this PR @amitguptagwl I can still recommend using the An other way is maybe to add a message to the readme of this library, like this:
I'm more then happy to put something like that in the readme of the sonos library. |
I have updated the license information to make it straight and simple. I hope it can help. |
@G-Rath 3.19.0 is published with license information update. |
Purpose / Goal
postinstall
scripts tend to be obnoxious when used for advertising, and there are better methods available. Usually if someone is interested in contributing, they'll seek out projects to contribute to, butpostinstall
scripts are shown on every build resulting in noisy logs that make it harder to debug failing builds.The nature of
postinstall
means it can't be disabled without risking disabling an actualpostinstall
that is required for a particular package, and any form of check within the script (i.e for an env variable) won't prevent all the noise since the package managers always print the path to the scripts they're running before they run them.Resolves #236
Type
Please mention the type of PR