Skip to content

Commit 9a0be88

Browse files
Deprecate support for Node.js 4
Deprecate support for Node.js `4.x.x` by adding message that users will see each time when they execute any command and their Node.js version is `4.x.x`.
1 parent 2dbc948 commit 9a0be88

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/tns

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var path = require("path"),
66
pathToLib = path.join(__dirname, "..", "lib"),
77
pathToCommon = path.join(pathToLib, "common");
88

9-
require(path.join(pathToCommon, "verify-node-version")).verifyNodeVersion(node, "NativeScript");
9+
require(path.join(pathToCommon, "verify-node-version")).verifyNodeVersion(node, "NativeScript", [ "^4.0.0" ]);
1010

1111
var pathToCliExecutable = path.join(pathToLib, "nativescript-cli.js");
1212

@@ -27,7 +27,7 @@ if (nodeArgs.length) {
2727

2828
var nodeProcess = childProcess.spawn(process.execPath, args, { stdio: "inherit" });
2929

30-
nodeProcess.on("close", function(code) {
30+
nodeProcess.on("close", function (code) {
3131
// We need this handler so if command fails, we'll exit with same exit code as CLI.
3232
process.exit(code);
3333
});

lib/common

0 commit comments

Comments
 (0)