From 72b713262fbb84a0606260c4d8879621a3c7f8e7 Mon Sep 17 00:00:00 2001 From: James Ide Date: Thu, 8 Oct 2015 22:44:28 -0700 Subject: [PATCH] [CLI] Add Node >= 4 requirement to CLI tools React Native's packager now relies on modern V8 so it depends on modern Node. The CLI tools actually run with older versions of Node but the version constraint in the CLI's package.json accomplishes two things: - Lets us rely on modern V8 in the CLI so we don't have to think about which JS features we can use - Fails faster up front. So if someone has Node 0.10 for example they will get an error when setting up the CLI tools instead of later on in the process. --- react-native-cli/package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/react-native-cli/package.json b/react-native-cli/package.json index 31fddd66b..04dbd3bf1 100644 --- a/react-native-cli/package.json +++ b/react-native-cli/package.json @@ -1,8 +1,11 @@ { "name": "react-native-cli", - "version": "0.1.4", - "description": "The ReactNative cli tools", + "version": "0.1.6", + "description": "The React Native CLI tools", "main": "index.js", + "engines": { + "node": ">=4" + }, "scripts": { "test": "mocha" },