Skip to content

Commit 6b53ab4

Browse files
authored
Merge pull request #5252 from jtbandes/patch-1
Fix ReferenceError in publish.js
2 parents 7e01dc1 + c1446d6 commit 6b53ab4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bin/publish.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ function checkAndPublishPackage(packageDir, repoCommit, peerDependencies) {
114114
stdio: 'inherit'
115115
});
116116
if (result.status) {
117-
error(`Spawn exited with code ${result.status}`);
118-
process.exit(result.status);
117+
throw new Error(`Spawn exited with code ${result.status}`);
119118
}
120119

121120
return { isStableRelease, nextVersion };

0 commit comments

Comments
 (0)