diff --git a/lib/commands/run-script.js b/lib/commands/run-script.js index e1bce0e52a513..dd2ed2bdf66a3 100644 --- a/lib/commands/run-script.js +++ b/lib/commands/run-script.js @@ -213,6 +213,7 @@ class RunScript extends BaseCommand { // in some workspaces since other scripts might have succeeded if (!scriptMissing) { process.exitCode = 1 + throw err } return scriptMissing