From dc62cbe52ab2c37e86dba68bae78526e20cd6ed7 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Mon, 23 Nov 2015 19:07:50 -0800 Subject: [PATCH] fixes for packager and npm version for react tests --- tests/ReactTests/ios/ReactTests.xcodeproj/project.pbxproj | 2 +- tests/ReactTests/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ReactTests/ios/ReactTests.xcodeproj/project.pbxproj b/tests/ReactTests/ios/ReactTests.xcodeproj/project.pbxproj index 45ae97af..0923f3ac 100644 --- a/tests/ReactTests/ios/ReactTests.xcodeproj/project.pbxproj +++ b/tests/ReactTests/ios/ReactTests.xcodeproj/project.pbxproj @@ -614,7 +614,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "rm -rf ../node_modules/realm ../node_modules/realm-tests\nnpm install realm realm-tests\ncp ../../../src/object-store/parser/queryTests.json ../node_modules/realm-tests\n"; + shellScript = "rm -rf ../node_modules/realm ../node_modules/realm-tests\n[ -s \"${HOME}/.nvm/nvm.sh\" ] && . \"${HOME}/.nvm/nvm.sh\"\nnpm install realm realm-tests\ncp ../../../src/object-store/parser/queryTests.json ../node_modules/realm-tests\n"; }; /* End PBXShellScriptBuildPhase section */ diff --git a/tests/ReactTests/package.json b/tests/ReactTests/package.json index b010b35d..2889c17b 100644 --- a/tests/ReactTests/package.json +++ b/tests/ReactTests/package.json @@ -3,10 +3,10 @@ "version": "0.0.1", "private": true, "scripts": { - "start": "node_modules/react-native/packager/packager.sh" + "start": "react-native start" }, "dependencies": { - "react-native": "0.14.2", + "react-native": "^0.14.2", "realm": "file:../../lib", "realm-tests": "file:.." }