From 9824230cafffe8483ba90d7f6f7969da2d342b11 Mon Sep 17 00:00:00 2001 From: Jacob Bandes-Storch Date: Tue, 17 Dec 2024 12:20:55 -0800 Subject: [PATCH] Fix ReferenceError in publish.js --- bin/publish.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/publish.js b/bin/publish.js index 0a43b7c4..59771cd8 100644 --- a/bin/publish.js +++ b/bin/publish.js @@ -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 };