From 9fafed66a796affd6da849fa15981467cbae0558 Mon Sep 17 00:00:00 2001 From: Gerson Nino Date: Mon, 25 Mar 2019 03:10:13 -0500 Subject: [PATCH] Adding hack close process for Windows --- src/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index f9d3e04..de7a344 100644 --- a/src/index.js +++ b/src/index.js @@ -32,7 +32,7 @@ async function foo (action) { break default: - console.log('\x1b[41m%s\x1b[0m','There is no action for this command. Please run "globant-nodeschool -h" for help.') + console.log('\x1b[41m%s\x1b[0m', 'There is no action for this command. Please run "globant-nodeschool -h" for help.') process.exit(1) } } @@ -87,7 +87,11 @@ function startWorkshop (workshop) { opn('https://github.com/workshopper/scope-chains-closures#getting-started') break } - process.exit(0) + + /** Hack for kill process on windows */ + setTimeout(() => { + process.exit(0) + }, 1000) } module.exports = foo