From 6dc9bdcfd2271660dc365922d3fec91165e2b54c Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Mon, 23 Jul 2018 13:41:13 +0100 Subject: [PATCH] Add on exit --- lib/dashboard/repl.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/dashboard/repl.js b/lib/dashboard/repl.js index 44848db4..f416bc94 100644 --- a/lib/dashboard/repl.js +++ b/lib/dashboard/repl.js @@ -6,10 +6,14 @@ class REPL { } start(done) { - repl.start({ + let replServer = repl.start({ prompt: "Embark (" + this.env + ") > " }); + replServer.on('exit', () => { + process.exit(); + }); + done(); } }