From 020714081d84d2a65a4cf90878ac4f260d09a16a Mon Sep 17 00:00:00 2001 From: Yash Kulshrestha Date: Sun, 6 Oct 2019 14:27:46 -0700 Subject: [PATCH] feat: added an eol warning for node v6 users --- src/cli/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/cli/index.ts b/src/cli/index.ts index b55b803af4..f706db47b4 100755 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -176,6 +176,17 @@ async function main() { exitCode = response.exitCode; } + if (runtime.isUsingNode6(process.versions.node)) { + alerts.registerAlerts([ + { + msg: + 'Node.js v6 is past the End-of-Life phase, please upgrade your version. We will soon be dropping support for it.', + name: 'Node6EOLWarning', + type: 'info', + }, + ]); + } + if (!args.options.json) { console.log(alerts.displayAlerts()); }