From eae91cc680c82acaa721535441a0f60c7074cf19 Mon Sep 17 00:00:00 2001 From: Flavio daCosta Date: Thu, 12 Nov 2015 09:24:44 -0800 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20report=20failure=20to=20npm-sta?= =?UTF-8?q?rt=20with=20arg=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: This supports passing args to `npm start` as referenced in [this comment][comment] while still returning 0 on failure from an npm perspective. This builds off the npm change in [this commit][commit] and discussed in this [PR]. [comment]: https://github.com/facebook/react-native/pull/2415#issuecomment-141309448 [commit]: https://github.com/facebook/react-native/commit/75df3b537ae071b0b4d1b01ae75d66ec5457bb1e [PR]: https://github.com/facebook/react-native/pull/2415 Closes https://github.com/facebook/react-native/pull/3002 Reviewed By: svcscm Differential Revision: D2647258 Pulled By: spicyj fb-gh-sync-id: 2385254d23a37a99a53f53308e4688bc1fc3124e --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 77d51b76d9..b317ddd850 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "scripts": { "test": "NODE_ENV=test jest", "lint": "eslint Examples/ Libraries/", - "start": "./packager/packager.sh || true" + "start": "/usr/bin/env bash -c './packager/packager.sh \"$@\" || true' --" }, "bin": { "react-native": "local-cli/wrong-react-native.js"