Skip to content

Commit

Permalink
Merge pull request #5252 from jtbandes/patch-1
Browse files Browse the repository at this point in the history
Fix ReferenceError in publish.js
  • Loading branch information
Tyriar authored Jan 8, 2025
2 parents 7e01dc1 + c1446d6 commit 6b53ab4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ function checkAndPublishPackage(packageDir, repoCommit, peerDependencies) {
stdio: 'inherit'
});
if (result.status) {
error(`Spawn exited with code ${result.status}`);
process.exit(result.status);
throw new Error(`Spawn exited with code ${result.status}`);
}

return { isStableRelease, nextVersion };
Expand Down

0 comments on commit 6b53ab4

Please sign in to comment.