Skip to content

Commit 9824230

Browse files
authored
Fix ReferenceError in publish.js
1 parent e826f6b commit 9824230

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

bin/publish.js

Lines changed: 1 addition & 2 deletions
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)