From 9c9de6eb075c62650145bfebfac3680923f172d6 Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Fri, 13 Dec 2024 11:48:32 +0000 Subject: [PATCH] fix: maintain backward support for `exitcrash` --- lib/monitor/run.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/monitor/run.js b/lib/monitor/run.js index 4314226a..5fa7f45a 100644 --- a/lib/monitor/run.js +++ b/lib/monitor/run.js @@ -249,6 +249,13 @@ function run(options) { } } else { bus.emit('crash'); + + // support the old syntax of `exitcrash` - 2024-12-13 + if (options.exitcrash) { + options.exitCrash = true; + delete options.exitcrash; + } + if (options.exitCrash) { utils.log.fail('app crashed'); if (!config.required) {