-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Show changelog after install npm package #98
Comments
Well the postinstall hook is going to be running in the root of the module directory, so just open the package.json in that directory and look at the name (I would guess). :) |
@prattheev , @Qix-, if you are sure you always call the module as an npm script, you can access the env variables defined by npm itself. The one you need is |
TIL, thanks @parro-it :) |
You're welcome @Qix- 🙂 |
@egoist I'll start working on this. |
That sounds useful 😃 maybe messy depending on how it's showing all the changelogs 😄 |
@CanRau The package is probably only going to show the changelog of the current version to keep it tidy. |
What's the value of showing changelog paths/contents on the first install? 🤔It is a fresh start and don't we expect they'll go and check the documentation for the version they are installing anyway? Where should that script live? Should it be part of package/dependency scripts or consumer/application scripts? The only useful scenario I could imagine is having already initialized project with a particular version of dependency and then bumping it to a newer one with appropriate changelog being presented. But that is pretty much what Also, @prattheev actually did something: https://github.com/prattheev/whatsnew |
@vladimyr My perspective on the request is that it's bundled as a dependency for a package and is run on install to show the changelog. |
Minor roadblock: There isn't a complete standard for writing |
This is exactly why you shouldn't try to parse and render them in the terminal but show links to them instead. |
@vladimyr In that case, we can probably detect for when the module is updated and only show it then. |
I think it would be better if it is something that |
Just searched npm and didn't find an exiting solution.
Basically you can call this module inside
postinstall
hook to display changelog for the new version.The text was updated successfully, but these errors were encountered: