-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Notify Option to show Changelog in default message. #213
Comments
I also want to know how to add a link to the change log. Like npm does it:
|
It will be good to have it as a property, but actually you can do it using the custom message option: https://github.com/yeoman/update-notifier#options-and-custom-message |
If that's any useful, I am now using the following custom if (notifier.update) {
notifier.notify({
message: `New ${notifier.update.type} version available: ${chalk.dim(
'{currentVersion}',
)}${chalk.reset(' → ')}${
notifier.update.type === 'major' ? chalk.red('{latestVersion}')
: notifier.update.type === 'minor' ? chalk.yellow('{latestVersion}')
: chalk.green('{latestVersion}')
}\n` +
`Run ${chalk.cyan('{updateCommand}')} to update\n` +
'${chalk.dim.underline(`${packageJson.homepage ?? ''}/releases`)}`,
});
} Result: I would love for this to be the default! Or at the very least be able to append to the default template without having to re-specify it entirely! |
Add a option to add ChangeLog message in default message.
Example :
The text was updated successfully, but these errors were encountered: