Skip to content

Commit

Permalink
Fix throws on yarn test with no test script (#336)
Browse files Browse the repository at this point in the history
Fixes #275
  • Loading branch information
dflupu authored and sindresorhus committed Jan 22, 2019
1 parent d63feed commit 3c4cca0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ const exec = (cmd, args) => {
const cp = execa(cmd, args);

return merge(
streamToObservable(cp.stdout.pipe(split()), {await: cp}),
streamToObservable(cp.stderr.pipe(split()), {await: cp})
streamToObservable(cp.stdout.pipe(split())),
streamToObservable(cp.stderr.pipe(split())),
cp
).pipe(filter(Boolean));
};

Expand Down Expand Up @@ -117,7 +118,7 @@ module.exports = async (input = 'patch', options) => {
return [];
}

throwError(error);
return throwError(error);
})
)
}
Expand Down

0 comments on commit 3c4cca0

Please sign in to comment.