Skip to content

Commit

Permalink
feat: added an eol warning for node v6 users
Browse files Browse the repository at this point in the history
  • Loading branch information
YashdalfTheGray authored and dkontorovskyy committed Nov 4, 2019
1 parent f61ae36 commit 0207140
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 0207140

Please sign in to comment.