-
Notifications
You must be signed in to change notification settings - Fork 789
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
callback in code usage is not work #288
Comments
The function exported by the main module (index.js) no longer accepts a callback as a 2nd argument - instead it returns a Promise. This is a breaking change that was introduced between version 4.0.0 and 4.1.0 - meaning the 4.1.0 release should have been 5.0.0. 😞 It also appears the Code usage portion of the README has not been updated to reflect this change either. 😿 So, apologies, it looks like we goofed up here. In the meantime, try changing your code to something like this instead: standardVersion()
.then(_ => console.log('success'))
.catch(err => {
process.chdir(root)
process.exit(1)
}) |
Oh, It works. 👍 very thank you! Returns a Promise is better than using callback, We then need update the docs, can I make a PR to update it? standard-version is a great project, thank you again! 🎉 |
@huruji Yes please! |
ok, I will @stevemao |
I use standard-version in my project, but I found the callback in code usage is not work
my code:
output when standard-version is success
![image](https://user-images.githubusercontent.com/15937065/50336618-872aee80-0549-11e9-808d-d2b641efd5b3.png)
output when standard-version is failed
And I made a breakpoint in my code , but it still not work , I have no idea now. Give me a hand, please
The text was updated successfully, but these errors were encountered: