From ec762717153bbe434e4b8188898f35e3491c88ed Mon Sep 17 00:00:00 2001 From: Alex Kotliarskyi Date: Tue, 5 Jan 2016 15:21:25 -0800 Subject: [PATCH] Return non-zero exit code from wrong-react-native Summary: When used in automation, `wrong-react-native` can cause problems because it does not report the issue via exit code. Closes https://github.com/facebook/react-native/pull/5114 Reviewed By: svcscm Differential Revision: D2799995 Pulled By: frantic fb-gh-sync-id: 23c32dac9b0fcdbeaf48b94e9cb220c6c1b344aa --- local-cli/wrong-react-native.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/local-cli/wrong-react-native.js b/local-cli/wrong-react-native.js index bbc0a02919c..44759e4b2bb 100755 --- a/local-cli/wrong-react-native.js +++ b/local-cli/wrong-react-native.js @@ -15,3 +15,5 @@ console.error([ 'npm uninstall -g react-native', 'npm install -g react-native-cli' ].join('\n')); + +process.exit(1);