From a286c0e75358dd3d917df51189ee306ef00a5e7e Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Fri, 3 Aug 2018 13:25:02 -0700 Subject: [PATCH] Fix RNTester on Windows (#19974) Summary: Currrent, RNTester can not work on windows. * Fixes https://github.com/facebook/react-native/issues/19654. Pull Request resolved: https://github.com/facebook/react-native/pull/19974 Differential Revision: D9150453 Pulled By: rafeca fbshipit-source-id: 1bd2046fbe0e8eaadf249604357c2e6acd80455e --- package.json | 3 +-- scripts/objc-test.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 79b76de32..223d4e2b1 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,6 @@ "scripts/ios-install-third-party.sh", "scripts/launchPackager.bat", "scripts/launchPackager.command", - "scripts/packager.sh", "scripts/react-native-xcode.sh", "jest-preset.json", "jest", @@ -123,12 +122,12 @@ "third-party-podspecs" ], "scripts": { + "start": "node ./local-cli/cli.js start", "test": "jest", "test-ci": "JEST_JUNIT_OUTPUT=\"reports/junit/js-test-results.xml\" jest --maxWorkers=2 --ci --testResultsProcessor=\"jest-junit\"", "flow": "flow", "lint": "eslint .", "prettier": "prettier \"./**/*.js\" --write", - "start": "/usr/bin/env bash -c './scripts/packager.sh \"$@\" || true' --", "docker-setup-android": "docker pull reactnativeci/android-base:latest", "docker-build-android-base": "docker build -t reactnativeci/android-base -f ContainerShip/Dockerfile.android-base .", "docker-build-android": "docker build -t reactnativeci/android -f ContainerShip/Dockerfile.android .", diff --git a/scripts/objc-test.sh b/scripts/objc-test.sh index c2a9a94d1..ed670cc2a 100755 --- a/scripts/objc-test.sh +++ b/scripts/objc-test.sh @@ -56,7 +56,7 @@ function waitForPackager { if [ "$1" = "test" ]; then # Start the packager -./scripts/packager.sh --max-workers=1 || echo "Can't start packager automatically" & +npm run start --max-workers=1 || echo "Can't start packager automatically" & # Start the WebSocket test server open "./IntegrationTests/launchWebSocketServer.command" || echo "Can't start web socket server automatically"