Skip to content

Commit

Permalink
Work around issue with async-exit-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 13, 2019
1 parent 73ec992 commit d5c94fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ module.exports = async (input = 'patch', options) => {
}
});

exitHook(callback => {
// The default parameter is a workaround for https://github.com/Tapppi/async-exit-hook/issues/9
exitHook((callback = () => {}) => {
if (publishStatus === 'FAILED' && runPublish) {
(async () => {
await rollback();
Expand Down

0 comments on commit d5c94fc

Please sign in to comment.